@@ -1706,7 +1706,7 @@ private CryptoUtil newCryptoUtilSpy() throws Exception {
17061706 public void shouldDetectAndMigratePKCS1KeyToOAEP () throws Exception {
17071707 CryptoUtil cryptoUtil = newCryptoUtilSpy ();
17081708
1709- byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 };
1709+ byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 };
17101710 byte [] encryptedAESKeyPKCS1 = new byte []{20 , 21 , 22 , 23 , 24 };
17111711 String encodedEncryptedAESPKCS1 = "pkcs1_encrypted_key" ;
17121712
@@ -1790,7 +1790,7 @@ public void shouldHandleKeyStoreErrorDuringMigration() throws Exception {
17901790 public void shouldUseOAEPDirectlyForNewUsers () throws Exception {
17911791 CryptoUtil cryptoUtil = newCryptoUtilSpy ();
17921792
1793- byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 };
1793+ byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 };
17941794 byte [] encryptedAESKeyOAEP = new byte []{20 , 21 , 22 , 23 , 24 };
17951795 String encodedEncryptedAESOAEP = "oaep_encrypted_key" ;
17961796
@@ -1838,7 +1838,7 @@ public void shouldRecognizeIncompatiblePaddingModeInExceptionChain() throws Exce
18381838 when (keyStore .getEntry (eq (KEY_ALIAS ), nullable (KeyStore .ProtectionParameter .class )))
18391839 .thenReturn (mockKeyEntry );
18401840
1841- byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 };
1841+ byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 };
18421842 when (rsaPkcs1Cipher .doFinal (encryptedAESBytes )).thenReturn (aesKeyBytes );
18431843
18441844 byte [] encryptedAESKeyOAEP = new byte []{20 , 21 , 22 , 23 };
@@ -1858,7 +1858,7 @@ public void shouldAllowMultipleRetrievalsAfterMigration() throws Exception {
18581858
18591859 CryptoUtil cryptoUtil = newCryptoUtilSpy ();
18601860
1861- byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 };
1861+ byte [] aesKeyBytes = new byte []{1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 };
18621862 byte [] encryptedAESKeyPKCS1 = new byte []{20 , 21 , 22 , 23 , 24 };
18631863 String encodedEncryptedAESPKCS1 = "pkcs1_encrypted_key" ;
18641864
0 commit comments