Searched refs:keySizeBits (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ECDSASignatureTest.java | 45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize() local 46 byte[] message = new byte[(keySizeBits * 3) / 8]; in assertNONEwithECDSATruncatesInputToFieldSize() 66 signature.update(message, 0, (keySizeBits + 7) / 8); in assertNONEwithECDSATruncatesInputToFieldSize() 70 signature.update(message, 0, (keySizeBits / 8) - 1); in assertNONEwithECDSATruncatesInputToFieldSize() 87 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() local 88 byte[] message = new byte[(keySizeBits * 3 / 4) / 8]; in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() 108 byte[] fullLengthMessage = TestUtils.leftPadWithZeroBytes(message, keySizeBits / 8); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
|
D | KeyPairGeneratorTest.java | 1253 for (int keySizeBits = 0; keySizeBits <= 1024; keySizeBits++) { in testGenerate_EC_ModernSpec_UnsupportedSizesRejected() 1254 testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper(false, keySizeBits); in testGenerate_EC_ModernSpec_UnsupportedSizesRejected() 1256 testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper(true, keySizeBits); in testGenerate_EC_ModernSpec_UnsupportedSizesRejected() 1261 …EC_ModernSpec_UnsupportedSizesRejectedHelper(boolean useStrongbox, int keySizeBits) throws Excepti… in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() argument 1263 if ((keySizeBits == 224) || (keySizeBits == 256) || (keySizeBits == 384) in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() 1264 || (keySizeBits == 521)) { in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() 1270 if (keySizeBits == 256) { in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() 1280 .setKeySize(keySizeBits) in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() 1284 + keySizeBits + " bits. useStrongbox: " + useStrongbox in testGenerate_EC_ModernSpec_UnsupportedSizesRejectedHelper() 1460 int keySizeBits, ECParameterSpec expectedParams) throws Exception { in assertKeyGenUsingECSizeOnlyUsesCorrectCurve() argument [all …]
|
D | KeyGeneratorTest.java | 129 int keySizeBits = DEFAULT_KEY_SIZES.get(algorithm); in testInitWithKeySizeThrowsUnsupportedOperationException() local 131 keyGenerator.init(keySizeBits); in testInitWithKeySizeThrowsUnsupportedOperationException() 146 int keySizeBits = DEFAULT_KEY_SIZES.get(algorithm); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local 148 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
|
D | AndroidKeyStoreTest.java | 2458 int keySizeBits = keySizeBytes * 8; in testKeyStore_ImportSupportedSizes_AES() local 2462 if (TestUtils.contains(KeyGeneratorTest.AES_SUPPORTED_KEY_SIZES, keySizeBits)) { in testKeyStore_ImportSupportedSizes_AES() 2466 assertEquals(keySizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_AES() 2477 throw new RuntimeException("Failed for key size " + keySizeBits, e); in testKeyStore_ImportSupportedSizes_AES()
|