Home
last modified time | relevance | path

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

123

/linux/crypto/
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 …]
A Decdsa.c36 const void *value, size_t vlen, unsigned int ndigits) in ecdsa_get_signature_rs() argument
39 ssize_t diff = vlen - keylen; in ecdsa_get_signature_rs()
43 if (!value || !vlen) in ecdsa_get_signature_rs()
54 vlen -= 1; in ecdsa_get_signature_rs()
69 memcpy(&rs[-diff], d, vlen); in ecdsa_get_signature_rs()
77 const void *value, size_t vlen) in ecdsa_get_signature_r() argument
81 return ecdsa_get_signature_rs(sig->r, hdrlen, tag, value, vlen, in ecdsa_get_signature_r()
86 const void *value, size_t vlen) in ecdsa_get_signature_s() argument
90 return ecdsa_get_signature_rs(sig->s, hdrlen, tag, value, vlen, in ecdsa_get_signature_s()
A Decrdsa.c151 const void *value, size_t vlen) in ecrdsa_param_curve() argument
155 ctx->curve_oid = look_up_OID(value, vlen); in ecrdsa_param_curve()
164 const void *value, size_t vlen) in ecrdsa_param_digest() argument
167 int digest_oid = look_up_OID(value, vlen); in ecrdsa_param_digest()
175 const void *value, size_t vlen) in ecrdsa_parse_pub_key() argument
180 ctx->key_len = vlen; in ecrdsa_parse_pub_key()
A Dsm2.c187 const void *value, size_t vlen) in sm2_get_signature_r() argument
191 if (!value || !vlen) in sm2_get_signature_r()
194 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r()
202 const void *value, size_t vlen) in sm2_get_signature_s() argument
206 if (!value || !vlen) in sm2_get_signature_s()
209 sig->sig_s = mpi_read_raw_data(value, vlen); in sm2_get_signature_s()
/linux/crypto/asymmetric_keys/
A Dx509_cert_parser.c311 vlen--; in x509_note_signature()
343 ctx->cn_size = vlen; in x509_extract_name_segment()
347 ctx->o_size = vlen; in x509_extract_name_segment()
351 ctx->email_size = vlen; in x509_extract_name_segment()
528 ctx->key_size = vlen - 1; in x509_extract_key_data()
555 vlen -= 2; in x509_process_extension()
609 if (vlen != 13) in x509_decode_time()
618 if (vlen != 15) in x509_decode_time()
663 tag, (int)vlen, value); in x509_decode_time()
667 tag, (int)vlen, value); in x509_decode_time()
[all …]
A Dpkcs7_parser.c314 if (vlen != 1) in pkcs7_note_signeddata_version()
348 if (vlen != 1) in pkcs7_note_signerinfo_version()
403 vlen += hdrlen; in pkcs7_extract_cert()
471 ctx->msg->data_len = vlen; in pkcs7_note_data()
487 pr_devel("AuthAttr: %02x %zu [%*ph]\n", tag, vlen, (unsigned)vlen, value); in pkcs7_sig_note_authenticated_attr()
509 hdrlen, tag, value, vlen); in pkcs7_sig_note_authenticated_attr()
517 sinfo->msgdigest_len = vlen; in pkcs7_sig_note_authenticated_attr()
596 ctx->raw_serial_size = vlen; in pkcs7_sig_note_serial()
609 ctx->raw_issuer_size = vlen; in pkcs7_sig_note_issuer()
622 pr_devel("SKID: %02x %zu [%*ph]\n", tag, vlen, (unsigned)vlen, value); in pkcs7_sig_note_skid()
[all …]
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()
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/fs/ksmbd/
A Dasn1.c67 vlen += 1; in asn1_oid_decode()
68 if (vlen < 2 || vlen > UINT_MAX / sizeof(unsigned long)) in asn1_oid_decode()
95 if (++(*oidlen) > vlen) in asn1_oid_decode()
253 const void *value, size_t vlen) in ksmbd_gssapi_this_mech() argument
279 size_t vlen) in ksmbd_neg_token_init_mech_type() argument
317 size_t vlen) in ksmbd_neg_token_init_mech_token() argument
325 memcpy(conn->mechToken, value, vlen); in ksmbd_neg_token_init_mech_token()
326 conn->mechToken[vlen] = '\0'; in ksmbd_neg_token_init_mech_token()
332 size_t vlen) in ksmbd_neg_token_targ_resp_token() argument
340 memcpy(conn->mechToken, value, vlen); in ksmbd_neg_token_targ_resp_token()
[all …]
/linux/fs/cifs/
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()
58 sprint_oid(value, vlen, buf, sizeof(buf)); in cifs_neg_token_init_mech_type()
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c90 __u32 vlen; in fprintf_btf_type_raw() local
96 vlen = btf_vlen(t); in fprintf_btf_type_raw()
125 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
126 for (i = 0; i < vlen; i++, m++) { in fprintf_btf_type_raw()
141 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
142 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw()
157 fprintf(out, " ret_type_id=%u vlen=%u", t->type, vlen); in fprintf_btf_type_raw()
158 for (i = 0; i < vlen; i++, p++) { in fprintf_btf_type_raw()
171 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
172 for (i = 0; i < vlen; i++, v++) { in fprintf_btf_type_raw()
/linux/fs/
A Dread_write.c932 unsigned long vlen, rwf_t flags) in do_readv() argument
956 unsigned long vlen, rwf_t flags) in do_writev() argument
1032 unsigned long, vlen) in SYSCALL_DEFINE3() argument
1034 return do_readv(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1038 unsigned long, vlen) in SYSCALL_DEFINE3() argument
1040 return do_writev(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1058 return do_readv(fd, vec, vlen, flags); in SYSCALL_DEFINE6()
1092 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1113 return do_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE5()
1126 return do_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE6()
[all …]
/linux/tools/bpf/bpftool/
A Dbtf.c166 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
171 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
177 for (i = 0; i < vlen; i++, m++) { in dump_btf_type()
212 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
217 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
223 for (i = 0; i < vlen; i++, v++) { in dump_btf_type()
262 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type() local
267 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
273 for (i = 0; i < vlen; i++, p++) { in dump_btf_type()
311 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
[all …]
A Dbtf_dumper.c439 int i, vlen; in btf_dumper_struct() local
446 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
450 for (i = 0; i < vlen; i++) { in btf_dumper_struct()
498 int ret = 0, i, vlen; in btf_dumper_datasec() local
504 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
510 for (i = 0; i < vlen; i++) { in btf_dumper_datasec()
677 int i, vlen; in btf_dump_func() local
684 vlen = BTF_INFO_VLEN(func_proto->info); in btf_dump_func()
685 for (i = 0; i < vlen; i++) { in btf_dump_func()
/linux/security/keys/trusted-keys/
A Dtrusted_tpm2.c131 const void *value, size_t vlen) in tpm2_key_parent() argument
138 for (i = 0; i < vlen; i++) { in tpm2_key_parent()
148 const void *value, size_t vlen) in tpm2_key_type() argument
150 enum OID oid = look_up_OID(value, vlen); in tpm2_key_type()
155 sprint_oid(value, vlen, buffer, sizeof(buffer)); in tpm2_key_type()
166 const void *value, size_t vlen) in tpm2_key_pub() argument
171 ctx->pub_len = vlen; in tpm2_key_pub()
178 const void *value, size_t vlen) in tpm2_key_priv() argument
183 ctx->priv_len = vlen; in tpm2_key_priv()
/linux/tools/bpf/bpftool/Documentation/
A Dbpftool-btf.rst98 [2] STRUCT 'dummy_tracepoint_args' size=16 vlen=2
153 [2] UNION 'my_union' size=48 vlen=2
157 [4] STRUCT 'my_struct' size=48 vlen=6
173 [14] ENUM 'my_enum' size=4 vlen=2
179 [18] FUNC_PROTO '(anon)' ret_type_id=3 vlen=2
186 [23] DATASEC 'data_sec' size=0 vlen=3
244 [104848] STRUCT 'i2c_smbus_alert' size=40 vlen=2
247 [104849] STRUCT 'alert_data' size=12 vlen=3
255 [104854] FUNC_PROTO '(anon)' ret_type_id=18 vlen=1
259 [104857] FUNC_PROTO '(anon)' ret_type_id=18 vlen=2
/linux/tools/lib/bpf/
A Dbtf_dump.c299 __u16 vlen; in btf_dump_mark_referenced() local
303 vlen = btf_vlen(t); in btf_dump_mark_referenced()
466 __u16 vlen; in btf_dump_order_type() local
510 vlen = btf_vlen(t); in btf_dump_order_type()
574 vlen = btf_vlen(t); in btf_dump_order_type()
816 __u16 vlen; in btf_is_struct_packed() local
824 vlen = btf_vlen(t); in btf_is_struct_packed()
898 __u16 vlen = btf_vlen(t); in btf_dump_emit_struct_def() local
937 if (vlen) in btf_dump_emit_struct_def()
981 __u16 vlen = btf_vlen(t); in btf_dump_emit_enum_def() local
[all …]
A Dbtf.c3391 __u16 vlen; in btf_equal_enum() local
3397 vlen = btf_vlen(t1); in btf_equal_enum()
3453 __u16 vlen; in btf_shallow_equal_struct() local
3459 vlen = btf_vlen(t1); in btf_shallow_equal_struct()
3551 __u16 vlen; in btf_equal_fnproto() local
3557 vlen = btf_vlen(t1); in btf_equal_fnproto()
3577 __u16 vlen; in btf_compat_fnproto() local
3584 vlen = btf_vlen(t1); in btf_compat_fnproto()
4017 __u16 vlen; in btf_dedup_is_equiv() local
4037 __u16 vlen; in btf_dedup_is_equiv() local
[all …]
/linux/net/
A Dcompat.c359 unsigned int vlen, unsigned int flags) in __compat_sys_sendmmsg() argument
361 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg()
366 unsigned int, vlen, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
368 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4()
407 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
410 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
416 unsigned int, vlen, unsigned int, flags, in COMPAT_SYSCALL_DEFINE5() argument
419 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE5()
/linux/drivers/crypto/qat/qat_common/
A Dqat_asym_algs.c923 size_t vlen) in qat_rsa_set_n() argument
932 vlen--; in qat_rsa_set_n()
935 ctx->key_sz = vlen; in qat_rsa_set_n()
955 size_t vlen) in qat_rsa_set_e() argument
963 vlen--; in qat_rsa_set_e()
966 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) { in qat_rsa_set_e()
975 memcpy(ctx->e + (ctx->key_sz - vlen), ptr, vlen); in qat_rsa_set_e()
980 size_t vlen) in qat_rsa_set_d() argument
989 vlen--; in qat_rsa_set_d()
993 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in qat_rsa_set_d()
[all …]
/linux/fs/xfs/libxfs/
A Dxfs_attr_sf.h33 static inline int xfs_attr_sf_entsize_byname(uint8_t nlen, uint8_t vlen) in xfs_attr_sf_entsize_byname() argument
35 return sizeof(struct xfs_attr_sf_entry) + nlen + vlen; in xfs_attr_sf_entsize_byname()
/linux/Documentation/bpf/
A Dbtf.rst130 * ``info.vlen``: 0
182 * ``info.vlen``: 0
194 * ``info.vlen``: 0
306 * ``info.vlen``: 0
318 * ``info.vlen``: 0
330 * ``info.vlen``: 0
342 * ``info.vlen``: 0
354 * ``info.vlen``: 0
366 * ``info.vlen``: 0
464 * ``info.vlen``: 0
[all …]
/linux/include/linux/
A Dcompat.h607 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
610 compat_ulong_t vlen, u32 pos_low, u32 pos_high);
614 unsigned long vlen, loff_t pos);
620 unsigned long vlen, loff_t pos);
804 unsigned vlen, unsigned int flags,
807 unsigned vlen, unsigned int flags,
818 unsigned vlen, unsigned int flags);
824 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
827 compat_ulong_t vlen, u32 pos_low, u32 pos_high, rwf_t flags);
831 unsigned long vlen, loff_t pos, rwf_t flags);
[all …]
/linux/drivers/crypto/hisilicon/hpre/
A Dhpre_crypto.c879 size_t vlen, bool private) in hpre_rsa_set_n() argument
885 ctx->key_sz = vlen; in hpre_rsa_set_n()
902 dma_free_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n()
908 memcpy(ctx->rsa.prikey + vlen, ptr, vlen); in hpre_rsa_set_n()
910 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
917 size_t vlen) in hpre_rsa_set_e() argument
923 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in hpre_rsa_set_e()
926 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e()
932 size_t vlen) in hpre_rsa_set_d() argument
938 if (!ctx->key_sz || !vlen || vlen > ctx->key_sz) in hpre_rsa_set_d()
[all …]
/linux/arch/um/drivers/
A Dvector_user.h91 unsigned int vlen,
97 unsigned int vlen,

Completed in 55 milliseconds

123