Searched refs:getKeySizeBits (Results 1 – 3 of 3) sorted by relevance
45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize()87 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
192 static int getKeySizeBits(Key key) { in getKeySizeBits() method in TestUtils203 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPrivate())); in assertKeySize()204 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPublic())); in assertKeySize()883 return isKeyLongEnoughForSignatureAlgorithm(algorithm, getKeySizeBits(key)); in isKeyLongEnoughForSignatureAlgorithm()912 return getMaxSupportedPlaintextInputSizeBytes(transformation, getKeySizeBits(key)); in getMaxSupportedPlaintextInputSizeBytes()
239 byte[] expectedCiphertext = new byte[(TestUtils.getKeySizeBits(publicKey) + 7) / 8]; in testNoPaddingWithZeroMessage()