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()
338 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts()383 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()472 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()542 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()616 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testMaxSizedPlaintextSupported()780 int modulusLengthBytes = (TestUtils.getKeySizeBits(decryptionKey) + 7) / 8; in testKat()1382 (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()767 int modulusSizeBytes = (getKeySizeBits(key) + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes()
239 byte[] expectedCiphertext = new byte[(TestUtils.getKeySizeBits(publicKey) + 7) / 8]; in testNoPaddingWithZeroMessage()
603 (TestUtils.getKeySizeBits(privateKey) + 7) / 8; in testEntropyConsumption()