| /f-stack/app/nginx-1.16.1/src/core/ |
| H A D | ngx_crypt.c | 33 return ngx_crypt_apr1(pool, key, salt, encrypted); in ngx_crypt() 42 return ngx_crypt_sha(pool, key, salt, encrypted); in ngx_crypt() 47 return ngx_libc_crypt(pool, key, salt, encrypted); in ngx_crypt() 66 salt += sizeof("$apr1$") - 1; in ngx_crypt_apr1() 67 last = salt + 8; in ngx_crypt_apr1() 69 saltlen = p - salt; in ngx_crypt_apr1() 76 ngx_md5_update(&md5, salt, saltlen); in ngx_crypt_apr1() 80 ngx_md5_update(&ctx1, salt, saltlen); in ngx_crypt_apr1() 112 ngx_md5_update(&ctx1, salt, saltlen); in ngx_crypt_apr1() 137 p = ngx_copy(p, salt, saltlen); in ngx_crypt_apr1() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
| H A D | argon2.c | 88 const void *salt, const size_t saltlen, void *hash, in argon2_hash() argument 117 context.salt = (uint8_t *) salt; in argon2_hash() 161 const size_t pwdlen, const void *salt, in argon2i_hash_encoded() argument 172 const size_t pwdlen, const void *salt, const size_t saltlen, in argon2i_hash_raw() argument 182 const size_t pwdlen, const void *salt, in argon2id_hash_encoded() argument 227 ctx.salt = (uint8_t *) malloc(ctx.saltlen); in argon2_verify() 229 if (!ctx.out || !ctx.salt || !ctx.ad) { in argon2_verify() 231 free(ctx.salt); in argon2_verify() 238 free(ctx.salt); in argon2_verify() 246 free(ctx.salt); in argon2_verify() [all …]
|
| H A D | pwhash_argon2id.c | 138 const unsigned char *const salt, in crypto_pwhash_argon2id() argument 165 (uint32_t) 1U, passwd, (size_t) passwdlen, salt, in crypto_pwhash_argon2id() 183 unsigned char salt[crypto_pwhash_argon2id_SALTBYTES]; in crypto_pwhash_argon2id_str() local 198 randombytes_buf(salt, sizeof salt); in crypto_pwhash_argon2id_str() 200 (uint32_t) 1U, passwd, (size_t) passwdlen, salt, in crypto_pwhash_argon2id_str() 201 sizeof salt, STR_HASHBYTES, out, in crypto_pwhash_argon2id_str()
|
| H A D | pwhash_argon2i.c | 142 const unsigned char *const salt, in crypto_pwhash_argon2i() argument 169 (uint32_t) 1U, passwd, (size_t) passwdlen, salt, in crypto_pwhash_argon2i() 187 unsigned char salt[crypto_pwhash_argon2i_SALTBYTES]; in crypto_pwhash_argon2i_str() local 202 randombytes_buf(salt, sizeof salt); in crypto_pwhash_argon2i_str() 204 (uint32_t) 1U, passwd, (size_t) passwdlen, salt, in crypto_pwhash_argon2i_str() 205 sizeof salt, STR_HASHBYTES, out, in crypto_pwhash_argon2i_str() 260 ctx.out = ctx.pwd = ctx.salt = fodder; in _needs_rehash()
|
| H A D | argon2.h | 170 uint8_t *salt; /* salt array */ member 214 const size_t pwdlen, const void *salt, 235 const size_t pwdlen, const void *salt, 255 const size_t pwdlen, const void *salt, 274 const size_t pwdlen, const void *salt, 280 const size_t pwdlen, const void *salt, const size_t saltlen,
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | pwhash_argon2i.c | 82 unsigned char salt[crypto_pwhash_SALTBYTES]; in tv() local 91 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv() 94 tests[i].passwd_len, (const unsigned char *) salt, in tv() 134 unsigned char salt[crypto_pwhash_SALTBYTES]; in tv2() local 143 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2() 176 if (crypto_pwhash(out, 15, "password", strlen("password"), salt, 3, in tv2() 180 if (crypto_pwhash(out, sizeof out, "password", 0x100000000ULL, salt, 3, in tv2() 235 char *salt; in str_tests() local 238 salt = (char *) sodium_malloc(crypto_pwhash_SALTBYTES); in str_tests() 241 memcpy(salt, ">A 16-bytes salt", crypto_pwhash_SALTBYTES); in str_tests() [all …]
|
| H A D | pwhash_scrypt.c | 94 unsigned char salt[crypto_pwhash_scryptsalsa208sha256_SALTBYTES]; in tv() local 103 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv() 107 tests[i].passwdlen, (const unsigned char *) salt, in tv() 143 unsigned char salt[crypto_pwhash_scryptsalsa208sha256_SALTBYTES]; in tv2() local 152 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2() 156 tests[i].passwdlen, (const unsigned char *) salt, in tv2() 302 char *salt; in str_tests() local 305 salt = (char *) sodium_malloc(crypto_pwhash_scryptsalsa208sha256_SALTBYTES); in str_tests() 310 memcpy(salt, "[<~A 32-bytes salt for scrypt~>]", in str_tests() 365 sodium_free(salt); in str_tests()
|
| H A D | pwhash_argon2id.c | 82 unsigned char salt[crypto_pwhash_SALTBYTES]; in tv() local 91 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv() 94 tests[i].passwd_len, (const unsigned char *) salt, in tv() 134 unsigned char salt[crypto_pwhash_SALTBYTES]; in tv2() local 143 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2() 146 tests[i].passwd_len, (const unsigned char *) salt, in tv2() 172 if (crypto_pwhash_argon2id(out, 15, "password", strlen("password"), salt, 3, in tv2() 231 char *salt; in str_tests() local 234 salt = (char *) sodium_malloc(crypto_pwhash_argon2id_SALTBYTES); in str_tests() 237 memcpy(salt, ">A 16-bytes salt", crypto_pwhash_argon2id_SALTBYTES); in str_tests() [all …]
|
| H A D | generichash3.c | 10 unsigned char salt[crypto_generichash_blake2b_SALTBYTES] in main() local 32 1 + i % crypto_generichash_blake2b_BYTES_MAX, salt, personal); in main() 44 &st, k, 0U, crypto_generichash_blake2b_BYTES_MAX, salt, personal); in main() 55 &st, NULL, 1U, crypto_generichash_blake2b_BYTES_MAX, salt, personal); in main() 79 crypto_generichash_blake2b_BYTES_MAX, salt, NULL); in main() 91 k, 0U, salt, personal); in main() 100 NULL, 0U, salt, personal); in main() 109 k, crypto_generichash_blake2b_KEYBYTES_MAX, salt, personal); in main() 127 k, crypto_generichash_blake2b_KEYBYTES_MAX, salt, NULL); in main() 156 salt, NULL); in main() [all …]
|
| H A D | pwhash_scrypt_ll.c | 24 tv(const char *passwd, const char *salt, uint64_t N, uint32_t r, uint32_t p) in tv() argument 30 size_t salt_len = strlen(salt); in tv() 34 (const uint8_t *) passwd, passwd_len, (const uint8_t *) salt, in tv() 37 salt); in tv() 41 printf("scrypt('%s', '%s', %lu, %lu, %lu, %lu) =\n", passwd, salt, in tv()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_generichash/blake2b/ref/ |
| H A D | blake2b-ref.c | 80 memcpy(P->salt, salt, BLAKE2B_SALTBYTES); in blake2b_param_set_salt() 140 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init() 147 const void *salt, const void *personal) in blake2b_init_salt_personal() argument 163 if (salt != NULL) { in blake2b_init_salt_personal() 164 blake2b_param_set_salt(P, (const uint8_t *) salt); in blake2b_init_salt_personal() 166 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init_salt_personal() 197 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init_key() 216 const void *salt, const void *personal) in blake2b_init_key_salt_personal() argument 235 if (salt != NULL) { in blake2b_init_key_salt_personal() 236 blake2b_param_set_salt(P, (const uint8_t *) salt); in blake2b_init_key_salt_personal() [all …]
|
| H A D | generichash_blake2b.c | 30 const unsigned char *salt, const unsigned char *personal) in crypto_generichash_blake2b_salt_personal() argument 40 (uint64_t) inlen, (uint8_t) keylen, salt, in crypto_generichash_blake2b_salt_personal() 69 const size_t keylen, const size_t outlen, const unsigned char *salt, in crypto_generichash_blake2b_init_salt_personal() argument 79 if (blake2b_init_salt_personal(state, (uint8_t) outlen, salt, in crypto_generichash_blake2b_init_salt_personal() 84 (uint8_t) keylen, salt, in crypto_generichash_blake2b_init_salt_personal()
|
| H A D | blake2.h | 64 uint8_t salt[BLAKE2B_SALTBYTES]; /* 48 */ member 79 const void *salt, const void *personal); 84 const void *salt, const void *personal); 94 uint8_t keylen, const void *salt,
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_kdf/blake2b/ |
| H A D | kdf_blake2b.c | 37 unsigned char salt[crypto_generichash_blake2b_SALTBYTES]; in crypto_kdf_blake2b_derive_from_key() local 41 STORE64_LE(salt, subkey_id); in crypto_kdf_blake2b_derive_from_key() 42 memset(salt + 8, 0, (sizeof salt) - 8); in crypto_kdf_blake2b_derive_from_key() 51 salt, ctx_padded); in crypto_kdf_blake2b_derive_from_key()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/hkdf/ |
| H A D | hkdf_test.c | 36 char *salt; member 59 .salt = "\x00\x01\x02\x03\x04\x05\x06\x07" 85 .salt = "\x60\x61\x62\x63\x64\x65\x66\x67" 125 .salt = NULL, 141 .salt = "\x00\x01\x02\x03\x04\x05\x06\x07" 160 .salt = NULL, 194 ret = hkdf_sha512((uint8_t *)tv->ikm, tv->ikm_len, (uint8_t *)tv->salt, in run_test()
|
| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_user.c | 17 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) in ngx_libc_crypt() argument 25 value = crypt_r((char *) key, (char *) salt, &cd); in ngx_libc_crypt() 47 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) in ngx_libc_crypt() argument 53 value = crypt((char *) key, (char *) salt); in ngx_libc_crypt()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
| H A D | crypto_scrypt-common.c | 143 const uint8_t *salt; in escrypt_r() local 160 salt = src; in escrypt_r() 161 src = (uint8_t *) strrchr((char *) salt, '$'); in escrypt_r() 163 saltlen = src - salt; in escrypt_r() 165 saltlen = strlen((char *) salt); in escrypt_r() 178 if (escrypt_kdf(local, passwd, passwdlen, salt, saltlen, N, r, p, hash, in escrypt_r() 240 const uint8_t *salt, size_t saltlen, in crypto_pwhash_scryptsalsa208sha256_ll() argument 257 retval = escrypt_kdf(&local, passwd, passwdlen, salt, saltlen, N, r, p, buf, in crypto_pwhash_scryptsalsa208sha256_ll()
|
| H A D | pwhash_scryptsalsa208sha256.c | 161 const unsigned char *const salt, in crypto_pwhash_scryptsalsa208sha256() argument 180 (const uint8_t *) passwd, (size_t) passwdlen, (const uint8_t *) salt, in crypto_pwhash_scryptsalsa208sha256() 191 uint8_t salt[crypto_pwhash_scryptsalsa208sha256_STRSALTBYTES]; in crypto_pwhash_scryptsalsa208sha256_str() local 208 randombytes_buf(salt, sizeof salt); in crypto_pwhash_scryptsalsa208sha256_str() 209 if (escrypt_gensalt_r(N_log2, r, p, salt, sizeof salt, (uint8_t *) setting, in crypto_pwhash_scryptsalsa208sha256_str()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | hkdf.c | 26 hkdf_sha512_extract(uint8_t *salt, uint_t salt_len, uint8_t *key_material, in hkdf_sha512_extract() argument 34 key.ck_data = salt; in hkdf_sha512_extract() 84 hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt, in hkdf_sha512() argument 91 ret = hkdf_sha512_extract(salt, salt_len, key_material, km_len, in hkdf_sha512()
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | zio_crypt.h | 133 uint_t datalen, uint8_t *ivbuf, uint8_t *salt); 135 void zio_crypt_encode_params_bp(blkptr_t *bp, uint8_t *salt, uint8_t *iv); 136 void zio_crypt_decode_params_bp(const blkptr_t *bp, uint8_t *salt, uint8_t *iv); 152 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, 156 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv,
|
| /f-stack/dpdk/lib/librte_ipsec/ |
| H A D | crypto.h | 30 uint32_t salt; member 63 aead_gcm_iv_fill(struct aead_gcm_iv *gcm, uint64_t iv, uint32_t salt) in aead_gcm_iv_fill() argument 65 gcm->salt = salt; in aead_gcm_iv_fill()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | skein_zfs.c | 81 abd_checksum_skein_tmpl_init(const zio_cksum_salt_t *salt) in abd_checksum_skein_tmpl_init() argument 87 salt->zcs_bytes, sizeof (salt->zcs_bytes)); in abd_checksum_skein_tmpl_init()
|
| H A D | edonr_zfs.c | 80 abd_checksum_edonr_tmpl_init(const zio_cksum_salt_t *salt) in abd_checksum_edonr_tmpl_init() argument 93 EdonRHash(EDONR_MODE, salt->zcs_bytes, sizeof (salt->zcs_bytes) * 8, in abd_checksum_edonr_tmpl_init()
|
| H A D | hkdf.c | 25 hkdf_sha512_extract(uint8_t *salt, uint_t salt_len, uint8_t *key_material, in hkdf_sha512_extract() argument 41 key.ck_data = salt; in hkdf_sha512_extract() 153 hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt, in hkdf_sha512() argument 160 ret = hkdf_sha512_extract(salt, salt_len, key_material, km_len, in hkdf_sha512()
|
| /f-stack/app/nginx-1.16.1/src/mail/ |
| H A D | ngx_mail_handler.c | 361 s->salt.data = ngx_pnalloc(c->pool, in ngx_mail_salt() 365 if (s->salt.data == NULL) { in ngx_mail_salt() 369 s->salt.len = ngx_sprintf(s->salt.data, "<%ul.%T@%V>" CRLF, in ngx_mail_salt() 371 - s->salt.data; in ngx_mail_salt() 526 ngx_str_t salt; in ngx_mail_auth_cram_md5_salt() local 529 p = ngx_pnalloc(c->pool, len + ngx_base64_encoded_length(s->salt.len) + 2); in ngx_mail_auth_cram_md5_salt() 534 salt.data = ngx_cpymem(p, prefix, len); in ngx_mail_auth_cram_md5_salt() 535 s->salt.len -= 2; in ngx_mail_auth_cram_md5_salt() 537 ngx_encode_base64(&salt, &s->salt); in ngx_mail_auth_cram_md5_salt() 539 s->salt.len += 2; in ngx_mail_auth_cram_md5_salt() [all …]
|