Home
last modified time | relevance | path

Searched refs:keymasterAlgorithm (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java263 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStorePublicKeyFromKeystore() local
264 if (keymasterAlgorithm == null) { in loadAndroidKeyStorePublicKeyFromKeystore()
271 keymasterAlgorithm); in loadAndroidKeyStorePublicKeyFromKeystore()
333 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStoreSecretKeyFromKeystore() local
334 if (keymasterAlgorithm == null) { in loadAndroidKeyStoreSecretKeyFromKeystore()
351 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreSecretKeyFromKeystore()
366 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStoreKeyFromKeystore() local
367 if (keymasterAlgorithm == null) { in loadAndroidKeyStoreKeyFromKeystore()
371 if (keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_HMAC || in loadAndroidKeyStoreKeyFromKeystore()
372 keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_AES || in loadAndroidKeyStoreKeyFromKeystore()
[all …]
DAndroidKeyStoreKeyPairGeneratorSpi.java173 protected AndroidKeyStoreKeyPairGeneratorSpi(int keymasterAlgorithm) { in AndroidKeyStoreKeyPairGeneratorSpi() argument
174 mOriginalKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyPairGeneratorSpi()
201 int keymasterAlgorithm = mOriginalKeymasterAlgorithm; in initialize() local
213 keymasterAlgorithm = in initialize()
221 switch (keymasterAlgorithm) { in initialize()
299 mKeymasterAlgorithm = keymasterAlgorithm; in initialize()
304 mKeySizeBits = getDefaultKeySize(keymasterAlgorithm); in initialize()
306 checkValidKeySize(keymasterAlgorithm, mKeySizeBits, mSpec.isStrongBoxBacked()); in initialize()
315 keymasterAlgorithm); in initialize()
716 private static int getDefaultKeySize(int keymasterAlgorithm) { in getDefaultKeySize() argument
[all …]
DKeyProperties.java202 int keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm() argument
203 switch (keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm()
210 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterAsymmetricKeyAlgorithm()
230 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument
231 switch (keymasterAlgorithm) { in fromKeymasterSecretKeyAlgorithm()
254 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterSecretKeyAlgorithm()
DAndroidKeyStoreKeyGeneratorSpi.java121 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument
123 this(keymasterAlgorithm, -1, defaultKeySizeBits); in AndroidKeyStoreKeyGeneratorSpi()
127 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument
130 mKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyGeneratorSpi()
DKeymasterUtils.java204 int keymasterAlgorithm, in addMinMacLengthAuthorizationIfNecessary() argument
207 switch (keymasterAlgorithm) { in addMinMacLengthAuthorizationIfNecessary()
DAndroidKeyStoreSpi.java650 int keymasterAlgorithm = in setSecretKeyEntry() local
652 args.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, keymasterAlgorithm); in setSecretKeyEntry()
655 if (keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_HMAC) { in setSecretKeyEntry()
721 keymasterAlgorithm, in setSecretKeyEntry()