Questions tagged [libsodium]

Sodium is a portable, cross-compilable, installable, packageable fork of the NaCl Cryptography & Networking library, with a compatible API.

Sources & Resources:

322 questions
1
vote
3 answers

Xcode Bot bitcode error during integration only

ld: '/Library/Developer/XcodeServer/Integrations/Caches/5c17d3e903f4d302cf453 40fb301f30f/Source/ocular/Pods/Sodium/Sodium/libsodium- ios.a(libsodium_la-crypto_box.o)' does not contain bitcode. You must rebuild it with bitcode enabled…
perwyl
  • 323
  • 3
  • 14
1
vote
1 answer

Serialize sodiumoxides' PublicKey into JSON

I try to serialize the PublicKey struct of sodiumoxide (Rust bindings for libsodium) to a file (e.g. JSON, but binary would be okay, too). Here is my code: extern crate serde; extern crate serde_json; extern crate sodiumoxide; use…
duesee
  • 141
  • 1
  • 9
1
vote
2 answers

Cannot open "SecretBox" generated by TweetNacl (Java) with "Libsodium-net" (C#)

I'm having problems opening a Nacl SecretBox (generated in java using the TweetNaclFast library) in C# using the libsodium-net library. I also can't do it the other way around (open a libsodium-net generated box using TweetNaclFast). In the…
loveMeansNothing
  • 361
  • 1
  • 5
  • 20
1
vote
1 answer

nim linker error while linking to libsodium

I'm on windows 7 (64bit). My nim version is:Nim Compiler Version 0.12.0 (2015-12-15) [Windows: i386] I tried to build libsodium (https://github.com/jedisct1/libsodium) with this nim wrapper (https://github.com/judofyr/sodium.nim) I've compiled…
enthus1ast
  • 2,099
  • 15
  • 22
1
vote
1 answer

libsodium segment fault on ARMv5

I can use libsodium 1.0.7 just fine in Ubuntu but there seems to be some issue when trying to cross-compile the libsodium library to an armv5 architecture (armv5tejl-unknown-linux-gnueabihf). I have used ./configure…
Tias
  • 19
  • 2
1
vote
1 answer

Same input and output buffer for libsodium crypto_stream_salsa20_xor

I am wondering whether it is safe to provide the same buffer as plaintext and ciphertext for crypto_stream_salsa20_xor. I have tried to look into source files. crypto_stream_salsa20_xor uses crypto_core_salsa20, but this function appears only in a…
robert
  • 3,539
  • 3
  • 35
  • 56
1
vote
1 answer

Using ipython notebook via SSH gives GLIBC not found error

I am trying to run ipython notebook via SSH in a virtualenv previously created on the computer directly logged in (no SSH). When doing so the ipython notebook fails with: (venv2) [host]user: ipython notebook --nobrowser Traceback (most recent call…
pawni
  • 761
  • 5
  • 3
1
vote
0 answers

Creating Nacl Cryptography library project in Eclipse on Ubuntu

I want to create an Eclipse project of the NaCl cryptographic library. I have installed it using the commands mentioned on the website, but I don't know how should I properly include all those files in my eclipse project so that I can use it to…
LearningToCode
  • 631
  • 1
  • 12
  • 23
1
vote
0 answers

Questions regarding Libsodium

I am trying to use the lib-sodium cryptography library in Visual Studio 2015. Following is my piece of code unsigned char pk[crypto_box_PUBLICKEYBYTES]; unsigned char sk[crypto_box_SECRETKEYBYTES]; crypto_box_keypair(pk, sk); cout <<…
LearningToCode
  • 631
  • 1
  • 12
  • 23
1
vote
1 answer

Apache Thrift encryption - Java

I plan to use Thrift for Client/Server RPCs, and I would like to encrypt the exchanged data using libsodium. I know there is TLS builtin but the TLSTransportParameters do not seem to give much configuration possibilities. Does someone know at which…
0
votes
0 answers

How to use static library libsodium.lib in C++Builder?

Under C++Builder, I am having an error at link step while trying to use static library libsodium.lib. The test under Visual Studio works fine. Any idea to help ? This is my code : // C++ Builder //... #define SODIUM_STATIC extern "C" { #include…
ibouka
  • 13
  • 1
  • 5
0
votes
1 answer

Why is the private signing key in lib sodium 64 bytes?

To generate a keypair for signing in libsodium one can use (copied from documentation): unsigned char pk[crypto_sign_PUBLICKEYBYTES]; unsigned char sk[crypto_sign_SECRETKEYBYTES]; crypto_sign_keypair(pk, sk); crypto_sign_SECRETKEYBYTES resolves to…
bohr
  • 1
0
votes
2 answers

Trying to implement diffie-hellman using libsodium and react but getting a different shared secret key

I am trying to implement diffie hellman using libsodium but I am getting a different shared secret key when doing an exchange. async function handleSharedSecret() { await _sodium.ready; const sodium = _sodium; const secretKey =…
Maverick 2000
  • 15
  • 1
  • 4
0
votes
0 answers

How to efficiently and securely encrypt and decrypt large files

I am working on chat website based on php and mysql. In this application users can send audio,video and images and almost all kinds of file to each other. I am trying to add the feature of end to end encryption in it. So, for text messages I am…
0
votes
0 answers

Encryption and Decryption in PHP occasionally failing

We're trying to implement an authenticated symmetric encryption in PHP, which works most of the times, but occasionally fails, and we do not really understand why. The code is: // Encryption of $secret_code, e.g. integer = 152 $secret_code =…
DevelJoe
  • 856
  • 1
  • 10
  • 24