/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; 92 @KeyProperties.OriginEnum int origin, in KeyInfo() 97 @KeyProperties.PurposeEnum int purposes, in KeyInfo() 98 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyInfo() 99 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyInfo() [all …]
|
D | KeyProtection.java | 221 private final @KeyProperties.PurposeEnum int mPurposes; 222 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings; 223 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings; 224 private final @KeyProperties.DigestEnum String[] mDigests; 225 private final @KeyProperties.BlockModeEnum String[] mBlockModes; 242 @KeyProperties.PurposeEnum int purposes, in KeyProtection() 243 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyProtection() 244 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyProtection() 245 @KeyProperties.DigestEnum String[] digests, in KeyProtection() 246 @KeyProperties.BlockModeEnum String[] blockModes, in KeyProtection() [all …]
|
D | AndroidKeyStoreSpi.java | 27 import android.security.keystore.KeyProperties; 306 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter() 309 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY); in getLegacyKeyProtectionParameter() 313 KeyProperties.DIGEST_NONE, in getLegacyKeyProtectionParameter() 314 KeyProperties.DIGEST_SHA1, in getLegacyKeyProtectionParameter() 315 KeyProperties.DIGEST_SHA224, in getLegacyKeyProtectionParameter() 316 KeyProperties.DIGEST_SHA256, in getLegacyKeyProtectionParameter() 317 KeyProperties.DIGEST_SHA384, in getLegacyKeyProtectionParameter() 318 KeyProperties.DIGEST_SHA512); in getLegacyKeyProtectionParameter() 319 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter() [all …]
|
D | AndroidKeyStoreKeyPairGeneratorSpi.java | 160 private @KeyProperties.KeyAlgorithmEnum String mJcaKeyAlgorithm; 214 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm( in initialize() 225 KeyProperties.PURPOSE_SIGN in initialize() 226 | KeyProperties.PURPOSE_VERIFY); in initialize() 230 KeyProperties.DIGEST_NONE, in initialize() 231 KeyProperties.DIGEST_SHA1, in initialize() 232 KeyProperties.DIGEST_SHA224, in initialize() 233 KeyProperties.DIGEST_SHA256, in initialize() 234 KeyProperties.DIGEST_SHA384, in initialize() 235 KeyProperties.DIGEST_SHA512); in initialize() [all …]
|
D | KeyGenParameterSpec.java | 257 private final @KeyProperties.PurposeEnum int mPurposes; 258 private final @KeyProperties.DigestEnum String[] mDigests; 259 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings; 260 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings; 261 private final @KeyProperties.BlockModeEnum String[] mBlockModes; 294 @KeyProperties.PurposeEnum int purposes, in KeyGenParameterSpec() 295 @KeyProperties.DigestEnum String[] digests, in KeyGenParameterSpec() 296 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyGenParameterSpec() 297 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyGenParameterSpec() 298 @KeyProperties.BlockModeEnum String[] blockModes, in KeyGenParameterSpec() [all …]
|
D | AndroidKeyStoreSecretKeyFactorySpi.java | 90 @KeyProperties.OriginEnum int origin; in getKeyInfo() 92 @KeyProperties.PurposeEnum int purposes; in getKeyInfo() 95 @KeyProperties.DigestEnum String[] digests; in getKeyInfo() 96 @KeyProperties.BlockModeEnum String[] blockModes; in getKeyInfo() 103 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo() 107 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo() 120 purposes = KeyProperties.Purpose.allFromKeymaster( in getKeyInfo() 128 @KeyProperties.EncryptionPaddingEnum String jcaPadding = in getKeyInfo() 129 KeyProperties.EncryptionPadding.fromKeymaster(keymasterPadding); in getKeyInfo() 133 @KeyProperties.SignaturePaddingEnum String padding = in getKeyInfo() [all …]
|
D | AndroidKeyStoreKeyGeneratorSpi.java | 25 import android.security.keystore.KeyProperties; 184 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit() 185 mKeymasterPaddings = KeyProperties.EncryptionPadding.allToKeymaster( in engineInit() 191 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); in engineInit() 192 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit() 200 + KeyProperties.BlockMode.fromKeymaster(keymasterBlockMode) in engineInit() 232 KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit() 238 + KeyProperties.Digest.fromKeymaster(mKeymasterDigest) in engineInit() 245 mKeymasterDigests = KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit() 302 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineGenerateKey() [all …]
|
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 | AndroidKeyStoreProvider.java | 190 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, in getAndroidKeyStorePublicKey() 202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey() 204 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey() 216 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey() 219 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey() 270 jcaKeyAlgorithm = KeyProperties.KeyAlgorithm.fromKeymasterAsymmetricKeyAlgorithm( in loadAndroidKeyStorePublicKeyFromKeystore() 348 @KeyProperties.KeyAlgorithmEnum String keyAlgorithmString; in loadAndroidKeyStoreSecretKeyFromKeystore() 350 keyAlgorithmString = KeyProperties.KeyAlgorithm.fromKeymasterSecretKeyAlgorithm( in loadAndroidKeyStoreSecretKeyFromKeystore()
|
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()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordCrypto.java | 19 import android.security.keystore.KeyProperties; 63 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in decrypt() 64 + KeyProperties.BLOCK_MODE_GCM + "/" + KeyProperties.ENCRYPTION_PADDING_NONE); in decrypt() 77 KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_GCM + "/" in encrypt() 78 + KeyProperties.ENCRYPTION_PADDING_NONE); in encrypt() 99 KeyProperties.KEY_ALGORITHM_AES); in encrypt() 113 KeyProperties.KEY_ALGORITHM_AES); in decrypt() 158 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in createBlob() 163 KeyProtection.Builder builder = new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) in createBlob() 164 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in createBlob() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | ApplicationKeyStorage.java | 24 import android.security.keystore.KeyProperties; 86 new SecretKeySpec(secretKey, KeyProperties.KEY_ALGORITHM_AES)), in setSymmetricKeyEntry() 88 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) in setSymmetricKeyEntry() 89 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in setSymmetricKeyEntry() 90 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in setSymmetricKeyEntry()
|
/frameworks/base/keystore/tests/src/android/security/ |
D | ParcelableKeyGenParameterSpecTest.java | 25 import android.security.keystore.KeyProperties; 45 static final int KEY_PURPOSES = KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY; 55 static final String DIGEST = KeyProperties.DIGEST_SHA256; 56 static final String ENCRYPTION_PADDING = KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1; 57 static final String SIGNATURE_PADDING = KeyProperties.SIGNATURE_PADDING_RSA_PSS; 58 static final String BLOCK_MODE = KeyProperties.BLOCK_MODE_CBC;
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | KeyGenParameterSpecTest.java | 25 import android.security.keystore.KeyProperties; 36 static final int KEY_PURPOSES = KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 39 import android.security.keystore.KeyProperties; 126 assertEquals(KeyProperties.PURPOSE_ENCRYPT, getEncryptKeyProtection().getPurposes()); in init_createsEncryptKeyWithCorrectPurposes() 134 new String[] { KeyProperties.ENCRYPTION_PADDING_NONE }, in init_createsEncryptKeyWithCorrectPaddings() 143 new String[] { KeyProperties.BLOCK_MODE_GCM }, in init_createsEncryptKeyWithCorrectBlockModes() 168 assertEquals(KeyProperties.PURPOSE_DECRYPT, getDecryptKeyProtection().getPurposes()); in init_createsDecryptKeyWithCorrectPurposes() 176 new String[] { KeyProperties.ENCRYPTION_PADDING_NONE }, in init_createsDecryptKeyWithCorrectPaddings() 185 new String[] { KeyProperties.BLOCK_MODE_GCM }, in init_createsDecryptKeyWithCorrectBlockModes() 594 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) in generateAndroidKeyStoreKey() 595 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in generateAndroidKeyStoreKey() 596 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in generateAndroidKeyStoreKey()
|
D | RecoverableKeyGeneratorTest.java | 28 import android.security.keystore.KeyProperties; 176 WRAPPING_KEY_ALIAS, KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) in generatePlatformKey() 177 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in generatePlatformKey() 178 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in generatePlatformKey()
|
D | WrappedKeyTest.java | 26 import android.security.keystore.KeyProperties; 206 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) in generateAndroidKeyStoreKey() 207 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in generateAndroidKeyStoreKey() 208 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in generateAndroidKeyStoreKey()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManager.java | 25 import android.security.keystore.KeyProperties; 451 new KeyProtection.Builder(KeyProperties.PURPOSE_DECRYPT) in generateAndLoadKey() 455 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in generateAndLoadKey() 456 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in generateAndLoadKey() 462 new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT) in generateAndLoadKey() 463 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in generateAndLoadKey() 464 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in generateAndLoadKey()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | DataIntegrityChecker.java | 22 import android.security.keystore.KeyProperties; 242 .getInstance(KeyProperties.KEY_ALGORITHM_AES, KEY_STORE); in getOrCreateSecretKey() 245 KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) in getOrCreateSecretKey() 246 .setBlockModes(KeyProperties.BLOCK_MODE_GCM) in getOrCreateSecretKey() 247 .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) in getOrCreateSecretKey()
|
/frameworks/base/keystore/java/android/security/ |
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()
|
D | KeyChain.java | 39 import android.security.keystore.KeyProperties; 413 @Nullable @KeyProperties.KeyAlgorithmEnum String[] keyTypes, in choosePrivateKeyAlias() 468 @Nullable @KeyProperties.KeyAlgorithmEnum String[] keyTypes, in choosePrivateKeyAlias() 686 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isKeyAlgorithmSupported() 688 return KeyProperties.KEY_ALGORITHM_EC.equals(algUpper) in isKeyAlgorithmSupported() 689 || KeyProperties.KEY_ALGORITHM_RSA.equals(algUpper); in isKeyAlgorithmSupported() 713 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isBoundKeyAlgorithm()
|