PROPHET/OS

NAME

keyheader: the trusted public keys of the modules as a header for the kernel

SYNOPSIS

keyheader <modkey.h> <own.pk> [<trust folder>]|selbsttest

DESCRIPTION

The trusted public keys of the modules as a header for the kernel

The own key of the build first, exactly 2592 bytes of ML-DSA-87, then every file of the trust folder whose name ends in .pk, .der or .pub, sorted by name. A raw key is the 2592 bytes and DER carries them at its end, so the last 2592 bytes are the key either way. The header is written only when a byte of it changes, because every kernel object reads it.

The seed and the key out of it stay with tools/mldsasign.c. The header is what tools/modsign.py schluessel wrote, and the build holds the two against each other byte for byte on every run (R10-SELF-07).

selbsttest writes three keys and a file that is no key under /temp/keyheader, holds the order of the three in the header and sees three bytes refused as a key. It is what shell.the_trusted_keys_stand_own_first_then_by_name drives.

EXAMPLE

$ keyheader --help
keyheader <modkey.h> <own.pk> [<trust folder>]|selbsttest
  the trusted public keys of the modules as a header, own first