Skip to content

Instantly share code, notes, and snippets.

@mltucker
Created July 1, 2014 13:44
Show Gist options
  • Save mltucker/f32fe225e14a4e0516ae to your computer and use it in GitHub Desktop.
Save mltucker/f32fe225e14a4e0516ae to your computer and use it in GitHub Desktop.
var sig = new KJUR.crypto.Signature({ alg: "SHA224withECDSA" });
var ecdsa = new KJUR.crypto.ECDSA({ curve: "secp224r1" });
ecdsa.setPrivateKeyHex(b64tohex(this.keys.client.priv));
sig.init(ecdsa);
return sig.signHex(message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment