Re: ECDSA in VW9.3.1
David Shaffer <[email protected]> Wed, 27 Dec 2023 16:10:22 -0500
| Newsgroups | gmane.comp.lang.smalltalk.vwnc |
|---|---|
| Message-ID | <[email protected]> |
Correction…PrivateKey>>sign:hash:padding is not HMAC, it’s a DSA that assumes an RSA key pair, from the looks of it. Maybe this code just doesn’t support EC yet? -D > On Dec 27, 2023, at 3:49 PM, David Shaffer <[email protected]> wrote: > > Hey folks! > > I’m trying to add ES256 support to the JSON Web Tokens package (on public store but newer version in GitHub). I can load an EC private key but I don’t see how to sign with it. PrivateKey>>sign:hash:padding: looks like HMAC-only. It throws exceptions for EC keys. PrivateKey>>dsaSignatureElementsFrom: returns a DERReadStream and I can’t see what that has to do with anything (AFAIR DER is used for binary presentation of keys). Documentation is completely silent on the topic except for cursory discussion on key exchange. Any tips would be appreciated. > > -D >