[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
dear all i made an application a client server the client send a certificate request and server reply with the certificate and it creates a encrypted shared key and some data and sign the digest of the shared key and data my problem is 1- in SignDigest() in EVP_DigestSignFinal(mdctx, NULL, signl

RSA sign

2014-11-16 Thread Amir Reda
dear all i have a client server client application the server should created an encrypted shared key and some data and make digest of both of them (data and encrypted shared key) as an input to SHA1 then the server should sign the output of the hash with function SignDigest() which include function

sign issue

2014-11-15 Thread Amir Reda
dear all i'm a Msc student that uses NS3 simulator to do some researches. my target for right now is to make a sample code for a client and a server then add it to the simulator as a brief 1-the client send a certificate request and the server send the certificate to the client 2- the client create

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
dear all i made a code to sign some data then verify it part of this data should be encrypted using rsa then sign it my problems is 1- i generate rsa key pairs and try to print it in a pem file but when i open the file it was empty 2- when i use function RSA_public_encrypt () to encrypt some da

Re: sign data and verify it

2014-11-03 Thread Amir Reda
to remove and 0 not upgraded. amir@amir-Master:~$ as you can see it is already installed are there any solution On Fri, Oct 31, 2014 at 4:14 PM, Jeffrey Walton wrote: > On Fri, Oct 31, 2014 at 6:57 AM, Amir Reda wrote: > > dear all i made a code for sign some data and verify it i

sign data and verify it

2014-10-31 Thread Amir Reda
dear all i made a code for sign some data and verify it i am using eclipse as IDE and ubuntu 13.10 i have linked eclipse with ssl lib and crypto++ which i use in this code i got an error Invoking: Cross G++ Linker g++ -L/usr/include/openssl -L/usr/include/cryptopp -L/usr/include/crypto++ -L/usr/in

certificate

2014-10-30 Thread Amir Reda
dear all i made a c++ code for client server the server is the CA the client sends a request to the CA server and the server reply by a certificate then i have tried some options 1- server can verify the certificate using function chekcert(X509 *) 2- the client can convert the certificate into in

certificate

2014-10-24 Thread Amir Reda
dear all i have made a client server. the server acts as CA the client sends a certificate request and the CA reply with a certificate my problem is i got an error with memory issue .also in order to troubleshoot this program i have put the CA self signed certificate in a file and also the certific

certificates

2014-09-30 Thread Amir Reda
dear all hope all are well. i have made a client server code the server is the certificate authority and the client send a certificate request the server got the request and reply with a certificate i have tried to put the certificate in a file in a pem format in order to make sure the certificate

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
dear all i have problem in my code it is a client send a certificate request to server which reply by the X509 certificate my problem is i have put in the client side a function called void Client::SetCert(X509_REQ *req) that set the certificate for the client also write it in a pem file so i can

Re: compilation error

2014-09-19 Thread Amir Reda
al purpose cryptographic shared library libcrypto OpenSSL-libcrypto - OpenSSL cryptography library amirale32@amir-master:/$ On Fri, Sep 19, 2014 at 8:50 PM, Amir Reda wrote: > thx allot for reply > i have looked at the directory usr/lib i found the folder ssl but i >

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
/usr/bin/ld: cannot find -lopenssl this is the error when i have tried to compile the code i attached below i install the openssl lib in ubuntu 12.10 i use eclipse and add at the linker setting openssl usr/include/openssl i don't know how to solve this problem please help -- Warmest regards and b

certificate error

2014-09-17 Thread Amir Reda
dear all i have made a client server code the client sends a X509 request and the server reply the X509 certificate but i have 2 questions 1- did i fill all the attributes of the X509 certificate in this code or not 2- when i compile this code using eclipse i got allot of errors but all are the s

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 --