[Botan-devel] Raw RSA

Jack Lloyd lloyd at randombit.net
Wed Apr 21 09:40:49 EDT 2010


EMSA "Raw" (which maps to the EMSA_Raw) class should do it. Can you
send your input file? I can't quite puzzle out what OpenSSL is doing
differently here.

-Jack

On Wed, Apr 21, 2010 at 10:36:25AM +0200, Rickard Bellgrim wrote:
> Hi again
> 
> Is there a way to do raw RSA signing using Botan?
> 
> // Rickard
> 
> On 11 apr 2010, at 08.59, Rickard Bellgrim wrote:
> 
> > Hi
> > 
> > I got a request to implement CKM_RSA_X_509 for signing in SoftHSM.  CKM_RSA_X_509 is raw RSA. I currently use the PK_Signer for my signing operations, but with different EMSA depending on the algorithm.
> > 
> > E.g:
> > CKM_SHA512_RSA_PKCS => EMSA3(SHA_512)
> > CKM_RSA_PKCS => EMSA3_Raw
> > 
> > CKM_RSA_X_509 => EMSA_Raw (?)
> > 
> > The good thing with this approach is that I do not have to do anything with the incoming data, just pass it directly to this object. I thought that it was as simple as just using the EMSA_Raw for the CKM_RSA_X_509. But I do not get the same result as with OpenSSL. 
> > 
> > openssl rsautl -sign -in file.txt -out file.txt.sig -inkey rsa.pem -raw
> > 
> > Is there something more I have to do to get the raw RSA signing working? The data that I get is a byte string.
> > 
> > // Rickard
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list