| /f-stack/freebsd/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 | 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()
|
| 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 | blake2sp.c | 116 int blake2sp_update( blake2sp_state *S, const uint8_t *in, size_t inlen ) in blake2sp_update() argument 121 if( left && inlen >= fill ) in blake2sp_update() 129 inlen -= fill; in blake2sp_update() 143 size_t inlen__ = inlen; in blake2sp_update() 155 in += inlen - inlen % ( PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES ); in blake2sp_update() 156 inlen %= PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES; in blake2sp_update() 158 if( inlen > 0 ) in blake2sp_update() 159 memcpy( S->buf + left, in, inlen ); in blake2sp_update() 161 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2sp_update() 201 if ( NULL == in && inlen > 0 ) return -1; in blake2sp() [all …]
|
| H A D | blake2bp.c | 119 int blake2bp_update( blake2bp_state *S, const uint8_t *in, size_t inlen ) in blake2bp_update() argument 124 if( left && inlen >= fill ) in blake2bp_update() 132 inlen -= fill; in blake2bp_update() 146 size_t inlen__ = inlen; in blake2bp_update() 158 in += inlen - inlen % ( PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES ); in blake2bp_update() 159 inlen %= PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES; in blake2bp_update() 161 if( inlen > 0 ) in blake2bp_update() 162 memcpy( S->buf + left, in, inlen ); in blake2bp_update() 164 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2bp_update() 203 if ( NULL == in && inlen > 0 ) return -1; in blake2bp() [all …]
|
| H A D | blake2b.c | 358 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ) in blake2b_update() argument 360 while( inlen > 0 ) in blake2b_update() 365 if( inlen > fill ) in blake2b_update() 374 inlen -= fill; in blake2b_update() 378 memcpy( S->buf + left, in, inlen ); in blake2b_update() 379 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update() 380 in += inlen; in blake2b_update() 381 inlen -= inlen; in blake2b_update() 415 if ( NULL == in && inlen > 0 ) return -1; in blake2b() 434 if( blake2b_update( S, ( uint8_t * )in, inlen ) < 0) return -1; in blake2b() [all …]
|
| H A D | blake2s-ref.c | 154 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ); 291 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ) in blake2s_update() argument 293 while( inlen > 0 ) in blake2s_update() 298 if( inlen > fill ) in blake2s_update() 307 inlen -= fill; in blake2s_update() 311 memcpy( S->buf + left, in, inlen ); in blake2s_update() 312 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2s_update() 313 in += inlen; in blake2s_update() 314 inlen -= inlen; in blake2s_update() 353 if ( NULL == in && inlen > 0 ) return -1; in blake2s() [all …]
|
| H A D | blake2b-ref.c | 161 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ); 301 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ) in blake2b_update() argument 303 while( inlen > 0 ) in blake2b_update() 308 if( inlen > fill ) in blake2b_update() 317 inlen -= fill; in blake2b_update() 321 memcpy( S->buf + left, in, inlen ); in blake2b_update() 322 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update() 323 in += inlen; in blake2b_update() 324 inlen -= inlen; in blake2b_update() 363 if ( NULL == in && inlen > 0 ) return -1; in blake2b() [all …]
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/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()
|
| H A D | blake2b-ref.c | 263 while (inlen > 0) { in blake2b_update() 267 if (inlen > fill) { in blake2b_update() 276 inlen -= fill; in blake2b_update() 279 memcpy(S->buf + left, in, inlen); in blake2b_update() 281 in += inlen; in blake2b_update() 282 inlen -= inlen; in blake2b_update() 334 const uint64_t inlen, uint8_t keylen) in blake2b() argument 339 if (NULL == in && inlen > 0) { in blake2b() 364 blake2b_update(S, (const uint8_t *) in, inlen); in blake2b() 377 if (NULL == in && inlen > 0) { in blake2b_salt_personal() [all …]
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/libkern/ |
| H A D | iconv_ucs.c | 197 inlen = 0; in iconv_ucs_conv() 217 if (inlen == 4) { in iconv_ucs_conv() 237 inlen = ir; in iconv_ucs_conv() 243 inlen = ir - inlen; in iconv_ucs_conv() 269 if (ir < inlen) { in iconv_ucs_conv() 316 src += inlen; in iconv_ucs_conv() 317 ir -= inlen; in iconv_ucs_conv() 327 src += inlen; in iconv_ucs_conv() 328 ir -= inlen; in iconv_ucs_conv() 336 src += inlen; in iconv_ucs_conv() [all …]
|
| /f-stack/freebsd/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 …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_pred1.c | 385 int outlen, inlen; in ng_pred1_compress() local 393 inlen = m->m_pkthdr.len; in ng_pred1_compress() 396 priv->stats.InOctets += inlen; in ng_pred1_compress() 415 lenn = htons(inlen & 0x7FFF); in ng_pred1_compress() 426 if (len < inlen) { in ng_pred1_compress() 434 outlen = 2 + inlen; in ng_pred1_compress() 468 int inlen; in ng_pred1_decompress() local 475 inlen = m->m_pkthdr.len; in ng_pred1_decompress() 477 if (inlen > PRED1_BUF_SIZE) { in ng_pred1_decompress() 493 priv->stats.InOctets += inlen; in ng_pred1_decompress() [all …]
|
| H A D | ng_deflate.c | 423 int outlen, inlen; in ng_deflate_compress() local 429 inlen = m->m_pkthdr.len; in ng_deflate_compress() 432 priv->stats.InOctets+=inlen; in ng_deflate_compress() 455 priv->cx.avail_in = inlen; in ng_deflate_compress() 492 if (outlen > inlen) { in ng_deflate_compress() 496 priv->stats.OutOctets+=inlen; in ng_deflate_compress() 529 int outlen, inlen, datalen; in ng_deflate_decompress() local 540 inlen = m->m_pkthdr.len; in ng_deflate_decompress() 568 priv->stats.InOctets += inlen; in ng_deflate_decompress() 655 datalen = inlen - offset + 1; in ng_deflate_decompress() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_hash/sha256/cp/ |
| H A D | hash_sha256_cp.c | 197 if (inlen <= 0U) { in crypto_hash_sha256_update() 202 state->count += ((uint64_t) inlen) << 3; in crypto_hash_sha256_update() 203 if (inlen < 64 - r) { in crypto_hash_sha256_update() 204 for (i = 0; i < inlen; i++) { in crypto_hash_sha256_update() 214 inlen -= 64 - r; in crypto_hash_sha256_update() 216 while (inlen >= 64) { in crypto_hash_sha256_update() 219 inlen -= 64; in crypto_hash_sha256_update() 221 inlen &= 63; in crypto_hash_sha256_update() 222 for (i = 0; i < inlen; i++) { in crypto_hash_sha256_update() 245 unsigned long long inlen) in crypto_hash_sha256() argument [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
| H A D | poly1305_donna.c | 60 unsigned long long inlen, in crypto_onetimeauth_poly1305_donna() argument 66 poly1305_update(&state, m, inlen); in crypto_onetimeauth_poly1305_donna() 86 unsigned long long inlen) in crypto_onetimeauth_poly1305_donna_update() argument 88 poly1305_update((poly1305_state_internal_t *) (void *) state, in, inlen); in crypto_onetimeauth_poly1305_donna_update() 105 unsigned long long inlen, in crypto_onetimeauth_poly1305_donna_verify() argument 110 crypto_onetimeauth_poly1305_donna(correct, in, inlen, k); in crypto_onetimeauth_poly1305_donna_verify()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_auth/hmacsha256/ |
| H A D | auth_hmacsha256.c | 73 const unsigned char *in, unsigned long long inlen) in crypto_auth_hmacsha256_update() argument 75 crypto_hash_sha256_update(&state->ictx, in, inlen); in crypto_auth_hmacsha256_update() 97 unsigned long long inlen, const unsigned char *k) in crypto_auth_hmacsha256() argument 102 crypto_auth_hmacsha256_update(&state, in, inlen); in crypto_auth_hmacsha256() 110 unsigned long long inlen, const unsigned char *k) in crypto_auth_hmacsha256_verify() argument 114 crypto_auth_hmacsha256(correct, in, inlen, k); in crypto_auth_hmacsha256_verify()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_auth/hmacsha512/ |
| H A D | auth_hmacsha512.c | 73 const unsigned char *in, unsigned long long inlen) in crypto_auth_hmacsha512_update() argument 75 crypto_hash_sha512_update(&state->ictx, in, inlen); in crypto_auth_hmacsha512_update() 97 unsigned long long inlen, const unsigned char *k) in crypto_auth_hmacsha512() argument 102 crypto_auth_hmacsha512_update(&state, in, inlen); in crypto_auth_hmacsha512() 110 unsigned long long inlen, const unsigned char *k) in crypto_auth_hmacsha512_verify() argument 114 crypto_auth_hmacsha512(correct, in, inlen, k); in crypto_auth_hmacsha512_verify()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_auth/ |
| H A D | crypto_auth.c | 25 unsigned long long inlen, const unsigned char *k) in crypto_auth() argument 27 return crypto_auth_hmacsha512256(out, in, inlen, k); in crypto_auth() 32 unsigned long long inlen,const unsigned char *k) in crypto_auth_verify() argument 34 return crypto_auth_hmacsha512256_verify(h, in, inlen, k); in crypto_auth_verify()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/ |
| H A D | shorthash_siphash24_ref.c | 7 unsigned long long inlen, const unsigned char *k) in crypto_shorthash_siphash24() argument 18 const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t)); in crypto_shorthash_siphash24() 19 const int left = inlen & 7; in crypto_shorthash_siphash24() 21 b = ((uint64_t) inlen) << 56; in crypto_shorthash_siphash24()
|
| H A D | shorthash_siphashx24_ref.c | 7 unsigned long long inlen, const unsigned char *k) in crypto_shorthash_siphashx24() argument 17 const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t)); in crypto_shorthash_siphashx24() 18 const int left = inlen & 7; in crypto_shorthash_siphashx24() 20 b = ((uint64_t) inlen) << 56; in crypto_shorthash_siphashx24()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | siphash.c | 115 uint64_t siphash(const uint8_t *in, const size_t inlen, const uint8_t *k) { in siphash() argument 127 const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t)); in siphash() 128 const int left = inlen & 7; in siphash() 129 uint64_t b = ((uint64_t)inlen) << 56; in siphash() 174 uint64_t siphash_nocase(const uint8_t *in, const size_t inlen, const uint8_t *k) in siphash_nocase() argument 187 const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t)); in siphash_nocase() 188 const int left = inlen & 7; in siphash_nocase() 189 uint64_t b = ((uint64_t)inlen) << 56; in siphash_nocase()
|