[openssl-users] AES-GCM processing time

2015-04-07 Thread Amir Reda
dear all i am using Authenticated Encryption AES-GCM. i am trying to calculate the processing time for encrypting a data message of size 500 byte clock_t startEncryption, endEncryption; double msecs1; startEncryption = clock(); unsigned char plaintext[500] = {'f','a','3','1','3',

[openssl-users] GCM

2015-01-09 Thread Amir Reda
dear all i'm trying to use AES-GCM model for encryption i use a sample code for that and my problem is ret = EVP_DecryptFinal_ex(ctx, plaintext + len, &len); ret all the time is 0 this means that the plaintext is not trustworthy. encryption function int Server::AuthenticationEncryption(unsig

sign problem

2014-11-24 Thread Amir Reda
dear all i have a problem with c++ code for sign some data here is the code BIO *sgerr = NULL; const char szPath[MAX_FILE_NAME_SIZE] = "sgerr.pem"; sgerr = BIO_new_file(szPath,"wb"); cout<<"i'm in sign digest"<

Re: sign problem

2014-11-18 Thread Amir Reda
ctual error from the code. >> >> >> >> *From:* owner-openssl-us...@openssl.org [mailto: >> owner-openssl-us...@openssl.org] *On Behalf Of *Amir Reda >> *Sent:* Tuesday, November 18, 2014 10:29 AM >> *To:* openssl-users@openssl.org >> *Subject:* sign problem

sign problem

2014-11-18 Thread Amir Reda
r a good health,*urs sincerely * *mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in

RSA sign

2014-11-16 Thread Amir Reda
- Warmest regards and best wishes for a good health,*urs sincerely * *mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++,

sign issue

2014-11-15 Thread Amir Reda
ealth,*urs sincerely * *mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++,

sign and encryption issue

2014-11-13 Thread Amir Reda
dear all i'm trying to use method RSA_private_encrypt () to sign some data (time stamp and random no) and send both data and sign and client certificate to server side. my problem is in server side to verify the time stamp and check its validity i use method RSA_public_decrypt () this function ha

sign data and verify it

2014-11-04 Thread Amir Reda
and know what i did wrong thx allot for help -- Warmest regards and best wishes for a good health,*urs sincerely * *mero* // // Name: rsa_sign.cpp // Author : Amir // Version : // Copyright : Your

Re: sign data and verify it

2014-11-03 Thread Amir Reda
dear sir i already installed ssl lib i use this command amir@amir-Master:~$ sudo apt-get install libssl-dev [sudo] password for amir: Reading package lists... Done Building dependency tree Reading state information... Done libssl-dev is already the newest version. 0 upgraded, 0 newly installed, 0

sign data and verify it

2014-10-31 Thread Amir Reda
can i do i need real help -- Warmest regards and best wishes for a good health,*urs sincerely * *mero* /* * sign.cc * * Created on: Oct 30, 2014 * Author: amir */ #include "sign.h" Sign::Sign() { m_rsa_keyPairs = RSA_new(); GenerateRSAPairs(); SetSharedKey()

certificate

2014-10-30 Thread Amir Reda
uthor : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style // #include #include "server.h" #include "client.h" using namespace std; int mai

certificate

2014-10-24 Thread Amir Reda
: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style // #include #include "server.h" #include "client.h&q

certificates

2014-09-30 Thread Amir Reda
_PKEY *m_pukey; //Client *m_client; }; #endif /* SERVER_H_ */ //==== // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //

Re: X509 problem

2014-09-24 Thread Amir Reda
ot defined in client.cc > > Regards > > ----- Mail original - > De: "Amir Reda" > À: openssl-users@openssl.org > Envoyé: Mercredi 24 Septembre 2014 13:37:13 > Objet: X509 problem > > > > dear all > i have problem in my code it is a client send

X509 problem

2014-09-24 Thread Amir Reda
*mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style // #include #include "server.h" #in

Re: compilation error

2014-09-19 Thread Amir Reda
amirale32@amir-master:~$ cd .. amirale32@amir-master:/home$ cd .. amirale32@amir-master:/$ sudo dpkg -L crypto dpkg-query: package 'crypto' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.

Re: compilation error

2014-09-19 Thread Amir Reda
thx allot for reply i have looked at the directory usr/lib i found the folder ssl but i couldn't find the folder of crypto so what can i do On Fri, Sep 19, 2014 at 7:46 PM, Jeffrey Walton wrote: > On Fri, Sep 19, 2014 at 3:33 AM, Amir Reda wrote: > > thx allot for quick re

Re: compilation error

2014-09-19 Thread Amir Reda
rograms-in-eclipse.html http://askubuntu.com/questions/211038/cant-find-openssl http://stackoverflow.com/questions/7860657/undefined-reference-to-eclipse-c but i failed please hellpp On Thu, Sep 18, 2014 at 11:46 PM, Scott Neugroschl wrote: > It’s -lssl, not -lopens

compilation error

2014-09-18 Thread Amir Reda
s and best wishes for a good health,*urs sincerely * *mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-

certificate error

2014-09-17 Thread Amir Reda
ly * *mero* // // Name: certificate.cpp // Author : Amir // Version : // Copyright : Your copyright notice // Description : Hello World in C++,

certificate

2014-09-09 Thread Amir Reda
dear all i have just made a code to make a certificate request from a node and my certificate authority reply with the certificate the node has attributes as below X509_REQ *x; EVP_PKEY *prk; EVP_PKEY *puk; X509m_myCert; //RSA structure contain both private and public k

generate key errors

2014-09-07 Thread Amir Reda
dear all i'm trying to generate rsa keypair to be used in a class that has an attribute RSA*rsa_keyPair; and i use function RSA AeroRoutingProtocol :: GenerateRSAKeyPair ( ) { rsa_keyPair = RSA_generate_key(2084,RSA_F4,NULL,NULL); return rsa_keyPair; } when i try to compi

create certificate

2014-09-06 Thread Amir Reda
dear all i'm trying to make my certificate authority which will create certificate when receive certificate signing request i write this code 1- i create the CSR and sign it which created in the node itself 2- i send the CSR to CA to create a certificate for the node which send previous CSR code

certificate issue

2014-08-26 Thread Amir Reda
Dear all i need help if i have a certificate in X509 structure how can i convert it into unsigned int format this is too important for me thanks for your help -- Warmest regards and best wishes for a good health,*urs sincerely * *mero*

Re: Certificate

2014-08-26 Thread Amir Reda
t for helping me On Tue, Aug 26, 2014 at 2:26 PM, Mauricio Tavares wrote: > > On Aug 26, 2014 2:45 AM, "Amir Reda" wrote: > > > > Dear all > > I need your help for those points > > 1- i want create 102 certificate from a certificate authority that i

Re: Certificate

2014-08-26 Thread Amir Reda
t for helping me On Tue, Aug 26, 2014 at 2:26 PM, Mauricio Tavares wrote: > > On Aug 26, 2014 2:45 AM, "Amir Reda" wrote: > > > > Dear all > > I need your help for those points > > 1- i want create 102 certificate from a certificate authority that i

Certificate

2014-08-25 Thread Amir Reda
Dear all I need your help for those points 1- i want create 102 certificate from a certificate authority that i made ((101 node and 1 CA) 2- change the certificate that i have created into unsigned int in order to fit the simulator that i work with as a header type i use NS3 simulator please i need

certificate authority

2014-08-20 Thread Amir Reda
Dear all i'm new to openssl i want use it with network simulator NS3 i just want steps to begin to reuse openssl with a C code to make a certificate authority entity that create certificate if any one know how can i begin with this project i need help to finish my master degree please --

OpenSSL For Windows CE

2008-07-21 Thread Amir
solving this problem? or did you know where can i get the openSSL library already builded for Windows CE? Thanks, Amir, begin:vcard fn:Amir Krifa n:Krifa;Amir email;internet:[EMAIL PROTECTED] tel;quoted-printable;work:Ing=C3=A9nieur Expert, INRIA Sophia-Antipolis tel;home:Antibes, France tel;ce

FW: Minimazing OpenSSL Size

2006-10-03 Thread Amir Yiron
hing else I could do? Are there any other useless modules I may remove? Thanks in advance, -- Amir

RE: Calling 'openssl' utility as a C function?

2006-01-11 Thread Amir Yiron
-BEGIN RSA PRIVATE KEY-") PEM_write_X509() ? (it prints certificate code starting with "-BEGIN CERTIFICATE-") Thanks a lot, -- Amir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dr. Stephen Henson Sent: Wednesday, Janu

Calling 'openssl' utility as a C function?

2006-01-11 Thread Amir Yiron
#x27;req' in this case) with appropriate parameters. Note: - I can't use Unix specific APIs like getenv(); - command execution cannot be interactive (command arguments and configuration files have to supply all required parameters). Any suggestion how to do that? Thanks in advance, -- Amir

Calling 'openssl' utility as a C function?

2006-01-11 Thread Amir Yiron
Title: Calling 'openssl' utility as a C function? Hello, I need my embedded application to be capable of creating a CA and creating SSL certificate. My operating system is eCos, which means I don't have shell or any scripts, and I can't run utilities (However, I have a file system!). I can

Re: How to encrypt a large file by a public key?

2005-12-14 Thread Amir (sent by Nabble.com)
want to do is to give a public key to someone to encrypt large files and send it to me. Amir Sent from the OpenSSL - User forum at Nabble.com: Re: How to encrypt a large file by a public key?

How to encrypt a large file by a public key?

2005-12-11 Thread Amir (sent by Nabble.com)
advance Amir Sent from the OpenSSL - User forum at Nabble.com: How to encrypt a large file by a public key?

code examples

2002-05-21 Thread Amir Ghavam
Hi there, I'm new to openssl. Could anybody tell me where can I find some code examples please? Many Thanks Amir __ OpenSSL Project http://www.openssl.org User Support Mailing

PKCS7 verification between CryptoAPI & OpenSSL

2001-08-14 Thread Khassaia, Amir
Hi, I've encountered the following problem: I generate PKCS#7 detached & signed data using CryptSignMessage() in CryptoAPI and try to verify it using OpenSSL but I get an OpenSSL Error: {error:2107106C:PKCS7 routines:PKCS7_signatureVerify:unable to fi nd message digest}. I tried using PKCS7_data

Crypt::SSLeay - Choosing certificate

2000-09-20 Thread Amir Sedighi
Is it possible to tell Crypt::SSLeay which certificate to use for a particular request? This feature is available in Net::SSLeay by set_server_cert_and_key. Amir. __ OpenSSL Project http

Compressing problems

2000-04-13 Thread Amir Amit
just can't seem to make it work. Can anyone please give me an example / reference to an example? Thanks in advance, Amir linuxqa development team -- "Besides, I think [Slackware] sounds better than 'Microsoft,' don't you

compressing problems

2000-04-11 Thread Amir Amit
just can't seem to make it work. Can anyone please give me an example / reference to an example? Thanks in advance, Amir linuxqa development team -- "Besides, I think [Slackware] sounds better than 'Microsoft,' don't you

SSL_read problem

2000-01-31 Thread Amir Amit
and return value of EPIPE) - but I don't want to write into the socket. What can I do? Thanks in advance, Amir Amit __ OpenSSL Project http://www.openssl.org User Support Mailing List