Home
last modified time | relevance | path

Searched refs:keymasterDigest (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreRSASignatureSpi.java34 PKCS1Padding(int keymasterDigest) { in PKCS1Padding() argument
35 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PKCS1_1_5_SIGN); in PKCS1Padding()
90 PSSPadding(int keymasterDigest) { in PSSPadding() argument
91 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PSS); in PSSPadding()
133 AndroidKeyStoreRSASignatureSpi(int keymasterDigest, int keymasterPadding) { in AndroidKeyStoreRSASignatureSpi() argument
134 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreRSASignatureSpi()
DKeymasterUtils.java34 public static int getDigestOutputSizeBits(int keymasterDigest) { in getDigestOutputSizeBits() argument
35 switch (keymasterDigest) { in getDigestOutputSizeBits()
51 throw new IllegalArgumentException("Unknown digest: " + keymasterDigest); in getDigestOutputSizeBits()
168 int keymasterDigest = keymasterDigests[0]; in addMinMacLengthAuthorizationIfNecessary() local
169 int digestOutputSizeBits = getDigestOutputSizeBits(keymasterDigest); in addMinMacLengthAuthorizationIfNecessary()
173 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
DAndroidKeyStoreRSACipherSpi.java168 OAEPWithMGF1Padding(int keymasterDigest) { in OAEPWithMGF1Padding() argument
170 mKeymasterDigest = keymasterDigest; in OAEPWithMGF1Padding()
172 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in OAEPWithMGF1Padding()
197 int keymasterDigest; in initAlgorithmSpecificParameters() local
199 keymasterDigest = KeyProperties.Digest.toKeymaster(jcaDigest); in initAlgorithmSpecificParameters()
204 switch (keymasterDigest) { in initAlgorithmSpecificParameters()
245 mKeymasterDigest = keymasterDigest; in initAlgorithmSpecificParameters()
247 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in initAlgorithmSpecificParameters()
DAndroidKeyStoreKeyPairGeneratorSpi.java699 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()
700 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()
703 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
710 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
719 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
727 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
767 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()
768 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()
775 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
780 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
[all …]
DAndroidKeyStoreKeyGeneratorSpi.java63 protected HmacBase(int keymasterDigest) { in HmacBase() argument
65 keymasterDigest, in HmacBase()
66 KeymasterUtils.getDigestOutputSizeBits(keymasterDigest)); in HmacBase()
122 int keymasterDigest, in AndroidKeyStoreKeyGeneratorSpi() argument
125 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreKeyGeneratorSpi()
DAndroidKeyStoreHmacSpi.java83 protected AndroidKeyStoreHmacSpi(int keymasterDigest) { in AndroidKeyStoreHmacSpi() argument
84 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreHmacSpi()
85 mMacSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in AndroidKeyStoreHmacSpi()
DAndroidKeyStoreProvider.java286 int keymasterDigest; in loadAndroidKeyStoreSecretKeyFromKeystore() local
288 keymasterDigest = -1; in loadAndroidKeyStoreSecretKeyFromKeystore()
292 keymasterDigest = keymasterDigests.get(0); in loadAndroidKeyStoreSecretKeyFromKeystore()
298 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreSecretKeyFromKeystore()
DAndroidKeyStoreECDSASignatureSpi.java145 AndroidKeyStoreECDSASignatureSpi(int keymasterDigest) { in AndroidKeyStoreECDSASignatureSpi() argument
146 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreECDSASignatureSpi()
DKeyProperties.java210 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument
215 switch (keymasterDigest) { in fromKeymasterSecretKeyAlgorithm()
228 + Digest.fromKeymaster(keymasterDigest)); in fromKeymasterSecretKeyAlgorithm()