Searched refs:getKeySizeBits (Results 1 – 4 of 4) sorted by relevance
45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize()93 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
428 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts()480 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEncryptsAndDecryptsInterrupted()536 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEncryptsAndDecryptsUsingCipherStreams()665 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()727 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()816 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()886 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()960 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testMaxSizedPlaintextSupported()1096 int modulusLengthBytes = (TestUtils.getKeySizeBits(decryptionKey) + 7) / 8; in testKat()
191 static int getKeySizeBits(Key key) { in getKeySizeBits() method in TestUtils202 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPrivate())); in assertKeySize()203 assertEquals(expectedSizeBits, getKeySizeBits(keyPair.getPublic())); in assertKeySize()882 return isKeyLongEnoughForSignatureAlgorithm(algorithm, getKeySizeBits(key)); in isKeyLongEnoughForSignatureAlgorithm()911 return getMaxSupportedPlaintextInputSizeBytes(transformation, getKeySizeBits(key)); in getMaxSupportedPlaintextInputSizeBytes()
239 byte[] expectedCiphertext = new byte[(TestUtils.getKeySizeBits(publicKey) + 7) / 8]; in testNoPaddingWithZeroMessage()