Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.07 KB

File metadata and controls

32 lines (23 loc) · 1.07 KB

libtlv

Summary

This is a C++ library that provides X.690 BER TLV parsing, building and encoding.

This a fork of toumilov/libtlv.
The API and library semantics might change in the future. Use at your own risk.

Requirements

  1. GNU gcc compiler (or clang)
  2. CMake

Build and use

Library uses C++17 features, so the compiler should support that.
Build system is CMake. The CMake project provides a static library target for libtlv.a

To use the library, it's recommended to include it as subdirectory into an existing CMake project.

Tests

To build the test target, CppUTest library is required.

Cmdline util

The CMake project has a 'tlvutil' target for a CLI-tool to convert between different TLV data encodings.
The options for input and output are:

  1. Binary encoded TLV data
  2. Hex encoded TLV data (ASCII-HEX representation of binary data)
  3. Formatted TLV data -- custom data format for git-friendly representation of TLV data

Examples

Headers

See test.cpp for usage examples