Problem importing ECDSA key into managed code RRS feed

  • Question

  • I need to sign a piece of data in a native dll and verify it in .Net app.
    So I'm trying to import a public key created with BCryptExportKey(...BCRYPT_ECCPUBLIC_BLOB...) or NCryptExportKey().
    I'm getting "The parameter is incorrect" exception from CngKey.Import(keyBuf, CngKeyBlobFormat.EccPublicBlob), same with GenericPublicBlob.
    Pls help.
    Thursday, May 19, 2011 5:06 AM

All replies