On Thu, Jun 10, 2010 at 03:55:40PM -0700, David Schwartz wrote:
>
> Hannes Schuller wrote:
>
> > > I'm very puzzled here. Why do you sign the reply and then sign a hash
> > > of the signature? You say "Message encryption successful", but that's
> > > a signature you're doing, not an encryption.
>
Hannes Schuller wrote:
> > I'm very puzzled here. Why do you sign the reply and then sign a hash
> > of the signature? You say "Message encryption successful", but that's
> > a signature you're doing, not an encryption.
> I was under the impression that RSA_private_encrypt and
> RSA_public_encr
"David Schwartz" wrote:
>
> Hannes Schuller wrote:
>
> > hash = (unsigned char *)malloc(RSA_size(rsa) * sizeof(unsigned
> > char)); ciphertext = (char *)malloc(RSA_size(rsa) * sizeof(char));
> > signature = (char *)malloc(RSA_size(rsa) * sizeof(char));
> > if (ciphertext != NULL && signature !=
Hannes Schuller wrote:
> hash = (unsigned char *)malloc(RSA_size(rsa) * sizeof(unsigned char));
> ciphertext = (char *)malloc(RSA_size(rsa) * sizeof(char));
> signature = (char *)malloc(RSA_size(rsa) * sizeof(char));
> if (ciphertext != NULL && signature != NULL && hash != NULL) {
> memset(
Hi,
I'm trying to create a RSA signature for a message. Here's the rough
code:
-
hash = (unsigned char *)malloc(RSA_size(rsa) * sizeof(unsigned char));
ciphertext = (char *)malloc(RSA_size(rsa) * sizeof(char));
signature = (char *)malloc(RSA_size(rsa) * sizeof(char));
if (ciphertext != NULL &