Searched refs:bitLength (Results 1 – 6 of 6) sorted by relevance
62 int modulusSizeBits = ((RSAKey) publicKey).getModulus().bitLength(); in testMaxMessageSizeWhenNoDigestUsed()130 assertEquals(512, ((RSAKey) keyPair.getPrivate()).getModulus().bitLength()); in testSmallKeyRejected()131 assertEquals(512, ((RSAKey) keyPair.getPublic()).getModulus().bitLength()); in testSmallKeyRejected()
52 int modulusSizeBytes = (modulus.bitLength() + 7) / 8; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()175 byte[] plaintext = new byte[((modulus.bitLength() + 7) / 8) + 1]; in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()207 byte[] ciphertext = new byte[((modulus.bitLength() + 7) / 8) + 1]; in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
142 return ((RSAKey) key).getModulus().bitLength(); in getKeySizeBits()
1923 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
96 return (value.bitLength() >> 3) + 1; in getBerValueLength()
92 protected static byte[] getKey(int bitLength) { in getKey() argument93 return Arrays.copyOf(KEY_DATA, bitLength / 8); in getKey()