Lines Matching refs:sig
61 public_key_signature_free(cert->sig); in x509_free_certificate()
88 cert->sig = kzalloc(sizeof(struct public_key_signature), GFP_KERNEL); in x509_cert_parse()
89 if (!cert->sig) in x509_cert_parse()
218 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo()
222 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo()
226 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo()
230 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo()
234 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo()
238 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo()
242 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_pkey_algo()
246 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_pkey_algo()
251 ctx->cert->sig->pkey_algo = "rsa"; in x509_note_pkey_algo()
252 ctx->cert->sig->encoding = "pkcs1"; in x509_note_pkey_algo()
256 ctx->cert->sig->pkey_algo = "ecrdsa"; in x509_note_pkey_algo()
257 ctx->cert->sig->encoding = "raw"; in x509_note_pkey_algo()
279 if (strcmp(ctx->cert->sig->pkey_algo, "rsa") == 0 || in x509_note_signature()
280 strcmp(ctx->cert->sig->pkey_algo, "ecrdsa") == 0) { in x509_note_signature()
649 if (ctx->cert->sig->auth_ids[1]) in x509_akid_note_kid()
656 ctx->cert->sig->auth_ids[1] = kid; in x509_akid_note_kid()
688 if (!ctx->akid_raw_issuer || ctx->cert->sig->auth_ids[0]) in x509_akid_note_serial()
699 ctx->cert->sig->auth_ids[0] = kid; in x509_akid_note_serial()