Lines Matching refs:salt
99 int pkcs12_key_gen(const char *pass, size_t pass_len, const uint8_t *salt, in pkcs12_key_gen() argument
160 I[i] = salt[i % salt_len]; in pkcs12_key_gen()
226 const uint8_t *salt, size_t salt_len, in pkcs12_pbe_cipher_init() argument
233 if (!pkcs12_key_gen(pass, pass_len, salt, salt_len, PKCS12_KEY_ID, iterations, in pkcs12_pbe_cipher_init()
235 !pkcs12_key_gen(pass, pass_len, salt, salt_len, PKCS12_IV_ID, iterations, in pkcs12_pbe_cipher_init()
250 CBS pbe_param, salt; in pkcs12_pbe_decrypt_init() local
253 !CBS_get_asn1(&pbe_param, &salt, CBS_ASN1_OCTETSTRING) || in pkcs12_pbe_decrypt_init()
267 pass_len, CBS_data(&salt), CBS_len(&salt), in pkcs12_pbe_decrypt_init()
322 size_t pass_len, const uint8_t *salt, in pkcs12_pbe_encrypt_init() argument
337 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in pkcs12_pbe_encrypt_init()
343 return pkcs12_pbe_cipher_init(suite, ctx, iterations, pass, pass_len, salt, in pkcs12_pbe_encrypt_init()
435 const uint8_t *salt, size_t salt_len, in PKCS8_marshal_encrypted_private_key() argument
444 if (salt == NULL) { in PKCS8_marshal_encrypted_private_key()
455 salt = salt_buf; in PKCS8_marshal_encrypted_private_key()
479 pass, pass_len, salt, salt_len); in PKCS8_marshal_encrypted_private_key()
482 pass, pass_len, salt, salt_len); in PKCS8_marshal_encrypted_private_key()