commit 310f4aff961334eec93ef30c08099279ab3e002a
parent 85e7c09f260b258f372f93ac58407d75b02be49e
Author: Iván Ávalos <avalos@disroot.org>
Date: Fri, 30 Jun 2023 18:02:51 -0600
Add native QuickJS function for argon2id
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tart_module.c b/tart_module.c
@@ -468,13 +468,13 @@ static JSValue js_talercrypto_hash_argon2id(JSContext *ctx, JSValue this_val,
JSValue ret_val;
- // password: Uint8Array
+ // password: IDataType
pw = JS_GetArrayBuffer(ctx, &pw_len, argv[0]);
if (!pw) {
goto exception;
}
- // salt: Uint8Array
+ // salt: IDataType
salt = JS_GetArrayBuffer(ctx, &salt_len, argv[1]);
if (!salt) {
goto exception;