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.java172 protected AndroidKeyStoreKeyPairGeneratorSpi(int keymasterAlgorithm) { in AndroidKeyStoreKeyPairGeneratorSpi() argument
173 mOriginalKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyPairGeneratorSpi()
200 int keymasterAlgorithm = mOriginalKeymasterAlgorithm; in initialize() local
212 keymasterAlgorithm = in initialize()
220 switch (keymasterAlgorithm) { in initialize()
298 mKeymasterAlgorithm = keymasterAlgorithm; in initialize()
303 mKeySizeBits = getDefaultKeySize(keymasterAlgorithm); in initialize()
305 checkValidKeySize(keymasterAlgorithm, mKeySizeBits, mSpec.isStrongBoxBacked()); in initialize()
314 keymasterAlgorithm); in initialize()
735 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()