Lines Matching refs:pass_size
118 static int do_ui_passphrase(char *pass, size_t pass_size, size_t *pass_len, in do_ui_passphrase() argument
127 if (!ossl_assert(pass != NULL && pass_size != 0 && pass_len != NULL)) { in do_ui_passphrase()
151 ipass = OPENSSL_zalloc(pass_size + 1); in do_ui_passphrase()
159 ipass, 0, pass_size) - 1; in do_ui_passphrase()
167 vpass = OPENSSL_zalloc(pass_size + 1); in do_ui_passphrase()
174 vpass, 0, pass_size, in do_ui_passphrase()
202 OPENSSL_clear_free(vpass, pass_size + 1); in do_ui_passphrase()
203 OPENSSL_clear_free(ipass, pass_size + 1); in do_ui_passphrase()
210 int ossl_pw_get_passphrase(char *pass, size_t pass_size, size_t *pass_len, in ossl_pw_get_passphrase() argument
234 if (source_len > pass_size) in ossl_pw_get_passphrase()
235 source_len = pass_size; in ossl_pw_get_passphrase()
247 ret = cb(pass, pass_size, pass_len, params, cbarg); in ossl_pw_get_passphrase()
286 ret = do_ui_passphrase(pass, pass_size, pass_len, prompt_info, verify, in ossl_pw_get_passphrase()
341 int ossl_pw_passphrase_callback_enc(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_enc() argument
345 return ossl_pw_get_passphrase(pass, pass_size, pass_len, params, 1, arg); in ossl_pw_passphrase_callback_enc()
348 int ossl_pw_passphrase_callback_dec(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_dec() argument
352 return ossl_pw_get_passphrase(pass, pass_size, pass_len, params, 0, arg); in ossl_pw_passphrase_callback_dec()