streaming/unstreaming an RSA key

2002-07-03 Thread Judith Retief
I have to encrypt and decrypt an RSA key using symmetrical encryption, using RC4 or one of the other symmetrical encryption APIs. I'm working in C. But I assume I can't just give the RSA key struct to the encryption algorithm as input data; its members are BIGNUM pointers so the structure h

RSA_sign second param: the message or the digest?

2002-06-04 Thread Judith Retief
As I understand, signing a message means getting its hash/digest and then encrypting the digest with your private key. So I would assume that RSA_sign would take as parameter the message, the hash algorithm ID and the private key. However, according to the documentation of RSA_sign (3), it take

RE: Help

2002-06-04 Thread Judith Retief
I have also run into this problem, and have not been able to resolve it. I'd guess that the example was originally compiled against an older version of the library. -Original Message- From: Shalendra Chhabra [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:05 PM To: [EMAIL PROTEC