/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 | 87 * new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) 88 * .setBlockMode(KeyProperties.BLOCK_MODE_GCM) 89 * .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) 112 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN).build()); 138 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN) 139 * .setDigests(KeyProperties.DIGEST_SHA256, KeyProperties.DIGEST_SHA512) 168 * new KeyProtection.Builder(KeyProperties.PURPOSE_SIGN) 169 * .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 | 26 import android.security.keystore.KeyProperties; 179 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); 180 mKeymasterPaddings = KeyProperties.EncryptionPadding.allToKeymaster( 186 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); 187 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) 195 + KeyProperties.BlockMode.fromKeymaster(keymasterBlockMode) 218 KeyProperties.Digest.allToKeymaster(spec.getDigests()); 224 + KeyProperties.Digest.fromKeymaster(mKeymasterDigest) 231 mKeymasterDigests = KeyProperties.Digest.allToKeymaster(spec.getDigests()); 298 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 | 159 private @KeyProperties.KeyAlgorithmEnum String mJcaKeyAlgorithm; 213 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm( 224 KeyProperties.PURPOSE_SIGN 225 | KeyProperties.PURPOSE_VERIFY); 229 KeyProperties.DIGEST_NONE, 230 KeyProperties.DIGEST_SHA1, 231 KeyProperties.DIGEST_SHA224, 232 KeyProperties.DIGEST_SHA256, 233 KeyProperties.DIGEST_SHA384, 234 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 | 201 + 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/services/core/java/com/android/server/locksettings/ |
H A D | SyntheticPasswordCrypto.java | 19 import android.security.keystore.KeyProperties; 61 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 62 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); 74 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_GCM + "/" 75 + KeyProperties.ENCRYPTION_PADDING_NONE); 91 KeyProperties.KEY_ALGORITHM_AES); 104 KeyProperties.KEY_ALGORITHM_AES); 149 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties [all...] |
H A D | LockSettingsService.java | 75 import android.security.keystore.KeyProperties; 1047 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 1048 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); 1330 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); 1339 new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT) 1340 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) 1341 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) 1346 new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) 1347 .setBlockModes(KeyProperties [all...] |
/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() { 326 * generated. See {@link KeyProperties}.{@code KEY_ALGORITHM} constants. 330 public Builder setKeyType(@NonNull @KeyProperties.KeyAlgorithmEnum String keyType) 336 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(keyType);
|
H A D | KeyChain.java | 39 import android.security.keystore.KeyProperties; 311 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, 359 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, 529 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { 531 return KeyProperties.KEY_ALGORITHM_EC.equals(algUpper) 532 || KeyProperties.KEY_ALGORITHM_RSA.equals(algUpper); 556 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) {
|
/frameworks/base/config/ |
H A D | compiled-classes-phone | 3667 android.security.keystore.KeyProperties 3668 android.security.keystore.KeyProperties$BlockMode 3669 android.security.keystore.KeyProperties$EncryptionPadding 3670 android.security.keystore.KeyProperties$Purpose
|