Home
last modified time | relevance | path

Searched refs:modulusSizeBytes (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/performance/
DRsaSignaturePerformanceTest.java36 int modulusSizeBytes = (keySize + 7) / 8; in testNONEwithRSA() local
38 Arrays.stream(TEST_MESSAGE_SIZES).filter(x -> modulusSizeBytes > x).toArray(); in testNONEwithRSA()
/cts/tests/tests/keystore/src/android/keystore/cts/
DRSASignatureTest.java80 int modulusSizeBytes = (modulusSizeBits + 7) / 8; in testMaxMessageSizeWhenNoDigestUsed() local
83 int expectedMaxMessageSizeBytes = modulusSizeBytes - 11; in testMaxMessageSizeWhenNoDigestUsed()
DRSACipherTest.java86 int modulusSizeBytes = (modulus.bitLength() + 7) / 8; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local
91 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
DAndroidKeyStoreTest.java2048 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
2049 byte[] plainText = new byte[modulusSizeBytes]; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java1044 int modulusSizeBytes = (keySizeBits + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes() local
1046 return modulusSizeBytes - 1; in getMaxSupportedPlaintextInputSizeBytes()
1049 return modulusSizeBytes - 11; in getMaxSupportedPlaintextInputSizeBytes()
1054 return modulusSizeBytes - 2 * digestOutputSizeBytes - 2; in getMaxSupportedPlaintextInputSizeBytes()