Lines Matching refs:mac

38 static void generate_p12(PKCS12_BUILDER *pb, const PKCS12_ENC *mac);
41 static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac);
42 static PKCS12 *read_p12(const char *infile, const PKCS12_ENC *mac);
43 static int check_p12_mac(PKCS12 *p12, const PKCS12_ENC *mac);
137 void end_pkcs12_with_mac(PKCS12_BUILDER *pb, const PKCS12_ENC *mac) in end_pkcs12_with_mac() argument
141 generate_p12(pb, mac); in end_pkcs12_with_mac()
146 static void generate_p12(PKCS12_BUILDER *pb, const PKCS12_ENC *mac) in generate_p12() argument
169 if (mac != NULL) { in generate_p12()
171 md = (EVP_MD *)EVP_get_digestbynid(mac->nid); in generate_p12()
173 md = EVP_MD_fetch(test_ctx, OBJ_nid2sn(mac->nid), test_propq); in generate_p12()
175 if (!TEST_true(PKCS12_set_mac(p12, mac->pass, strlen(mac->pass), in generate_p12()
176 NULL, 0, mac->iter, md))) { in generate_p12()
209 static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac) in from_bio_p12() argument
223 if (mac == NULL) { in from_bio_p12()
227 if (!check_p12_mac(p12, mac)) in from_bio_p12()
238 static PKCS12 *read_p12(const char *infile, const PKCS12_ENC *mac) in read_p12() argument
249 if (mac == NULL) { in read_p12()
253 if (!check_p12_mac(p12, mac)) in read_p12()
262 static int check_p12_mac(PKCS12 *p12, const PKCS12_ENC *mac) in check_p12_mac() argument
265 && TEST_true(PKCS12_verify_mac(p12, mac->pass, strlen(mac->pass))); in check_p12_mac()
687 void start_check_pkcs12_with_mac(PKCS12_BUILDER *pb, const PKCS12_ENC *mac) in start_check_pkcs12_with_mac() argument
694 p12 = from_bio_p12(pb->p12bio, mac); in start_check_pkcs12_with_mac()
727 void start_check_pkcs12_file_with_mac(PKCS12_BUILDER *pb, const PKCS12_ENC *mac) in start_check_pkcs12_file_with_mac() argument
734 p12 = read_p12(pb->filename, mac); in start_check_pkcs12_file_with_mac()