Skip to content

Commit cc105f6

Browse files
committed
log3
1 parent 5934819 commit cc105f6

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

src/main/java/software/amazon/encryption/s3/internal/CipherSubscriber.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public void onNext(ByteBuffer byteBuffer) {
5050

5151
if (amountToReadFromByteBuffer > 0) {
5252
byte[] buf = BinaryUtils.copyBytesFrom(byteBuffer, amountToReadFromByteBuffer);
53-
System.out.println("updating cipher...");
5453
outputBuffer = cipher.update(buf, 0, amountToReadFromByteBuffer);
5554
if (outputBuffer == null || outputBuffer.length == 0) {
5655
// The underlying data is too short to fill in the block cipher.

src/main/java/software/amazon/encryption/s3/internal/GetEncryptedObjectPipeline.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public void onStream(SdkPublisher<ByteBuffer> ciphertextPublisher) {
153153
final Cipher cipher = CryptoFactory.createCipher(algorithmSuite.cipherName(), materials.cryptoProvider());
154154
switch (algorithmSuite) {
155155
case ALG_AES_256_GCM_IV12_TAG16_NO_KDF:
156+
System.out.println("initting a GCM cipher for decrypt...");
156157
cipher.init(Cipher.DECRYPT_MODE, contentKey, new GCMParameterSpec(tagLength, iv));
157158
break;
158159
case ALG_AES_256_CTR_IV16_TAG16_NO_KDF:

src/main/java/software/amazon/encryption/s3/materials/AesKeyring.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public byte[] decryptDataKey(DecryptionMaterials materials, byte[] encryptedData
138138

139139
GCMParameterSpec gcmParameterSpec = new GCMParameterSpec(TAG_LENGTH_BITS, iv);
140140
final Cipher cipher = CryptoFactory.createCipher(CIPHER_ALGORITHM, materials.cryptoProvider());
141+
System.out.println("aes keyring cipher - shouldn't happen..");
141142
cipher.init(Cipher.DECRYPT_MODE, _wrappingKey, gcmParameterSpec);
142143

143144
final byte[] aADBytes = AlgorithmSuite.ALG_AES_256_GCM_IV12_TAG16_NO_KDF.cipherName().getBytes(StandardCharsets.UTF_8);

src/main/java/software/amazon/encryption/s3/materials/RsaKeyring.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public byte[] encryptDataKey(SecureRandom secureRandom,
132132
@Override
133133
public byte[] decryptDataKey(DecryptionMaterials materials, byte[] encryptedDataKey) throws GeneralSecurityException {
134134
final Cipher cipher = CryptoFactory.createCipher(CIPHER_ALGORITHM, materials.cryptoProvider());
135+
System.out.println("rsa keyring cipher - shouldn't happen..");
135136
cipher.init(Cipher.UNWRAP_MODE, _partialRsaKeyPair.getPrivateKey(), OAEP_PARAMETER_SPEC);
136137

137138
String dataKeyAlgorithm = materials.algorithmSuite().dataKeyAlgorithm();

0 commit comments

Comments
 (0)