Lines Matching refs:enc

363 static int test_single_key(PKCS12_ENC *enc)  in test_single_key()  argument
369 OBJ_nid2sn(enc->nid), enc->iter); in test_single_key()
378 add_keybag(pb, KEY1, sizeof(KEY1), NULL, enc); in test_single_key()
389 check_keybag(pb, KEY1, sizeof(KEY1), NULL, enc); in test_single_key()
400 PKCS12_ENC enc; in test_single_key_enc_alg() local
403 enc.nid = enc_nids_no_legacy[z]; in test_single_key_enc_alg()
405 enc.nid = enc_nids_all[z]; in test_single_key_enc_alg()
406 enc.pass = enc_default.pass; in test_single_key_enc_alg()
407 enc.iter = enc_default.iter; in test_single_key_enc_alg()
409 return test_single_key(&enc); in test_single_key_enc_alg()
414 PKCS12_ENC enc; in test_single_key_enc_pass() local
416 enc.nid = enc_default.nid; in test_single_key_enc_pass()
417 enc.pass = passwords[z]; in test_single_key_enc_pass()
418 enc.iter = enc_default.iter; in test_single_key_enc_pass()
420 return test_single_key(&enc); in test_single_key_enc_pass()
425 PKCS12_ENC enc; in test_single_key_enc_iter() local
427 enc.nid = enc_default.nid; in test_single_key_enc_iter()
428 enc.pass = enc_default.pass; in test_single_key_enc_iter()
429 enc.iter = iters[z]; in test_single_key_enc_iter()
431 return test_single_key(&enc); in test_single_key_enc_iter()
623 static int test_single_secret(PKCS12_ENC *enc) in test_single_secret() argument
630 OBJ_nid2sn(enc->nid), enc->iter); in test_single_secret()
641 end_contentinfo_encrypted(pb, enc); in test_single_secret()
648 start_check_contentinfo_encrypted(pb, enc); in test_single_secret()
661 PKCS12_ENC enc; in test_single_secret_enc_alg() local
664 enc.nid = enc_nids_no_legacy[z]; in test_single_secret_enc_alg()
666 enc.nid = enc_nids_all[z]; in test_single_secret_enc_alg()
667 enc.pass = enc_default.pass; in test_single_secret_enc_alg()
668 enc.iter = enc_default.iter; in test_single_secret_enc_alg()
670 return test_single_secret(&enc); in test_single_secret_enc_alg()