Releases: tillitis/tkey-libs
v0.1.2
From now on tkey-libs is licensed under the BSD-2-Clause license,
moving from the previous GPLv2-only.
Note: There is a possibility that this update may impact the generated
CDI for an app that relies on this library. It is recommended to
always check for potential CDI changes for each specific app with
every update. If the generated CDI does change, and if applicable, it
should be clearly communicated to end users to prevent unintentional
changes to their identity.
Changes:
- New license, BSD-2-Clause
- Reuse compliant, see https://reuse.software/
- Fix row alignment in qemu_hexdump
- Update memory map, tk1_mem.h, from canonical tillitis-key1 repo
- Added make target for creating compile_commands.json for clangd
- Added missing include in touch.h
Full changelog:
v0.1.1...v0.1.2
v0.1.1
This is a minor release correcting a mistake and syncing with the
latest HW release, TK1-24.03.
Note: There is a possibility that this update may impact the generated
CDI for an app that relies on this library. It is recommended to
always check for potential CDI changes for each specific app with
every update. If the generated CDI does change, and if applicable, it
should be clearly communicated to end users to prevent unintentional
changes to their identity.
Changes:
- Update memory map, tk1_mem.h, to match the latest TK1-24.03 release.
- Default to tkey-builder:4 for the podman target
- Default to have QEMU debug enabled in tkey-libs. Mistakenly removed
in previous release. - Revise readme accordingly
Full changelog:
v0.1.0...v0.1.1
Using the provided binary libraries provides in the tar file might be problematic if you're using an older LLVM linker. You might get something like:
ld.lld: error: /src/../tkey-libs/libcommon.a(led.o): Unknown attribute kind (86) (Producer: 'LLVM16.0.6' Reader: 'LLVM 15.0.6')
If you get this error, upgrade your lld
or use our ghcr.io/tillitis/tkey-builder:4 OCI image.
v0.1.0
This release contains some changes that forces applications that use tkey-libs to be updated to work with this release.
Note: It is highly likely that this update will affect the CDI of the TKey. It is advised to always verify this for each specific app, for every update. If the CDI changes, and it is applicable, it should be stated clearly to end users to avoid unknowingly changing the TKey identity.
Breaking changes:
- Check destination buffer's size for read(). To prevent writing outside of destination buffer.
- Renaming LED-functions to follow led_*().
Changes:
- New function, secure_wipe(), to clean memory of secret data.
- New function, touch_wait(). Waits for a touch by the user, with selectable timeout.
- New function, led_get(). Get the value of the applied LED color.
- Upgraded Monocypher to 4.0.2.
- Add variable AR in Makefile to enabling passing llvm-ar from command line.
- Update example app to use led.h.
- Don't have QEMU debug enabled by default.
- Minor tweaks and formatting.
Full changelog: v0.0.2...v0.1.0
v0.0.2
This release contains breaking changes that forces applications that use TKey-libs to be updated to work with this release. It is advised to always build an application against a tag/release of TKey-libs.
Note: It is highly likely that this update will affect the CDI of the TKey. It is advised to always verify this for each specific app, for every update. If the CDI changes, and it is applicable, it should be stated clearly to end users to avoid unknowingly changing the TKey identity.
Breaking changes:
- Introducing include hierarchy to make it less generic, e.g., #include <tkey/led.h>.
- Use stdint.h/stddef.h infavor of types.h.
- Library .a files built on top level to simplify inclusion.
- Upgraded Monocypher to 4.0.1.
- QEMU debug behaviour changed, instead of defining NODEBUG to disable debug, one has to enable it by defining QEMU_DEBUG.
Changes:
- Introduce functions to control the LED, led.h and led.c.
- New function, assert() to make an illegal instruction and forcing the CPU to halt.
- Add functions memcpy_s(), wordcpy_s(), memeq() from firmware
- Adding const to MMIO variables and qemu_* functions.
- Minor tweaks, clean up and bugfixes.
Full changelog: v0.0.1...v0.0.2