Questions tagged [nacl-cryptography]

NaCl (pronounced "salt") is a high-speed software library for network communication, encryption, decryption, signatures, and more. Not to be confused with [google-nativeclient].

Sources & Resources:

54 questions
0
votes
1 answer

Nonce reuse for different recipients?

I'm generating a new random symmetric key and want to pass that to multiple people using crypto_box_easy. Is it okay to reuse the same (random) nonce for the same message and same sender but for different recipients? Can the same nonce be used for a…
fl64738
  • 11
  • 2
0
votes
1 answer

Why does the NaCL Crypto Library source code reference header files that aren't in the code?

I'm looking through the code for the NaCL Crytpo Library, though I have almost no experience with C and C++. In some of the .cpp files, there are references to header files that are not in the source code. For example, in wrapper-box.cpp it has…
Iceape
  • 211
  • 2
  • 11
0
votes
1 answer

GET request successfully returns decrypted gist first time, but empty object after restarting the server

Using JavaScript and nacl libraries to get a GitHub gist and return the decrypted content. All nacl methods accept and return UINT8 arrays, so it is worth noting that the key is also a UINT8 array of 32 random bytes. …
MadHatter
  • 366
  • 1
  • 7
  • 23
0
votes
1 answer

Access MAC keys in NaCl/libsodium

According to https://cr.yp.to/highspeed/naclcrypto-20090310.pdf, NaCl derives a MAC key from the shared secret and the nonce in crypto_box APIs. Alice uses the first 32 bytes of the long stream (generated from the shared secret and nonce using…
qweruiop
  • 3,156
  • 6
  • 31
  • 55
0
votes
0 answers

pynacl fails, while building (setup.py)

I have tried in multiple environments, debian 8, ubuntu 14.04, and ubuntu 16.04 and when I try to install pynacl it gives this error Collecting pynacl Downloading PyNaCl-1.1.2.tar.gz (3.1MB) 100% |████████████████████████████████| 3.1MB…
Bob Kmak
  • 1
  • 2
0
votes
0 answers

Using NaCl to benchmark new crypto algorithm

For my master thesis, I have to implement some new Cryptographic functions so that I can have a brief overview of their performance. I have checked on the internet and it seems that the NaCl library was created for this purpose. To be more precise…
user1382272
  • 189
  • 2
  • 13
0
votes
1 answer

NaCl XSalso20 C code not compiling

I was just trying out the Xsalsa20 code from NaCl website. I am unable to compile it. #include "build/BlackDragon/include/x86/crypto_stream.h" #include int main(){ //const unsigned char m[crypto_stream_xsalsa20; const unsigned char…
BMC
  • 591
  • 3
  • 7
  • 22
0
votes
2 answers

Disable NaCl crypto library's CPU tuning

Is it possible to disable the automatic CPU-specific tuning in NaCl? I would like to compile the reference .c ignoring any x86 .s (from qhasm) etc. where applicable. Setting -march and -mtune or -mcpu appears not to be sufficient.
OJFord
  • 10,522
  • 8
  • 64
  • 98
0
votes
1 answer

Having trouble building pynacl

I've been trying to build pynacl (https://github.com/pyca/pynacl). But I'm having some trouble. I'm running ubuntu and I've tried installing libsodium and everything else I can think of but still same problem. When I run: python setup.py install i…
user1930848
  • 341
  • 1
  • 4
  • 12
1 2 3
4