Searched refs:getKeySizeBits (Results 1 – 5 of 5) sorted by relevance
45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize()87 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
336 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts()381 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()458 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()528 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()602 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testMaxSizedPlaintextSupported()766 int modulusLengthBytes = (TestUtils.getKeySizeBits(decryptionKey) + 7) / 8; in testKat()1368 (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEntropyConsumption()
117 static int getKeySizeBits(Key key) { in getKeySizeBits() method in TestUtils128 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPrivate())); in assertKeySize()129 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPublic())); in assertKeySize()766 int modulusSizeBytes = (getKeySizeBits(key) + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes()
239 byte[] expectedCiphertext = new byte[(TestUtils.getKeySizeBits(publicKey) + 7) / 8]; in testNoPaddingWithZeroMessage()
604 (TestUtils.getKeySizeBits(privateKey) + 7) / 8; in DISABLED_testEntropyConsumption()