Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreRSASignatureSpi.java36 PKCS1Padding(int keymasterDigest) { in PKCS1Padding() argument
37 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PKCS1_1_5_SIGN); in PKCS1Padding()
120 PSSPadding(int keymasterDigest) { in PSSPadding() argument
121 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PSS); in PSSPadding()
183 AndroidKeyStoreRSASignatureSpi(int keymasterDigest, int keymasterPadding) { in AndroidKeyStoreRSASignatureSpi() argument
184 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreRSASignatureSpi()
DKeymasterUtils.java38 static int getDigestOutputSizeBits(int keymasterDigest) { in getDigestOutputSizeBits() argument
39 switch (keymasterDigest) { in getDigestOutputSizeBits()
55 throw new IllegalArgumentException("Unknown digest: " + keymasterDigest); in getDigestOutputSizeBits()
118 int keymasterDigest = keymasterDigests[0]; in addMinMacLengthAuthorizationIfNecessary() local
119 int digestOutputSizeBits = getDigestOutputSizeBits(keymasterDigest); in addMinMacLengthAuthorizationIfNecessary()
123 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
DAndroidKeyStoreRSACipherSpi.java170 OAEPWithMGF1Padding(int keymasterDigest) { in OAEPWithMGF1Padding() argument
172 mKeymasterDigest = keymasterDigest; in OAEPWithMGF1Padding()
174 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in OAEPWithMGF1Padding()
199 int keymasterDigest; in initAlgorithmSpecificParameters() local
201 keymasterDigest = KeyProperties.Digest.toKeymaster(jcaDigest); in initAlgorithmSpecificParameters()
206 switch (keymasterDigest) { in initAlgorithmSpecificParameters()
242 mKeymasterDigest = keymasterDigest; in initAlgorithmSpecificParameters()
245 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in initAlgorithmSpecificParameters()
DAndroidKeyStoreKeyPairGeneratorSpi.java1080 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()
1081 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()
1084 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
1091 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
1100 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
1108 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
1147 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()
1148 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()
1155 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
1160 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()
[all …]
DAndroidKeyStoreHmacSpi.java85 protected AndroidKeyStoreHmacSpi(int keymasterDigest) { in AndroidKeyStoreHmacSpi() argument
86 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreHmacSpi()
87 mMacSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in AndroidKeyStoreHmacSpi()
DAndroidKeyStoreKeyGeneratorSpi.java80 protected HmacBase(int keymasterDigest) { in HmacBase() argument
82 keymasterDigest, in HmacBase()
83 KeymasterUtils.getDigestOutputSizeBits(keymasterDigest)); in HmacBase()
139 int keymasterDigest, in AndroidKeyStoreKeyGeneratorSpi() argument
142 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreKeyGeneratorSpi()
DAndroidKeyStoreProvider.java401 int keymasterDigest = -1; in loadAndroidKeyStoreKeyFromKeystore() local
408 if (keymasterDigest == -1) keymasterDigest = a.keyParameter.value.getDigest(); in loadAndroidKeyStoreKeyFromKeystore()
420 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreKeyFromKeystore()
DAndroidKeyStoreECDSASignatureSpi.java190 AndroidKeyStoreECDSASignatureSpi(int keymasterDigest) { in AndroidKeyStoreECDSASignatureSpi() argument
191 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreECDSASignatureSpi()
/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java294 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument
301 switch (keymasterDigest) { in fromKeymasterSecretKeyAlgorithm()
314 + Digest.fromKeymaster(keymasterDigest)); in fromKeymasterSecretKeyAlgorithm()