Home
last modified time | relevance | path

Searched refs:inlen (Results 1 – 25 of 229) sorted by relevance

12345678910

/freebsd/crypto/openssl/crypto/modes/
H A Dwrap128.c50 const unsigned char *in, size_t inlen, in CRYPTO_128_wrap() argument
55 if ((inlen & 0x7) || (inlen < 16) || (inlen > CRYPTO128_WRAP_MAX)) in CRYPTO_128_wrap()
59 memmove(out + 8, in, inlen); in CRYPTO_128_wrap()
67 for (i = 0; i < inlen; i += 8, t++, R += 8) { in CRYPTO_128_wrap()
80 return inlen + 8; in CRYPTO_128_wrap()
101 const unsigned char *in, size_t inlen, in crypto_128_unwrap_raw() argument
106 inlen -= 8; in crypto_128_unwrap_raw()
107 if ((inlen & 0x7) || (inlen < 16) || (inlen > CRYPTO128_WRAP_MAX)) in crypto_128_unwrap_raw()
110 t = 6 * (inlen >> 3); in crypto_128_unwrap_raw()
112 memmove(out, in + 8, inlen); in crypto_128_unwrap_raw()
[all …]
/freebsd/contrib/smbfs/lib/smb/
H A Dnls.c106 size_t inlen, outlen; in nls_str_toloc() local
110 inlen = outlen = strlen(src); in nls_str_toloc()
112 while (iconv(nls_toloc, &src, &inlen, &p, &outlen) == -1) { in nls_str_toloc()
114 inlen--; in nls_str_toloc()
129 size_t inlen, outlen; in nls_str_toext() local
133 inlen = outlen = strlen(src); in nls_str_toext()
135 while (iconv(nls_toext, &src, &inlen, &p, &outlen) == -1) { in nls_str_toext()
137 inlen--; in nls_str_toext()
153 size_t inlen, outlen; in nls_mem_toloc() local
160 inlen = outlen = size; in nls_mem_toloc()
[all …]
/freebsd/sys/contrib/libb2/
H A Dblake2-dispatch.c161 int blake2b_update_ref( blake2b_state *S, const uint8_t *in, size_t inlen );
163 …int blake2b_ref( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_…
170 int blake2b_update_sse2( blake2b_state *S, const uint8_t *in, size_t inlen );
172 …int blake2b_sse2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size…
177 int blake2b_update_ssse3( blake2b_state *S, const uint8_t *in, size_t inlen );
179 …int blake2b_ssse3( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, siz…
184 int blake2b_update_sse41( blake2b_state *S, const uint8_t *in, size_t inlen );
186 …int blake2b_sse41( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, siz…
191 int blake2b_update_avx( blake2b_state *S, const uint8_t *in, size_t inlen );
193 …int blake2b_avx( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_…
[all …]
H A Dblake2s.c191 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen );
193 …int blake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke…
331 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ) in blake2s_update() argument
333 while( inlen > 0 ) in blake2s_update()
338 if( inlen > fill ) in blake2s_update()
347 inlen -= fill; in blake2s_update()
351 memcpy( S->buf + left, in, inlen ); in blake2s_update()
352 S->buflen += inlen; // Be lazy, do not compress in blake2s_update()
353 in += inlen; in blake2s_update()
354 inlen -= inlen; in blake2s_update()
[all …]
H A Dblake2.h146 BLAKE2_API int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen );
152 BLAKE2_API int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen );
157 BLAKE2_API int blake2sp_update( blake2sp_state *S, const uint8_t *in, size_t inlen );
162 BLAKE2_API int blake2bp_update( blake2bp_state *S, const uint8_t *in, size_t inlen );
166 …ake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
167 …ake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
169 …ke2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
170 …ke2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
172 …blake2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2() argument
174 return blake2b( out, in, key, outlen, inlen, keylen ); in blake2()
/freebsd/tests/sys/fs/fusefs/
H A Dmockfs.cc555 uint32_t inlen = in.header.len; in audit_request() local
562 EXPECT_GT(inlen, fih) << "Missing request filename"; in audit_request()
566 EXPECT_EQ(inlen, fih + sizeof(in.body.forget)); in audit_request()
567 EXPECT_EQ((size_t)buflen, inlen); in audit_request()
570 EXPECT_EQ(inlen, fih + sizeof(in.body.getattr)); in audit_request()
571 EXPECT_EQ((size_t)buflen, inlen); in audit_request()
574 EXPECT_EQ(inlen, fih + sizeof(in.body.setattr)); in audit_request()
575 EXPECT_EQ((size_t)buflen, inlen); in audit_request()
578 EXPECT_EQ(inlen, fih) << "Unexpected request body"; in audit_request()
579 EXPECT_EQ((size_t)buflen, inlen); in audit_request()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dtransobj.h31 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen,
33 int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 *in, int inlen);
36 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen,
38 int mlx5_core_modify_sq(struct mlx5_core_dev *dev, u32 *in, int inlen);
41 int mlx5_core_create_tir(struct mlx5_core_dev *dev, u32 *in, int inlen,
44 int mlx5_core_create_tis(struct mlx5_core_dev *dev, u32 *in, int inlen,
47 int inlen);
49 int mlx5_core_create_rmp(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rmpn);
50 int mlx5_core_modify_rmp(struct mlx5_core_dev *dev, u32 *in, int inlen);
54 int mlx5_core_create_xsrq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rmpn);
[all …]
H A Dmlx5_transobj.c64 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rqn) in mlx5_core_create_rq() argument
71 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rq()
78 int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 *in, int inlen) in mlx5_core_modify_rq() argument
84 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_rq()
109 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *sqn) in mlx5_core_create_sq() argument
116 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_sq()
123 int mlx5_core_modify_sq(struct mlx5_core_dev *dev, u32 *in, int inlen) in mlx5_core_modify_sq() argument
129 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_sq()
154 int mlx5_core_create_tir(struct mlx5_core_dev *dev, u32 *in, int inlen, in mlx5_core_create_tir() argument
162 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_tir()
[all …]
/freebsd/crypto/openssl/test/
H A Dpoly1305_internal_test.c1511 size_t inlen = test.input.size; in test_poly1305() local
1521 Poly1305_Update(&poly1305, in, inlen); in test_poly1305()
1529 if (inlen > 16) { in test_poly1305()
1532 Poly1305_Update(&poly1305, in+1, inlen-1); in test_poly1305()
1541 if (inlen > 32) { in test_poly1305()
1542 size_t half = inlen / 2; in test_poly1305()
1546 Poly1305_Update(&poly1305, in+half, inlen-half); in test_poly1305()
1554 for (half = 16; half < inlen; half += 16) { in test_poly1305()
1557 Poly1305_Update(&poly1305, in+half, inlen-half); in test_poly1305()
1562 idx, half, inlen-half); in test_poly1305()
H A Dsiphash_internal_test.c175 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; half += 16) { in test_siphash()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c58 const unsigned char **in, size_t *inlen) in ossl_cipher_fillblock() argument
66 if (*inlen < bufremain) in ossl_cipher_fillblock()
67 bufremain = *inlen; in ossl_cipher_fillblock()
70 *inlen -= bufremain; in ossl_cipher_fillblock()
73 return *inlen & blockmask; in ossl_cipher_fillblock()
81 const unsigned char **in, size_t *inlen) in ossl_cipher_trailingdata() argument
83 if (*inlen == 0) in ossl_cipher_trailingdata()
86 if (*buflen + *inlen > blocksize) { in ossl_cipher_trailingdata()
91 memcpy(buf + *buflen, *in, *inlen); in ossl_cipher_trailingdata()
92 *buflen += *inlen; in ossl_cipher_trailingdata()
[all …]
/freebsd/sys/opencrypto/
H A Dcryptosoft.c105 size_t inlen, outlen, todo; in swcr_encdec() local
160 inlen = outlen = 0; in swcr_encdec()
162 if (inlen == 0) in swcr_encdec()
163 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
172 if (inlen < blksz) { in swcr_encdec()
175 inlen = blksz; in swcr_encdec()
182 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), blksz); in swcr_encdec()
190 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
193 inlen -= todo; in swcr_encdec()
214 inblk = crypto_cursor_segment(&cc_in, &inlen); in swcr_encdec()
[all …]
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_pwri.c190 const unsigned char *in, size_t inlen, in kek_unwrap_key() argument
196 if (inlen < 2 * blocklen) { in kek_unwrap_key()
200 if (inlen % blocklen) { in kek_unwrap_key()
204 if ((tmp = OPENSSL_malloc(inlen)) == NULL) { in kek_unwrap_key()
209 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key()
210 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key()
217 tmp + inlen - blocklen, blocklen) in kek_unwrap_key()
219 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key()
224 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen)) in kek_unwrap_key()
231 if (inlen < (size_t)(tmp[0] - 4)) { in kek_unwrap_key()
[all …]
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_decr.c21 const unsigned char *in, int inlen, in PKCS12_pbe_crypt_ex() argument
46 max_out_len = inlen + EVP_CIPHER_CTX_get_block_size(ctx); in PKCS12_pbe_crypt_ex()
57 if (inlen < mac_len) { in PKCS12_pbe_crypt_ex()
61 inlen -= mac_len; in PKCS12_pbe_crypt_ex()
63 (int)mac_len, (unsigned char *)in+inlen) < 0) { in PKCS12_pbe_crypt_ex()
75 if (!EVP_CipherUpdate(ctx, out, &i, in, inlen)) { in PKCS12_pbe_crypt_ex()
117 const unsigned char *in, int inlen, in PKCS12_pbe_crypt() argument
120 return PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, data, datalen, in PKCS12_pbe_crypt()
180 int inlen; in PKCS12_item_i2d_encrypt_ex() local
186 inlen = ASN1_item_i2d(obj, &in, it); in PKCS12_item_i2d_encrypt_ex()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_blake2.h150 int blake2s_update( blake2s_state *S, const void *in, size_t inlen );
156 int blake2b_update( blake2b_state *S, const void *in, size_t inlen );
161 int blake2sp_update( blake2sp_state *S, const void *in, size_t inlen );
166 int blake2bp_update( blake2bp_state *S, const void *in, size_t inlen );
172 int blake2xs_update( blake2xs_state *S, const void *in, size_t inlen );
177 int blake2xb_update( blake2xb_state *S, const void *in, size_t inlen );
181 …int blake2s( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keyle…
182 …int blake2b( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keyle…
184 …int blake2sp( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keyl…
185 …int blake2bp( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keyl…
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c65 size_t resid, todo, inlen, outlen; in ossl_chacha20() local
82 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20()
90 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20()
93 inlen = CHACHA_BLK_SIZE; in ossl_chacha20()
103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20()
133 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20()
137 inlen -= todo; in ossl_chacha20()
167 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_encrypt() local
210 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_chacha20_poly1305_encrypt()
218 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_encrypt()
[all …]
H A Dossl_aes.c84 size_t plen, seglen, inlen, outlen; in ossl_aes_cbc() local
119 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_cbc()
129 if (inlen < blocklen) { in ossl_aes_cbc()
132 inlen = blocklen; in ossl_aes_cbc()
144 seglen = rounddown(MIN(plen, MIN(inlen, outlen)), blocklen); in ossl_aes_cbc()
157 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_cbc()
161 inlen -= seglen; in ossl_aes_cbc()
181 size_t inlen, outlen, seglen; in ossl_aes_gcm() local
215 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_gcm()
216 seglen = MIN(alen, inlen); in ossl_aes_gcm()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/
H A Dcrypto_onetimeauth.c25 unsigned long long inlen, const unsigned char *k) in crypto_onetimeauth() argument
27 return crypto_onetimeauth_poly1305(out, in, inlen, k); in crypto_onetimeauth()
32 unsigned long long inlen, const unsigned char *k) in crypto_onetimeauth_verify() argument
34 return crypto_onetimeauth_poly1305_verify(h, in, inlen, k); in crypto_onetimeauth_verify()
48 unsigned long long inlen) in crypto_onetimeauth_update() argument
51 ((crypto_onetimeauth_poly1305_state *) state, in, inlen); in crypto_onetimeauth_update()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/blake2b/ref/
H A Dgenerichash_blake2b.c12 const unsigned char *in, unsigned long long inlen, in crypto_generichash_blake2b() argument
16 keylen > BLAKE2B_KEYBYTES || inlen > UINT64_MAX) { in crypto_generichash_blake2b()
22 return blake2b((uint8_t *) out, in, key, (uint8_t) outlen, (uint64_t) inlen, in crypto_generichash_blake2b()
29 unsigned long long inlen, const unsigned char *key, size_t keylen, in crypto_generichash_blake2b_salt_personal() argument
33 keylen > BLAKE2B_KEYBYTES || inlen > UINT64_MAX) { in crypto_generichash_blake2b_salt_personal()
40 (uint64_t) inlen, (uint8_t) keylen, salt, in crypto_generichash_blake2b_salt_personal()
94 unsigned long long inlen) in crypto_generichash_blake2b_update() argument
96 return blake2b_update(state, (const uint8_t *) in, (uint64_t) inlen); in crypto_generichash_blake2b_update()
/freebsd/sys/libkern/
H A Diconv_ucs.c172 size_t in, on, ir, or, inlen, outlen, ucslen; in iconv_ucs_conv() local
194 inlen = 0; in iconv_ucs_conv()
195 code = utf8_to_ucs4(p, &inlen, ir); in iconv_ucs_conv()
214 if (inlen == 4) { in iconv_ucs_conv()
234 inlen = ir; in iconv_ucs_conv()
236 ret = iconv_convchr_case(dp->f_ctp, &p, &inlen, (char **)&q, in iconv_ucs_conv()
240 inlen = ir - inlen; in iconv_ucs_conv()
257 inlen = ucslen = 4; in iconv_ucs_conv()
264 inlen = ucslen = 2; in iconv_ucs_conv()
266 if (ir < inlen) { in iconv_ucs_conv()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/
H A Donetimeauth_poly1305.c19 unsigned long long inlen, const unsigned char *k) in crypto_onetimeauth_poly1305() argument
21 return implementation->onetimeauth(out, in, inlen, k); in crypto_onetimeauth_poly1305()
27 unsigned long long inlen, in crypto_onetimeauth_poly1305_verify() argument
30 return implementation->onetimeauth_verify(h, in, inlen, k); in crypto_onetimeauth_poly1305_verify()
43 unsigned long long inlen) in crypto_onetimeauth_poly1305_update() argument
45 return implementation->onetimeauth_update(state, in, inlen); in crypto_onetimeauth_poly1305_update()
/freebsd/contrib/unbound/util/
H A Dsiphash.c77 printf("(%3d) v0 %08x %08x\n", (int)inlen, (uint32_t)(v0 >> 32), \
79 printf("(%3d) v1 %08x %08x\n", (int)inlen, (uint32_t)(v1 >> 32), \
81 printf("(%3d) v2 %08x %08x\n", (int)inlen, (uint32_t)(v2 >> 32), \
83 printf("(%3d) v3 %08x %08x\n", (int)inlen, (uint32_t)(v3 >> 32), \
90 int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, in siphash() argument
101 const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t)); in siphash()
102 const int left = inlen & 7; in siphash()
103 uint64_t b = ((uint64_t)inlen) << 56; in siphash()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_hash/sha512/cp/
H A Dhash_sha512_cp.c211 const unsigned char *in, unsigned long long inlen) in crypto_hash_sha512_update() argument
218 if (inlen <= 0U) { in crypto_hash_sha512_update()
223 bitlen[1] = ((uint64_t) inlen) << 3; in crypto_hash_sha512_update()
224 bitlen[0] = ((uint64_t) inlen) >> 61; in crypto_hash_sha512_update()
231 if (inlen < 128 - r) { in crypto_hash_sha512_update()
232 for (i = 0; i < inlen; i++) { in crypto_hash_sha512_update()
242 inlen -= 128 - r; in crypto_hash_sha512_update()
244 while (inlen >= 128) { in crypto_hash_sha512_update()
247 inlen -= 128; in crypto_hash_sha512_update()
249 inlen &= 127; in crypto_hash_sha512_update()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_auth/hmacsha512256/
H A Dauth_hmacsha512256.c49 unsigned long long inlen) in crypto_auth_hmacsha512256_update() argument
52 in, inlen); in crypto_auth_hmacsha512256_update()
69 unsigned long long inlen, const unsigned char *k) in crypto_auth_hmacsha512256() argument
75 crypto_auth_hmacsha512256_update(&state, in, inlen); in crypto_auth_hmacsha512256()
84 unsigned long long inlen, in crypto_auth_hmacsha512256_verify() argument
89 crypto_auth_hmacsha512256(correct, in, inlen, k); in crypto_auth_hmacsha512256_verify()
/freebsd/sys/netgraph/
H A Dng_pred1.c383 int outlen, inlen; in ng_pred1_compress() local
391 inlen = m->m_pkthdr.len; in ng_pred1_compress()
394 priv->stats.InOctets += inlen; in ng_pred1_compress()
397 if (inlen > (PRED1_BUF_SIZE*8/9 + 1 + 4)) { in ng_pred1_compress()
411 m_copydata(m, 0, inlen, (caddr_t)(priv->inbuf + 2)); in ng_pred1_compress()
413 lenn = htons(inlen & 0x7FFF); in ng_pred1_compress()
417 fcs = Crc16(fcs, priv->inbuf + 2, inlen); in ng_pred1_compress()
421 len = Pred1Compress(node, priv->inbuf + 2, priv->outbuf + 2, inlen); in ng_pred1_compress()
424 if (len < inlen) { in ng_pred1_compress()
432 outlen = 2 + inlen; in ng_pred1_compress()
[all …]

12345678910