Questions tagged [nettle]

15 questions
10
votes
5 answers

GnuTLS Libnettle 3.4 was not found

When I try to configure GnuTLS I'm getting the error that Libnettle 3.4 was not found. I've nettle 3.4.1-1 installed and the library files are present in /usr/lib. Even when I specify the environment variable NETTLE_LIBS directly (export…
DevJoe
  • 143
  • 1
  • 1
  • 5
4
votes
2 answers

configure GnuTLS - libnettle 3.4.1 was not found - OS X Lion

I'm trying to build GnuTLS-3.x on my OS X Lion and here is my configure command: ./configure --prefix=/usr/local/gnutls-3.4.9 --with-included-libtasn1 --without-p11-kit It ends up checking for NETTLE... no configure: error: *** *** Libnettle…
Terry
  • 1,206
  • 1
  • 10
  • 26
2
votes
1 answer

How do I use Nettle from Python?

The package description shown in Synaptic Package Manager tells about nettle: Nettle is a cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...),…
Claudio
  • 7,474
  • 3
  • 18
  • 48
1
vote
1 answer

nettle curve 25519 result of base point * 1

I am using GNU nettle library. I have the following code: #include uint8_t result[32], one[32]; for(auto &i : one) i = 0; one[31] = 1; curve25519_mul_g(result, one); In the code, I multiplied 1 with the base point. The base…
Zeta
  • 913
  • 10
  • 24
1
vote
1 answer

How do I fix an undefined reference to `nettle_sha256_digest`?

TL;DR I'm attempting to build a go project that uses this dependency: https://github.com/mqu/openldap, which in turn externally links lldap and llber libraries, which in turn uses lgnutls, which uses lnettle, which is where I'm stuck. The go build…
erstaples
  • 1,986
  • 16
  • 31
1
vote
1 answer

Why is my MD5 Hash static for the whole process?

I'm using nettle for MD5 hashing(I also tried SHA1 with the same issue). Whenever I hash anything, the hash is always the same, even for radically different lengths and data. if (rs.response->body != NULL && rs.response->body->len > 0) { // body…
JavaProphet
  • 931
  • 14
  • 29
1
vote
1 answer

nettle twofish CBC

I had not problems with using nettle's twofish with standard ecb mode however i'm not sure what's wrong with this cbc mode? The decrypted message will not match the original. (using some hardcoded values like iv just for test…
shoen
  • 11,845
  • 4
  • 22
  • 27
0
votes
0 answers

Compiling openconnect with android ndk failure

I'm trying to make an application similar to ics-openconnect. As you know it is based on openconnect, so I first tried to compile it for Android, and here are the problems that I faced: First, the NDK path and version in the Makefile varies from…
ali73
  • 415
  • 1
  • 5
  • 17
0
votes
0 answers

Build error for gnutls-3.7.8 on Ubuntu 20.04.5 - weirdness with streebog512_ctx

I am trying to install gnutls 3.7.8 on an Ubuntu 20.04.5 server. Had to install nettle first. Command I am running for configure: PKG_CONFIG_PATH="/usr/lib/pkgconfig/:$PKG_CONFIG_PATH" ./configure --prefix=/usr --with-included-unistring…
Bee
  • 1
  • 1
0
votes
0 answers

Cannot find `include_paths` for nettle

I am pretty new in Rust and I am trying to include the Nettle cryptographic library in a project. After adding Nettle in my Cargo.toml, whenever I try to run the project I get a "error[E0425]: cannot find value include_paths in this scope" when…
GeoMldr
  • 50
  • 6
0
votes
1 answer

nettle curve25519 key exchange

I'm trying to understand how to implement key exchange using nettle's curve25519 functions. I'm writing an software that establishes encrypted TCP connection with public key based authentication. The client and server programs share the same code…
JATothrim
  • 842
  • 1
  • 8
  • 24
0
votes
1 answer

After system upgrade (Open SUSE Tumbleweed), I get consistent symbol lookup errors related to /usr/lib64/libgnutls.so.30

After updating my Open SUSE Tumbleweed system, I get consistent errors relating to the GNU TLS library. It has prevented me from using certain programs, while others start, but produce errors For example, brave returns: /opt/brave.com/brave/brave:…
Geremachek2
  • 121
  • 1
  • 6
0
votes
1 answer

How to use nettle library, GCM mode

I am using nettle cryptography library. I could not do GCM mode properly. Here is how I am doing it. What am I doing wrong? #include #include #include using namespace std; int main() { unsigned char key[]…
Zeta
  • 913
  • 10
  • 24
0
votes
0 answers

Code to check decryption part of nettle in gnutls

Require code similair to below encrypt on decryption . below code is to test encryption, similarly can i get code only for testing decryption part of nettle. /* aes encryption example */ /* LICENSE: LGPL */ /* Compile in nettle…
adnan
  • 1
  • 1
0
votes
0 answers

Nettle 3.4 returns an error with the make command

I've been trying to run MARSS simulator on Ubuntu 18.04. So it threw an error saying gnuTLS library not found. When I went on installing that library it threw an error saying libnette 3.1 not found, so I go ahead and try to install nettle 3.4. This…
Vansh
  • 69
  • 6