Lines Matching refs:alg
67 static unsigned int ocsp_hash_data(struct asn1_oid *alg, const u8 *data, in ocsp_hash_data() argument
74 if (x509_sha1_oid(alg)) { in ocsp_hash_data()
81 if (x509_sha256_oid(alg)) { in ocsp_hash_data()
88 if (x509_sha384_oid(alg)) { in ocsp_hash_data()
95 if (x509_sha512_oid(alg)) { in ocsp_hash_data()
103 asn1_oid_to_str(alg, buf, sizeof(buf)); in ocsp_hash_data()
118 struct x509_algorithm_identifier alg; in tls_process_ocsp_single_response() local
157 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos)) in tls_process_ocsp_single_response()
175 hash_len = ocsp_hash_data(&alg.oid, issuer->subject_dn, in tls_process_ocsp_single_response()
197 hash_len = ocsp_hash_data(&alg.oid, issuer->public_key, in tls_process_ocsp_single_response()
354 struct x509_algorithm_identifier alg; in tls_process_basic_ocsp_response() local
397 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos)) in tls_process_basic_ocsp_response()
622 if (x509_check_signature(signer, &alg, sign_value, sign_value_len, in tls_process_basic_ocsp_response()