Lines Matching refs:sig

48 		public_key_signature_free(cert->sig);  in x509_free_certificate()
74 cert->sig = kzalloc(sizeof(struct public_key_signature), GFP_KERNEL); in x509_cert_parse()
75 if (!cert->sig) in x509_cert_parse()
190 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
194 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo()
198 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo()
202 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo()
206 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
210 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
214 ctx->cert->sig->hash_algo = "sha3-256"; in x509_note_sig_algo()
218 ctx->cert->sig->hash_algo = "sha3-384"; in x509_note_sig_algo()
222 ctx->cert->sig->hash_algo = "sha3-512"; in x509_note_sig_algo()
226 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
230 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo()
234 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo()
238 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo()
242 ctx->cert->sig->hash_algo = "sha3-256"; in x509_note_sig_algo()
246 ctx->cert->sig->hash_algo = "sha3-384"; in x509_note_sig_algo()
250 ctx->cert->sig->hash_algo = "sha3-512"; in x509_note_sig_algo()
254 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_sig_algo()
258 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_sig_algo()
263 ctx->cert->sig->pkey_algo = "rsa"; in x509_note_sig_algo()
264 ctx->cert->sig->encoding = "pkcs1"; in x509_note_sig_algo()
268 ctx->cert->sig->pkey_algo = "ecrdsa"; in x509_note_sig_algo()
269 ctx->cert->sig->encoding = "raw"; in x509_note_sig_algo()
273 ctx->cert->sig->pkey_algo = "ecdsa"; in x509_note_sig_algo()
274 ctx->cert->sig->encoding = "x962"; in x509_note_sig_algo()
301 if (strcmp(ctx->cert->sig->pkey_algo, "rsa") == 0 || in x509_note_signature()
302 strcmp(ctx->cert->sig->pkey_algo, "ecrdsa") == 0 || in x509_note_signature()
303 strcmp(ctx->cert->sig->pkey_algo, "ecdsa") == 0) { in x509_note_signature()
447 if (!ctx->cert->sig->auth_ids[2]) { in x509_note_issuer()
451 ctx->cert->sig->auth_ids[2] = kid; in x509_note_issuer()
758 if (ctx->cert->sig->auth_ids[1]) in x509_akid_note_kid()
765 ctx->cert->sig->auth_ids[1] = kid; in x509_akid_note_kid()
797 if (!ctx->akid_raw_issuer || ctx->cert->sig->auth_ids[0]) in x509_akid_note_serial()
808 ctx->cert->sig->auth_ids[0] = kid; in x509_akid_note_serial()