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

1 2 3

  /cts/tests/tests/keystore/src/android/keystore/cts/
KeyProtectionTest.java 19 import android.security.keystore.KeyProperties;
32 KeyProtection spec = new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT)
35 assertEquals(KeyProperties.PURPOSE_ENCRYPT, spec.getPurposes());
60 KeyProperties.PURPOSE_DECRYPT | KeyProperties.PURPOSE_VERIFY)
61 .setBlockModes(KeyProperties.BLOCK_MODE_GCM, KeyProperties.BLOCK_MODE_CTR)
62 .setDigests(KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA512)
63 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1
    [all...]
KeyPairGeneratorTest.java 22 import android.security.keystore.KeyProperties;
175 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY)
290 KeyProperties.PURPOSE_ENCRYPT)
291 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
310 new String[] {KeyProperties.BLOCK_MODE_GCM, KeyProperties.BLOCK_MODE_CBC};
312 new String[] {KeyProperties.ENCRYPTION_PADDING_RSA_OAEP,
313 KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1};
315 new String[] {KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA1}
    [all...]
KeyGenParameterSpecTest.java 20 import android.security.keystore.KeyProperties;
44 "arbitrary", KeyProperties.PURPOSE_ENCRYPT)
48 assertEquals(KeyProperties.PURPOSE_ENCRYPT, spec.getPurposes());
82 "arbitrary", KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_ENCRYPT)
84 .setBlockModes(KeyProperties.BLOCK_MODE_GCM, KeyProperties.BLOCK_MODE_CBC)
89 .setDigests(KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA384)
90 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_RSA_OAEP
    [all...]
KeyInfoTest.java 21 import android.security.keystore.KeyProperties;
45 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_ENCRYPT)
50 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1,
51 KeyProperties.ENCRYPTION_PADDING_RSA_OAEP)
52 .setSignaturePaddings(KeyProperties.SIGNATURE_PADDING_RSA_PKCS1,
53 KeyProperties.SIGNATURE_PADDING_RSA_PSS)
54 .setDigests(KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA512)
55 .setBlockModes(KeyProperties.BLOCK_MODE_ECB
    [all...]
CipherTest.java 20 import android.security.keystore.KeyProperties;
258 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
298 KeyProperties.PURPOSE_ENCRYPT,
320 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
365 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
410 KeyProperties.PURPOSE_DECRYPT,
522 KeyProperties.PURPOSE_ENCRYPT
    [all...]
TestUtils.java 22 import android.security.keystore.KeyProperties;
624 return KeyProperties.KEY_ALGORITHM_AES;
626 return KeyProperties.KEY_ALGORITHM_RSA;
647 return KeyProperties.DIGEST_SHA1;
650 return KeyProperties.DIGEST_SHA1;
653 return KeyProperties.DIGEST_SHA224;
656 return KeyProperties.DIGEST_SHA256;
659 return KeyProperties.DIGEST_SHA384;
662 return KeyProperties.DIGEST_SHA512;
675 return KeyProperties.ENCRYPTION_PADDING_NONE
    [all...]
RSACipherTest.java 30 import android.security.keystore.KeyProperties;
46 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
79 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT,
107 KeyProperties.PURPOSE_ENCRYPT ,
135 KeyProperties.PURPOSE_ENCRYPT,
165 KeyProperties.PURPOSE_ENCRYPT,
197 KeyProperties.PURPOSE_DECRYPT,
228 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT
    [all...]
SecretKeyFactoryTest.java 21 import android.security.keystore.KeyProperties;
89 new String[] {KeyProperties.BLOCK_MODE_CTR, KeyProperties.BLOCK_MODE_ECB};
91 new String[] {KeyProperties.ENCRYPTION_PADDING_PKCS7,
92 KeyProperties.ENCRYPTION_PADDING_NONE};
98 purposes = KeyProperties.PURPOSE_SIGN;
100 digests = new String[] {KeyProperties.DIGEST_SHA384};
101 purposes = KeyProperties.PURPOSE_DECRYPT;
  /frameworks/base/keystore/java/android/security/keystore/
KeyInfo.java 70 private final @KeyProperties.OriginEnum int mOrigin;
74 private final @KeyProperties.PurposeEnum int mPurposes;
75 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings;
76 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings;
77 private final @KeyProperties.DigestEnum String[] mDigests;
78 private final @KeyProperties.BlockModeEnum String[] mBlockModes;
90 @KeyProperties.OriginEnum int origin,
95 @KeyProperties.PurposeEnum int purposes,
96 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings,
97 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings
    [all...]
KeyProtection.java 86 * new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
87 * .setBlockMode(KeyProperties.BLOCK_MODE_GCM)
88 * .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
111 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN).build());
137 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN)
138 * .setDigests(KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA512)
167 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN)
168 * .setDigests(KeyProperties.DIGEST_SHA256
    [all...]
KeyGenParameterSpec.java 51 * {@link KeyProperties}.{@code KEY_ALGORITHM} constants) from the {@code AndroidKeyStore} provider
80 * <li>{@link KeyProperties#PURPOSE_SIGN},</li>
86 * <li>(RSA keys only) padding scheme {@link KeyProperties#SIGNATURE_PADDING_RSA_PKCS1}.</li>
112 * KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore");
116 * KeyProperties.PURPOSE_SIGN)
118 * .setDigests(KeyProperties.DIGEST_SHA256,
119 * KeyProperties.DIGEST_SHA384,
120 * KeyProperties.DIGEST_SHA512)
144 * KeyProperties.KEY_ALGORITHM_RSA, "AndroidKeyStore");
148 * KeyProperties.PURPOSE_SIGN
    [all...]
AndroidKeyStoreSecretKeyFactorySpi.java 87 @KeyProperties.OriginEnum int origin;
89 @KeyProperties.PurposeEnum int purposes;
92 @KeyProperties.DigestEnum String[] digests;
93 @KeyProperties.BlockModeEnum String[] blockModes;
100 origin = KeyProperties.Origin.fromKeymaster(
104 origin = KeyProperties.Origin.fromKeymaster(
117 purposes = KeyProperties.Purpose.allFromKeymaster(
125 @KeyProperties.EncryptionPaddingEnum String jcaPadding =
126 KeyProperties.EncryptionPadding.fromKeymaster(keymasterPadding);
130 @KeyProperties.SignaturePaddingEnum String padding
    [all...]
AndroidKeyStoreECPrivateKey.java 32 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC);
AndroidKeyStoreRSAPrivateKey.java 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA);
AndroidKeyStoreKeyGeneratorSpi.java 25 import android.security.keystore.KeyProperties;
178 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes());
179 mKeymasterPaddings = KeyProperties.EncryptionPadding.allToKeymaster(
185 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes());
186 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0)
194 + KeyProperties.BlockMode.fromKeymaster(keymasterBlockMode)
212 KeyProperties.Digest.allToKeymaster(spec.getDigests());
218 + KeyProperties.Digest.fromKeymaster(mKeymasterDigest)
225 mKeymasterDigests = KeyProperties.Digest.allToKeymaster(spec.getDigests());
290 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0
    [all...]
AndroidKeyStoreSpi.java 26 import android.security.keystore.KeyProperties;
291 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) {
294 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY);
298 KeyProperties.DIGEST_NONE,
299 KeyProperties.DIGEST_SHA1,
300 KeyProperties.DIGEST_SHA224,
301 KeyProperties.DIGEST_SHA256,
302 KeyProperties.DIGEST_SHA384,
303 KeyProperties.DIGEST_SHA512)
    [all...]
AndroidKeyStoreKeyPairGeneratorSpi.java 158 private @KeyProperties.KeyAlgorithmEnum String mJcaKeyAlgorithm;
212 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(
223 KeyProperties.PURPOSE_SIGN
224 | KeyProperties.PURPOSE_VERIFY);
228 KeyProperties.DIGEST_NONE,
229 KeyProperties.DIGEST_SHA1,
230 KeyProperties.DIGEST_SHA224,
231 KeyProperties.DIGEST_SHA256,
232 KeyProperties.DIGEST_SHA384,
233 KeyProperties.DIGEST_SHA512)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
ScreenLockBoundKeysTest.java 29 import android.security.keystore.KeyProperties;
118 KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
123 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
124 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
128 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
148 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/"
149 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
FingerprintBoundKeysTest.java 37 import android.security.keystore.KeyProperties;
134 KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
139 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
140 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
142 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
184 mCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
185 + KeyProperties.BLOCK_MODE_CBC + "/"
186 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
  /developers/build/prebuilts/gradle/ConfirmCredential/Application/src/main/java/com/example/android/confirmcredential/
MainActivity.java 26 import android.security.keystore.KeyProperties;
104 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/"
105 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
144 KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
149 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
150 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
154 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
  /developers/samples/android/security/ConfirmCredential/Application/src/main/java/com/example/android/confirmcredential/
MainActivity.java 26 import android.security.keystore.KeyProperties;
104 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/"
105 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
144 KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
149 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
150 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
154 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
  /development/samples/browseable/ConfirmCredential/src/com.example.android.confirmcredential/
MainActivity.java 26 import android.security.keystore.KeyProperties;
104 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/"
105 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
144 KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
149 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
150 .setBlockModes(KeyProperties.BLOCK_MODE_CBC)
154 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
  /developers/build/prebuilts/gradle/FingerprintDialog/Application/src/main/java/com/example/android/fingerprintdialog/
MainActivity.java 29 import android.security.keystore.KeyProperties;
85 .getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
92 defaultCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
93 + KeyProperties.BLOCK_MODE_CBC + "/"
94 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
95 cipherNotInvalidated = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
96 + KeyProperties.BLOCK_MODE_CBC + "/"
97 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
243 KeyProperties.PURPOSE_ENCRYPT |
244 KeyProperties.PURPOSE_DECRYPT
    [all...]
  /developers/samples/android/security/FingerprintDialog/Application/src/main/java/com/example/android/fingerprintdialog/
MainActivity.java 29 import android.security.keystore.KeyProperties;
85 .getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
92 defaultCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
93 + KeyProperties.BLOCK_MODE_CBC + "/"
94 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
95 cipherNotInvalidated = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
96 + KeyProperties.BLOCK_MODE_CBC + "/"
97 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
243 KeyProperties.PURPOSE_ENCRYPT |
244 KeyProperties.PURPOSE_DECRYPT
    [all...]
  /development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
MainActivity.java 29 import android.security.keystore.KeyProperties;
85 .getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
92 defaultCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
93 + KeyProperties.BLOCK_MODE_CBC + "/"
94 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
95 cipherNotInvalidated = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
96 + KeyProperties.BLOCK_MODE_CBC + "/"
97 + KeyProperties.ENCRYPTION_PADDING_PKCS7);
243 KeyProperties.PURPOSE_ENCRYPT |
244 KeyProperties.PURPOSE_DECRYPT
    [all...]

Completed in 358 milliseconds

1 2 3