Lines Matching refs:sig
48 public_key_signature_free(cert->sig); in x509_free_certificate()
75 cert->sig = kzalloc(sizeof(struct public_key_signature), GFP_KERNEL); in x509_cert_parse()
76 if (!cert->sig) in x509_cert_parse()
204 ctx->cert->sig->hash_algo = "md4"; in x509_note_sig_algo()
208 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
212 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo()
216 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo()
220 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo()
224 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
228 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
232 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
236 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo()
240 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo()
244 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo()
248 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_sig_algo()
252 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_sig_algo()
256 ctx->cert->sig->hash_algo = "sm3"; in x509_note_sig_algo()
261 ctx->cert->sig->pkey_algo = "rsa"; in x509_note_sig_algo()
262 ctx->cert->sig->encoding = "pkcs1"; in x509_note_sig_algo()
266 ctx->cert->sig->pkey_algo = "ecrdsa"; in x509_note_sig_algo()
267 ctx->cert->sig->encoding = "raw"; in x509_note_sig_algo()
271 ctx->cert->sig->pkey_algo = "sm2"; in x509_note_sig_algo()
272 ctx->cert->sig->encoding = "raw"; in x509_note_sig_algo()
276 ctx->cert->sig->pkey_algo = "ecdsa"; in x509_note_sig_algo()
277 ctx->cert->sig->encoding = "x962"; in x509_note_sig_algo()
304 if (strcmp(ctx->cert->sig->pkey_algo, "rsa") == 0 || in x509_note_signature()
305 strcmp(ctx->cert->sig->pkey_algo, "ecrdsa") == 0 || in x509_note_signature()
306 strcmp(ctx->cert->sig->pkey_algo, "sm2") == 0 || in x509_note_signature()
307 strcmp(ctx->cert->sig->pkey_algo, "ecdsa") == 0) { in x509_note_signature()
451 if (!ctx->cert->sig->auth_ids[2]) { in x509_note_issuer()
455 ctx->cert->sig->auth_ids[2] = kid; in x509_note_issuer()
765 if (ctx->cert->sig->auth_ids[1]) in x509_akid_note_kid()
772 ctx->cert->sig->auth_ids[1] = kid; in x509_akid_note_kid()
804 if (!ctx->akid_raw_issuer || ctx->cert->sig->auth_ids[0]) in x509_akid_note_serial()
815 ctx->cert->sig->auth_ids[0] = kid; in x509_akid_note_serial()