Home
last modified time | relevance | path

Searched refs:ImportedKey (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DECDSASignatureTest.java34 for (ImportedKey key : importKatKeyPairs("NONEwithECDSA")) { in testNONEwithECDSATruncatesInputToFieldSize()
75 for (ImportedKey key : importKatKeyPairs("NONEwithECDSA")) { in testNONEwithECDSASupportsMessagesShorterThanFieldSize()
113 private Collection<ImportedKey> importKatKeyPairs(String signatureAlgorithm) in importKatKeyPairs()
120 static Collection<ImportedKey> importKatKeyPairs( in importKatKeyPairs()
122 return Arrays.asList(new ImportedKey[] { in importKatKeyPairs()
DRSACipherTest.java43 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
76 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
104 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
132 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
162 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
194 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
225 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingWithZeroMessage()
DImportedKey.java24 public class ImportedKey { class
32 public ImportedKey(String alias, KeyPair original, KeyPair keystoreBacked) { in ImportedKey() method in ImportedKey
41 public ImportedKey(String alias, SecretKey original, SecretKey keystoreBacked) { in ImportedKey() method in ImportedKey
DRSASignatureTest.java59 for (ImportedKey keyPair : importKatKeyPairs("NONEwithRSA")) { in testMaxMessageSizeWhenNoDigestUsed()
150 private Collection<ImportedKey> importKatKeyPairs(String signatureAlgorithm) in importKatKeyPairs()
157 static Collection<ImportedKey> importKatKeyPairs( in importKatKeyPairs()
159 return Arrays.asList(new ImportedKey[] { in importKatKeyPairs()
DCipherTest.java338 ImportedKey key = importDefaultKatKey( in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
400 for (ImportedKey key : importKatKeys( in testEmptyPlaintextEncryptsAndDecrypts()
450 for (ImportedKey key : importKatKeys( in testEncryptsAndDecryptsInterrupted()
493 AlgorithmParameters params, ImportedKey key) { in isDecryptValid()
550 for (ImportedKey key : importKatKeys( in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
607 for (ImportedKey key : importKatKeys( in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
652 for (ImportedKey key : importKatKeys( in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
764 for (ImportedKey key : importKatKeys( in testCiphertextGeneratedByAndroidKeyStoreDecryptsByHighestPriorityProvider()
829 for (ImportedKey key : importKatKeys( in testMaxSizedPlaintextSupported()
908 for (ImportedKey key : importKatKeys( in testLargerThanMaxSizedPlaintextRejected()
[all …]
DSignatureTest.java400 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testValidSignatureGeneratedForEmptyMessage()
429 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testEmptySignatureDoesNotVerify()
452 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
483 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
528 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
575 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testEntropyConsumption()
1159 private ImportedKey importDefaultKatKeyPair(String signatureAlgorithm) throws Exception { in importDefaultKatKeyPair()
1303 static Collection<ImportedKey> importKatKeyPairsForSigning( in importKatKeyPairsForSigning()
DTestUtils.java438 static ImportedKey importIntoAndroidKeyStore( in importIntoAndroidKeyStore()
447 return new ImportedKey(alias, key, (SecretKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
450 static ImportedKey importIntoAndroidKeyStore( in importIntoAndroidKeyStore()
472 return new ImportedKey( in importIntoAndroidKeyStore()