Lines Matching full: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
438 const void *value, size_t vlen) in x509_note_issuer() argument
444 ctx->cert->raw_issuer_size = vlen; in x509_note_issuer()
447 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_note_issuer()
453 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->issuer, vlen); in x509_note_issuer()
458 const void *value, size_t vlen) in x509_note_subject() argument
462 ctx->cert->raw_subject_size = vlen; in x509_note_subject()
463 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->subject, vlen); in x509_note_subject()
471 const void *value, size_t vlen) in x509_note_params() argument
483 ctx->params_size = vlen + hdrlen; in x509_note_params()
492 const void *value, size_t vlen) in x509_extract_key_data() argument
532 if (vlen < 1 || *(const u8 *)value != 0) in x509_extract_key_data()
535 ctx->key_size = vlen - 1; in x509_extract_key_data()
547 const void *value, size_t vlen) in x509_process_extension() argument
557 if (ctx->cert->skid || vlen < 3) in x509_process_extension()
559 if (v[0] != ASN1_OTS || v[1] != vlen - 2) in x509_process_extension()
562 vlen -= 2; in x509_process_extension()
564 ctx->cert->raw_skid_size = vlen; in x509_process_extension()
566 kid = asymmetric_key_generate_id(v, vlen, "", 0); in x509_process_extension()
589 if (vlen < 4) in x509_process_extension()
597 else if (vlen > 4 && v[1] == 0x03 && (v[3] & 0x04)) in x509_process_extension()
605 ctx->raw_akid_size = vlen; in x509_process_extension()
621 * vlen should match the entire extension size in x509_process_extension()
625 if (vlen < 2) in x509_process_extension()
627 if (v[1] != vlen - 2) in x509_process_extension()
632 if (vlen >= 5 && v[2] == ASN1_BOOL && v[3] == 1 && v[4] == 0xFF) in x509_process_extension()
648 * @vlen: The size of the object value
662 const unsigned char *value, size_t vlen) in x509_decode_time() argument
674 if (vlen != 13) in x509_decode_time()
683 if (vlen != 15) in x509_decode_time()
728 tag, (int)vlen, value); in x509_decode_time()
732 tag, (int)vlen, value); in x509_decode_time()
739 const void *value, size_t vlen) in x509_note_not_before() argument
742 return x509_decode_time(&ctx->cert->valid_from, hdrlen, tag, value, vlen); in x509_note_not_before()
747 const void *value, size_t vlen) in x509_note_not_after() argument
750 return x509_decode_time(&ctx->cert->valid_to, hdrlen, tag, value, vlen); in x509_note_not_after()
758 const void *value, size_t vlen) in x509_akid_note_kid() argument
763 pr_debug("AKID: keyid: %*phN\n", (int)vlen, value); in x509_akid_note_kid()
768 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_akid_note_kid()
781 const void *value, size_t vlen) in x509_akid_note_name() argument
785 pr_debug("AKID: name: %*phN\n", (int)vlen, value); in x509_akid_note_name()
788 ctx->akid_raw_issuer_size = vlen; in x509_akid_note_name()
797 const void *value, size_t vlen) in x509_akid_note_serial() argument
802 pr_debug("AKID: serial: %*phN\n", (int)vlen, value); in x509_akid_note_serial()
808 vlen, in x509_akid_note_serial()