Upgrading server dependancies (#6984)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e2f4492ead
Коммит
58839cefb5
9
vendor/github.com/minio/minio-go/pkg/encrypt/cbc.go
сгенерированный
поставляемый
9
vendor/github.com/minio/minio-go/pkg/encrypt/cbc.go
сгенерированный
поставляемый
@@ -89,6 +89,15 @@ func NewCBCSecureMaterials(key Key) (*CBCSecureMaterials, error) {
|
||||
|
||||
}
|
||||
|
||||
// Close implements closes the internal stream.
|
||||
func (s *CBCSecureMaterials) Close() error {
|
||||
closer, ok := s.stream.(io.Closer)
|
||||
if ok {
|
||||
return closer.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetupEncryptMode - tells CBC that we are going to encrypt data
|
||||
func (s *CBCSecureMaterials) SetupEncryptMode(stream io.Reader) error {
|
||||
// Set mode to encrypt
|
||||
|
||||
3
vendor/github.com/minio/minio-go/pkg/encrypt/interface.go
сгенерированный
поставляемый
3
vendor/github.com/minio/minio-go/pkg/encrypt/interface.go
сгенерированный
поставляемый
@@ -25,6 +25,9 @@ import "io"
|
||||
// Materials - provides generic interface to encrypt any stream of data.
|
||||
type Materials interface {
|
||||
|
||||
// Closes the wrapped stream properly, initiated by the caller.
|
||||
Close() error
|
||||
|
||||
// Returns encrypted/decrypted data, io.Reader compatible.
|
||||
Read(b []byte) (int, error)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user