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




    Could you please provide more code snippet? Any more information  that help us to reproduce this issue is appreciated. Thanks.



    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Saturday, May 21, 2011 4:03 AM