/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
H A D | RSAESOAEPparams.java | 18 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 46 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 52 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 56 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 68 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 79 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 95 return hashAlgorithm; in getHashAlgorithm() 138 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 140 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
H A D | RSASSAPSSparams.java | 20 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 57 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 62 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 71 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 102 return hashAlgorithm; in getHashAlgorithm() 150 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 152 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/aosp_15_r20/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/ |
H A D | RSAESOAEPparams.java | 22 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 56 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 60 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 72 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 99 return hashAlgorithm; in getHashAlgorithm() 142 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 144 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
H A D | RSASSAPSSparams.java | 24 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 54 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 61 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 66 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 75 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 87 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 106 return hashAlgorithm; in getHashAlgorithm() 154 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 156 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/pkcs/ |
H A D | RSAESOAEPparams.java | 22 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 56 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 60 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 72 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 99 return hashAlgorithm; in getHashAlgorithm() 142 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 144 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
H A D | RSASSAPSSparams.java | 24 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 54 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 61 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 66 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 75 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 87 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 106 return hashAlgorithm; in getHashAlgorithm() 154 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 156 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/aosp_15_r20/external/conscrypt/common/src/main/java/org/conscrypt/ct/ |
H A D | DigitallySigned.java | 63 private final HashAlgorithm hashAlgorithm; field in DigitallySigned 67 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned() argument 70 this.hashAlgorithm = hashAlgorithm; in DigitallySigned() 75 public DigitallySigned(int hashAlgorithm, in DigitallySigned() argument 79 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned() 86 return hashAlgorithm; in getHashAlgorithm() 100 return String.format("%swith%s", hashAlgorithm, signatureAlgorithm); in getAlgorithm()
|
/aosp_15_r20/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/ |
H A D | DigitallySigned.java | 71 private final HashAlgorithm hashAlgorithm; field in DigitallySigned 75 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned() argument 78 this.hashAlgorithm = hashAlgorithm; in DigitallySigned() 83 public DigitallySigned(int hashAlgorithm, in DigitallySigned() argument 87 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned() 94 return hashAlgorithm; in getHashAlgorithm() 108 return String.format("%swith%s", hashAlgorithm, signatureAlgorithm); in getAlgorithm()
|
/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/ |
H A D | CertID.java | 16 AlgorithmIdentifier hashAlgorithm; field in CertID 22 AlgorithmIdentifier hashAlgorithm, in CertID() argument 27 this.hashAlgorithm = hashAlgorithm; in CertID() 36 hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); in CertID() 66 return hashAlgorithm; in getHashAlgorithm() 98 v.add(hashAlgorithm); in toASN1Primitive()
|
/aosp_15_r20/external/tpm2-tss/src/tss2-fapi/ |
H A D | fapi_crypto.c | 239 get_hash_md(TPM2_ALG_ID hashAlgorithm) in get_hash_md() argument 241 switch (hashAlgorithm) { in get_hash_md() 633 TPMI_ALG_HASH hashAlgorithm, in ifapi_ecc_der_sig_to_tpm() argument 662 tpmSignature->signature.ecdsa.hash = hashAlgorithm; in ifapi_ecc_der_sig_to_tpm() 700 TPMI_ALG_HASH hashAlgorithm, in ifapi_der_sig_to_tpm() argument 712 tpmSignature->signature.rsapss.hash = hashAlgorithm; in ifapi_der_sig_to_tpm() 718 tpmSignature->signature.rsassa.hash = hashAlgorithm; in ifapi_der_sig_to_tpm() 728 tpmPublic->unique.ecc.x.size, hashAlgorithm, in ifapi_der_sig_to_tpm() 1236 const EVP_MD *hashAlgorithm = get_hash_md(signatureScheme->details.any.hashAlg); in ifapi_verify_signature_quote() local 1237 if (!hashAlgorithm) { in ifapi_verify_signature_quote() [all …]
|
H A D | fapi_crypto.h | 22 TPMI_ALG_HASH hashAlgorithm, 60 TPM2_ALG_ID hashAlgorithm); 88 TPM2_ALG_ID hashAlgorithm); 98 TPMI_ALG_HASH *hashAlgorithm);
|
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ocsp/ |
H A D | CertID.java | 20 AlgorithmIdentifier hashAlgorithm; field in CertID 26 AlgorithmIdentifier hashAlgorithm, in CertID() argument 31 this.hashAlgorithm = hashAlgorithm; in CertID() 40 hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); in CertID() 70 return hashAlgorithm; in getHashAlgorithm() 102 v.add(hashAlgorithm); in toASN1Primitive()
|
/aosp_15_r20/packages/modules/ExtServices/java/src/android/ext/services/displayhash/ |
D | HmacKeyManager.java | 40 byte[] generateHmac(byte[] salt, long timestamp, Rect bounds, int hashAlgorithm, in generateHmac() argument 48 hashAlgorithm, imageHash); in generateHmac() 59 int hashAlgorithm, byte[] imageHash, byte[] hmac) { in verifyHmac() argument 64 byte[] calculatedHmac = generateHmac(salt, timestamp, bounds, hashAlgorithm, in verifyHmac() 75 VerificationObject(long timestamp, Rect bounds, int hashAlgorithm, byte[] imageHash) { in VerificationObject() argument 78 mHashAlgorithm = hashAlgorithm; in VerificationObject()
|
D | DisplayHashingServiceImpl.java | 64 @NonNull String hashAlgorithm, @NonNull DisplayHashResultCallback callback) { in onGenerateDisplayHash() argument 71 int hashAlgorithmIndex = getIndexForHashAlgorithm(hashAlgorithm); in onGenerateDisplayHash() 85 byte[] imageHash = mImageHashManager.generateHash(buffer, hashAlgorithm); in onGenerateDisplayHash() 95 new DisplayHash(timestamp, bounds, hashAlgorithm, imageHash, hmac)); in onGenerateDisplayHash() 125 private int getIndexForHashAlgorithm(String hashAlgorithm) { in getIndexForHashAlgorithm() argument 126 return mDisplayHashParams.indexOfKey(hashAlgorithm); in getIndexForHashAlgorithm()
|
D | ImageHashManager.java | 36 String hashAlgorithm); in nativeGenerateHash() argument 39 @Size(8) byte[] generateHash(@NonNull HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash() argument 40 return nativeGenerateHash(hardwareBuffer, hashAlgorithm); in generateHash()
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
H A D | V4Signature.java | 37 public final int hashAlgorithm; // only 1 == SHA256 supported field in V4Signature.HashingInfo 42 HashingInfo(int hashAlgorithm, byte log2BlockSize, byte[] salt, byte[] rawRootHash) { in HashingInfo() argument 43 this.hashAlgorithm = hashAlgorithm; in HashingInfo() 51 final int hashAlgorithm = buffer.getInt(); in fromByteArray() local 55 return new HashingInfo(hashAlgorithm, log2BlockSize, salt, rawRootHash); in fromByteArray() 62 buffer.putInt(this.hashAlgorithm); in toByteArray() 232 buffer.putInt(hashingInfo.hashAlgorithm); in getSignedData()
|
/aosp_15_r20/packages/modules/ExtServices/jni/ |
D | android_ext_services_displayhash_ImageHashManager.cpp | 69 std::string hashAlgorithm(hashAlgorithmChars.c_str()); in nativeGenerateHash() local 71 transform(hashAlgorithm.begin(), hashAlgorithm.end(), hashAlgorithm.begin(), ::tolower); in nativeGenerateHash() 88 status = ImageHashManager::generateHash(hashAlgorithm, buf, bufferDesc, &imageHash); in nativeGenerateHash()
|
/aosp_15_r20/frameworks/base/core/java/android/os/incremental/ |
H A D | V4Signature.java | 51 public final int hashAlgorithm; // only 1 == SHA256 supported field in V4Signature.HashingInfo 56 HashingInfo(int hashAlgorithm, byte log2BlockSize, byte[] salt, byte[] rawRootHash) { in HashingInfo() argument 57 this.hashAlgorithm = hashAlgorithm; in HashingInfo() 69 final int hashAlgorithm = buffer.getInt(); in fromByteArray() local 73 return new HashingInfo(hashAlgorithm, log2BlockSize, salt, rawRootHash); in fromByteArray() 237 buffer.putInt(hashingInfo.hashAlgorithm); in getSignedData()
|
/aosp_15_r20/external/trusty/arm-trusted-firmware/tools/cert_create/src/ |
D | ext.c | 27 X509_ALGOR *hashAlgorithm; member 32 ASN1_SIMPLE(HASH, hashAlgorithm, X509_ALGOR), 204 hash->hashAlgorithm->algorithm = algorithm; in ext_new_hash() 205 hash->hashAlgorithm->parameter = ASN1_TYPE_new(); in ext_new_hash() 206 ASN1_TYPE_set(hash->hashAlgorithm->parameter, V_ASN1_NULL, NULL); in ext_new_hash()
|
/aosp_15_r20/external/arm-trusted-firmware/tools/cert_create/src/ |
H A D | ext.c | 27 X509_ALGOR *hashAlgorithm; member 32 ASN1_SIMPLE(HASH, hashAlgorithm, X509_ALGOR), 204 hash->hashAlgorithm->algorithm = algorithm; in ext_new_hash() 205 hash->hashAlgorithm->parameter = ASN1_TYPE_new(); in ext_new_hash() 206 ASN1_TYPE_set(hash->hashAlgorithm->parameter, V_ASN1_NULL, NULL); in ext_new_hash()
|
/aosp_15_r20/frameworks/base/core/java/android/view/displayhash/ |
H A D | DisplayHash.java | 79 @NonNull String hashAlgorithm, @NonNull byte[] imageHash, @NonNull byte[] hmac) { in DisplayHash() argument 83 mHashAlgorithm = hashAlgorithm; in DisplayHash() 202 String hashAlgorithm = in.readString(); in DisplayHash() local 208 mHashAlgorithm = hashAlgorithm; in DisplayHash()
|
H A D | VerifiedDisplayHash.java | 113 @NonNull String hashAlgorithm, in VerifiedDisplayHash() argument 121 this.mHashAlgorithm = hashAlgorithm; in VerifiedDisplayHash() 203 String hashAlgorithm = in.readString(); in VerifiedDisplayHash() local 212 this.mHashAlgorithm = hashAlgorithm; in VerifiedDisplayHash()
|
/aosp_15_r20/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
H A D | DsaTest.java | 800 String hashAlgorithm = "SHA-256"; in testBasic() local 819 byte[] rawHash = MessageDigest.getInstance(hashAlgorithm).digest(messageBytes); in testBasic() 929 String hashAlgorithm = "SHA"; in testDsaBias() local 932 byte[] digest = MessageDigest.getInstance(hashAlgorithm).digest(messageBytes); in testDsaBias() 976 String hashAlgorithm = "SHA"; in testBiasSha1WithDSA() local 979 byte[] digest = MessageDigest.getInstance(hashAlgorithm).digest(messageBytes); in testBiasSha1WithDSA()
|
/aosp_15_r20/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/ |
D | rsa_pss.c | 71 ASN1_EXP_OPT(RSA_PSS_PARAMS, hashAlgorithm, X509_ALGOR,0), 230 if (!rsa_md_to_algor(&pss->hashAlgorithm, sigmd) || in x509_rsa_ctx_to_pss() 264 const EVP_MD *md = rsa_algor_to_md(pss->hashAlgorithm); in x509_rsa_pss_to_ctx() 325 if (pss->hashAlgorithm) { in x509_print_rsa_pss_params() 326 if (i2a_ASN1_OBJECT(bp, pss->hashAlgorithm->algorithm) <= 0) { in x509_print_rsa_pss_params()
|
/aosp_15_r20/external/rust/android-crates-io/crates/quiche/deps/boringssl/src/crypto/x509/ |
D | rsa_pss.c | 71 ASN1_EXP_OPT(RSA_PSS_PARAMS, hashAlgorithm, X509_ALGOR,0), 230 if (!rsa_md_to_algor(&pss->hashAlgorithm, sigmd) || in x509_rsa_ctx_to_pss() 264 const EVP_MD *md = rsa_algor_to_md(pss->hashAlgorithm); in x509_rsa_pss_to_ctx() 325 if (pss->hashAlgorithm) { in x509_print_rsa_pss_params() 326 if (i2a_ASN1_OBJECT(bp, pss->hashAlgorithm->algorithm) <= 0) { in x509_print_rsa_pss_params()
|