Re: RSA OAEP padding support (PKCS#1 v2)

From: David Gardner (David.Gardner-Logan_at_REMOVECAPSrrd.com)
Date: 10/05/04

  • Next message: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"
    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
    >
    >
    >
    >
    >


  • Next message: Pieter Philippaerts: "Re: RSA OAEP padding support (PKCS#1 v2)"

    Relevant Pages

    • Re: RSA encryption with OAEP padding
      ... I've never been able to make OAEP works under Windows 2000 (even with the ... high encryption pack installed) but never had problems with XP. ... PKCS1 and OAEP padding. ...
      (microsoft.public.dotnet.security)
    • Re: RSA encryption with OAEP padding
      ... I've never been able to make OAEP works under Windows 2000 (even with the ... high encryption pack installed) but never had problems with XP. ... PKCS1 and OAEP padding. ...
      (microsoft.public.dotnet.security)
    • Re: RSA OAEP padding support (PKCS#1 v2)
      ... Windows Server 2003 supports OAEP. ... XP support OAEP. ... > works out that we can't use the native .NET version of the RSA encryption ...
      (microsoft.public.dotnet.security)
    • Re: RSA OAEP padding support (PKCS#1 v2)
      ... > have experience implementing OAEP padding with Windows Server 2003? ... PKCS#1 and OAEP don't allow you to encrypt data of any length. ... the allowed length is the size of the RSA modulus minus 11. ...
      (microsoft.public.dotnet.security)