From a legacy program:
bye[] rsaPrivateKeyExport = RSACryptoProvider.ExportCspBlob(true);
These keys are stored in a file.
As part of a legacy refresh, I need to use CNG RSA keys.
So something like reading the old blob and then converting:
CngKey cngPrv = CngKey.Import(rsaPrvKeyExport, CngKeyBlobFormat.GenericPrivateBlob);
But I cannot get this to work?
How do I convert the old blob type to the new one? Do I only use parts of the old blob?
The key length is 2048.