Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DRSASignatureTest.java64 int modulusSizeBytes = (modulusSizeBits + 7) / 8; in testMaxMessageSizeWhenNoDigestUsed() local
67 int expectedMaxMessageSizeBytes = modulusSizeBytes - 11; in testMaxMessageSizeWhenNoDigestUsed()
DRSACipherTest.java52 int modulusSizeBytes = (modulus.bitLength() + 7) / 8; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local
57 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
DTestUtils.java768 int modulusSizeBytes = (getKeySizeBits(key) + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes() local
770 return modulusSizeBytes - 1; in getMaxSupportedPlaintextInputSizeBytes()
773 return modulusSizeBytes - 11; in getMaxSupportedPlaintextInputSizeBytes()
778 return modulusSizeBytes - 2 * digestOutputSizeBytes - 2; in getMaxSupportedPlaintextInputSizeBytes()
DAndroidKeyStoreTest.java1953 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
1954 byte[] plainText = new byte[modulusSizeBytes]; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()