Home
last modified time | relevance | path

Searched refs:getBlockSize (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/main/java/javax/crypto/
DCipherInputStream.java61 int blockSize = Math.max(c.getBlockSize(), 1); in CipherInputStream()
DCipher.java519 public final int getBlockSize() { in getBlockSize() method in Cipher
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DNullCipherTest.java53 assertEquals("Incorrect BlockSize", 1, c.getBlockSize()); in testGetBlockSize()
DCipherTest.java202 assertEquals("Block size does not match", 8, cipher.getBlockSize()); in test_getBlockSize()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java1128 getExpectedBlockSize(algorithm, encryptMode, providerName), c.getBlockSize()); in test_Cipher()
1141 getExpectedBlockSize(algorithm, decryptMode, providerName), c.getBlockSize()); in test_Cipher()
2257 assertEquals(0, c.getBlockSize()); in testRSA_ECB_NoPadding_GetBlockSize_Success()
2260 c.getBlockSize(); in testRSA_ECB_NoPadding_GetBlockSize_Success()
2271 assertEquals(getExpectedBlockSize("RSA", Cipher.ENCRYPT_MODE, provider), c.getBlockSize()); in testRSA_ECB_NoPadding_GetBlockSize_Success()
2804 if (c.getBlockSize() == 0) { in checkCipher_ShortBlock_Failure()
2845 final byte[] output = new byte[c.getBlockSize() - 1]; in testAES_ECB_PKCS5Padding_ShortBuffer_Failure()
2855 final byte[] output = new byte[c.getBlockSize()]; in testAES_ECB_PKCS5Padding_ShortBuffer_Failure()
2865 final byte[] output = new byte[c.getBlockSize()]; in testAES_ECB_PKCS5Padding_ShortBuffer_Failure()