PeculiarVentures / pvpkcs11

pvpkcs11 consists of a input validation library and a set of PKCS#11 implementations that wrap operating system and browser cryptographic implementations.
MIT License
32 stars 7 forks source link

ECDH key derivation #12

Open microshine opened 7 years ago

microshine commented 7 years ago

node-webcrypto-p11 uses CKD_NULL for CK_EC_KDF_TYPE.

@rmhrisk Could you help me to find any examples for CNG key derivation with the same KDF parameter?

Here are some exmples I found: Example 1 Example 2

microshine commented 7 years ago

It lloks like I have to register NO-HASH algorithm https://social.msdn.microsoft.com/Forums/silverlight/en-US/89060f38-d388-4f38-b6e6-4a31271abef3/ecdh-key-agreement-in-cng-how-to-get-the-raw-agreed-secret?forum=windowssecurity