/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | sha512-internal.c | 183 @param inlen The length of the data (octets) 187 unsigned long inlen) in sha512_process() 194 while (inlen > 0) { in sha512_process() 195 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process() 200 inlen -= SHA512_BLOCK_SIZE; in sha512_process() 202 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process() 206 inlen -= n; in sha512_process() 186 sha512_process(struct sha512_state *md, const unsigned char *in, unsigned long inlen) sha512_process() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | sha512-internal.c | 183 @param inlen The length of the data (octets) 187 unsigned long inlen) in sha512_process() 194 while (inlen > 0) { in sha512_process() 195 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process() 200 inlen -= SHA512_BLOCK_SIZE; in sha512_process() 202 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process() 206 inlen -= n; in sha512_process() 186 sha512_process(struct sha512_state *md, const unsigned char *in, unsigned long inlen) sha512_process() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_cmd.c | 316 unsigned int inlen; in mlx5dr_cmd_set_fte_modify_and_vport() local 321 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport() 324 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport() 345 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_set_fte_modify_and_vport() 372 u32 inlen; in mlx5dr_cmd_alloc_modify_header() local 376 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + in mlx5dr_cmd_alloc_modify_header() 378 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header() 389 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_alloc_modify_header() 419 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group() local 423 in = kvzalloc(inlen, GFP_KERNE in mlx5dr_cmd_create_empty_flow_group() 538 size_t inlen, cmd_data_sz, cmd_total_sz; mlx5dr_cmd_create_reformat_ctx() local 793 unsigned int inlen; mlx5dr_cmd_set_fte() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/pem/ |
H A D | pvkfmt.c | 844 int enctmplen, inlen; in do_PVK_body_key() local 848 inlen = cb(psbuf, PEM_BUFSIZE, 0, u); in do_PVK_body_key() 850 inlen = PEM_def_callback(psbuf, PEM_BUFSIZE, 0, u); in do_PVK_body_key() 851 if (inlen < 0) { in do_PVK_body_key() 861 (unsigned char *)psbuf, inlen, libctx, propq)) in do_PVK_body_key() 871 inlen = keylen - 8; in do_PVK_body_key() 877 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key() 887 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key() 1057 int enctmplen, inlen; in i2b_PVK() local 1059 inlen in i2b_PVK() [all...] |
/third_party/openssl/crypto/pem/ |
H A D | pvkfmt.c | 844 int enctmplen, inlen; in do_PVK_body_key() local 848 inlen = cb(psbuf, PEM_BUFSIZE, 0, u); in do_PVK_body_key() 850 inlen = PEM_def_callback(psbuf, PEM_BUFSIZE, 0, u); in do_PVK_body_key() 851 if (inlen < 0) { in do_PVK_body_key() 861 (unsigned char *)psbuf, inlen, libctx, propq)) in do_PVK_body_key() 871 inlen = keylen - 8; in do_PVK_body_key() 877 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key() 887 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key() 1057 int enctmplen, inlen; in i2b_PVK() local 1059 inlen in i2b_PVK() [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | sm2.c | 221 unsigned int inlen; in sm2_z_digest_update() local 223 in = mpi_get_buffer(m, &inlen, NULL); in sm2_z_digest_update() 227 if (inlen < pbytes) { in sm2_z_digest_update() 229 crypto_sm3_update(desc, zero, pbytes - inlen); in sm2_z_digest_update() 230 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update() 231 } else if (inlen > pbytes) { in sm2_z_digest_update() 233 crypto_sm3_update(desc, in + inlen - pbytes, pbytes); in sm2_z_digest_update() 235 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | mcdi.h | 146 size_t inlen, efx_dword_t *outbuf, size_t outlen, 149 const efx_dword_t *inbuf, size_t inlen, 154 const efx_dword_t *inbuf, size_t inlen); 155 int efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen, 159 size_t inlen, efx_dword_t *outbuf, 167 const efx_dword_t *inbuf, size_t inlen, size_t outlen, 171 const efx_dword_t *inbuf, size_t inlen, 177 size_t inlen, efx_dword_t *outbuf,
|
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/core/ |
H A D | resources.c | 53 int inlen; in create_uctx() local 61 inlen = MLX5_ST_SZ_BYTES(create_uctx_in); in create_uctx() 62 in = kzalloc(inlen, GFP_KERNEL); in create_uctx() 69 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in create_uctx() 112 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn) in mlx5_vdpa_create_rqt() argument 118 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in mlx5_vdpa_create_rqt() 185 int inlen) in mlx5_vdpa_create_mkey() 195 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, lout, sizeof(lout)); in mlx5_vdpa_create_mkey() 184 mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in, int inlen) mlx5_vdpa_create_mkey() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.h | 146 const efx_dword_t *inbuf, size_t inlen, 150 const efx_dword_t *inbuf, size_t inlen, 155 const efx_dword_t *inbuf, size_t inlen); 157 size_t inlen, efx_dword_t *outbuf, size_t outlen, 160 size_t inlen, efx_dword_t *outbuf, 168 const efx_dword_t *inbuf, size_t inlen, 173 const efx_dword_t *inbuf, size_t inlen, 179 size_t inlen, efx_dword_t *outbuf,
|
/kernel/linux/linux-6.6/crypto/ |
H A D | sm2.c | 227 unsigned int inlen; in sm2_z_digest_update() local 230 in = mpi_get_buffer(m, &inlen, NULL); in sm2_z_digest_update() 234 if (inlen < pbytes) { in sm2_z_digest_update() 236 err = crypto_shash_update(desc, zero, pbytes - inlen) ?: in sm2_z_digest_update() 237 crypto_shash_update(desc, in, inlen); in sm2_z_digest_update() 238 } else if (inlen > pbytes) { in sm2_z_digest_update() 240 err = crypto_shash_update(desc, in + inlen - pbytes, pbytes); in sm2_z_digest_update() 242 err = crypto_shash_update(desc, in, inlen); in sm2_z_digest_update()
|
/third_party/node/deps/openssl/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 69 const unsigned char *in, size_t inlen, in hash_df() 105 && EVP_DigestUpdate(ctx, in, inlen) in hash_df() 142 * where dst size is drbg->seedlen, and inlen <= drbg->seedlen. 145 unsigned char *in, size_t inlen) in add_bytes() 152 assert(drbg->seedlen >= 1 && inlen >= 1 && inlen <= drbg->seedlen); in add_bytes() 155 add = &in[inlen - 1]; in add_bytes() 157 for (i = inlen; i > 0; i--, d--, add--) { in add_bytes() 164 /* Add the carry to the top of the dst if inlen is not the same size */ in add_bytes() 165 for (i = drbg->seedlen - inlen; in add_bytes() 67 hash_df(PROV_DRBG *drbg, unsigned char *out, const unsigned char inbyte, const unsigned char *in, size_t inlen, const unsigned char *in2, size_t in2len, const unsigned char *in3, size_t in3len) hash_df() argument 144 add_bytes(PROV_DRBG *drbg, unsigned char *dst, unsigned char *in, size_t inlen) add_bytes() argument [all...] |
/third_party/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 69 const unsigned char *in, size_t inlen, in hash_df() 105 && EVP_DigestUpdate(ctx, in, inlen) in hash_df() 142 * where dst size is drbg->seedlen, and inlen <= drbg->seedlen. 145 unsigned char *in, size_t inlen) in add_bytes() 152 assert(drbg->seedlen >= 1 && inlen >= 1 && inlen <= drbg->seedlen); in add_bytes() 155 add = &in[inlen - 1]; in add_bytes() 157 for (i = inlen; i > 0; i--, d--, add--) { in add_bytes() 164 /* Add the carry to the top of the dst if inlen is not the same size */ in add_bytes() 165 for (i = drbg->seedlen - inlen; in add_bytes() 67 hash_df(PROV_DRBG *drbg, unsigned char *out, const unsigned char inbyte, const unsigned char *in, size_t inlen, const unsigned char *in2, size_t in2len, const unsigned char *in3, size_t in3len) hash_df() argument 144 add_bytes(PROV_DRBG *drbg, unsigned char *dst, unsigned char *in, size_t inlen) add_bytes() argument [all...] |
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 379 int inlen = MLX5_ST_SZ_BYTES(create_qp_in); in qp_create() local 394 inlen += vqp->frag_buf.npages * sizeof(__be64); in qp_create() 397 in = kzalloc(inlen, GFP_KERNEL); in qp_create() 412 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in qp_create() 515 int inlen; in cq_create() local 535 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in cq_create() 537 in = kzalloc(inlen, GFP_KERNEL); in cq_create() 563 err = mlx5_core_create_cq(mdev, &vcq->mcq, in, inlen, out, sizeof(out)); in cq_create() 632 int inlen; in create_umem() local 645 inlen in create_umem() 763 int inlen = MLX5_ST_SZ_BYTES(create_virtio_net_q_in); create_virtqueue() local 860 alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inlen, void **out, int *outlen, u32 qpn, u32 rqpn) alloc_inout() argument 958 int inlen; modify_qp() local 1048 int inlen = MLX5_ST_SZ_BYTES(modify_virtio_net_q_in); modify_virtqueue() local 1179 int inlen; create_rqt() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | pkcs1.h | 16 int use_private, const u8 *in, size_t inlen, 19 const u8 *in, size_t inlen,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | pkcs1.h | 16 int use_private, const u8 *in, size_t inlen, 19 const u8 *in, size_t inlen,
|
/kernel/linux/linux-5.10/fs/nls/ |
H A D | nls_base.c | 55 int utf8_to_utf32(const u8 *s, int inlen, unicode_t *pu) in utf8_to_utf32() argument 74 if (inlen <= nc) in utf8_to_utf32() 132 int utf8s_to_utf16s(const u8 *s, int inlen, enum utf16_endian endian, in utf8s_to_utf16s() argument 140 while (inlen > 0 && maxout > 0 && *s) { in utf8s_to_utf16s() 142 size = utf8_to_utf32(s, inlen, &u); in utf8s_to_utf16s() 146 inlen -= size; in utf8s_to_utf16s() 166 inlen--; in utf8s_to_utf16s() 186 int utf16s_to_utf8s(const wchar_t *pwcs, int inlen, enum utf16_endian endian, in utf16s_to_utf8s() argument 194 while (inlen > 0 && maxout > 0) { in utf16s_to_utf8s() 199 inlen in utf16s_to_utf8s() [all...] |
/kernel/linux/linux-6.6/fs/nls/ |
H A D | nls_base.c | 55 int utf8_to_utf32(const u8 *s, int inlen, unicode_t *pu) in utf8_to_utf32() argument 74 if (inlen <= nc) in utf8_to_utf32() 132 int utf8s_to_utf16s(const u8 *s, int inlen, enum utf16_endian endian, in utf8s_to_utf16s() argument 140 while (inlen > 0 && maxout > 0 && *s) { in utf8s_to_utf16s() 142 size = utf8_to_utf32(s, inlen, &u); in utf8s_to_utf16s() 146 inlen -= size; in utf8s_to_utf16s() 166 inlen--; in utf8s_to_utf16s() 186 int utf16s_to_utf8s(const wchar_t *pwcs, int inlen, enum utf16_endian endian, in utf16s_to_utf8s() argument 194 while (inlen > 0 && maxout > 0) { in utf16s_to_utf8s() 199 inlen in utf16s_to_utf8s() [all...] |
/third_party/openssl/test/ |
H A D | siphash_internal_test.c | 175 size_t inlen = test.idx; in test_siphash() local 188 if (!TEST_int_le(inlen, sizeof(in))) in test_siphash() 195 for (i = 0; i < inlen; i++) in test_siphash() 201 SipHash_Update(&siphash, in, inlen); in test_siphash() 206 if (inlen > 16) { in test_siphash() 211 SipHash_Update(&siphash, in+1, inlen-1); in test_siphash() 221 if (inlen > 32) { in test_siphash() 222 size_t half = inlen / 2; in test_siphash() 228 SipHash_Update(&siphash, in+half, inlen-half); in test_siphash() 237 for (half = 16; half < inlen; hal in test_siphash() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | qos.c | 35 int inlen; in MLX5_IB_METHOD_PP_OBJ_ALLOC() local 54 inlen = uverbs_attr_get_len(attrs, in MLX5_IB_METHOD_PP_OBJ_ALLOC() 56 memcpy(rl_raw, in_ctx, inlen); in MLX5_IB_METHOD_PP_OBJ_ALLOC()
|
/kernel/linux/linux-6.6/drivers/vdpa/mlx5/core/ |
H A D | mlx5_vdpa.h | 105 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn); 106 int mlx5_vdpa_modify_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 rqtn); 115 int inlen);
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | qos.c | 35 int inlen; in MLX5_IB_METHOD_PP_OBJ_ALLOC() local 54 inlen = uverbs_attr_get_len(attrs, in MLX5_IB_METHOD_PP_OBJ_ALLOC() 56 memcpy(rl_raw, in_ctx, inlen); in MLX5_IB_METHOD_PP_OBJ_ALLOC()
|
/kernel/linux/linux-5.10/lib/crypto/ |
H A D | blake2s.c | 19 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument 21 __blake2s_update(state, in, inlen, false); in blake2s_update()
|
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
H A D | aes.rs | 30 inlen: c_uint, in AES_wrap_key() 38 inlen: c_uint, in AES_unwrap_key()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | cipher_ctx.rs | 588 let inlen = c_int::try_from(input.len()).unwrap(); in cipher_update_unchecked() 597 inlen, in cipher_update_unchecked() 618 /// `data` buffer. The `inlen` parameter specifies the number of bytes in 634 inlen: usize, in cipher_update_inplace() 636 assert!(inlen <= data.len(), "Input size may not exceed buffer size"); in cipher_update_inplace() 640 data.len() >= inlen + block_size, in cipher_update_inplace() 642 inlen + block_size in cipher_update_inplace() 646 let inlen = c_int::try_from(inlen).unwrap(); in cipher_update_inplace() 654 inlen, in cipher_update_inplace() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | vport.c | 179 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_mac_address() local 184 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_mac_address() 232 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_mtu() local 236 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_mtu() 462 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_node_guid() local 470 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_node_guid() 797 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_promisc() local 800 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_promisc() 829 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_nic_vport_update_local_lb() local 837 in = kvzalloc(inlen, GFP_KERNE in mlx5_nic_vport_update_local_lb() 905 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); mlx5_nic_vport_update_roce_state() local 1073 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); mlx5_nic_vport_affiliate_multiport() local 1107 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); mlx5_nic_vport_unaffiliate_multiport() local [all...] |