/freebsd/crypto/openssl/crypto/modes/ |
H A D | wrap128.c | 55 if ((inlen & 0x7) || (inlen < 16) || (inlen > CRYPTO128_WRAP_MAX)) in CRYPTO_128_wrap() 80 return inlen + 8; in CRYPTO_128_wrap() 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() 114 R = out + inlen - 8; in crypto_128_unwrap_raw() 128 return inlen; in crypto_128_unwrap_raw() 202 if (inlen == 0 || inlen >= CRYPTO128_WRAP_MAX) in CRYPTO_128_wrap_pad() 214 aiv[7] = inlen & 0xFF; in CRYPTO_128_wrap_pad() 267 if ((inlen & 0x7) != 0 || inlen < 16 || inlen >= CRYPTO128_WRAP_MAX) in CRYPTO_128_unwrap_pad() [all …]
|
/freebsd/contrib/smbfs/lib/smb/ |
H A D | nls.c | 106 size_t inlen, outlen; in nls_str_toloc() local 110 inlen = outlen = strlen(src); in nls_str_toloc() 114 inlen--; in nls_str_toloc() 129 size_t inlen, outlen; in nls_str_toext() local 137 inlen--; in nls_str_toext() 153 size_t inlen, outlen; in nls_mem_toloc() local 160 inlen = outlen = size; in nls_mem_toloc() 164 inlen--; in nls_mem_toloc() 179 size_t inlen, outlen; in nls_mem_toext() local 187 inlen = outlen = size; in nls_mem_toext() [all …]
|
/freebsd/sys/contrib/libb2/ |
H A D | blake2-dispatch.c | 161 int blake2b_update_ref( blake2b_state *S, const uint8_t *in, size_t inlen ); 191 int blake2b_update_avx( blake2b_state *S, const uint8_t *in, size_t inlen ); 198 int blake2b_update_xop( blake2b_state *S, const uint8_t *in, size_t inlen ); 467 return blake2b_update_ptr( S, in, inlen ); in blake2b_update_dispatch() 479 return blake2b_ptr( out, in, key, outlen, inlen, keylen ); in blake2b_dispatch() 499 return blake2b_update_ptr( S, in, inlen ); in blake2b_update() 509 return blake2b_ptr( out, in, key, outlen, inlen, keylen ); in blake2b() 533 return blake2s_update_ptr( S, in, inlen ); in blake2s_update_dispatch() 545 return blake2s_ptr( out, in, key, outlen, inlen, keylen ); in blake2s_dispatch() 565 return blake2s_update_ptr( S, in, inlen ); in blake2s_update() [all …]
|
H A D | blake2s.c | 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() 393 if ( NULL == in && inlen > 0 ) return -1; in blake2s() 412 if( blake2s_update( S, ( uint8_t * )in, inlen ) < 0) return -1; in blake2s() [all …]
|
H A D | blake2.h | 146 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 D | mockfs.cc | 555 uint32_t inlen = in.header.len; in audit_request() local 567 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 571 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 575 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 579 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 616 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 620 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 637 EXPECT_EQ(inlen, fih); in audit_request() 638 EXPECT_EQ((size_t)buflen, inlen); in audit_request() 642 EXPECT_EQ((size_t)buflen, inlen); in audit_request() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | transobj.h | 31 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); 59 int mlx5_core_create_rqt(struct mlx5_core_dev *dev, u32 *in, int inlen, [all …]
|
H A D | mlx5_transobj.c | 71 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rq() 84 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_rq() 116 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_sq() 129 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_sq() 162 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_tir() 189 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_tis() 197 int inlen) in mlx5_core_modify_tis() argument 204 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_tis() 226 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rmp() 300 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_xsrq() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | poly1305_internal_test.c | 1511 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 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; half += 16) { in test_siphash() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_block.c | 58 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 D | cryptosoft.c | 162 if (inlen == 0) in swcr_encdec() 175 inlen = blksz; in swcr_encdec() 193 inlen -= todo; in swcr_encdec() 441 if (inlen != 0) in swcr_gcm() 456 inlen = rounddown2(MIN(inlen, resid), blksz); in swcr_gcm() 483 if (inlen == 0) in swcr_gcm() 491 inlen = blksz; in swcr_gcm() 523 inlen -= todo; in swcr_gcm() 562 inlen = 0; in swcr_gcm() 897 inlen = 0; in swcr_ccm() [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_pwri.c | 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() 231 if (inlen < (size_t)(tmp[0] - 4)) { in kek_unwrap_key() 239 OPENSSL_clear_free(tmp, inlen); in kek_unwrap_key() 255 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key() 261 if (inlen > 0xFF) { in kek_wrap_key() 267 out[0] = (unsigned char)inlen; in kek_wrap_key() 271 memcpy(out + 4, in, inlen); in kek_wrap_key() 273 if (olen > inlen + 4 in kek_wrap_key() [all …]
|
/freebsd/crypto/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 21 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() 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() 191 if (!PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt_ex() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_blake2.h | 150 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 D | ossl_chacha20.c | 65 size_t resid, todo, inlen, outlen; in ossl_chacha20() local 90 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20() 93 inlen = CHACHA_BLK_SIZE; in ossl_chacha20() 137 inlen -= todo; in ossl_chacha20() 167 size_t resid, todo, inlen, outlen; in ossl_chacha20_poly1305_encrypt() local 218 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_encrypt() 221 inlen = CHACHA_BLK_SIZE; in ossl_chacha20_poly1305_encrypt() 266 inlen -= todo; in ossl_chacha20_poly1305_encrypt() 387 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20_poly1305_decrypt() 390 inlen = CHACHA_BLK_SIZE; in ossl_chacha20_poly1305_decrypt() [all …]
|
H A D | ossl_aes.c | 80 size_t plen, seglen, inlen, outlen; in ossl_aes_cbc() local 115 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_cbc() 125 if (inlen < blocklen) { in ossl_aes_cbc() 128 inlen = blocklen; in ossl_aes_cbc() 153 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_cbc() 157 inlen -= seglen; in ossl_aes_cbc() 177 size_t inlen, outlen, seglen; in ossl_aes_gcm() local 211 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_gcm() 212 seglen = MIN(alen, inlen); in ossl_aes_gcm() 229 inseg = crypto_cursor_segment(&cc_in, &inlen); in ossl_aes_gcm() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/ |
H A D | crypto_onetimeauth.c | 25 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 D | generichash_blake2b.c | 12 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/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/ |
H A D | onetimeauth_poly1305.c | 19 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/sys/libkern/ |
H A D | iconv_ucs.c | 194 inlen = 0; in iconv_ucs_conv() 214 if (inlen == 4) { in iconv_ucs_conv() 234 inlen = ir; in iconv_ucs_conv() 240 inlen = ir - inlen; in iconv_ucs_conv() 266 if (ir < inlen) { in iconv_ucs_conv() 313 src += inlen; in iconv_ucs_conv() 314 ir -= inlen; in iconv_ucs_conv() 324 src += inlen; in iconv_ucs_conv() 325 ir -= inlen; in iconv_ucs_conv() 333 src += inlen; in iconv_ucs_conv() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_auth/hmacsha512256/ |
H A D | auth_hmacsha512256.c | 49 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/contrib/unbound/util/ |
H A D | siphash.c | 77 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 D | hash_sha512_cp.c | 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() 250 for (i = 0; i < inlen; i++) { in crypto_hash_sha512_update() [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_pred1.c | 383 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() 413 lenn = htons(inlen & 0x7FFF); in ng_pred1_compress() 424 if (len < inlen) { in ng_pred1_compress() 432 outlen = 2 + inlen; in ng_pred1_compress() 466 int inlen; in ng_pred1_decompress() local 473 inlen = m->m_pkthdr.len; in ng_pred1_decompress() 475 if (inlen > PRED1_BUF_SIZE) { in ng_pred1_decompress() 491 priv->stats.InOctets += inlen; in ng_pred1_decompress() [all …]
|