the following snippet generates an MLKEM key using a variety of sources and then writes the keys to file as PEM format
- A) generate key internally in code
- B) generate key externally using default crypto/rand source
- C) generate a key externally using a TPM as the rand source (
"github.com/salrashid123/tpmrand") - D) generate key externally using a given hex string statically
also see