Lines Matching refs:pass_len
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()
189 *pass_len = (size_t)res; in do_ui_passphrase()
190 memcpy(pass, ipass, *pass_len); 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
231 *pass_len = source_len; 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()
288 || *pass_len > data->cached_passphrase_len) { in ossl_pw_get_passphrase()
292 *pass_len + 1); in ossl_pw_get_passphrase()
295 OPENSSL_cleanse(pass, *pass_len); in ossl_pw_get_passphrase()
300 memcpy(data->cached_passphrase, pass, *pass_len); in ossl_pw_get_passphrase()
301 data->cached_passphrase[*pass_len] = '\0'; in ossl_pw_get_passphrase()
302 data->cached_passphrase_len = *pass_len; in ossl_pw_get_passphrase()
335 size_t *pass_len, 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()
342 size_t *pass_len, 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()