ExCEP. Crypto. Signer behaviour
(ex_cep v0.1.1)
Copy Markdown
Pluggable signing and verification behaviour for CEP APDU 64-byte SM2 signatures.
CEP TS2.2 Section 4.8 specifies 64-byte SM2 signatures over header <> asdu.
Built-in implementations:
ExCEP.Crypto.SM2— Pure Elixir GB/T 32918.2 SM2 signer/verifier.ExCEP.Crypto.NoopSigner— Development/test stub that produces/accepts 64-byte zero signatures.
Custom hardware/HSM/NIF implementations can implement this behaviour and be passed via
signer: {MySigner, opts} in connection/server parameters.
Summary
Callbacks
Signs payload (header <> asdu) and returns a 64-byte signature.
Verifies a 64-byte signature over payload.
Functions
Helper that invokes a {module, opts} signer tuple or nil.
Helper that invokes a {module, opts} verifier tuple or nil.
Types
Callbacks
Functions
Helper that invokes a {module, opts} signer tuple or nil.
Helper that invokes a {module, opts} verifier tuple or nil.