-
Bug
-
Resolution: Duplicate
-
P3
-
8
-
b100
-
Not verified
SQE has the tests which use 0 byte data to update cipher stream. These tests fail with following exception on call to close() on cipher stream created for decrypt -
[2013-08-08T03:51:05.24] Unexpected exception
[2013-08-08T03:51:05.24] Test configuration:
[2013-08-08T03:51:05.24] java.lang.RuntimeException: Input buffer too short - need tag
[2013-08-08T03:51:05.24] test: CICO_SKIP
[2013-08-08T03:51:05.24] buffer type: byteArrayBuffering
[2013-08-08T03:51:05.24] key length: 128
[2013-08-08T03:51:05.24] text length: 0
[2013-08-08T03:51:05.24] AAD length: 0
[2013-08-08T03:51:05.24] Exception message:
[2013-08-08T03:51:05.24] Input buffer too short - need tag
[2013-08-08T03:51:05.24] Test failed.
[2013-08-08T03:51:05.24] Test configuration:
[2013-08-08T03:51:05.24] test: CICO_SKIP
at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:465)
at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1022)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:959)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:827)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at javax.crypto.Cipher.doFinal(Cipher.java:2004)
at javax.crypto.CipherInputStream.close(CipherInputStream.java:307)
at CICO_AEAD_SKIP_Test.proceedTest(CICO_AEAD_SKIP_Test.java:136)
at CICO_AEAD_Test.doTest(CICO_AEAD_Test.java:137)
at Test_CICO_AEAD_func.doCICOAEADTest(Test_CICO_AEAD_func.java:85)
at Test_CICO_AEAD_func.runTests(Test_CICO_AEAD_func.java:43)
at Test_CICO_AEAD_func.main(Test_CICO_AEAD_func.java:30)
Affected Tests:
jce/Cipher/AEAD/AEAD_CICO_SKIP_BA
jce/Cipher/AEAD/AEAD_CICO_SKIP_IB
[2013-08-08T03:51:05.24] Unexpected exception
[2013-08-08T03:51:05.24] Test configuration:
[2013-08-08T03:51:05.24] java.lang.RuntimeException: Input buffer too short - need tag
[2013-08-08T03:51:05.24] test: CICO_SKIP
[2013-08-08T03:51:05.24] buffer type: byteArrayBuffering
[2013-08-08T03:51:05.24] key length: 128
[2013-08-08T03:51:05.24] text length: 0
[2013-08-08T03:51:05.24] AAD length: 0
[2013-08-08T03:51:05.24] Exception message:
[2013-08-08T03:51:05.24] Input buffer too short - need tag
[2013-08-08T03:51:05.24] Test failed.
[2013-08-08T03:51:05.24] Test configuration:
[2013-08-08T03:51:05.24] test: CICO_SKIP
at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:465)
at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1022)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:959)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:827)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at javax.crypto.Cipher.doFinal(Cipher.java:2004)
at javax.crypto.CipherInputStream.close(CipherInputStream.java:307)
at CICO_AEAD_SKIP_Test.proceedTest(CICO_AEAD_SKIP_Test.java:136)
at CICO_AEAD_Test.doTest(CICO_AEAD_Test.java:137)
at Test_CICO_AEAD_func.doCICOAEADTest(Test_CICO_AEAD_func.java:85)
at Test_CICO_AEAD_func.runTests(Test_CICO_AEAD_func.java:43)
at Test_CICO_AEAD_func.main(Test_CICO_AEAD_func.java:30)
Affected Tests:
jce/Cipher/AEAD/AEAD_CICO_SKIP_BA
jce/Cipher/AEAD/AEAD_CICO_SKIP_IB