Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/util/
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
DTestUtils.java640 public static ImportedKey importIntoAndroidKeyStore( in importIntoAndroidKeyStore()
649 return new ImportedKey(alias, key, (SecretKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
652 public static ImportedKey importIntoAndroidKeyStore( in importIntoAndroidKeyStore()
674 return new ImportedKey( in importIntoAndroidKeyStore()
/cts/tests/tests/keystore/src/android/keystore/cts/
DRSACipherTest.java27 import android.keystore.cts.util.ImportedKey;
77 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
111 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
140 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
169 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
200 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
233 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
265 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), in testNoPaddingWithZeroMessage()
DRSASignatureTest.java38 import android.keystore.cts.util.ImportedKey;
75 for (ImportedKey keyPair : importKatKeyPairs("NONEwithRSA")) { in testMaxMessageSizeWhenNoDigestUsed()
168 private Collection<ImportedKey> importKatKeyPairs(String signatureAlgorithm) in importKatKeyPairs()
175 static Collection<ImportedKey> importKatKeyPairs( in importKatKeyPairs()
177 return Arrays.asList(new ImportedKey[] { in importKatKeyPairs()
DECDSASignatureTest.java25 import android.keystore.cts.util.ImportedKey;
70 for (ImportedKey key : importKatKeyPairs("NONEwithECDSA")) { in testNONEwithECDSATruncatesInputToFieldSize()
121 for (ImportedKey key : importKatKeyPairs("NONEwithECDSA")) { in testNONEwithECDSASupportsMessagesShorterThanFieldSize()
269 private Collection<ImportedKey> importKatKeyPairs(String signatureAlgorithm) in importKatKeyPairs()
276 static Collection<ImportedKey> importKatKeyPairs( in importKatKeyPairs()
278 return Arrays.asList(new ImportedKey[] { in importKatKeyPairs()
DCipherTest.java35 import android.keystore.cts.util.ImportedKey;
387 ImportedKey key = importDefaultKatKey( in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
451 for (ImportedKey key : importKatKeys( in testEmptyPlaintextEncryptsAndDecrypts()
503 for (ImportedKey key : importKatKeys( in testEncryptsAndDecryptsInterrupted()
556 for (ImportedKey key : importKatKeys( in testEncryptsAndDecryptsUsingCipherStreams()
620 AlgorithmParameters params, ImportedKey key) { in isDecryptValid()
688 ImportedKey key = importKatKeys( in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
779 List<ImportedKey> importedKeys = new ArrayList<>(); in testUnlockedDeviceRequiredKeysAreInvalidatedByLockRemoval()
787 for (ImportedKey key : importedKeys) { in testUnlockedDeviceRequiredKeysAreInvalidatedByLockRemoval()
797 List<Pair<String, ImportedKey>> importedKeys = new ArrayList<>(); in testUnlockedDeviceRequiredKeysAreNotInvalidatedByLockRemoval()
[all …]
DSignatureTest.java29 import android.keystore.cts.util.ImportedKey;
430 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testValidSignatureGeneratedForEmptyMessage()
461 …for (ImportedKey key : importLimitedUseKatKeyPairsForSigning(getContext(), sigAlgorithm, maxUsageC… in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
517 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testEmptySignatureDoesNotVerify()
541 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
573 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
619 for (ImportedKey key : importKatKeyPairsForSigning(getContext(), sigAlgorithm)) { in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
1214 private ImportedKey importDefaultKatKeyPair(String signatureAlgorithm) throws Exception { in importDefaultKatKeyPair()
1358 static Collection<ImportedKey> importKatKeyPairsForSigning( in importKatKeyPairsForSigning()
1372 static Collection<ImportedKey> importLimitedUseKatKeyPairsForSigning( in importLimitedUseKatKeyPairsForSigning()
DKeyInfoTest.java21 import android.keystore.cts.util.ImportedKey;
175 ImportedKey importedKey = TestUtils.importIntoAndroidKeyStore(KEY_ALIAS, in testUnlockedDeviceRequiredKey()
DKeyAgreementTest.java25 import android.keystore.cts.util.ImportedKey;
119 ImportedKey importedKey = TestUtils.importIntoAndroidKeyStore("testECsecp256r1", in testGenerateSecret_withImportedKey()
DCurve25519Test.java26 import android.keystore.cts.util.ImportedKey;
124 ImportedKey importedKey = TestUtils.importIntoAndroidKeyStore( in x25519KeyImportAndAgreementTest()