Searched refs:keymasterDigest (Results 1 – 9 of 9) sorted by relevance
34 PKCS1Padding(int keymasterDigest) { in PKCS1Padding() argument35 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PKCS1_1_5_SIGN); in PKCS1Padding()90 PSSPadding(int keymasterDigest) { in PSSPadding() argument91 super(keymasterDigest, KeymasterDefs.KM_PAD_RSA_PSS); in PSSPadding()133 AndroidKeyStoreRSASignatureSpi(int keymasterDigest, int keymasterPadding) { in AndroidKeyStoreRSASignatureSpi() argument134 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreRSASignatureSpi()
38 public static int getDigestOutputSizeBits(int keymasterDigest) { in getDigestOutputSizeBits() argument39 switch (keymasterDigest) { in getDigestOutputSizeBits()55 throw new IllegalArgumentException("Unknown digest: " + keymasterDigest); in getDigestOutputSizeBits()227 int keymasterDigest = keymasterDigests[0]; in addMinMacLengthAuthorizationIfNecessary() local228 int digestOutputSizeBits = getDigestOutputSizeBits(keymasterDigest); in addMinMacLengthAuthorizationIfNecessary()232 + KeyProperties.Digest.fromKeymaster(keymasterDigest)); in addMinMacLengthAuthorizationIfNecessary()
168 OAEPWithMGF1Padding(int keymasterDigest) { in OAEPWithMGF1Padding() argument170 mKeymasterDigest = keymasterDigest; in OAEPWithMGF1Padding()172 (KeymasterUtils.getDigestOutputSizeBits(keymasterDigest) + 7) / 8; in OAEPWithMGF1Padding()197 int keymasterDigest; in initAlgorithmSpecificParameters() local199 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()
793 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()794 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()797 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()804 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()813 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()821 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()861 for (int keymasterDigest : availableKeymasterDigests) { in getCertificateSignatureAlgorithm()862 int outputSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in getCertificateSignatureAlgorithm()869 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()874 bestKeymasterDigest = keymasterDigest; in getCertificateSignatureAlgorithm()[all …]
69 protected HmacBase(int keymasterDigest) { in HmacBase() argument71 keymasterDigest, in HmacBase()72 KeymasterUtils.getDigestOutputSizeBits(keymasterDigest)); in HmacBase()128 int keymasterDigest, in AndroidKeyStoreKeyGeneratorSpi() argument131 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreKeyGeneratorSpi()
83 protected AndroidKeyStoreHmacSpi(int keymasterDigest) { in AndroidKeyStoreHmacSpi() argument84 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreHmacSpi()85 mMacSizeBits = KeymasterUtils.getDigestOutputSizeBits(keymasterDigest); in AndroidKeyStoreHmacSpi()
145 AndroidKeyStoreECDSASignatureSpi(int keymasterDigest) { in AndroidKeyStoreECDSASignatureSpi() argument146 mKeymasterDigest = keymasterDigest; in AndroidKeyStoreECDSASignatureSpi()
339 int keymasterDigest; in loadAndroidKeyStoreSecretKeyFromKeystore() local341 keymasterDigest = -1; in loadAndroidKeyStoreSecretKeyFromKeystore()345 keymasterDigest = keymasterDigests.get(0); in loadAndroidKeyStoreSecretKeyFromKeystore()351 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreSecretKeyFromKeystore()
230 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument237 switch (keymasterDigest) { in fromKeymasterSecretKeyAlgorithm()250 + Digest.fromKeymaster(keymasterDigest)); in fromKeymasterSecretKeyAlgorithm()