Pkcs11ex.XML (pkcs11ex v0.1.0)

Copy Markdown View Source

Convenience wrapper around SignCore.XML pre-configured with the PKCS#11 signer. Same shape as Pkcs11ex.PDF.

Summary

Functions

XAdES B-B / B-T sign via the configured PKCS#11 slot.

XAdES verify. Delegates to SignCore.XML.verify/2.

Functions

sign(doc, opts)

@spec sign(
  binary() | iodata(),
  keyword()
) :: {:ok, binary()} | {:error, term()}

XAdES B-B / B-T sign via the configured PKCS#11 slot.

verify(doc, opts \\ [])

@spec verify(
  binary() | iodata(),
  keyword()
) :: {:ok, term()} | {:error, term()}

XAdES verify. Delegates to SignCore.XML.verify/2.