Re: RSA OAEP padding support (PKCS#1 v2)
From: David Gardner (David.Gardner-Logan_at_REMOVECAPSrrd.com)
Date: 10/05/04
- Previous message: roland: "Re: Using the Public Key embedded in the Assembly?"
- In reply to: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Next in thread: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Reply: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 5 Oct 2004 13:17:01 -0700
Peiter
Thank you. That information was very helpful. As a follow-up does anyone
have experience implementing OAEP padding with Windows Server 2003? I get
the following error:
"CryptographicException: Bad Length."
If I change the following line in my code:
'Dim EncryptedStrAsByt() As Byte = RSA2.Encrypt(StrAsByt, False)
Dim EncryptedStrAsByt() As Byte = RSA2.Encrypt(StrAsByt, True)
(enabling OAEP padding). This is interesting since I've kept the string
length that I'm encrypting the same. So when I don't enable OAEP it works
fine but setting OAEP to "True" gives me the "Bad Length" error. Any ideas?
Regards,
Dave
"Pieter Philippaerts" wrote:
> "David Gardner" <David.Gardner-Logan@REMOVECAPSrrd.com> wrote in message
> > We are looking to use OAEP padding with a client that requires it but we
> > don't know if Windows Server 2003 supports it or not. Does any one know?
>
> Yes, Windows Server 2003 supports OAEP. All Windows versions released after
> XP support OAEP.
>
> > Or does anyone know a way to make OAEP padding work with Windows 2000? If
> > it
> > works out that we can't use the native .NET version of the RSA encryption
> > (as
> > it won't support OAEP), is there a different object out there that someone
> > recommends that supports OAEP? (that they liked anyway. :) )
>
> I don't think Microsoft is going to support OAEP on Windows 2000 in the
> future. If you really need OAEP on all Windows versions, you may want to use
> the mono:: class library (www.go-mono.com). They have a managed RSA
> implementation and support OAEP on all platforms.
>
> Regards,
> Pieter Philippaerts
>
>
>
>
>
- Previous message: roland: "Re: Using the Public Key embedded in the Assembly?"
- In reply to: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Next in thread: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Reply: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|