Lines Matching refs:sig

50 		public_key_signature_free(cert->sig);  in x509_free_certificate()
77 cert->sig = kzalloc(sizeof(struct public_key_signature), GFP_KERNEL); in x509_cert_parse()
78 if (!cert->sig) in x509_cert_parse()
207 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo()
211 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo()
215 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo()
219 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo()
223 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo()
227 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo()
231 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo()
235 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo()
239 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo()
243 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo()
247 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo()
251 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_pkey_algo()
255 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_pkey_algo()
259 ctx->cert->sig->hash_algo = "sm3"; in x509_note_pkey_algo()
264 ctx->cert->sig->pkey_algo = "rsa"; in x509_note_pkey_algo()
265 ctx->cert->sig->encoding = "pkcs1"; in x509_note_pkey_algo()
269 ctx->cert->sig->pkey_algo = "ecrdsa"; in x509_note_pkey_algo()
270 ctx->cert->sig->encoding = "raw"; in x509_note_pkey_algo()
274 ctx->cert->sig->pkey_algo = "sm2"; in x509_note_pkey_algo()
275 ctx->cert->sig->encoding = "raw"; in x509_note_pkey_algo()
279 ctx->cert->sig->pkey_algo = "ecdsa"; in x509_note_pkey_algo()
280 ctx->cert->sig->encoding = "x962"; in x509_note_pkey_algo()
302 if (strcmp(ctx->cert->sig->pkey_algo, "rsa") == 0 || in x509_note_signature()
303 strcmp(ctx->cert->sig->pkey_algo, "ecrdsa") == 0 || in x509_note_signature()
304 strcmp(ctx->cert->sig->pkey_algo, "sm2") == 0 || in x509_note_signature()
305 strcmp(ctx->cert->sig->pkey_algo, "ecdsa") == 0) { in x509_note_signature()
700 if (ctx->cert->sig->auth_ids[1]) in x509_akid_note_kid()
707 ctx->cert->sig->auth_ids[1] = kid; in x509_akid_note_kid()
739 if (!ctx->akid_raw_issuer || ctx->cert->sig->auth_ids[0]) in x509_akid_note_serial()
750 ctx->cert->sig->auth_ids[0] = kid; in x509_akid_note_serial()