Skip to content

Commit 41580bb

Browse files
Fix static scan issue by updating AES cipher mode
Changed AES cipher mode from AES/CBC/PKCS5Padding to AES/CTR/NoPadding.
1 parent a31cccf commit 41580bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presto-main-base/src/main/java/com/facebook/presto/spiller/AesSpillCipher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
final class AesSpillCipher
3434
implements SpillCipher
3535
{
36-
// 256-bit AES CBC mode
37-
private static final String CIPHER_NAME = "AES/CBC/PKCS5Padding";
36+
// 256-bit AES CTR mode
37+
private static final String CIPHER_NAME = "AES/CTR/NoPadding";
3838
private static final int KEY_BITS = 256;
3939

4040
private SecretKey key;

0 commit comments

Comments
 (0)