Home
last modified time | relevance | path

Searched refs:bitLength (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DRSASignatureTest.java62 int modulusSizeBits = ((RSAKey) publicKey).getModulus().bitLength(); in testMaxMessageSizeWhenNoDigestUsed()
130 assertEquals(512, ((RSAKey) keyPair.getPrivate()).getModulus().bitLength()); in testSmallKeyRejected()
131 assertEquals(512, ((RSAKey) keyPair.getPublic()).getModulus().bitLength()); in testSmallKeyRejected()
DRSACipherTest.java52 int modulusSizeBytes = (modulus.bitLength() + 7) / 8; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
175 byte[] plaintext = new byte[((modulus.bitLength() + 7) / 8) + 1]; in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
207 byte[] ciphertext = new byte[((modulus.bitLength() + 7) / 8) + 1]; in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
DTestUtils.java142 return ((RSAKey) key).getModulus().bitLength(); in getKeySizeBits()
DAndroidKeyStoreTest.java1923 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1Integer.java96 return (value.bitLength() >> 3) + 1; in getBerValueLength()
/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java92 protected static byte[] getKey(int bitLength) { in getKey() argument
93 return Arrays.copyOf(KEY_DATA, bitLength / 8); in getKey()