Re: RSA and DES encryption and decryption with C++ on Windows

2022-04-11 Thread Dr Paul Dale
aster/demos/encrypt Matthias *From:*openssl-users *On Behalf Of *John Alway *Sent:* Monday, April 11, 2022 7:06 PM *Cc:* openssl-users@openssl.org *Subject:* Re: RSA and DES encryption and decryption with C++ on Windows Pauli, Thanks for the link, but apparently that code requires havi

RE: RSA and DES encryption and decryption with C++ on Windows

2022-04-11 Thread Dr. Matthias St. Pierre
@openssl.org Subject: Re: RSA and DES encryption and decryption with C++ on Windows Pauli, Thanks for the link, but apparently that code requires having an account to view it. However, I've passed the information from this thread onto the guy I'm working with and he's going to ree

Re: RSA and DES encryption and decryption with C++ on Windows

2022-04-11 Thread John Alway
Pauli, Thanks for the link, but apparently that code requires having an account to view it. However, I've passed the information from this thread onto the guy I'm working with and he's going to reevaluate what he wants to do. Regards, ...John

Re: RSA and DES encryption and decryption with C++ on Windows

2022-04-10 Thread Dr Paul Dale
Have a look in the demos/encrypt folder: https://github.openssl.org/openssl/openssl/tree/master/demos/encrypt There has been an amount of effort put into updating these for 3.0 & later.  There is more to do. Pauli On 10/4/22 23:50, Kenneth Goldman wrote: Anyway, I'm trying to encrypt/decr

Re: RSA and DES encryption and decryption with C++ on Windows

2022-04-10 Thread John Alway
Thank you and Kenneth for your replies. I was given this task by someone with all of these specifics, including the site to download the library. Most of the terminology about encryption I'm not familiar with, but I'm learning. I've passed both of your posts and the wisdom in them on to him to

RE: RSA and DES encryption and decryption with C++ on Windows

2022-04-10 Thread Michael Wojcik
> From: openssl-users On Behalf Of John > Alway > Sent: Saturday, 9 April, 2022 19:45 > From this site https://slproweb.com/products/Win32OpenSSL.html >  I downloaded " Win32 OpenSSL v3.0.2" MSI  Well, I suppose that's one option. Personally I would not use a build from some random website; I'

RE: RSA and DES encryption and decryption with C++ on Windows

2022-04-10 Thread Kenneth Goldman
Anyway, I'm trying to encrypt/decrypt using RSA and DES schemes. I've tried some of the older code examples I could find, but some of the functions weren't recognized by my header files. [kgold] You cannot encrypt long streams with RSA. DES is deprecated. Can anyone help me with this? I want

RSA and DES encryption and decryption with C++ on Windows

2022-04-09 Thread John Alway
Hello, I'm a C++ programmer. I recently downloaded and installed the OpenSSL library to my Windows 10 machine. >From this site https://slproweb.com/products/Win32OpenSSL.html I downloaded " Win32 OpenSSL v3.0.2" MSI I'm using Visual Studio 2019. Anyway, the long and short of it is that I a

Re: [openssl-users] Need information on AES encryption and decryption Key and IV type

2016-02-26 Thread Michel
oun...@openssl.org] De la part de Sugumar Envoyé : vendredi 26 février 2016 17:30 À : openssl-users@openssl.org Objet : [openssl-users] Need information on AES encryption and decryption Key and IV type Hi,, I am using Openssl for encryption and decryption. I need some information on AES encryption

[openssl-users] Need information on AES encryption and decryption Key and IV type

2016-02-26 Thread Sugumar
Hi,, I am using Openssl for encryption and decryption. I need some information on AES encryption and decryption key and iv type. My doubt is when we are using a openssl in command line we need to pass key and iv as hex strings right? and same when we are EVP calls in C/C++ programming what is the

Re: [openssl-users] RSA Public Encryption and Decryption

2015-12-29 Thread suguacl28
Yes understanding is correct. Just i want know public key decryption is possible or not. Now i got it. Thanks for your information. -- View this message in context: http://openssl.6102.n7.nabble.com/RSA-Public-Encryption-and-Decryption-tp61935p61939.html Sent from the OpenSSL - User mailing

Re: [openssl-users] RSA Public Encryption and Decryption

2015-12-29 Thread Bill Reimer
on we must use private key of client or we can > also use client public key?? > > > > -- > View this message in context: > http://openssl.6102.n7.nabble.com/RSA-Public-Encryption-and-Decryption-tp61935p61937.html > Sent from the

Re: [openssl-users] RSA Public Encryption and Decryption

2015-12-29 Thread suguacl28
key of client or we can also use client public key?? -- View this message in context: http://openssl.6102.n7.nabble.com/RSA-Public-Encryption-and-Decryption-tp61935p61937.html Sent from the OpenSSL - User mailing list archive at Nabble.com

Re: [openssl-users] RSA Public Encryption and Decryption

2015-12-29 Thread Bill Reimer
the private key can decrypt that text, using a different key for encryption and decryption is asymmetrical. For further reading refer to: https://en.wikipedia.org/wiki/Symmetric-key_algorithm and https://en.wikipedia.org/wiki/Public-key_cryptography On Tue, Dec 29, 2015 at 4:27 AM, suguacl28 wrote

[openssl-users] RSA Public Encryption and Decryption

2015-12-29 Thread suguacl28
Hi, Lets assume i have a RSA public key file (xyz_file.pem) and cipher text that is encrypted using same RSA public key file (xyz_file.pem) now i want to decrypt the cipher text using same RSA public key file (xyz_file.pem). Ya i know its not a correct way of encryption and decryption concept

Re: [openssl-users] Encryption and Decryption using ECC based certificate private/public key pair

2015-04-28 Thread Jayalakshmi bhat
ajard with "Fully > Hashed MQV" (FHMQV). > > As far as encryption systems outside of SSL/TLS, check out Elliptic > Curve Integrated Encryption Scheme (ECIES). You can do bulk encryption > and decryption with it also. But it does not use an ECDSA key per se; > rather, it

Re: [openssl-users] Encryption and Decryption using ECC based certificate private/public key pair

2015-04-26 Thread Jeffrey Walton
ow because MQV leaked some information about the private exponent, so Krawczyk provided "Hashed MQV" (HMWV). HMQV was later improved by Sarr, Elbaz–Vincent, and Bajard with "Fully Hashed MQV" (FHMQV). As far as encryption systems outside of SSL/TLS, check out Elliptic Curve Integrated

[openssl-users] Encryption and Decryption using ECC based certificate private/public key pair

2015-04-26 Thread Jayalakshmi bhat
Hello All, I am working on a project where there is need to encrypt and decrypt certain data using certificate public/private key pair. So far we were using RSA based certificates. OpenSSL provides good number of API's for RSA based encryption/decryption operation. Now we are planning to support

RE: RSA encryption and Decryption code in C language

2013-07-02 Thread yamini
Hello Enrico, Thanks for the code! It really helped. Regards, yamini. -- View this message in context: http://openssl.6102.n7.nabble.com/RSA-encryption-and-Decryption-code-in-C-language-tp45588p45759.html Sent from the OpenSSL - User mailing list archive at Nabble.com

Re: RSA encryption and Decryption code in C language

2013-06-18 Thread Ken Goldman
You cannot generate a private key from a public key. Typically, the receiver generates the key pair and sends the public key to the sender. The sender encrypts with the public key. The receiver decrypts with the private key. A typical format for sending a public key across a channel is an X

Re: RSA encryption and Decryption code in C language

2013-06-18 Thread Hemayamini Kurra
e DES algorithm between my client and server systems >> for >> encryption. The DES key is transmitted in encrypted form between Client >> and >> Server using RSA encryption and decryption. >> My idea of implementing the above task is creating RSA key >> (RSA_g

RE: RSA encryption and Decryption code in C language

2013-06-18 Thread enrico d'urso
Hi, I'm implementing a software very similar to yours. This is a small function that I used to generate private and public key: #include int main() { char * file_pem = "key_priv"; char * file_pem_pub = "key_pub"; FILE * fp; int bits = 1024; unsigned long exp = RSA_F4; RS

Re: RSA encryption and Decryption code in C language

2013-06-18 Thread Matt Caswell
On 18 June 2013 09:43, Michel wrote: > Hi Yamini, > > I would suggest looking at the 'EVP Envelope' API : > https://www.openssl.org/docs/crypto/EVP_SealInit.html > Also see: http://wiki.openssl.org/index.php/EVP_Asymmetric_Encryption_and_Decryption_of_an_Envelope Matt __

Re: RSA encryption and Decryption code in C language

2013-06-18 Thread Michel
encrypted form between Client and Server using RSA encryption and decryption. My idea of implementing the above task is creating RSA key (RSA_generate_key) and using the public key for encryption and private key for decryption. I have looked for sample codes to do this in C language but found noth

RSA encryption and Decryption code in C language

2013-06-18 Thread yamini
Hello, I am implementing the DES algorithm between my client and server systems for encryption. The DES key is transmitted in encrypted form between Client and Server using RSA encryption and decryption. My idea of implementing the above task is creating RSA key (RSA_generate_key) and using the

AES EVP Encryption and Decryption

2009-07-30 Thread JT
I apologize if that has been asked/answered before. After lots of googling I could find no satisfactory answer. I have a question about the way AES-CBC EVP has been implemented. Specifically how EVP handles the IV. I have an application using the AES EVP functions in CBC mode. Most examples you

AES EVP Encryption and Decryption

2009-07-27 Thread JT
I apologize if that has been asked/answered before. After lots of googling I could find no satisfactory answer. I have a question about the way AES-CBC EVP has been implemented. Specifically how EVP handles the IV. I have an application using the AES EVP functions in CBC mode. Most examples you

Triple-DES encryption and decryption - function: des_ede3_cbc_encrypt

2007-11-26 Thread Ambarish Mitra
// This mail will go with a forcefully attached disclaimer. Please ignore the same. I know that this message will be archived. Hi all, I am using triple-DES to encrypt and decrypt a string. The openssl function that I call is: des_ede3_cbc_encrypt. I set an IV, and 3 keys for this purpose. I have

Re: RSA encryption and decryption performance difference between pkcs11 engine and default engine on windows and solaris

2007-02-14 Thread AD D
y 14, 2007 1:05:10 PM Subject: RSA encryption and decryption performance difference between pkcs11 engine and default engine on windows and solaris Hi, I use openssl RSA encrypt and decrypt both on windows 2003 and solaris (amd64 and sparc T2000). I wrote some performance te

Re: RSA encryption and decryption performance difference between pkcs11 engine and default engine on windows and solaris

2007-02-14 Thread durgaprasad jammula
7 1:05:10 PM Subject: RSA encryption and decryption performance difference between pkcs11 engine and default engine on windows and solaris Hi, I use openssl RSA encrypt and decrypt both on windows 2003 and solaris (amd64 and sparc T2000). I wrote some performance test cod

RSA encryption and decryption performance difference between pkcs11 engine and default engine on windows and solaris

2007-02-13 Thread AD D
LL); interval = (tpsend.tv_sec - tpsbegin.tv_sec) * 100; interval += tpsend.tv_usec; interval -= tpsbegin.tv_usec; interval = interval / 1000; printf("RSA enc and dec %d times %d\n", i, interval); At first, I ran the code on windows, 100 times RSA encryption an

Re: RSA encryption and decryption question

2005-12-24 Thread Dr. Stephen Henson
On Sat, Dec 24, 2005, Arsen Hayrapetyan wrote: > When I am passing RSA_size(rsa) as the first argument to > RSA_private_decrypt(), I > am receiving the initial message decoded as "Test messageA". I have > allocated the > RSA_size(rsa) bytes for the buffer receiving the decodod text. Does the > dec

Re: RSA encryption and decryption question

2005-12-24 Thread jimmy
Arsen Hayrapetyan wrote: jimmy wrote: Arsen Hayrapetyan wrote: Hello, I have the following question: unsigned char *plaintext = "Test message"; unsigned char * ciphertext=NULL; RSA *rsa =...; /*here I have an RSA key */ RSA_public_encrypt(strlen(plaintext), plaintext, ciphertext, rsa, RSA

Re: RSA encryption and decryption question

2005-12-24 Thread Arsen Hayrapetyan
jimmy wrote: > Arsen Hayrapetyan wrote: > >> Hello, >> >> I have the following question: >> >> unsigned char *plaintext = "Test message"; >> unsigned char * ciphertext=NULL; >> RSA *rsa =...; /*here I have an RSA key */ >> >> RSA_public_encrypt(strlen(plaintext), plaintext, ciphertext, rsa, >> RS

Re: RSA encryption and decryption question

2005-12-24 Thread 劲吕
The length of ciphertext is not longer than the public key's length. If your public key is 1024bit, the length of ciphertext is 128 bytes. 2005/12/24, jimmy <[EMAIL PROTECTED]>: > Arsen Hayrapetyan wrote: > > Hello, > > > > I have the following question: > > > > unsigned char *plaintext = "Test me

Re: RSA encryption and decryption question

2005-12-24 Thread jimmy
Arsen Hayrapetyan wrote: Hello, I have the following question: unsigned char *plaintext = "Test message"; unsigned char * ciphertext=NULL; RSA *rsa =...; /*here I have an RSA key */ RSA_public_encrypt(strlen(plaintext), plaintext, ciphertext, rsa, RSA_PKCS1_OAEP_PADDIN*G* ); What will be the

RSA encryption and decryption question

2005-12-24 Thread Arsen Hayrapetyan
Hello, I have the following question: unsigned char *plaintext = "Test message"; unsigned char * ciphertext=NULL; RSA *rsa =...; /*here I have an RSA key */ RSA_public_encrypt(strlen(plaintext), plaintext, ciphertext, rsa, RSA_PKCS1_OAEP_PADDIN*G* ); What will be the length of ciphertext? Whe

RSA encryption and decryption for data which is larger than RSA_SIZE

2002-05-21 Thread Michael Schmid
Hi, I'm trying to encrypt some data with rsa. The RSA_SIZE of my key is 128. The data can be more than 128 bit. So my idea was to encrypt the data using a loop which encrypts 128 bytes at once. I've read that there could be problems if the length is bigger than RSA_SIZE-1. So I set blockLengt

Encryption and Decryption (as/symmetric)

2001-09-14 Thread Jordan C N Chong
Dear all, I am terribly sorry for keep spamming you with these questions. I am too fresh and too new to OpenSSL cryptography, and wishing desperately for some documents (I have looked at the SSLeay Documentation) or some information on this useful technology. I really appreciate

RSA encryption and decryption problem.....

2001-07-27 Thread MARS.LIN 林育德
Dear Mr., Thanks for your time reading this. I use the crypto library in openssl-0.9.6b.tar.gz, and configure into VC-WIN32. After setting up and compling, every thing works fine with the XXXtest.exe in out32dll directory. Then I try to use the file demos\eay\loadrsa.c and it works. I try to us

Encryption and Decryption

2001-04-23 Thread Dennis Morgan
Hi, I am trying to find any examples of C code for using the EVP_EncryptInit and EVP_EncyptUpdate, and EVP_EncryptFinal functions as possible... I am trying to code a encryption function for a client/server to encrypt the username and password during authenication.. Any help would be greatly appr

Re: Encryption and decryption with DSA keys

2001-03-28 Thread Dr S N Henson
Nathalie Furmento wrote: > > Hi, > > I would like to know if openssl provides functions to > encrypt and decrypt files with a DSA key. I saw the > version 0.9.6 has a command rsautl to do some > cryptography with RSA keys. And there is also the > enc command, but this one does not seem to accept

Encryption and decryption with DSA keys

2001-03-28 Thread Nathalie Furmento
Hi, I would like to know if openssl provides functions to encrypt and decrypt files with a DSA key. I saw the version 0.9.6 has a command rsautl to do some cryptography with RSA keys. And there is also the enc command, but this one does not seem to accept encryption with asymmetric keys. Thanks