Exmbus.Parser.Ell (Exmbus v0.3.0)

View Source

Module responsible for handling the extended link layer Spec taken from EN 13757-4:2019.

See also the Exmbus.Parser.CI module.

Summary

Functions

decrypt_bin(ctx)

See Exmbus.Parser.Ell.Encrypted.decrypt_bin/1.

encrypt_bin(ctx)

See Exmbus.Parser.Ell.Encrypted.encrypt_bin/1.

maybe_decrypt_bin(ctx)

See Exmbus.Parser.Ell.Encrypted.maybe_decrypt_bin/1.

maybe_parse(ctx)

Parses an extended link layer and adds it to the parse context.

In contrast to parse/1, this function will not fail if the data doesn't contain an ELL. Instead, it will assign a %None{} struct to the ell context field.

parse(ctx)