http://bugs.winehq.org/show_bug.cgi?id=60443 Bug ID: 60443 Summary: ncrypt: Support importing ECDSA key blobs. Product: Wine Version: 11.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@list.winehq.org Reporter: auzy83@gmail.com Target Milestone: --- Distribution: --- Symptom: `NCryptImportKey` with `BCRYPT_ECCPRIVATE_BLOB` or `BCRYPT_ECCPUBLIC_BLOB` fails with `Unhandled key magic`. Wine today: - `dlls/ncrypt/main.c`: `NCryptImportKey` handles only RSA magics. - The internal `enum algid` has `ECDSA_P256` but no P-384 or P-521. - EC key objects have no `NCRYPT_ALGORITHM_PROPERTY` and no `NCRYPT_ALGORITHM_GROUP_PROPERTY`, which callers need to choose an export blob type. - `include/ncrypt.h` lacks `MS_KEY_STORAGE_PROVIDER` and the `NCRYPT_*_ALGORITHM_GROUP` strings ("RSA", "DH", "DSA", "ECDSA", "ECDH") that the Windows SDK header defines. Should do: - Import ECDSA P-256, P-384 and P-521 public and private blobs, by handing them to bcrypt. - Set the name, group, length and public-key-length properties on the new key. - Add the missing header definitions in their own commit. Confirm on Windows: - The property values for imported EC keys: `Algorithm Name` is "ECDSA_P256", or "ECDSA" on newer Windows with curve-generic keys. - Whether ECDH magics are accepted too, and what the group is then. - That `NCryptExportKey` round-trips the imported blob. Software Affected: Control4 Composer Pro -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.