Skip to content

Commit

Permalink
Revert "Remove crypto_pwhash_scryptsalsa208sha256_ll.json; it's broken"
Browse files Browse the repository at this point in the history
This reverts commit b50d40e.
  • Loading branch information
jedisct1 committed Feb 13, 2023
1 parent ca0d943 commit 930b786
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions wrapper/symbols/crypto_pwhash_scryptsalsa208sha256_ll.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "crypto_pwhash_scryptsalsa208sha256_ll",
"type": "function",
"inputs": [
{
"name": "password",
"type": "unsized_buf"
},
{
"name": "salt",
"type": "unsized_buf"
},
{
"name": "opsLimit",
"type": "uint"
},
{
"name": "r",
"type": "uint"
},
{
"name": "p",
"type": "uint"
},
{
"name": "keyLength",
"type": "uint"
}
],
"outputs": [
{
"name": "derivedKey",
"length": "keyLength",
"type": "buf"
}
],
"target": "libsodium._crypto_pwhash_scryptsalsa208sha256_ll(password_address, password_length, salt_address, salt_length, opsLimit, 0, r, p, derivedKey_address, keyLength) | 0",
"assert_retval": [
{
"condition": "=== 0",
"or_else_throw": "invalid usage"
}
],
"return": "_format_output(derivedKey, outputFormat)"
}

0 comments on commit 930b786

Please sign in to comment.