/frameworks/base/keystore/java/android/security/keystore/ |
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, in KeyInfo() 95 @KeyProperties.PurposeEnum int purposes, in KeyInfo() 96 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyInfo() 97 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyInfo() [all …]
|
D | KeyProtection.java | 219 private final @KeyProperties.PurposeEnum int mPurposes; 220 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings; 221 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings; 222 private final @KeyProperties.DigestEnum String[] mDigests; 223 private final @KeyProperties.BlockModeEnum String[] mBlockModes; 236 @KeyProperties.PurposeEnum int purposes, in KeyProtection() 237 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyProtection() 238 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyProtection() 239 @KeyProperties.DigestEnum String[] digests, in KeyProtection() 240 @KeyProperties.BlockModeEnum String[] blockModes, in KeyProtection() [all …]
|
D | KeyGenParameterSpec.java | 253 private final @KeyProperties.PurposeEnum int mPurposes; 254 private final @KeyProperties.DigestEnum String[] mDigests; 255 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings; 256 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings; 257 private final @KeyProperties.BlockModeEnum String[] mBlockModes; 281 @KeyProperties.PurposeEnum int purposes, in KeyGenParameterSpec() 282 @KeyProperties.DigestEnum String[] digests, in KeyGenParameterSpec() 283 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyGenParameterSpec() 284 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyGenParameterSpec() 285 @KeyProperties.BlockModeEnum String[] blockModes, in KeyGenParameterSpec() [all …]
|
D | AndroidKeyStoreSpi.java | 26 import android.security.keystore.KeyProperties; 291 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter() 294 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY); in getLegacyKeyProtectionParameter() 298 KeyProperties.DIGEST_NONE, in getLegacyKeyProtectionParameter() 299 KeyProperties.DIGEST_SHA1, in getLegacyKeyProtectionParameter() 300 KeyProperties.DIGEST_SHA224, in getLegacyKeyProtectionParameter() 301 KeyProperties.DIGEST_SHA256, in getLegacyKeyProtectionParameter() 302 KeyProperties.DIGEST_SHA384, in getLegacyKeyProtectionParameter() 303 KeyProperties.DIGEST_SHA512); in getLegacyKeyProtectionParameter() 304 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter() [all …]
|
D | AndroidKeyStoreKeyPairGeneratorSpi.java | 159 private @KeyProperties.KeyAlgorithmEnum String mJcaKeyAlgorithm; 213 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm( in initialize() 224 KeyProperties.PURPOSE_SIGN in initialize() 225 | KeyProperties.PURPOSE_VERIFY); in initialize() 229 KeyProperties.DIGEST_NONE, in initialize() 230 KeyProperties.DIGEST_SHA1, in initialize() 231 KeyProperties.DIGEST_SHA224, in initialize() 232 KeyProperties.DIGEST_SHA256, in initialize() 233 KeyProperties.DIGEST_SHA384, in initialize() 234 KeyProperties.DIGEST_SHA512); in initialize() [all …]
|
D | AndroidKeyStoreSecretKeyFactorySpi.java | 87 @KeyProperties.OriginEnum int origin; in getKeyInfo() 89 @KeyProperties.PurposeEnum int purposes; in getKeyInfo() 92 @KeyProperties.DigestEnum String[] digests; in getKeyInfo() 93 @KeyProperties.BlockModeEnum String[] blockModes; in getKeyInfo() 100 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo() 104 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo() 117 purposes = KeyProperties.Purpose.allFromKeymaster( in getKeyInfo() 125 @KeyProperties.EncryptionPaddingEnum String jcaPadding = in getKeyInfo() 126 KeyProperties.EncryptionPadding.fromKeymaster(keymasterPadding); in getKeyInfo() 130 @KeyProperties.SignaturePaddingEnum String padding = in getKeyInfo() [all …]
|
D | AndroidKeyStoreKeyGeneratorSpi.java | 26 import android.security.keystore.KeyProperties; 179 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit() 180 mKeymasterPaddings = KeyProperties.EncryptionPadding.allToKeymaster( in engineInit() 186 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); in engineInit() 187 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit() 195 + KeyProperties.BlockMode.fromKeymaster(keymasterBlockMode) in engineInit() 218 KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit() 224 + KeyProperties.Digest.fromKeymaster(mKeymasterDigest) in engineInit() 231 mKeymasterDigests = KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit() 298 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineGenerateKey() [all …]
|
D | AndroidKeyStoreProvider.java | 176 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, in getAndroidKeyStorePublicKey() 188 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey() 190 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey() 202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey() 205 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey() 242 jcaKeyAlgorithm = KeyProperties.KeyAlgorithm.fromKeymasterAsymmetricKeyAlgorithm( in loadAndroidKeyStorePublicKeyFromKeystore() 301 @KeyProperties.KeyAlgorithmEnum String keyAlgorithmString; in loadAndroidKeyStoreSecretKeyFromKeystore() 303 keyAlgorithmString = KeyProperties.KeyAlgorithm.fromKeymasterSecretKeyAlgorithm( in loadAndroidKeyStoreSecretKeyFromKeystore()
|
D | AndroidKeyStoreRSACipherSpi.java | 199 keymasterDigest = KeyProperties.Digest.toKeymaster(jcaDigest); in initAlgorithmSpecificParameters() 227 if (!KeyProperties.DIGEST_SHA1.equalsIgnoreCase(mgf1JcaDigest)) { in initAlgorithmSpecificParameters() 230 + ". Only " + KeyProperties.DIGEST_SHA1 + " supported"); in initAlgorithmSpecificParameters() 275 KeyProperties.Digest.fromKeymaster(mKeymasterDigest), in engineGetParameters() 361 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { in initKey() 363 + ". Only " + KeyProperties.KEY_ALGORITHM_RSA + " supported"); in initKey() 387 + KeyProperties.EncryptionPadding.fromKeymaster(mKeymasterPadding) in initKey() 407 + KeyProperties.EncryptionPadding.fromKeymaster(mKeymasterPadding) in initKey()
|
D | AndroidKeyStoreRSASignatureSpi.java | 140 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { in initKey() 142 + ". Only" + KeyProperties.KEY_ALGORITHM_RSA + " supported"); in initKey()
|
D | AndroidKeyStoreECDSASignatureSpi.java | 151 if (!KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(key.getAlgorithm())) { in initKey() 153 + ". Only" + KeyProperties.KEY_ALGORITHM_EC + " supported"); in initKey()
|
D | AndroidKeyStoreRSAPrivateKey.java | 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA); in AndroidKeyStoreRSAPrivateKey()
|
D | AndroidKeyStoreECPrivateKey.java | 32 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC); in AndroidKeyStoreECPrivateKey()
|
D | AndroidKeyStoreRSAPublicKey.java | 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA, x509EncodedForm); in AndroidKeyStoreRSAPublicKey()
|
D | AndroidKeyStoreUnauthenticatedAESCipherSpi.java | 131 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey() 134 KeyProperties.KEY_ALGORITHM_AES + " supported"); in initKey()
|
D | AndroidKeyStoreECPublicKey.java | 35 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC, x509EncodedForm); in AndroidKeyStoreECPublicKey()
|
D | AndroidKeyStoreAuthenticatedAESCipherSpi.java | 279 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey() 282 KeyProperties.KEY_ALGORITHM_AES + " supported"); in initKey()
|
D | KeymasterUtils.java | 201 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
|
D | KeyProperties.java | 35 public abstract class KeyProperties { class 36 private KeyProperties() {} in KeyProperties() method in KeyProperties
|
/frameworks/base/services/core/java/com/android/server/ |
D | SyntheticPasswordCrypto.java | 19 import android.security.keystore.KeyProperties; 61 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in decrypt() 62 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); in decrypt() 74 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_GCM + "/" in encrypt() 75 + KeyProperties.ENCRYPTION_PADDING_NONE); in encrypt() 91 KeyProperties.KEY_ALGORITHM_AES); in encrypt() 104 KeyProperties.KEY_ALGORITHM_AES); in decrypt() 135 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in createBlob() 140 KeyProtection.Builder builder = new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) in createBlob() 141 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in createBlob() [all …]
|
D | LockSettingsService.java | 69 import android.security.keystore.KeyProperties; 900 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in getDecryptedPasswordForTiedProfile() 901 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); in getDecryptedPasswordForTiedProfile() 1188 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in tieProfileLockToParent() 1197 new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT) in tieProfileLockToParent() 1198 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in tieProfileLockToParent() 1199 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in tieProfileLockToParent() 1204 new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) in tieProfileLockToParent() 1205 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in tieProfileLockToParent() 1206 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in tieProfileLockToParent() [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyChain.java | 39 import android.security.keystore.KeyProperties; 311 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, in choosePrivateKeyAlias() 359 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, in choosePrivateKeyAlias() 529 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isKeyAlgorithmSupported() 531 return KeyProperties.KEY_ALGORITHM_EC.equals(algUpper) in isKeyAlgorithmSupported() 532 || KeyProperties.KEY_ALGORITHM_RSA.equals(algUpper); in isKeyAlgorithmSupported() 556 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isBoundKeyAlgorithm()
|
D | KeyPairGeneratorSpec.java | 24 import android.security.keystore.KeyProperties; 170 public @KeyProperties.KeyAlgorithmEnum String getKeyType() { in getKeyType() 330 public Builder setKeyType(@NonNull @KeyProperties.KeyAlgorithmEnum String keyType) in setKeyType() 336 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(keyType); in setKeyType()
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyPairGeneratorTest.java | 168 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY) in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() 173 .setDigests(KeyProperties.DIGEST_SHA256) in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success()
|
/frameworks/base/ |
D | compiled-classes-phone | 3619 android.security.keystore.KeyProperties 3620 android.security.keystore.KeyProperties$BlockMode 3621 android.security.keystore.KeyProperties$EncryptionPadding 3622 android.security.keystore.KeyProperties$Purpose
|