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?
319 views Asked by cryptobeginner At
1
There are 1 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in ELLIPTIC-CURVE
- SMRequest After PACE PIN Establishement
- CMac calculation in C# using BouncyCastle
- PACE PIN Generic Mapping implementation in c#
- Encryption and decryption method with elliptic curve public key pairs
- ECDH C# key exchange ( get the shared secret beetween the two party)
- EC Keypair Issue: Can't verify a signature with the correct public key
- Performing PACE PIN authentication using C# and nfc card : Chip Authentication with ECDH
- Elliptic Curve - Arithmetic overflow
- How do I get the 'pub' info from an EC certificate in Java?
- LetsEncrypt certificates fails on Android phones running Android 7 or older
- How to properly parametrize a SECP256K1 curve using the SE051 IoT SDK?
- What is eciesEncryptionCofactorVariableIVX963SHA512AESGCM in iOS SecKeyCreateEncryptedData?
- Reproducible Elliptic Curve Digital Signature algorithm parameters in C#
- Problem with the out put of the ecc_decryption_key using libtomcrypt in C
- Why Does Iden3 Use 253-bit Slots for Claims
Related Questions in X25519
- How to use X25519 shared secret for encryption?
- Convert X25519 to Ed25519 in curve25519-dalek
- Derive same X25519 public from either Ed25519-public or Ed25519-secret
- Curve25519 exchange between BouncyCastle and .NET
- Does Java 8 with Bouncy Castle as security provider support X25519 namedgroup?
- Unable to Decrypt in Python using X25519 Keys for Cipher encrypted in Java
- Convert X25519 raw binary key to pem file for openssl
- X25519 calculated shared key is different in two programs
- Java X25519 shared secret is not correct when using testing vectors from RFC7748
- tweetnacl -- What input does nacl.box.keyPair.fromSecretKey expect?
- (C#) Calculate key share using private key and public key on (EC)DHE x25519
- SSL Handshake problem when running as jar but not in ide
- Storing a X25519 key pair in a BouncyCastle BCFKS keystore
- Why does Curve25519 calculate key pair correctly even though its parameters are wrong?
- TLS 1.3 The client and server cannot communicate because they do not possess a common algorithm
Related Questions in TWEET-NACL
- TweetNaCl.js encryption and decryption not working properly
- tweetnacl returns no PRNG error in react native
- tweetnacl -- What input does nacl.box.keyPair.fromSecretKey expect?
- unexpected type, use Uint8Array using tweetnacl sigining solana transaction
- Encrypt in tweet-nacl (javascript) and decrypt in python
- 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.js minimal Public-key signatures example
- Mixing tweetnacl.js with TweetNaclFast (java) for asymmetric encryption
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?
Popular Tags
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)
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.