Lines Matching refs:vlen

155 	     const void *value, size_t vlen)  in x509_note_OID()  argument
159 ctx->last_oid = look_up_OID(value, vlen); in x509_note_OID()
162 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID()
175 const void *value, size_t vlen) in x509_note_tbs_certificate() argument
180 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate()
183 ctx->cert->tbs_size = vlen + hdrlen; in x509_note_tbs_certificate()
191 const void *value, size_t vlen) in x509_note_sig_algo() argument
287 const void *value, size_t vlen) in x509_note_signature() argument
291 pr_debug("Signature: alg=%u, size=%zu\n", ctx->last_oid, vlen); in x509_note_signature()
309 if (vlen < 1 || *(const u8 *)value != 0) in x509_note_signature()
313 vlen--; in x509_note_signature()
317 ctx->cert->raw_sig_size = vlen; in x509_note_signature()
326 const void *value, size_t vlen) in x509_note_serial() argument
330 ctx->cert->raw_serial_size = vlen; in x509_note_serial()
339 const void *value, size_t vlen) in x509_extract_name_segment() argument
345 ctx->cn_size = vlen; in x509_extract_name_segment()
349 ctx->o_size = vlen; in x509_extract_name_segment()
353 ctx->email_size = vlen; in x509_extract_name_segment()
368 char **_name, size_t vlen) in x509_fabricate_name() argument
443 const void *value, size_t vlen) in x509_note_issuer() argument
449 ctx->cert->raw_issuer_size = vlen; in x509_note_issuer()
452 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_note_issuer()
458 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->issuer, vlen); in x509_note_issuer()
463 const void *value, size_t vlen) in x509_note_subject() argument
467 ctx->cert->raw_subject_size = vlen; in x509_note_subject()
468 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->subject, vlen); in x509_note_subject()
476 const void *value, size_t vlen) in x509_note_params() argument
488 ctx->params_size = vlen + hdrlen; in x509_note_params()
497 const void *value, size_t vlen) in x509_extract_key_data() argument
540 if (vlen < 1 || *(const u8 *)value != 0) in x509_extract_key_data()
543 ctx->key_size = vlen - 1; in x509_extract_key_data()
555 const void *value, size_t vlen) in x509_process_extension() argument
565 if (ctx->cert->skid || vlen < 3) in x509_process_extension()
567 if (v[0] != ASN1_OTS || v[1] != vlen - 2) in x509_process_extension()
570 vlen -= 2; in x509_process_extension()
572 ctx->cert->raw_skid_size = vlen; in x509_process_extension()
574 kid = asymmetric_key_generate_id(v, vlen, "", 0); in x509_process_extension()
585 ctx->raw_akid_size = vlen; in x509_process_extension()
612 const unsigned char *value, size_t vlen) in x509_decode_time() argument
624 if (vlen != 13) in x509_decode_time()
633 if (vlen != 15) in x509_decode_time()
678 tag, (int)vlen, value); in x509_decode_time()
682 tag, (int)vlen, value); in x509_decode_time()
689 const void *value, size_t vlen) in x509_note_not_before() argument
692 return x509_decode_time(&ctx->cert->valid_from, hdrlen, tag, value, vlen); in x509_note_not_before()
697 const void *value, size_t vlen) in x509_note_not_after() argument
700 return x509_decode_time(&ctx->cert->valid_to, hdrlen, tag, value, vlen); in x509_note_not_after()
708 const void *value, size_t vlen) in x509_akid_note_kid() argument
713 pr_debug("AKID: keyid: %*phN\n", (int)vlen, value); in x509_akid_note_kid()
718 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_akid_note_kid()
731 const void *value, size_t vlen) in x509_akid_note_name() argument
735 pr_debug("AKID: name: %*phN\n", (int)vlen, value); in x509_akid_note_name()
738 ctx->akid_raw_issuer_size = vlen; in x509_akid_note_name()
747 const void *value, size_t vlen) in x509_akid_note_serial() argument
752 pr_debug("AKID: serial: %*phN\n", (int)vlen, value); in x509_akid_note_serial()
758 vlen, in x509_akid_note_serial()