Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 25 of 61) sorted by relevance

123

/linux-6.15/crypto/
H A Drsa_helper.c21 size_t n_sz = vlen; in rsa_get_n()
41 key->n_sz = vlen; in rsa_get_n()
52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e()
56 key->e_sz = vlen; in rsa_get_e()
67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d()
71 key->d_sz = vlen; in rsa_get_d()
82 if (!value || !vlen || vlen > key->n_sz) in rsa_get_p()
97 if (!value || !vlen || vlen > key->n_sz) in rsa_get_q()
112 if (!value || !vlen || vlen > key->n_sz) in rsa_get_dp()
127 if (!value || !vlen || vlen > key->n_sz) in rsa_get_dq()
[all …]
H A Decdsa-x962.c30 const void *value, size_t vlen, in ecdsa_get_signature_rs() argument
36 if (!value || !vlen || vlen > bufsize + 1) in ecdsa_get_signature_rs()
43 if (vlen > bufsize) { in ecdsa_get_signature_rs()
46 vlen -= 1; in ecdsa_get_signature_rs()
53 ecc_digits_from_bytes(d, vlen, dest, ndigits); in ecdsa_get_signature_rs()
59 const void *value, size_t vlen) in ecdsa_get_signature_r() argument
63 return ecdsa_get_signature_rs(sig_ctx->sig.r, hdrlen, tag, value, vlen, in ecdsa_get_signature_r()
68 const void *value, size_t vlen) in ecdsa_get_signature_s() argument
72 return ecdsa_get_signature_rs(sig_ctx->sig.s, hdrlen, tag, value, vlen, in ecdsa_get_signature_s()
H A Decrdsa.c143 const void *value, size_t vlen) in ecrdsa_param_curve() argument
147 ctx->curve_oid = look_up_OID(value, vlen); in ecrdsa_param_curve()
156 const void *value, size_t vlen) in ecrdsa_param_digest() argument
159 int digest_oid = look_up_OID(value, vlen); in ecrdsa_param_digest()
167 const void *value, size_t vlen) in ecrdsa_parse_pub_key() argument
172 ctx->key_len = vlen; in ecrdsa_parse_pub_key()
/linux-6.15/crypto/asymmetric_keys/
H A Dx509_cert_parser.c309 vlen--; in x509_note_signature()
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()
563 vlen -= 2; in x509_process_extension()
590 if (vlen < 4) in x509_process_extension()
623 if (vlen < 2) in x509_process_extension()
625 if (v[1] != vlen - 2) in x509_process_extension()
667 if (vlen != 13) in x509_decode_time()
676 if (vlen != 15) in x509_decode_time()
[all …]
H A Dpkcs7_parser.c334 if (vlen != 1) in pkcs7_note_signeddata_version()
368 if (vlen != 1) in pkcs7_note_signerinfo_version()
423 vlen += hdrlen; in pkcs7_extract_cert()
491 ctx->msg->data_len = vlen; in pkcs7_note_data()
507 pr_devel("AuthAttr: %02x %zu [%*ph]\n", tag, vlen, (unsigned)vlen, value); in pkcs7_sig_note_authenticated_attr()
529 hdrlen, tag, value, vlen); in pkcs7_sig_note_authenticated_attr()
537 sinfo->msgdigest_len = vlen; in pkcs7_sig_note_authenticated_attr()
616 ctx->raw_serial_size = vlen; in pkcs7_sig_note_serial()
629 ctx->raw_issuer_size = vlen; in pkcs7_sig_note_issuer()
642 pr_devel("SKID: %02x %zu [%*ph]\n", tag, vlen, (unsigned)vlen, value); in pkcs7_sig_note_skid()
[all …]
H A Dmscode_parser.c38 const void *value, size_t vlen) in mscode_note_content_type() argument
42 oid = look_up_OID(value, vlen); in mscode_note_content_type()
46 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type()
70 const void *value, size_t vlen) in mscode_note_digest_algo() argument
76 oid = look_up_OID(value, vlen); in mscode_note_digest_algo()
101 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo()
118 const void *value, size_t vlen) in mscode_note_digest() argument
122 ctx->digest = kmemdup(value, vlen, GFP_KERNEL); in mscode_note_digest()
126 ctx->digest_len = vlen; in mscode_note_digest()
H A Dpkcs8_parser.c35 const void *value, size_t vlen) in pkcs8_note_OID() argument
39 ctx->last_oid = look_up_OID(value, vlen); in pkcs8_note_OID()
43 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs8_note_OID()
55 const void *value, size_t vlen) in pkcs8_note_version() argument
57 if (vlen != 1 || ((const u8 *)value)[0] != 0) { in pkcs8_note_version()
69 const void *value, size_t vlen) in pkcs8_note_algo() argument
85 const void *value, size_t vlen) in pkcs8_note_key() argument
90 ctx->key_size = vlen; in pkcs8_note_key()
/linux-6.15/fs/smb/server/
H A Dasn1.c163 const void *value, size_t vlen) in ksmbd_gssapi_this_mech() argument
167 oid = look_up_OID(value, vlen); in ksmbd_gssapi_this_mech()
171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech()
181 size_t vlen) in ksmbd_neg_token_init_mech_type() argument
187 oid = look_up_OID(value, vlen); in ksmbd_neg_token_init_mech_type()
199 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_neg_token_init_mech_type()
213 size_t vlen) in ksmbd_neg_token_alloc() argument
217 if (!vlen) in ksmbd_neg_token_alloc()
224 conn->mechTokenLen = (unsigned int)vlen; in ksmbd_neg_token_alloc()
231 size_t vlen) in ksmbd_neg_token_init_mech_token() argument
[all …]
/linux-6.15/fs/smb/client/
H A Dasn1.c23 unsigned char tag, const void *value, size_t vlen) in cifs_gssapi_this_mech() argument
27 oid = look_up_OID(value, vlen); in cifs_gssapi_this_mech()
31 sprint_oid(value, vlen, buf, sizeof(buf)); in cifs_gssapi_this_mech()
41 const void *value, size_t vlen) in cifs_neg_token_init_mech_type() argument
46 oid = look_up_OID(value, vlen); in cifs_neg_token_init_mech_type()
60 sprint_oid(value, vlen, buf, sizeof(buf)); in cifs_neg_token_init_mech_type()
/linux-6.15/tools/testing/selftests/bpf/
H A Dbtf_helpers.c92 __u32 vlen; in fprintf_btf_type_raw() local
98 vlen = btf_vlen(t); in fprintf_btf_type_raw()
128 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
129 for (i = 0; i < vlen; i++, m++) { in fprintf_btf_type_raw()
147 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw()
148 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw()
161 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw()
162 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw()
179 for (i = 0; i < vlen; i++, p++) { in fprintf_btf_type_raw()
192 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
[all …]
/linux-6.15/fs/
H A Dread_write.c1067 unsigned long vlen, rwf_t flags) in do_readv() argument
1090 unsigned long vlen, rwf_t flags) in do_writev() argument
1161 unsigned long, vlen) in SYSCALL_DEFINE3() argument
1163 return do_readv(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1167 unsigned long, vlen) in SYSCALL_DEFINE3() argument
1169 return do_writev(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1187 return do_readv(fd, vec, vlen, flags); in SYSCALL_DEFINE6()
1221 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1242 return do_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE5()
1255 return do_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE6()
[all …]
/linux-6.15/drivers/crypto/starfive/
H A Djh7110-rsa.c355 while (!*ptr && vlen) { in starfive_rsa_set_n()
357 vlen--; in starfive_rsa_set_n()
359 rsa_key->key_sz = vlen; in starfive_rsa_set_n()
386 while (!*ptr && vlen) { in starfive_rsa_set_e()
388 vlen--; in starfive_rsa_set_e()
392 if (!rsa_key->key_sz || !vlen || vlen > rsa_key->key_sz) { in starfive_rsa_set_e()
408 memcpy(rsa_key->e + (rsa_key->key_sz - vlen), ptr, vlen); in starfive_rsa_set_e()
421 while (!*ptr && vlen) { in starfive_rsa_set_d()
423 vlen--; in starfive_rsa_set_d()
428 if (!rsa_key->key_sz || !vlen || vlen > rsa_key->key_sz) in starfive_rsa_set_d()
[all …]
/linux-6.15/tools/lib/bpf/
H A Dbtf_dump.c316 __u16 vlen; in btf_dump_mark_referenced() local
320 vlen = btf_vlen(t); in btf_dump_mark_referenced()
485 __u16 vlen; in btf_dump_order_type() local
529 vlen = btf_vlen(t); in btf_dump_order_type()
595 vlen = btf_vlen(t); in btf_dump_order_type()
839 __u16 vlen; in btf_is_struct_packed() local
842 vlen = btf_vlen(t); in btf_is_struct_packed()
973 __u16 vlen = btf_vlen(t); in btf_dump_emit_struct_def() local
1020 if (vlen || t->size) { in btf_dump_emit_struct_def()
1128 if (!vlen) in btf_dump_emit_enum_def()
[all …]
H A Dbtf_iter.c22 it->vlen = 0; in btf_field_iter_init()
139 it->vlen = btf_vlen(t); in btf_field_iter_init()
172 if (it->m_idx < it->vlen) in btf_field_iter_next()
/linux-6.15/tools/bpf/bpftool/
H A Dbtf.c181 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
186 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
192 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
235 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
241 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
265 __u16 vlen = btf_vlen(t); in dump_btf_type() local
273 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
279 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
332 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
338 for (i = 0; i < vlen; i++, p++) { in dump_btf_type()
[all …]
H A Dbtf_dumper.c473 int i, vlen; in btf_dumper_struct() local
480 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
484 for (i = 0; i < vlen; i++) { in btf_dumper_struct()
532 int ret = 0, i, vlen; in btf_dumper_datasec() local
538 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
544 for (i = 0; i < vlen; i++) { in btf_dumper_datasec()
714 int i, vlen; in btf_dump_func() local
721 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
722 for (i = 0; i < vlen; i++) { in btf_dump_func()
/linux-6.15/security/keys/trusted-keys/
H A Dtrusted_tpm2.c144 const void *value, size_t vlen) in tpm2_key_parent() argument
151 for (i = 0; i < vlen; i++) { in tpm2_key_parent()
161 const void *value, size_t vlen) in tpm2_key_type() argument
163 enum OID oid = look_up_OID(value, vlen); in tpm2_key_type()
168 sprint_oid(value, vlen, buffer, sizeof(buffer)); in tpm2_key_type()
179 const void *value, size_t vlen) in tpm2_key_pub() argument
184 ctx->pub_len = vlen; in tpm2_key_pub()
191 const void *value, size_t vlen) in tpm2_key_priv() argument
196 ctx->priv_len = vlen; in tpm2_key_priv()
/linux-6.15/tools/bpf/bpftool/Documentation/
H A Dbpftool-btf.rst102 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
157 [2] UNION 'my_union' size=48 vlen=2
161 [4] STRUCT 'my_struct' size=48 vlen=6
177 [14] ENUM 'my_enum' size=4 vlen=2
183 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
190 [23] DATASEC 'data_sec' size=0 vlen=3
248 [104848] STRUCT 'i2c_smbus_alert' size=40 vlen=2
251 [104849] STRUCT 'alert_data' size=12 vlen=3
259 [104854] FUNC_PROTO '(anon)' ret_type_id=18 vlen=1
263 [104857] FUNC_PROTO '(anon)' ret_type_id=18 vlen=2
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_attr_sf.h26 static inline int xfs_attr_sf_entsize_byname(uint8_t nlen, uint8_t vlen) in xfs_attr_sf_entsize_byname() argument
28 return sizeof(struct xfs_attr_sf_entry) + nlen + vlen; in xfs_attr_sf_entsize_byname()
/linux-6.15/net/
H A Dcompat.c358 unsigned int vlen, unsigned int flags) in __compat_sys_sendmmsg() argument
360 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg()
365 unsigned int, vlen, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
367 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4()
406 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
409 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
415 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
418 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
/linux-6.15/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c983 size_t vlen) in qat_rsa_set_n() argument
992 vlen--; in qat_rsa_set_n()
995 ctx->key_sz = vlen; in qat_rsa_set_n()
1015 size_t vlen) in qat_rsa_set_e() argument
1023 vlen--; in qat_rsa_set_e()
1026 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) { in qat_rsa_set_e()
1035 memcpy(ctx->e + (ctx->key_sz - vlen), ptr, vlen); in qat_rsa_set_e()
1040 size_t vlen) in qat_rsa_set_d() argument
1049 vlen--; in qat_rsa_set_d()
1053 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in qat_rsa_set_d()
[all …]
/linux-6.15/arch/um/drivers/
H A Dvector_user.h89 unsigned int vlen,
95 unsigned int vlen,
/linux-6.15/Documentation/bpf/
H A Dbtf.rst133 * ``info.vlen``: 0
185 * ``info.vlen``: 0
197 * ``info.vlen``: 0
311 * ``info.vlen``: 0
323 * ``info.vlen``: 0
335 * ``info.vlen``: 0
347 * ``info.vlen``: 0
359 * ``info.vlen``: 0
472 * ``info.vlen``: 0
484 * ``info.vlen``: 0
[all …]
/linux-6.15/include/linux/
H A Dcompat.h622 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
625 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
629 unsigned long vlen, loff_t pos);
635 unsigned long vlen, loff_t pos);
769 unsigned vlen, unsigned int flags,
772 unsigned vlen, unsigned int flags,
783 unsigned vlen, unsigned int flags);
789 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
792 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
796 unsigned long vlen, loff_t pos, rwf_t flags);
[all …]
/linux-6.15/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c906 size_t vlen, bool private) in hpre_rsa_set_n() argument
912 ctx->key_sz = vlen; in hpre_rsa_set_n()
929 dma_free_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n()
935 memcpy(ctx->rsa.prikey + vlen, ptr, vlen); in hpre_rsa_set_n()
937 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
944 size_t vlen) in hpre_rsa_set_e() argument
950 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in hpre_rsa_set_e()
953 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e()
959 size_t vlen) in hpre_rsa_set_d() argument
965 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in hpre_rsa_set_d()
[all …]

123