Questions tagged [libcrypto]

The OpenSSL crypto library implements a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implementations of SSL, TLS and S/MIME, and they have also been used to implement SSH, OpenPGP, and other cryptographic standards.

The OpenSSL crypto library implements a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implementations of SSL, TLS and S/MIME, and they have also been used to implement SSH, OpenPGP, and other cryptographic standards.

libcrypto consists of a number of sub-libraries that implement the individual algorithms. The functionality includes symmetric encryption, public key cryptography and key agreement, certificate handling, cryptographic hash functions and a cryptographic pseudo-random number generator.

More Deatails

155 questions
2
votes
1 answer

Manually loading libcrypto (dlmopen, dlsym) segfaults; dynamically linked works

I am trying to use the function EVP_PKEY_new_raw_private_key from libcrypto.so.3. When I link with -l:libcrypot.so.3, it works. When I try to open the same file with dlmopen+dlsym, it SEGV when the function is called. An MWE is here: main.c #define…
Joel
  • 1,725
  • 3
  • 16
  • 34
2
votes
0 answers

My Python program is warning me that lib crypto is loaded in unsafe way

My Python program is warning me that lib crypto is loaded in an unsafe way and aborts the task: WARNING: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python is loading…
OOGWAY
  • 93
  • 9
2
votes
3 answers

The library libcrypto could not be found

Recently my lambda code stopped working. I am no longer able to create connection to Snowflake with sqlalchemy. See error stack below. The library libcrypto could not be found: LibraryNotFoundError Traceback (most recent call last): (...) File…
Luk
  • 2,186
  • 2
  • 11
  • 32
2
votes
1 answer

nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit)

I ran over a sles 12 server and i got this issue when I try to install php7-openssl-7.2.13-155.1.x86_64.rpm : zypper in ./php7-openssl-7.2.13-155.1.x86_64.rpm Loading repository data... Reading installed packages... Resolving package…
Fardouk
  • 21
  • 1
  • 3
2
votes
0 answers

VS 2017 unresolved external symbol __imp__stricmp (libcrypto_static.lib)

I am statically linking OpenSSL libraries (on Windows) but I have around 30 linker errors, similar like this one: libcrypto_static.lib(o_names.obj) : error LNK2001: unresolved external symbol __imp__stricmp As recommended, I used the…
query
  • 329
  • 7
  • 18
2
votes
0 answers

Looping Through ASN.1 Sequence Using OpenSSL Libcrypto

Given a sequence object, how can one iterate through the objects inside it? I've tried ASN1_TYPE_unpack_sequence but have no idea how to interpret the objects it returns. Here is a toy example, the DER encoding of a sequence containing an empty…
Arya Pourtabatabaie
  • 705
  • 2
  • 7
  • 22
2
votes
0 answers

Golang cgo error while loading shared library (libcrypto) on other computers

I wrote a go package that is just a wrapper for a C program, which requires openssl to work. My CGO setup is as follow: // #cgo CFLAGS: -Imy/library/include -Imy/library/src -I/usr/local/opt/openssl/include // #cgo LDFLAGS: -L/usr/include/openssl…
gbalduzzi
  • 9,356
  • 28
  • 58
2
votes
0 answers

Node.js and socket.io with SSL - Segmentation fault in libcrypto

My server runs CentOS 7 with Node.js and NPM installed by Yum. Dependencies installed and compiled by NPM: socket.io, express Node.js 6.12.3 Socket.io 2.0.4 Express 4.16.2 SSL cert generated by Let's Encrypt. I'm receiving an error in…
Arvy
  • 1,072
  • 2
  • 16
  • 29
2
votes
1 answer

Difference between EVP_PKEY_sign and EVP_DigestSignInit?

So far I've seen two different approaches to RSA signing with OpenSSL: With EVP_PKEY_sign ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */); if (!ctx) /* Error occurred */ if (EVP_PKEY_sign_init(ctx) <= 0) /* Error */ if…
olegst
  • 1,209
  • 1
  • 13
  • 33
2
votes
1 answer

Linux libcrypto AES-128 CBC Encryption/Decryption works on Ubuntu but not Raspberry Pi

The following example encrypts and decrypts to the same original string properly on a 64-bit Desktop Ubuntu 16.04, but when the same code is compiled and run on Raspberry Pi ( ARM ) ( and also another custom Linux ARM board ) it fails to decrypt to…
PhilBot
  • 748
  • 18
  • 85
  • 173
2
votes
2 answers

OpenSSL link libcrypto.a in a static way

I have the following makefile and I would add the library "libcrypto.a" in a static way. I need to do this because the target system cannot install the openssl libraries. # Environment MKDIR=mkdir CP=cp GREP=grep …
stackpic91
  • 189
  • 2
  • 4
  • 13
2
votes
2 answers

Decrypting an AES-encrypted message with an RSA-encrypted key with EVP tool

For industrial purposes, I want to decrypt an AES-encrypted message with an RSA-encrypted key in C. At first, I thought doing it step-by-step by first, using OpenSSL libcrypto library, by first RSA decoding the key then AES decoding the data. I…
Badda
  • 1,329
  • 2
  • 15
  • 40
2
votes
1 answer

Handling errors in libcrypto BIO base64 decoding

I've been playing around libcrypto's BIO, and I can't find a way to detect errors during base64 decoding. Even if data is complete garbage, BIO_read just returns zero, and error queue - as examined with ERR_get_error - remains empty. The same issue…
WGH
  • 3,222
  • 2
  • 29
  • 42
2
votes
1 answer

AES encryption on QStrings, libcrypto++

I have the followind piece of code that encrypts and decrypts the message. QString AesUtils::encrypt(QString message, QString aesKey) { string plain = message.toStdString(); qDebug() << "Encrypt" << plain.data() << " " << plain.size(); …
Veaceslav
  • 181
  • 2
  • 12
2
votes
1 answer

OpenSSL AES_cbc_encrypt vs EVP interfaces

I need to encrypt long lived network data streams using AES-CBC. I was thinking I would call EVP_EncryptInit_ex() just once and save the EVP_CIPHER_CTX for subsequent calls to EVP_EncryptUpdate. Then do likewise on the decrypt end. The first…
user1055568
  • 1,349
  • 13
  • 21
1 2
3
10 11