/frameworks/base/keystore/java/android/security/keystore/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | AndroidKeyStoreECPrivateKey.java | 32 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC);
|
H A D | AndroidKeyStoreRSAPrivateKey.java | 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA);
|
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | AndroidKeyStoreECPublicKey.java | 35 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC, x509EncodedForm);
|
H A D | AndroidKeyStoreRSAPublicKey.java | 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA, x509EncodedForm);
|
H A D | 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(
|
H A D | 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)
|
H A D | AndroidKeyStoreRSASignatureSpi.java | 140 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { 142 + ". Only" + KeyProperties.KEY_ALGORITHM_RSA + " supported");
|
H A D | AndroidKeyStoreECDSASignatureSpi.java | 151 if (!KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(key.getAlgorithm())) { 153 + ". Only" + KeyProperties.KEY_ALGORITHM_EC + " supported");
|
H A D | KeymasterUtils.java | 190 + KeyProperties.Digest.fromKeymaster(keymasterDigest));
|
H A D | AndroidKeyStoreUnauthenticatedAESCipherSpi.java | 131 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { 134 KeyProperties.KEY_ALGORITHM_AES + " supported");
|
H A D | AndroidKeyStoreAuthenticatedAESCipherSpi.java | 279 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { 282 KeyProperties.KEY_ALGORITHM_AES + " supported");
|
H A D | KeyProperties.java | 35 public abstract class KeyProperties { class 36 private KeyProperties() {} method in class:KeyProperties
|
/frameworks/base/keystore/java/android/security/ |
H A D | 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);
|
H A D | 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/services/core/java/com/android/server/ |
H A D | LockSettingsService.java | 63 import android.security.keystore.KeyProperties; 749 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 750 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); 1022 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); 1031 new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT) 1032 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) 1033 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) 1038 new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) 1039 .setBlockModes(KeyProperties [all...] |
/frameworks/base/keystore/tests/src/android/security/keystore/ |
H A D | AndroidKeyPairGeneratorTest.java | 168 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY) 173 .setDigests(KeyProperties.DIGEST_SHA256)
|
/frameworks/base/ |
H A D | compiled-classes-phone | 3539 android.security.keystore.KeyProperties 3540 android.security.keystore.KeyProperties$BlockMode 3541 android.security.keystore.KeyProperties$EncryptionPadding 3542 android.security.keystore.KeyProperties$Purpose
|