diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-06-30 18:02:51 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-07-26 11:57:06 -0600 |
commit | 310f4aff961334eec93ef30c08099279ab3e002a (patch) | |
tree | 47e1ff5058541320790fec203fefc97f41a5c5ec | |
parent | 85e7c09f260b258f372f93ac58407d75b02be49e (diff) | |
download | quickjs-tart-310f4aff961334eec93ef30c08099279ab3e002a.tar.gz quickjs-tart-310f4aff961334eec93ef30c08099279ab3e002a.tar.bz2 quickjs-tart-310f4aff961334eec93ef30c08099279ab3e002a.zip |
Add native QuickJS function for argon2id
-rw-r--r-- | tart_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tart_module.c b/tart_module.c index 01cd990..651a428 100644 --- 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; |