dchest / tweetnacl-js

Port of TweetNaCl cryptographic library to JavaScript
https://tweetnacl.js.org
The Unlicense
1.75k stars 292 forks source link

A: is there a difference between Scalar aerosol and golang? #152

Closed BigEgret closed 5 years ago

BigEgret commented 5 years ago

let key = Buffer.allocUnsafe(32) let iv = Buffer.allocUnsafe(32) for (let i=0;i<32;i++){ key[i] = i+32; iv[i] = i+35; } nacl.scalarMult(key , iv ) ; Different from golang?

dchest commented 5 years ago

Sorry, I don't understand your question, and your example code doesn't make any sense. If you'd like to report a bug in TweetNaCl-js, please provide example code that fails, with expected results that it doesn't produce. If you'd like to ask a question on how to use cryptography or this library, please use StackOverflow or similar places, as GitHub is our issue tracker, not a support forum.