Lines Matching refs:algor
403 static int pbe_crypt(const X509_ALGOR *algor, in pbe_crypt() argument
415 if (!pbe_cipher_init(algor->algorithm, pass_raw, pass_raw_len, in pbe_crypt()
416 algor->parameter, &ctx, is_encrypt)) { in pbe_crypt()
454 static void *pkcs12_item_decrypt_d2i(X509_ALGOR *algor, const ASN1_ITEM *it, 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()
482 if (!pass_to_pass_raw(OBJ_obj2nid(pkcs8->algor->algorithm), pass, pass_len, in PKCS8_decrypt()
498 return pkcs12_item_decrypt_d2i(pkcs8->algor, in PKCS8_decrypt_pbe()
503 static ASN1_OCTET_STRING *pkcs12_item_i2d_encrypt(X509_ALGOR *algor, 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()
576 X509_ALGOR_free(pkcs8->algor); in PKCS8_encrypt_pbe()
577 pkcs8->algor = pbe; in PKCS8_encrypt_pbe()
756 X509_ALGOR *algor = NULL; in PKCS12_handle_content_info() local
783 algor = d2i_X509_ALGOR(NULL, &inp, (long)CBS_len(&ai)); in PKCS12_handle_content_info()
784 if (algor == NULL) { in PKCS12_handle_content_info()
788 X509_ALGOR_free(algor); in PKCS12_handle_content_info()
793 if (!pbe_crypt(algor, ctx->password, ctx->password_len, in PKCS12_handle_content_info()
796 X509_ALGOR_free(algor); in PKCS12_handle_content_info()
799 X509_ALGOR_free(algor); in PKCS12_handle_content_info()