Home
last modified time | relevance | path

Searched refs:salt_len (Results 1 – 25 of 43) sorted by relevance

12

/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c110 size_t salt_len, uint8_t id, unsigned iterations, in pkcs12_key_gen() argument
150 if (salt_len + block_size - 1 < salt_len || in pkcs12_key_gen()
155 size_t S_len = block_size * ((salt_len + block_size - 1) / block_size); in pkcs12_key_gen()
170 I[i] = salt[i % salt_len]; in pkcs12_key_gen()
236 const uint8_t *salt, size_t salt_len, in pkcs12_pbe_cipher_init() argument
243 if (!pkcs12_key_gen(pass, pass_len, salt, salt_len, PKCS12_KEY_ID, iterations, in pkcs12_pbe_cipher_init()
245 !pkcs12_key_gen(pass, pass_len, salt, salt_len, PKCS12_IV_ID, iterations, in pkcs12_pbe_cipher_init()
336 size_t salt_len) { in pkcs12_pbe_encrypt_init() argument
350 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in pkcs12_pbe_encrypt_init()
357 salt_len, 1 /* encrypt */); in pkcs12_pbe_encrypt_init()
[all …]
Dinternal.h83 size_t salt_len, uint8_t id, unsigned iterations,
91 size_t salt_len);
120 const uint8_t *salt, size_t salt_len);
Dp5_pbev2.c145 size_t salt_len, const uint8_t *iv, in pkcs5_pbe2_cipher_init() argument
153 int ret = PKCS5_PBKDF2_HMAC_SHA1(pass, pass_len, salt, salt_len, iterations, in pkcs5_pbe2_cipher_init()
163 const uint8_t *salt, size_t salt_len) { in PKCS5_pbe2_encrypt_init() argument
188 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in PKCS5_pbe2_encrypt_init()
205 salt_len, iv, EVP_CIPHER_iv_length(cipher), in PKCS5_pbe2_encrypt_init()
Dpkcs8_test.cc182 size_t salt_len, int iterations) { in TestRoundTrip() argument
205 pbe_nid, cipher, password, -1, salt, salt_len, iterations, key.get())); in TestRoundTrip()
/external/e2fsprogs/misc/
De4crypt.c185 size_t salt_len; member
192 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
198 if ((p->salt_len == salt_len) && in find_by_salt()
199 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
204 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
206 if (find_by_salt(salt, salt_len)) in add_salt()
217 salt_list[num_salt].salt_len = salt_len; in add_salt()
278 int fd, ret, salt_len = 0; in parse_salt() local
284 salt_len = strlen(cp); in parse_salt()
285 if (salt_len >= EXT4_MAX_SALT_SIZE) in parse_salt()
[all …]
/external/f2fs-tools/tools/
Df2fscrypt.c232 size_t salt_len; member
239 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
245 if ((p->salt_len == salt_len) && in find_by_salt()
246 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
251 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
253 if (find_by_salt(salt, salt_len)) in add_salt()
264 salt_list[num_salt].salt_len = salt_len; in add_salt()
324 int fd, ret, salt_len = 0; in parse_salt() local
330 salt_len = strlen(cp); in parse_salt()
331 if (salt_len >= F2FS_MAX_SALT_SIZE) in parse_salt()
[all …]
/external/wpa_supplicant_8/src/tls/
Dpkcs5.c27 size_t salt_len; member
187 params->salt_len = hdr.length; in pkcs5_get_params_pbes2()
188 wpa_hexdump(MSG_DEBUG, "PKCS #5: salt", params->salt, params->salt_len); in pkcs5_get_params_pbes2()
348 params->salt_len = hdr.length; in pkcs5_get_params()
350 params->salt, params->salt_len); in pkcs5_get_params()
395 params->salt, params->salt_len); in pkcs5_crypto_init_pbes2()
398 if (pbkdf2_sha1(passwd, params->salt, params->salt_len, in pkcs5_crypto_init_pbes2()
423 size_t salt_len, u8 id, unsigned int iter, in pkcs12_key_gen() argument
441 S_len = v * ((salt_len + v - 1) / v); in pkcs12_key_gen()
447 if (salt_len) { in pkcs12_key_gen()
[all …]
/external/boringssl/src/crypto/evp/
Dpbkdf.c66 const uint8_t *salt, size_t salt_len, unsigned iterations, in PKCS5_PBKDF2_HMAC() argument
94 !HMAC_Update(&hctx, salt, salt_len) || in PKCS5_PBKDF2_HMAC()
141 const uint8_t *salt, size_t salt_len, in PKCS5_PBKDF2_HMAC_SHA1() argument
144 return PKCS5_PBKDF2_HMAC(password, password_len, salt, salt_len, iterations, in PKCS5_PBKDF2_HMAC_SHA1()
Dpbkdf_test.cc129 const size_t salt_len = sizeof(kSalt); in TEST() local
136 ASSERT_TRUE(PKCS5_PBKDF2_HMAC(kPassword, password_len, kSalt, salt_len, in TEST()
144 ASSERT_FALSE(PKCS5_PBKDF2_HMAC(kPassword, password_len, kSalt, salt_len, in TEST()
/external/boringssl/src/crypto/hkdf/
Dhkdf.c28 size_t salt_len, const uint8_t *info, size_t info_len) { in HKDF() argument
34 salt_len) || in HKDF()
44 size_t salt_len) { in HKDF_extract() argument
50 if (HMAC(digest, salt, salt_len, secret, secret_len, out_key, &len) == NULL) { in HKDF_extract()
Dhkdf_test.cc29 const size_t salt_len; member
255 test->ikm_len, test->salt, test->salt_len)); in TEST()
264 test->ikm_len, test->salt, test->salt_len, test->info, in TEST()
/external/u-boot/lib/libavb/
Davb_hash_descriptor.c26 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hash_descriptor_validate_and_byteswap()
33 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
Davb_hashtree_descriptor.c34 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hashtree_descriptor_validate_and_byteswap()
41 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
Davb_hash_descriptor.h50 uint32_t salt_len; member
/external/avb/libavb/
Davb_hash_descriptor.c45 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hash_descriptor_validate_and_byteswap()
52 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
Davb_hashtree_descriptor.c53 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hashtree_descriptor_validate_and_byteswap()
60 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
Davb_hash_descriptor.h69 uint32_t salt_len; member
Davb_hashtree_descriptor.h79 uint32_t salt_len; member
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c321 u8 salt_len, salthashpwd[64]; /* 64 = SHA512_DIGEST_LENGTH */ in eap_pwd_perform_commit_exchange() local
384 salt_len = *ptr++; in eap_pwd_perform_commit_exchange()
385 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange()
397 wpa_hexdump(MSG_DEBUG, "EAP-pwd: Salt", ptr, salt_len); in eap_pwd_perform_commit_exchange()
401 salt_pwd_len[1] = salt_len; in eap_pwd_perform_commit_exchange()
407 (int) salt_len); in eap_pwd_perform_commit_exchange()
408 ptr += salt_len; in eap_pwd_perform_commit_exchange()
421 salt_len = *ptr++; in eap_pwd_perform_commit_exchange()
422 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange()
434 wpa_hexdump(MSG_DEBUG, "EAP-pwd: Salt", ptr, salt_len); in eap_pwd_perform_commit_exchange()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c31 size_t salt_len; member
121 data->salt_len = sm->user->salt_len; in eap_pwd_init()
122 if (data->salt_len) { in eap_pwd_init()
123 data->salt = os_memdup(sm->user->salt, sm->user->salt_len); in eap_pwd_init()
156 bin_clear_free(data->salt, data->salt_len); in eap_pwd_reset()
194 if (data->salt_len) in eap_pwd_build_id_req()
196 data->salt, data->salt_len); in eap_pwd_build_id_req()
202 if (data->salt_len) { in eap_pwd_build_id_req()
283 (data->salt ? 1 + data->salt_len : 0)); in eap_pwd_build_commit_req()
288 if (data->salt_len) { in eap_pwd_build_commit_req()
[all …]
/external/boringssl/src/include/openssl/
Dhkdf.h37 const uint8_t *salt, size_t salt_len,
47 size_t salt_len);
Dpkcs8.h87 const uint8_t *salt, size_t salt_len,
96 size_t pass_len, const uint8_t *salt, size_t salt_len, int iterations,
Devp.h445 const uint8_t *salt, size_t salt_len,
453 const uint8_t *salt, size_t salt_len,
474 const uint8_t *salt, size_t salt_len,
703 int salt_len);
/external/wpa_supplicant_8/src/ap/
Dauthsrv.c80 if (eap_user->salt && eap_user->salt_len) { in hostapd_radius_get_eap_user()
82 eap_user->salt_len); in hostapd_radius_get_eap_user()
85 user->salt_len = eap_user->salt_len; in hostapd_radius_get_eap_user()
/external/avb/test/
Davb_util_unittest.cc168 h.salt_len = htobe32(10); in TEST_F()
220 EXPECT_EQ(10UL, s.salt_len); in TEST_F()
235 bad.salt_len = htobe32(30); in TEST_F()
255 h.salt_len = htobe32(10); in TEST_F()
263 EXPECT_EQ(10UL, s.salt_len); in TEST_F()
278 bad.salt_len = htobe32(30); in TEST_F()

12