Home
last modified time | relevance | path

Searched refs:pwdata (Results 1 – 15 of 15) sorted by relevance

/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Ddecode_pvk2key.c99 struct ossl_passphrase_data_st pwdata; in pvk2key_decode() local
102 memset(&pwdata, 0, sizeof(pwdata)); in pvk2key_decode()
103 if (!ossl_pw_set_ossl_passphrase_cb(&pwdata, pw_cb, pw_cbarg)) in pvk2key_decode()
106 key = ctx->desc->read_private_key(in, ossl_pw_pvk_password, &pwdata, in pvk2key_decode()
H A Dencode_key2ms.c35 struct ossl_passphrase_data_st pwdata; member
63 ossl_pw_pvk_password, &ctx->pwdata, libctx, NULL); in write_pvk()
87 ossl_pw_clear_passphrase_data(&ctx->pwdata); in key2ms_freectx()
163 || ossl_pw_set_ossl_passphrase_cb(&ctx->pwdata, pw_cb, pw_cbarg))) in key2pvk_encode()
H A Ddecode_msblob2key.c137 struct ossl_passphrase_data_st pwdata; in msblob2key_decode() local
139 memset(&pwdata, 0, sizeof(pwdata)); in msblob2key_decode()
140 if (!ossl_pw_set_ossl_passphrase_cb(&pwdata, pw_cb, pw_cbarg)) in msblob2key_decode()
H A Dencode_key2any.c54 struct ossl_passphrase_data_st pwdata; member
115 &ctx->pwdata)) { in p8info_to_encp8()
415 ossl_pw_pem_password, &ctx->pwdata); in key_to_type_specific_pem_priv_bio()
950 ossl_pw_clear_passphrase_data(&ctx->pwdata); in key2any_freectx()
1053 || ossl_pw_set_ossl_passphrase_cb(&ctx->pwdata, pwcb, pwcbarg))) in key2any_encode()
/netbsd/crypto/external/bsd/openssl/dist/crypto/pem/
H A Dpem_pkey.c223 struct ossl_passphrase_data_st pwdata = { 0 }; in pem_read_bio_key() local
236 if (!ossl_pw_set_pem_password_cb(&pwdata, cb, u) in pem_read_bio_key()
237 || !ossl_pw_enable_passphrase_caching(&pwdata)) in pem_read_bio_key()
241 ret = pem_read_bio_key_decoder(bp, x, ossl_pw_pem_password, &pwdata, in pem_read_bio_key()
246 ossl_pw_pem_password, &pwdata, in pem_read_bio_key()
254 ossl_pw_clear_passphrase_data(&pwdata); in pem_read_bio_key()
/netbsd/crypto/external/bsd/openssl/dist/crypto/encode_decode/
H A Dencoder_pkey.c45 return ossl_pw_set_passphrase(&ctx->pwdata, kstr, klen); in OSSL_ENCODER_CTX_set_passphrase()
52 return ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data); in OSSL_ENCODER_CTX_set_passphrase_ui()
58 return ossl_pw_set_pem_password_cb(&ctx->pwdata, cb, cbarg); in OSSL_ENCODER_CTX_set_pem_password_cb()
65 return ossl_pw_set_ossl_passphrase_cb(&ctx->pwdata, cb, cbarg); in OSSL_ENCODER_CTX_set_passphrase_cb()
H A Dencoder_local.h103 struct ossl_passphrase_data_st pwdata; member
158 struct ossl_passphrase_data_st pwdata; member
H A Ddecoder_pkey.c26 return ossl_pw_set_passphrase(&ctx->pwdata, kstr, klen); in OSSL_DECODER_CTX_set_passphrase()
33 return ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data); in OSSL_DECODER_CTX_set_passphrase_ui()
39 return ossl_pw_set_pem_password_cb(&ctx->pwdata, cb, cbarg); in OSSL_DECODER_CTX_set_pem_password_cb()
46 return ossl_pw_set_ossl_passphrase_cb(&ctx->pwdata, cb, cbarg); in OSSL_DECODER_CTX_set_passphrase_cb()
H A Ddecoder_lib.c79 (void)ossl_pw_enable_passphrase_caching(&ctx->pwdata); in OSSL_DECODER_from_bio()
109 (void)ossl_pw_clear_passphrase_cache(&ctx->pwdata); in OSSL_DECODER_from_bio()
966 &new_data.ctx->pwdata); in decoder_process()
H A Dencoder_lib.c638 &data->ctx->pwdata); in encoder_process()
H A Ddecoder_meth.c698 ossl_pw_clear_passphrase_data(&ctx->pwdata); in OSSL_DECODER_CTX_free()
H A Dencoder_meth.c697 ossl_pw_clear_passphrase_data(&ctx->pwdata); in OSSL_ENCODER_CTX_free()
/netbsd/crypto/external/bsd/openssl/dist/crypto/store/
H A Dstore_lib.c173 && (!ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data) in OSSL_STORE_open_ex()
174 || !ossl_pw_enable_passphrase_caching(&ctx->pwdata))) { in OSSL_STORE_open_ex()
432 &ctx->pwdata)) { in OSSL_STORE_load()
442 ctx->pwdata._.ui_method.ui_method, in OSSL_STORE_load()
443 ctx->pwdata._.ui_method.ui_method_data); in OSSL_STORE_load()
459 (void)ossl_pw_clear_passphrase_cache(&ctx->pwdata); in OSSL_STORE_load()
523 ossl_pw_clear_passphrase_data(&ctx->pwdata); in ossl_store_close_it()
1019 && !ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data)) { in OSSL_STORE_attach()
H A Dstore_local.h153 struct ossl_passphrase_data_st pwdata; member
H A Dstore_result.c410 void *cbarg = &ctx->pwdata; in try_key()
570 pw_params, 0, &ctx->pwdata)) { in try_pkcs12()