Searched refs:modulusSizeBytes (Results 1 – 5 of 5) sorted by relevance
36 int modulusSizeBytes = (keySize + 7) / 8; in testNONEwithRSA() local38 Arrays.stream(TEST_MESSAGE_SIZES).filter(x -> modulusSizeBytes > x).toArray(); in testNONEwithRSA()
80 int modulusSizeBytes = (modulusSizeBits + 7) / 8; in testMaxMessageSizeWhenNoDigestUsed() local83 int expectedMaxMessageSizeBytes = modulusSizeBytes - 11; in testMaxMessageSizeWhenNoDigestUsed()
86 int modulusSizeBytes = (modulus.bitLength() + 7) / 8; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local91 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
2048 int modulusSizeBytes = (((RSAKey) publicKey).getModulus().bitLength() + 7) / 8; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local2049 byte[] plainText = new byte[modulusSizeBytes]; in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1044 int modulusSizeBytes = (keySizeBits + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes() local1046 return modulusSizeBytes - 1; in getMaxSupportedPlaintextInputSizeBytes()1049 return modulusSizeBytes - 11; in getMaxSupportedPlaintextInputSizeBytes()1054 return modulusSizeBytes - 2 * digestOutputSizeBytes - 2; in getMaxSupportedPlaintextInputSizeBytes()