• Home
  • Raw
  • Download

Lines Matching refs:pass_raw

107 static int pkcs12_key_gen_raw(const uint8_t *pass_raw, size_t pass_raw_len,  in pkcs12_key_gen_raw()  argument
147 *p++ = pass_raw[i % pass_raw_len]; in pkcs12_key_gen_raw()
218 static int pkcs12_pbe_keyivgen(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw, in pkcs12_pbe_keyivgen() argument
249 if (!pkcs12_key_gen_raw(pass_raw, pass_raw_len, salt, salt_len, PKCS12_KEY_ID, in pkcs12_pbe_keyivgen()
255 if (!pkcs12_key_gen_raw(pass_raw, pass_raw_len, salt, salt_len, PKCS12_IV_ID, in pkcs12_pbe_keyivgen()
268 typedef int (*keygen_func)(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw,
355 const uint8_t *pass_raw, size_t pass_raw_len, in pbe_cipher_init() argument
394 if (!suite->keygen(ctx, pass_raw, pass_raw_len, param, cipher, md, in pbe_cipher_init()
404 const uint8_t *pass_raw, size_t pass_raw_len, in pbe_crypt() argument
415 if (!pbe_cipher_init(algor->algorithm, pass_raw, pass_raw_len, in pbe_crypt()
455 const uint8_t *pass_raw, in pkcs12_item_decrypt_d2i() argument
463 if (!pbe_crypt(algor, pass_raw, pass_raw_len, oct->data, oct->length, in pkcs12_item_decrypt_d2i()
480 uint8_t *pass_raw = NULL; in PKCS8_decrypt() local
483 &pass_raw, &pass_raw_len)) { in PKCS8_decrypt()
487 PKCS8_PRIV_KEY_INFO *ret = PKCS8_decrypt_pbe(pkcs8, pass_raw, pass_raw_len); in PKCS8_decrypt()
489 if (pass_raw) { in PKCS8_decrypt()
490 OPENSSL_cleanse(pass_raw, pass_raw_len); in PKCS8_decrypt()
491 OPENSSL_free(pass_raw); in PKCS8_decrypt()
496 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_pbe(X509_SIG *pkcs8, const uint8_t *pass_raw, in PKCS8_decrypt_pbe() argument
499 ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass_raw, in PKCS8_decrypt_pbe()
505 const uint8_t *pass_raw, in pkcs12_item_i2d_encrypt() argument
522 if (!pbe_crypt(algor, pass_raw, pass_raw_len, in, in_len, &oct->data, &crypt_len, in pkcs12_item_i2d_encrypt()
537 uint8_t *pass_raw = NULL; in PKCS8_encrypt() local
539 if (!pass_to_pass_raw(pbe_nid, pass, pass_len, &pass_raw, &pass_raw_len)) { in PKCS8_encrypt()
543 X509_SIG *ret = PKCS8_encrypt_pbe(pbe_nid, cipher, pass_raw, pass_raw_len, in PKCS8_encrypt()
546 if (pass_raw) { in PKCS8_encrypt()
547 OPENSSL_cleanse(pass_raw, pass_raw_len); in PKCS8_encrypt()
548 OPENSSL_free(pass_raw); in PKCS8_encrypt()
554 const uint8_t *pass_raw, size_t pass_raw_len, in PKCS8_encrypt_pbe() argument
580 pbe, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass_raw, pass_raw_len, p8inf); in PKCS8_encrypt_pbe()