I am little bit confused about the API of tweetnacl. Does the function nacl.box.keyPair.fromSecretKey except the secretKey argument to be already clamped? Or it is it fine to provide a random byte string? The way I read the code, tweetnacl does the clamping later on, correct? So is the secretKey in tweetNacl always a random byte string and the clamping is done in internal library functions?
tweetnacl -- What input does nacl.box.keyPair.fromSecretKey expect?
316 Views Asked by cryptobeginner At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in ELLIPTIC-CURVE
- Recovering an ECPublicKey from JavaCard to Java
- SageMathCloud: random elliptic curve
- Recovering an ECPublicKey from Java to JavaCard
- Use previously generated private key in ECIES
- Node.js crypto module - ECDH
- Elliptic curve point addition over a finite field in Python
- Mod function returns 0 for Matlab
- Did anyone implement Asymmetric cryptographic algorithm in Contiki OS specially in Rime stack.?
- Inversion and point subtraction on Elliptic Curve
- Which elliptic curves does jarsigner support?
- Pari/GP Exceptions/break loops
- ECC in Python--Encrypt to Multiple Public Keys?
- Need explanation of Elliptic Curve Key Pair Generation code
- How to properly prepare for ECC encryption using .net framework 4.7?
- Why does public key blob contains key type and key length in big endian format in .net framework 4.7?
Related Questions in X25519
- Derive same X25519 public from either Ed25519-public or Ed25519-secret
- Convert X25519 to Ed25519 in curve25519-dalek
- Why does Curve25519 calculate key pair correctly even though its parameters are wrong?
- Storing a X25519 key pair in a BouncyCastle BCFKS keystore
- TLS 1.3 The client and server cannot communicate because they do not possess a common algorithm
- Java X25519 shared secret is not correct when using testing vectors from RFC7748
- How to calculate public key for TLS key exchange using OpenSSL functions?
- Where can I find the Curve25519 derive method implementation?
- How to create x25519 public key from XZ coordinates?
- SSL Handshake problem when running as jar but not in ide
- Does Java 8 with Bouncy Castle as security provider support X25519 namedgroup?
- Convert X25519 raw binary key to pem file for openssl
- Unable to Decrypt in Python using X25519 Keys for Cipher encrypted in Java
- How do I pass a 44 Bytes x25519 public key created by openssl to CryptoKit which requires a key length of 32 Bytes
- (C#) Calculate key share using private key and public key on (EC)DHE x25519
Related Questions in TWEET-NACL
- Mixing tweetnacl.js with TweetNaclFast (java) for asymmetric encryption
- Encrypt in tweet-nacl (javascript) and decrypt in python
- unexpected type, use Uint8Array using tweetnacl sigining solana transaction
- TweetNaCl.js Public-key signatures example err
- I am using PyNacl at the backend for digital signatures. Which library should I use at frontend?
- tweetnacl -- What input does nacl.box.keyPair.fromSecretKey expect?
- TweetNaCl.js minimal Public-key signatures example
- tweetnacl returns no PRNG error in react native
- TweetNaCl.js encryption and decryption not working properly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Correct, you don't need to be concerned with 25519 clamping.
The library handles this. You simply need to supply a uniformly random 256-bit byte array.