Lines Matching refs:salt_len
110 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()
448 const uint8_t *salt, size_t salt_len, in PKCS8_marshal_encrypted_private_key() argument
458 if (salt_len == 0) { in PKCS8_marshal_encrypted_private_key()
459 salt_len = PKCS5_SALT_LEN; in PKCS8_marshal_encrypted_private_key()
462 salt_buf = OPENSSL_malloc(salt_len); in PKCS8_marshal_encrypted_private_key()
464 !RAND_bytes(salt_buf, salt_len)) { in PKCS8_marshal_encrypted_private_key()
492 pass, pass_len, salt, salt_len); in PKCS8_marshal_encrypted_private_key()
495 pass, pass_len, salt, salt_len); in PKCS8_marshal_encrypted_private_key()