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()
140 return ((RSAKey) key).getModulus().bitLength(); in getKeySizeBits()777 int keySizeBytes = ((RSAKey) key).getModulus().bitLength() / 8; in isKeyLongEnoughForSignatureAlgorithm()
1962 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
96 return (value.bitLength() >> 3) + 1; in getBerValueLength()
76 protected static byte[] getKey(int bitLength) { in getKey() argument77 return Arrays.copyOf(KEY_DATA, bitLength / 8); in getKey()