Home
last modified time | relevance | path

Searched refs:getKeySizeBits (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DECDSASignatureTest.java45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize()
93 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DCipherTest.java428 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()
DTestUtils.java191 static int getKeySizeBits(Key key) { in getKeySizeBits() method in TestUtils
202 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()
DRSACipherTest.java239 byte[] expectedCiphertext = new byte[(TestUtils.getKeySizeBits(publicKey) + 7) / 8]; in testNoPaddingWithZeroMessage()