Lines Matching refs:vlen

143 	     const void *value, size_t vlen)  in x509_note_OID()  argument
147 ctx->last_oid = look_up_OID(value, vlen); in x509_note_OID()
150 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID()
163 const void *value, size_t vlen) in x509_note_tbs_certificate() argument
168 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate()
171 ctx->cert->tbs_size = vlen + hdrlen; in x509_note_tbs_certificate()
179 const void *value, size_t vlen) in x509_note_sig_algo() argument
284 const void *value, size_t vlen) in x509_note_signature() argument
288 pr_debug("Signature: alg=%u, size=%zu\n", ctx->last_oid, vlen); in x509_note_signature()
305 if (vlen < 1 || *(const u8 *)value != 0) in x509_note_signature()
309 vlen--; in x509_note_signature()
313 ctx->cert->raw_sig_size = vlen; in x509_note_signature()
322 const void *value, size_t vlen) in x509_note_serial() argument
326 ctx->cert->raw_serial_size = vlen; in x509_note_serial()
335 const void *value, size_t vlen) in x509_extract_name_segment() argument
341 ctx->cn_size = vlen; in x509_extract_name_segment()
345 ctx->o_size = vlen; in x509_extract_name_segment()
349 ctx->email_size = vlen; in x509_extract_name_segment()
364 char **_name, size_t vlen) in x509_fabricate_name() argument
439 const void *value, size_t vlen) in x509_note_issuer() argument
445 ctx->cert->raw_issuer_size = vlen; in x509_note_issuer()
448 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_note_issuer()
454 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->issuer, vlen); in x509_note_issuer()
459 const void *value, size_t vlen) in x509_note_subject() argument
463 ctx->cert->raw_subject_size = vlen; in x509_note_subject()
464 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->subject, vlen); in x509_note_subject()
472 const void *value, size_t vlen) in x509_note_params() argument
484 ctx->params_size = vlen + hdrlen; in x509_note_params()
493 const void *value, size_t vlen) in x509_extract_key_data() argument
533 if (vlen < 1 || *(const u8 *)value != 0) in x509_extract_key_data()
536 ctx->key_size = vlen - 1; in x509_extract_key_data()
548 const void *value, size_t vlen) in x509_process_extension() argument
558 if (ctx->cert->skid || vlen < 3) in x509_process_extension()
560 if (v[0] != ASN1_OTS || v[1] != vlen - 2) in x509_process_extension()
563 vlen -= 2; in x509_process_extension()
565 ctx->cert->raw_skid_size = vlen; in x509_process_extension()
567 kid = asymmetric_key_generate_id(v, vlen, "", 0); in x509_process_extension()
590 if (vlen < 4) in x509_process_extension()
598 else if (vlen > 4 && v[1] == 0x03 && (v[3] & 0x04)) in x509_process_extension()
606 ctx->raw_akid_size = vlen; in x509_process_extension()
623 if (vlen < 2) in x509_process_extension()
625 if (v[1] != vlen - 2) in x509_process_extension()
627 if (vlen >= 4 && v[1] != 0 && v[2] == ASN1_BOOL && v[3] == 1) in x509_process_extension()
655 const unsigned char *value, size_t vlen) in x509_decode_time() argument
667 if (vlen != 13) in x509_decode_time()
676 if (vlen != 15) in x509_decode_time()
721 tag, (int)vlen, value); in x509_decode_time()
725 tag, (int)vlen, value); in x509_decode_time()
732 const void *value, size_t vlen) in x509_note_not_before() argument
735 return x509_decode_time(&ctx->cert->valid_from, hdrlen, tag, value, vlen); in x509_note_not_before()
740 const void *value, size_t vlen) in x509_note_not_after() argument
743 return x509_decode_time(&ctx->cert->valid_to, hdrlen, tag, value, vlen); in x509_note_not_after()
751 const void *value, size_t vlen) in x509_akid_note_kid() argument
756 pr_debug("AKID: keyid: %*phN\n", (int)vlen, value); in x509_akid_note_kid()
761 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_akid_note_kid()
774 const void *value, size_t vlen) in x509_akid_note_name() argument
778 pr_debug("AKID: name: %*phN\n", (int)vlen, value); in x509_akid_note_name()
781 ctx->akid_raw_issuer_size = vlen; in x509_akid_note_name()
790 const void *value, size_t vlen) in x509_akid_note_serial() argument
795 pr_debug("AKID: serial: %*phN\n", (int)vlen, value); in x509_akid_note_serial()
801 vlen, in x509_akid_note_serial()