Skip to content

Commit

Permalink
normalize SYNRC CRYPTO sign
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 24, 2024
1 parent 2c71202 commit 5bcc596
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/signing/ecdsa_otp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ defmodule CA.ECDSA.OTP do
# openssl ec -in $client.key -pubout -out $client.pub
# openssl dgst -sha256 -sign $client.key mix.exs > mix.sig
# openssl dgst -sha256 -verify $client.pub -signature mix.sig mix.exs
# CA.ECDSA.sign "mix.exs", "#{client}.key"
# CA.ECDSA.verify "mix.exs", "mix.sig", "#{client}.pub"
# CA.ECDSA.OTP.verify "mix.exs", "mix.sig", "#{client}.pub"
# > CA.CSR.ca
# > CA.CSR.csr "maxim"
# > CA.CSR.client "maxim"
# > CA.ECDSA.sign "mix.exs", "#{client}.key"
# > CA.ECDSA.OTP.sign "mix.exs", "maxim.key"
# > CA.ECDSA.verify "mix.exs", "mix.sig", "#{client}.pub"
# > CA.ECDSA.OTP.verify "mix.exs", "mix.sig", "#{client}.pub"

def signBin(msg, priv) do
CA."ECPrivateKey"(privateKey: point, parameters: {:namedCurve, oid}) = priv
Expand Down

0 comments on commit 5bcc596

Please sign in to comment.