Searched refs:keymasterDigest (Results 1 – 9 of 9) sorted by relevance
36 PKCS1Padding(int keymasterDigest) { in PKCS1Padding() argument37 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PKCS1_1_5_SIGN); in PKCS1Padding()120 PSSPadding(int keymasterDigest) { in PSSPadding() argument121 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PSS); in PSSPadding()183 AndroidKeyStoreRSASignatureSpi(int keymasterDigest, int keymasterPadding) { in AndroidKeyStoreRSASignatureSpi() argument184 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreRSASignatureSpi()
38 static int getDigestOutputSizeBits(int keymasterDigest) { in getDigestOutputSizeBits() argument39 switch (keymasterDigest) { in getDigestOutputSizeBits()55 throw new IllegalArgumentException("Unknown digest: " + keymasterDigest); in getDigestOutputSizeBits()118 int keymasterDigest = keymasterDigests[0]; in addMinMacLengthAuthorizationIfNecessary() local119 int digestOutputSizeBits = getDigestOutputSizeBits(keymasterDigest); in addMinMacLengthAuthorizationIfNecessary()123 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
170 OAEPWithMGF1Padding(int keymasterDigest) { in OAEPWithMGF1Padding() argument172 mKeymasterDigest = keymasterDigest; in OAEPWithMGF1Padding()174 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in OAEPWithMGF1Padding()199 int keymasterDigest; in initAlgorithmSpecificParameters() local201 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()
1080 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 …]
85 protected AndroidKeyStoreHmacSpi(int keymasterDigest) { in AndroidKeyStoreHmacSpi() argument86 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreHmacSpi()87 mMacSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in AndroidKeyStoreHmacSpi()
80 protected HmacBase(int keymasterDigest) { in HmacBase() argument82 keymasterDigest, in HmacBase()83 KeymasterUtils.getDigestOutputSizeBits(keymasterDigest)); in HmacBase()139 int keymasterDigest, in AndroidKeyStoreKeyGeneratorSpi() argument142 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreKeyGeneratorSpi()
401 int keymasterDigest = -1; in loadAndroidKeyStoreKeyFromKeystore() local408 if (keymasterDigest == -1) keymasterDigest = a.keyParameter.value.getDigest(); in loadAndroidKeyStoreKeyFromKeystore()420 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreKeyFromKeystore()
190 AndroidKeyStoreECDSASignatureSpi(int keymasterDigest) { in AndroidKeyStoreECDSASignatureSpi() argument191 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreECDSASignatureSpi()
294 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument301 switch (keymasterDigest) { in fromKeymasterSecretKeyAlgorithm()314 + Digest.fromKeymaster(keymasterDigest)); in fromKeymasterSecretKeyAlgorithm()