diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-06-30 18:08:39 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-06-30 18:08:39 -0600 |
commit | 5d4467232072ff62c20b1847a70439e67b70d4e3 (patch) | |
tree | e41c97f4e51a06cefdf05c3e8805e18dc8931f6f | |
parent | 6ebadca28d7d6a25d44d92974d41926a94c88aea (diff) | |
download | quickjs-tart-5d4467232072ff62c20b1847a70439e67b70d4e3.tar.gz quickjs-tart-5d4467232072ff62c20b1847a70439e67b70d4e3.tar.bz2 quickjs-tart-5d4467232072ff62c20b1847a70439e67b70d4e3.zip |
Correct data types in argon2id function
-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 651a428..01cd990 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: IDataType + // password: Uint8Array pw = JS_GetArrayBuffer(ctx, &pw_len, argv[0]); if (!pw) { goto exception; } - // salt: IDataType + // salt: Uint8Array salt = JS_GetArrayBuffer(ctx, &salt_len, argv[1]); if (!salt) { goto exception; |