Lines Matching refs:pass_size
116 static int do_ui_passphrase(char *pass, size_t pass_size, size_t *pass_len, in do_ui_passphrase() argument
125 if (!ossl_assert(pass != NULL && pass_size != 0 && pass_len != NULL)) { in do_ui_passphrase()
149 ipass = OPENSSL_zalloc(pass_size + 1); in do_ui_passphrase()
155 ipass, 0, pass_size) - 1; in do_ui_passphrase()
163 vpass = OPENSSL_zalloc(pass_size + 1); in do_ui_passphrase()
168 vpass, 0, pass_size, in do_ui_passphrase()
196 OPENSSL_clear_free(vpass, pass_size + 1); in do_ui_passphrase()
197 OPENSSL_clear_free(ipass, pass_size + 1); in do_ui_passphrase()
204 int ossl_pw_get_passphrase(char *pass, size_t pass_size, size_t *pass_len, in ossl_pw_get_passphrase() argument
228 if (source_len > pass_size) in ossl_pw_get_passphrase()
229 source_len = pass_size; in ossl_pw_get_passphrase()
241 ret = cb(pass, pass_size, pass_len, params, cbarg); in ossl_pw_get_passphrase()
280 ret = do_ui_passphrase(pass, pass_size, pass_len, prompt_info, verify, in ossl_pw_get_passphrase()
334 int ossl_pw_passphrase_callback_enc(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_enc() argument
338 return ossl_pw_get_passphrase(pass, pass_size, pass_len, params, 1, arg); in ossl_pw_passphrase_callback_enc()
341 int ossl_pw_passphrase_callback_dec(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_dec() argument
345 return ossl_pw_get_passphrase(pass, pass_size, pass_len, params, 0, arg); in ossl_pw_passphrase_callback_dec()