quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 370bc24d1614018a8c255319472dfe3502244022
parent 310f4aff961334eec93ef30c08099279ab3e002a
Author: Iván Ávalos <avalos@disroot.org>
Date:   Fri, 30 Jun 2023 18:08:39 -0600

Correct data types in argon2id function

Diffstat:
Mtart_module.c | 4++--
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: 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;