Lines Matching refs:param
84 PBMAC1PARAM *param = NULL; in PBMAC1_get1_pbkdf2_param() local
88 param = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBMAC1PARAM), macalg->parameter); in PBMAC1_get1_pbkdf2_param()
89 if (param == NULL) { in PBMAC1_get1_pbkdf2_param()
94 X509_ALGOR_get0(&kdf_oid, NULL, NULL, param->keyDerivationFunc); in PBMAC1_get1_pbkdf2_param()
97 PBMAC1PARAM_free(param); in PBMAC1_get1_pbkdf2_param()
102 param->keyDerivationFunc->parameter); in PBMAC1_get1_pbkdf2_param()
103 PBMAC1PARAM_free(param); in PBMAC1_get1_pbkdf2_param()
311 PBMAC1PARAM *param = NULL; in PKCS12_verify_mac() local
315 param = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBMAC1PARAM), macalg->parameter); in PKCS12_verify_mac()
316 if (param == NULL) { in PKCS12_verify_mac()
320 X509_ALGOR_get0(&hmac_oid, NULL, NULL, param->messageAuthScheme); in PKCS12_verify_mac()
325 PBMAC1PARAM_free(param); in PKCS12_verify_mac()
328 PBMAC1PARAM_free(param); in PKCS12_verify_mac()
448 PBMAC1PARAM *param = NULL; in PKCS12_set_pbmac1_pbkdf2() local
484 param = PBMAC1PARAM_new(); in PKCS12_set_pbmac1_pbkdf2()
487 if (param == NULL || hmac_alg == NULL || alg == NULL) in PKCS12_set_pbmac1_pbkdf2()
501 X509_ALGOR_free(param->keyDerivationFunc); in PKCS12_set_pbmac1_pbkdf2()
502 X509_ALGOR_free(param->messageAuthScheme); in PKCS12_set_pbmac1_pbkdf2()
503 param->keyDerivationFunc = alg; in PKCS12_set_pbmac1_pbkdf2()
504 param->messageAuthScheme = hmac_alg; in PKCS12_set_pbmac1_pbkdf2()
507 if (!ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBMAC1PARAM), param, &macalg->parameter)) in PKCS12_set_pbmac1_pbkdf2()
526 PBMAC1PARAM_free(param); in PKCS12_set_pbmac1_pbkdf2()