0

I have a requirement to use RSA signatures using ISO 9796-2.

I know about the RSACryptoServiceProvider in .Net but was not sure if it supported ISO 9796-2.

I know there is a DSACryptoServiceProvider but was not sure how that compared to ISO 9796-2.

Any help would be gratefully received.

1
  • I don't beleive so, no. However, BouncyCastle indicates that it has support for it. "Signer mechanisms: DSA, ECDSA, ECGOST3410, GOST3410, ISO9796d2, PSS, RSA."
    – vcsjones
    Dec 8, 2011 at 15:51

1 Answer 1

1

I have not read the ISO 9796-2 standard (and won't pay to read it ;-) but:

RSACryptoServiceProvider only support PKCS#1 (1.5) and OAEP padding.

DSACryptoServiceProvider only support what's defined in FIPS 186.

Technically you could provide your own padding class in .NET since it's designed to be extensible.

Sadly (i.e. in reality) the RSACryptoServiceProvider does not let you do a real EncryptValue (or DecryptValue) so you need another RSA implementation (e.g. use the managed one from Mono).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.