Pasexto.Wrap.PIE (pasexto v0.1.1)

Copy Markdown View Source

The PASERK standard wrapping protocol.

This wrapper expects the following options:

  • key - The local key used to wrap and unwrap a key.

This allows for the wrapping of keys like so:

iex> key = Key.new(:v4, :local)
iex> wrapping_key = Key.new(:v4, :local)
iex> opts = [wrapper: Wrapper.new(Pasexto.Wrap.PIE, key: wrapping_key)]
iex> {:ok, paserk} = Paserk.build(:k4, :local_wrap, key, opts)