From RSA to string and compare problem

2008-06-25 Thread Marco Sommella
Hi, i'm creating a little client/server program using C. i need to read a rsa from pem file (so using PEM_read_RSAPublicKey) and then send the key to a server (the message can be only a string type) which reads a rsa public key from another pem file and return, comparing keys, is are egual

Re: From RSA to string and compare problem

2008-06-25 Thread Marco Sommella
[EMAIL PROTECTED] ha scritto: Hello, [EMAIL PROTECTED] wrote on 06/25/2008 04:10:45 PM: Hi, i'm creating a little client/server program using C. i need to read a rsa from pem file (so using PEM_read_RSAPublicKey) and then send the key to a server (the message can be only a string type)

R: From RSA to string and compare problem

2008-06-25 Thread Marco Sommella
Tnx for response and your patient. Returning on reading with read() may I ask you about comment header and footer? It's safe to jump lines of file pem starting with - or it's possible that the key contain the char - ? tnx -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL

gcc problem

2008-06-26 Thread Marco Sommella
Hi, i'm using OpenSolaris 2008.05 snv_91. if i try to compile with gcc -lssl file.c receive this error: Undefinedfirst referenced symbol in file PEM_read_RSAPublicKey /var/tmp//ccIla4Ec.o (symbol belongs to implicit dependency

PEM_read_RSAPublicKey problem

2008-06-26 Thread Marco Sommella
hi again, i created a publickey.pem with command: openssl rsa -in myprivate.pem -pubout -out publickey.pem then in C i try to read this public key with: RSA *pubkey = PEM_read_RSAPublicKey(fp, NULL, NULL, NULL) where fp is the opened publickey.pem file. but it's return this error:

R: PEM_read_RSAPublicKey problem

2008-06-27 Thread Marco Sommella
Excuse me, I'm trying, using C, to do a simple sign and verify with RSA public and private keys on pem files. Which is the easy way? Someone have some sample ? TNX -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di David Schwartz Inviato: venerdì 27 giugno

R: R: PEM_read_RSAPublicKey problem

2008-07-01 Thread Marco Sommella
No no i do it correct. PEM_read_RSAPrivateKey() RSA_sign() For sign and: PEM_read_RSAPublicKey() RSA_verify() For verify -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Kenneth Goldman Inviato: lunedì 30 giugno 2008 14.58 A: openssl-users@openssl.org

MD5 checksum of a file from C

2008-09-08 Thread Marco Sommella
Hi, plz someone can tell me how make a md5 checksum of a file from a c program ? I need to create a program which check md5 of another program, if checksum match with one memorized the program will be exec. TNX _ Marco Sommella mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] (E-mail

RSA_sign, RSA_verify and padding

2008-09-14 Thread Marco Sommella
Hi, I'm using OpenSSL 0.9.8a 11 Oct 2005 (+ security patches to 2007-10-13) on opensolaris 2008.11 b97 and programming in C. My question is about the message digest *m used into functions in object.* ** *I have notice a strange *behavior concerning the length of this string: if too long

RSA_sign, RSA_verify and padding

2008-09-19 Thread Marco Sommella
methods for signatures. but i didn't really understand it :-) can someone plz explain what kind of limitations there are concerning the message digest m ? Thanks a lot -- -- Marco Sommella [EMAIL PROTECTED] (E-Mail MSN) --

RSA_sign, RSA_verify and padding

2008-09-19 Thread Marco Sommella
methods for signatures. but i didn't really understand it :-) can someone plz explain what kind of limitations there are concerning the message digest m ? Thanks a lot -- -- Marco Sommella [EMAIL PROTECTED] (E-Mail MSN) --

R: RSA_sign, RSA_verify and padding

2008-09-22 Thread Marco Sommella
Hi, I'm using OpenSSL 0.9.8a 11 Oct 2005 (+ security patches to 2007-10-13) on opensolaris 2008.11 b97 and programming in C. My question is about the message digest *m used into functions in object.* ** *I have notice a strange *behavior concerning the length of this string: if too long

EVP and public key from pem file

2008-12-03 Thread Marco Sommella
:0906D06C:PEM routines:PEM_read_bio:no start line:/export/builds/onnv_101a/usr/src/common/openssl/crypto/pem/pem_lib.c:644:Expecting: PUBLIC KEY Can somebody plz help me ? TNX -- -- Marco Sommella [EMAIL PROTECTED] (E-Mail MSN) --

Accettato: OWASP Hartford: February 2009 (Open Web Application Security Project)

2008-12-12 Thread Marco Sommella
BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN VERSION:2.0 METHOD:REPLY X-MS-OLK-FORCEINSPECTOROPEN:TRUE BEGIN:VEVENT ATTENDEE;PARTSTAT=ACCEPTED:mailto:marco.somme...@gmail.com CLASS:PUBLIC CREATED:20081213T033221Z DTEND:20090211T00Z DTSTAMP:20081213T033221Z