Home
last modified time | relevance | path

Searched refs:KeyProperties (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DKeyProtection.java209 private final @KeyProperties.PurposeEnum int mPurposes;
210 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings;
211 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings;
212 private final @KeyProperties.DigestEnum String[] mDigests;
213 private final @KeyProperties.BlockModeEnum String[] mBlockModes;
222 @KeyProperties.PurposeEnum int purposes, in KeyProtection()
223 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyProtection()
224 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyProtection()
225 @KeyProperties.DigestEnum String[] digests, in KeyProtection()
226 @KeyProperties.BlockModeEnum String[] blockModes, in KeyProtection()
[all …]
DKeyInfo.java72 private final @KeyProperties.OriginEnum int mOrigin;
76 private final @KeyProperties.PurposeEnum int mPurposes;
77 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings;
78 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings;
79 private final @KeyProperties.DigestEnum String[] mDigests;
80 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 …]
DKeyGenParameterSpec.java243 private final @KeyProperties.PurposeEnum int mPurposes;
244 private final @KeyProperties.DigestEnum String[] mDigests;
245 private final @KeyProperties.EncryptionPaddingEnum String[] mEncryptionPaddings;
246 private final @KeyProperties.SignaturePaddingEnum String[] mSignaturePaddings;
247 private final @KeyProperties.BlockModeEnum String[] mBlockModes;
266 @KeyProperties.PurposeEnum int purposes, in KeyGenParameterSpec()
267 @KeyProperties.DigestEnum String[] digests, in KeyGenParameterSpec()
268 @KeyProperties.EncryptionPaddingEnum String[] encryptionPaddings, in KeyGenParameterSpec()
269 @KeyProperties.SignaturePaddingEnum String[] signaturePaddings, in KeyGenParameterSpec()
270 @KeyProperties.BlockModeEnum String[] blockModes, in KeyGenParameterSpec()
[all …]
DAndroidKeyStoreSpi.java27 import android.security.keystore.KeyProperties;
290 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()
293 KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY); in getLegacyKeyProtectionParameter()
297 KeyProperties.DIGEST_NONE, in getLegacyKeyProtectionParameter()
298 KeyProperties.DIGEST_SHA1, in getLegacyKeyProtectionParameter()
299 KeyProperties.DIGEST_SHA224, in getLegacyKeyProtectionParameter()
300 KeyProperties.DIGEST_SHA256, in getLegacyKeyProtectionParameter()
301 KeyProperties.DIGEST_SHA384, in getLegacyKeyProtectionParameter()
302 KeyProperties.DIGEST_SHA512); in getLegacyKeyProtectionParameter()
303 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()
[all …]
DAndroidKeyStoreKeyPairGeneratorSpi.java151 private @KeyProperties.KeyAlgorithmEnum String mJcaKeyAlgorithm;
203 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm( in initialize()
214 KeyProperties.PURPOSE_SIGN in initialize()
215 | KeyProperties.PURPOSE_VERIFY); in initialize()
219 KeyProperties.DIGEST_NONE, in initialize()
220 KeyProperties.DIGEST_SHA1, in initialize()
221 KeyProperties.DIGEST_SHA224, in initialize()
222 KeyProperties.DIGEST_SHA256, in initialize()
223 KeyProperties.DIGEST_SHA384, in initialize()
224 KeyProperties.DIGEST_SHA512); in initialize()
[all …]
DAndroidKeyStoreSecretKeyFactorySpi.java83 @KeyProperties.OriginEnum int origin; in getKeyInfo()
85 @KeyProperties.PurposeEnum int purposes; in getKeyInfo()
88 @KeyProperties.DigestEnum String[] digests; in getKeyInfo()
89 @KeyProperties.BlockModeEnum String[] blockModes; in getKeyInfo()
95 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo()
99 origin = KeyProperties.Origin.fromKeymaster( in getKeyInfo()
112 purposes = KeyProperties.Purpose.allFromKeymaster( in getKeyInfo()
120 @KeyProperties.EncryptionPaddingEnum String jcaPadding = in getKeyInfo()
121 KeyProperties.EncryptionPadding.fromKeymaster(keymasterPadding); in getKeyInfo()
125 @KeyProperties.SignaturePaddingEnum String padding = in getKeyInfo()
[all …]
DAndroidKeyStoreKeyGeneratorSpi.java25 import android.security.keystore.KeyProperties;
178 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit()
179 mKeymasterPaddings = KeyProperties.EncryptionPadding.allToKeymaster( in engineInit()
185 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); in engineInit()
186 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit()
194 + KeyProperties.BlockMode.fromKeymaster(keymasterBlockMode) in engineInit()
212 KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit()
218 + KeyProperties.Digest.fromKeymaster(mKeymasterDigest) in engineInit()
225 mKeymasterDigests = KeyProperties.Digest.allToKeymaster(spec.getDigests()); in engineInit()
286 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineGenerateKey()
[all …]
DAndroidKeyStoreProvider.java170 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, in getAndroidKeyStorePublicKey()
182 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()
184 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()
196 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()
199 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()
236 jcaKeyAlgorithm = KeyProperties.KeyAlgorithm.fromKeymasterAsymmetricKeyAlgorithm( in loadAndroidKeyStorePublicKeyFromKeystore()
295 @KeyProperties.KeyAlgorithmEnum String keyAlgorithmString; in loadAndroidKeyStoreSecretKeyFromKeystore()
297 keyAlgorithmString = KeyProperties.KeyAlgorithm.fromKeymasterSecretKeyAlgorithm( in loadAndroidKeyStoreSecretKeyFromKeystore()
DAndroidKeyStoreRSACipherSpi.java199 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()
DAndroidKeyStoreRSASignatureSpi.java140 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
142 + ". Only" + KeyProperties.KEY_ALGORITHM_RSA + " supported"); in initKey()
DAndroidKeyStoreECDSASignatureSpi.java151 if (!KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
153 + ". Only" + KeyProperties.KEY_ALGORITHM_EC + " supported"); in initKey()
DAndroidKeyStoreRSAPrivateKey.java33 super(alias, KeyProperties.KEY_ALGORITHM_RSA); in AndroidKeyStoreRSAPrivateKey()
DAndroidKeyStoreECPrivateKey.java32 super(alias, KeyProperties.KEY_ALGORITHM_EC); in AndroidKeyStoreECPrivateKey()
DAndroidKeyStoreRSAPublicKey.java33 super(alias, KeyProperties.KEY_ALGORITHM_RSA, x509EncodedForm); in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStoreUnauthenticatedAESCipherSpi.java131 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
134 KeyProperties.KEY_ALGORITHM_AES + " supported"); in initKey()
DAndroidKeyStoreECPublicKey.java35 super(alias, KeyProperties.KEY_ALGORITHM_EC, x509EncodedForm); in AndroidKeyStoreECPublicKey()
DKeymasterUtils.java173 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java279 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
282 KeyProperties.KEY_ALGORITHM_AES + " supported"); in initKey()
DKeyProperties.java35 public abstract class KeyProperties { class
36 private KeyProperties() {} in KeyProperties() method in KeyProperties
/frameworks/base/keystore/java/android/security/
DKeyChain.java34 import android.security.keystore.KeyProperties;
259 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, in choosePrivateKeyAlias()
307 @KeyProperties.KeyAlgorithmEnum String[] keyTypes, Principal[] issuers, in choosePrivateKeyAlias()
439 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isKeyAlgorithmSupported()
441 return KeyProperties.KEY_ALGORITHM_EC.equals(algUpper) in isKeyAlgorithmSupported()
442 || KeyProperties.KEY_ALGORITHM_RSA.equals(algUpper); in isKeyAlgorithmSupported()
466 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isBoundKeyAlgorithm()
DKeyPairGeneratorSpec.java24 import android.security.keystore.KeyProperties;
170 public @KeyProperties.KeyAlgorithmEnum String getKeyType() { in getKeyType()
329 public Builder setKeyType(@NonNull @KeyProperties.KeyAlgorithmEnum String keyType) in setKeyType()
335 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(keyType); in setKeyType()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyPairGeneratorTest.java168 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/api/
Dcurrent.txt28404 public abstract class KeyProperties {
Dsystem-current.txt30463 public abstract class KeyProperties {