I am developing an application performing cryptographic operation (for customer demonstration purposes) using a HSM in .NET without PKCS#11, in c# (Cryptography namespace)
-
I have found the algorithms supported by the HSM's CSP (with
certutil -csp "HSM's CSP Provider name found in regedit" -csptest
), and some of them don't have a CryptoServiceProvider in theCryptography namespace
(RC2, RC4, DESX symmetric algo; MD4, MD2, AES-GMAC hash algo), but they are listed as supported in MS Documentation : http://ift.tt/2eYFXkG . Would anyone have an idea about how to be able to use on of these to perform operations ? In other words, is it possible to choose an algorithm which doesn't have a special CSP classe ? -
I have a similar problem with random number generation. My HSM supports these RNG algorithm : RNG, FIPS186DSARNG, DUALECRNG (found the same way as the algo in 1.) Is there a way to generate random number with a specified algorithm in C# ?
-
I finally would like to save generated symmetric key directly on the HSM, but the Cryptography namespace only has KeyContainers for asymmetric keys.
Thank you in advance for anyone having an idea on any of these problems !
Aucun commentaire:
Enregistrer un commentaire