W3C home > Mailing lists > Public > public-webcrypto@w3.org > April 2013

Re: Separate method for key agreement?

From: Wan-Teh Chang <wtc@google.com>
Date: Mon, 1 Apr 2013 17:45:24 -0700
Message-ID: <CALTJjxG+_iXOTXsYPChJaHS9r3h5i9OCA2y1d7AVcK5h6Cbp=w@mail.gmail.com>
To: Ryan Sleevi <sleevi@google.com>
Cc: Richard Barnes <rbarnes@bbn.com>, "public-webcrypto@w3.org Group" <public-webcrypto@w3.org>
On Mon, Apr 1, 2013 at 12:25 PM, Ryan Sleevi <sleevi@google.com> wrote:
> I'm not sure I'd agree here. Do you also see separate functions for ECDH
> agreement?

No.  The function that Richard proposed can handle both DH and ECDH:

KeyOperation agreeKey(Key privateKey,
                      Key publicKey,
                      AlgorithmIdentifier? derivedKeyType,
                      bool extractable = false,
                      KeyUsage[] keyUsages = []);

Richard's proposal is consistent with Windows CNG:

Note: Windows CAPI does Diffie-Hellman in a non-obvious manner (using
CryptImportKey), so Widows CAPI is not worth being consistent with:

Received on Tuesday, 2 April 2013 00:45:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:16 UTC