HomeSort by relevance Sort by last modified time
    Searched refs:KeyProperties (Results 26 - 50 of 60) sorted by null

12 3

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
AuthenticationBoundKeyTestActivity.java 18 import android.security.keystore.KeyProperties;
69 private static final String CIPHER_TRANSFORMATION = KeyProperties.KEY_ALGORITHM_AES + "/"
70 + KeyProperties.BLOCK_MODE_CBC + "/" + KeyProperties.ENCRYPTION_PADDING_PKCS7;
215 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
216 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
218 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7);
225 KeyProperties.KEY_ALGORITHM_AES, KEYSTORE_NAME);
  /cts/tests/tests/keystore/src/android/keystore/cts/
KeyGeneratorTest.java 21 import android.security.keystore.KeyProperties;
305 "test1", KeyProperties.PURPOSE_SIGN);
382 .setSignaturePaddings(KeyProperties.SIGNATURE_PADDING_RSA_PKCS1)
425 String anotherDigest = KeyProperties.DIGEST_SHA256.equalsIgnoreCase(digest)
426 ? KeyProperties.DIGEST_SHA512 : KeyProperties.DIGEST_SHA256;
448 KeyProperties.PURPOSE_ENCRYPT)
449 .setBlockModes(KeyProperties.BLOCK_MODE_ECB)
468 new String[] {KeyProperties.BLOCK_MODE_GCM, KeyProperties.BLOCK_MODE_CBC}
    [all...]
SignatureTest.java 40 import android.security.keystore.KeyProperties;
    [all...]
KeyAttestationTest.java 33 import static android.security.keystore.KeyProperties.DIGEST_NONE;
34 import static android.security.keystore.KeyProperties.DIGEST_SHA256;
35 import static android.security.keystore.KeyProperties.DIGEST_SHA512;
36 import static android.security.keystore.KeyProperties.ENCRYPTION_PADDING_NONE;
37 import static android.security.keystore.KeyProperties.ENCRYPTION_PADDING_RSA_OAEP;
38 import static android.security.keystore.KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1;
39 import static android.security.keystore.KeyProperties.KEY_ALGORITHM_EC;
40 import static android.security.keystore.KeyProperties.KEY_ALGORITHM_RSA;
41 import static android.security.keystore.KeyProperties.PURPOSE_DECRYPT;
42 import static android.security.keystore.KeyProperties.PURPOSE_ENCRYPT
    [all...]
KeyFactoryTest.java 21 import android.security.keystore.KeyProperties;
100 String[] blockModes = new String[] {KeyProperties.BLOCK_MODE_ECB};
102 new String[] {KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1,
103 KeyProperties.ENCRYPTION_PADDING_RSA_OAEP};
104 String[] digests = new String[] {KeyProperties.DIGEST_SHA1,
105 KeyProperties.DIGEST_SHA224,
106 KeyProperties.DIGEST_SHA384,
107 KeyProperties.DIGEST_SHA512};
108 int purposes = KeyProperties.PURPOSE_DECRYPT | KeyProperties.PURPOSE_SIGN
    [all...]
AuthorizationList.java 27 import android.security.keystore.KeyProperties;
377 builder.add(KeyProperties.ENCRYPTION_PADDING_NONE);
380 builder.add(KeyProperties.ENCRYPTION_PADDING_RSA_OAEP);
383 builder.add(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1);
386 builder.add(KeyProperties.SIGNATURE_PADDING_RSA_PKCS1);
389 builder.add(KeyProperties.SIGNATURE_PADDING_RSA_PSS);
AESCipherNistCavpKatTest.java 19 import android.security.keystore.KeyProperties;
276 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
RSASignatureTest.java 34 import android.security.keystore.KeyProperties;
48 if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) {
113 if (KeyProperties.DIGEST_NONE.equalsIgnoreCase(digest)) {
MacTest.java 19 import android.security.keystore.KeyProperties;
371 int badPurposes = KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT
372 | KeyProperties.PURPOSE_VERIFY;
580 new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN).build());
593 return new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN).build();
  /frameworks/base/keystore/java/android/security/
KeyPairGeneratorSpec.java 24 import android.security.keystore.KeyProperties;
167 * {@link KeyProperties}.{@code KEY_ALGORITHM} constants.
170 public @KeyProperties.KeyAlgorithmEnum String getKeyType() {
325 * generated. See {@link KeyProperties}.{@code KEY_ALGORITHM} constants.
329 public Builder setKeyType(@NonNull @KeyProperties.KeyAlgorithmEnum String keyType)
335 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(keyType);
KeyChain.java 34 import android.security.keystore.KeyProperties;
261 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers,
309 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers,
466 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) {
468 return KeyProperties.KEY_ALGORITHM_EC.equals(algUpper)
469 || KeyProperties.KEY_ALGORITHM_RSA.equals(algUpper);
493 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) {
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreECPublicKey.java 35 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC, x509EncodedForm);
AndroidKeyStoreRSAPublicKey.java 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA, x509EncodedForm);
AndroidKeyStoreProvider.java 176 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm,
188 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) {
190 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) {
202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) {
205 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) {
242 jcaKeyAlgorithm = KeyProperties.KeyAlgorithm.fromKeymasterAsymmetricKeyAlgorithm(
301 @KeyProperties.KeyAlgorithmEnum String keyAlgorithmString;
303 keyAlgorithmString = KeyProperties.KeyAlgorithm.fromKeymasterSecretKeyAlgorithm(
AndroidKeyStoreRSACipherSpi.java 199 keymasterDigest = KeyProperties.Digest.toKeymaster(jcaDigest);
227 if (!KeyProperties.DIGEST_SHA1.equalsIgnoreCase(mgf1JcaDigest)) {
230 + ". Only " + KeyProperties.DIGEST_SHA1 + " supported");
275 KeyProperties.Digest.fromKeymaster(mKeymasterDigest),
361 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) {
363 + ". Only " + KeyProperties.KEY_ALGORITHM_RSA + " supported");
387 + KeyProperties.EncryptionPadding.fromKeymaster(mKeymasterPadding)
407 + KeyProperties.EncryptionPadding.fromKeymaster(mKeymasterPadding)
AndroidKeyStoreRSASignatureSpi.java 140 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) {
142 + ". Only" + KeyProperties.KEY_ALGORITHM_RSA + " supported");
AndroidKeyStoreECDSASignatureSpi.java 151 if (!KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(key.getAlgorithm())) {
153 + ". Only" + KeyProperties.KEY_ALGORITHM_EC + " supported");
KeymasterUtils.java 190 + KeyProperties.Digest.fromKeymaster(keymasterDigest));
  /developers/build/prebuilts/gradle/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
FingerprintModule.java 27 import android.security.keystore.KeyProperties;
82 return KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore");
MainActivity.java 27 import android.security.keystore.KeyProperties;
185 KeyProperties.PURPOSE_SIGN)
186 .setDigests(KeyProperties.DIGEST_SHA256)
  /developers/samples/android/security/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
FingerprintModule.java 27 import android.security.keystore.KeyProperties;
82 return KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore");
MainActivity.java 27 import android.security.keystore.KeyProperties;
185 KeyProperties.PURPOSE_SIGN)
186 .setDigests(KeyProperties.DIGEST_SHA256)
  /development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
FingerprintModule.java 27 import android.security.keystore.KeyProperties;
82 return KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore");
MainActivity.java 27 import android.security.keystore.KeyProperties;
185 KeyProperties.PURPOSE_SIGN)
186 .setDigests(KeyProperties.DIGEST_SHA256)
  /development/samples/ApiDemos/src/com/example/android/apis/security/
KeyStoreUsage.java 27 import android.security.keystore.KeyProperties;
313 KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore");
316 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY)
317 .setDigests(KeyProperties.DIGEST_SHA256,
318 KeyProperties.DIGEST_SHA512)

Completed in 1131 milliseconds

12 3