libcrypto

Segfault with multithreaded curl request

久未见 提交于 2019-12-10 17:24:20
问题 I'm having some trouble with a C++ program here. Basically I've written a simple wrapper for http requests, with the ability to do multiple requests at once. Works absolutely fine, but when I do httpS requests, it crashes randomly in multithreaded mode. I'm using curl and posix threads. Backtrace looks like this: ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7fea9046d996] /lib/x86_64-linux-gnu/libc.so.6(+0x82b80)[0x7fea9046fb80] /lib/x86_64-linux-gnu/libc.so.6

How to solve ssh: /usr/lib64/libcrypto.so.10: no version information available [closed]

两盒软妹~` 提交于 2019-12-05 21:12:30
I am trying to do ssh and got following message: ]#ssh ssh: /usr/lib64/libcrypto.so.10: no version information available (required by ssh) ssh: /usr/lib64/libcrypto.so.10: no version information available (required by ssh) ssh: /usr/lib64/libcrypto.so.10: no version information available (required by ssh) Same thing happened with CURL: ]#curl curl: /usr/lib64/libcrypto.so.10: no version information available (required by /usr/lib64/libssh2.so.1) curl: try 'curl --help' or 'curl --manual' for more information Any solution guys? Output of ldd ssh is as below: ]# ldd /usr/bin/ssh /usr/bin/ssh:

Python crashing on MacOS 10.15 Beta (19A582a) with “/usr/lib/libcrypto.dylib”

笑着哭i 提交于 2019-12-03 06:28:58
问题 I ran my Django project with new macOS Catalina and was running fine. I installed oh_my_zsh then I tried to run the same project it is crashing with the following errors. I uninstalled oh_my_zsh and tried again but it did not worked. Path: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.7.4 (3.7.4) Code Type: X86-64 (Native) Parent Process: Python [7526] Responsible: Terminal [7510] User ID: 501

How to calculate AES CMAC using OpenSSL's CMAC_xxx functions?

怎甘沉沦 提交于 2019-11-30 07:39:39
问题 Is there any way to compute AES CMAC with OpenSSL / libcrypto ? Preferably in a way that takes advantage of AES-NI (or any other hardware acceleration). See also CMAC Key generation with OpenSSL EVP_DigestSign* fails 回答1: As stated in my blog post you can use the CMAC_CTX_new , CMAC_Init , CMAC_Update and CMAC_Final from lib crypto to calculate AES-128-CBC CMAC. Here is an example: #include <stdio.h> #include <openssl/cmac.h> void printBytes(unsigned char *buf, size_t len) { for(int i=0; i

no version information available

為{幸葍}努か 提交于 2019-11-30 01:21:27
I'm using Ubuntu 12.04 - server and consistently getting: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /usr/lib/libpython2.7.so.1.0) and /usr/lib/libssl.so.1.0.0: no version information available (required by /usr/lib/libpython2.7.so.1.0) error messages without any pattern for why. It can be something as simple as running vi.The files are there and they are not links. This started happening a little after compiling and installing OpenLDAP, using the instructions from their site while learning the basics of the ldap server. I have removed openLDAP of course to try

How to calculate AES CMAC using OpenSSL's CMAC_xxx functions?

北城以北 提交于 2019-11-29 05:17:00
Is there any way to compute AES CMAC with OpenSSL / libcrypto ? Preferably in a way that takes advantage of AES-NI (or any other hardware acceleration). See also CMAC Key generation with OpenSSL EVP_DigestSign* fails ecerulm As stated in my blog post you can use the CMAC_CTX_new , CMAC_Init , CMAC_Update and CMAC_Final from lib crypto to calculate AES-128-CBC CMAC. Here is an example: #include <stdio.h> #include <openssl/cmac.h> void printBytes(unsigned char *buf, size_t len) { for(int i=0; i<len; i++) { printf("%02x ", buf[i]); } printf("\n"); } int main(int argc, char *argv[]) { // https:/

Linking libssl and libcrypto in GCC [duplicate]

馋奶兔 提交于 2019-11-27 09:16:43
This question already has an answer here: Errors that refer to a bunch of unresolved OpenSSL symbols that clearly exist? 1 answer I'm attempting to use OpenSSL's EVP interface to do some encryption. I'm pretty sure my code is right, but I can't seem to get it to compile. I'm using GCC, and Ubuntu 32-bit precise with libssl-dev installed and at the latest version. The project currently consists of one file, program.c . #include <openssl/evp.h> ... i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha1() ... ); ... EVP_CIPHER_CTX_init(e_ctx); among other various calls. Here is how I invoke gcc: gcc

Linking libssl and libcrypto in GCC [duplicate]

对着背影说爱祢 提交于 2019-11-26 14:30:13
问题 This question already has an answer here: Errors that refer to a bunch of unresolved OpenSSL symbols that clearly exist? 1 answer I'm attempting to use OpenSSL's EVP interface to do some encryption. I'm pretty sure my code is right, but I can't seem to get it to compile. I'm using GCC, and Ubuntu 32-bit precise with libssl-dev installed and at the latest version. The project currently consists of one file, program.c . #include <openssl/evp.h> ... i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha1