You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge commit '12ff57a16373dda5a0c22eafdf0fa1c4c224f7c4' into release
* commit '12ff57a16373dda5a0c22eafdf0fa1c4c224f7c4':
Updates to the Amazon S3 Encryption Client - This change includes fixes for issues that were reported by Sophie Schmieg from the Google ISE team, and for issues that were discovered by AWS Cryptography.
Copy file name to clipboardexpand all lines: CHANGELOG_PENDING.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
### SDK Features
2
+
*`service/s3/s3crypto`: Updates to the Amazon S3 Encryption Client - This change includes fixes for issues that were reported by Sophie Schmieg from the Google ISE team, and for issues that were discovered by AWS Cryptography.
// AESCBCContentCipherBuilder returns a new encryption only mode structure with a specific cipher
23
-
// for the master key
17
+
// AESCBCContentCipherBuilder returns a new encryption only AES/CBC mode structure using the provided padder. The provided cipher data generator
18
+
// will be used to provide keys for content encryption.
24
19
//
25
-
// deprecated: This content cipher builder has been deprecated. Users should migrate to AESGCMContentCipherBuilder
20
+
// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.
// RegisterAESCBCContentCipher registers the AES/CBC cipher and padder with the provided CryptoRegistry.
26
+
//
27
+
// Example:
28
+
// cr := s3crypto.NewCryptoRegistry()
29
+
// if err := s3crypto.RegisterAESCBCContentCipher(cr, s3crypto.AESCBCPadder); err != nil {
30
+
// panic(err) // handle error
31
+
// }
32
+
//
33
+
// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.
Copy file name to clipboardexpand all lines: service/s3/s3crypto/aes_gcm_content_cipher.go
+119-13
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package s3crypto
2
2
3
3
import (
4
+
"fmt"
4
5
"io"
5
6
6
7
"github.com/aws/aws-sdk-go/aws"
@@ -11,21 +12,62 @@ const (
11
12
gcmNonceSize=12
12
13
)
13
14
14
-
typegcmContentCipherBuilderstruct {
15
-
generatorCipherDataGenerator
15
+
// AESGCMContentCipherBuilder returns a new encryption only AES/GCM mode structure with a specific cipher data generator
16
+
// that will provide keys to be used for content encryption.
17
+
//
18
+
// Note: This uses the Go stdlib AEAD implementation for AES/GCM. Due to this objects to be encrypted or decrypted
19
+
// will be fully loaded into memory before encryption or decryption can occur. Caution must be taken to avoid memory
20
+
// allocation failures.
21
+
//
22
+
// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.
0 commit comments