PIQ applications for JWT, encryption

450 views
Skip to first unread message

sal rashid

unread,
Mar 29, 2026, 1:50:22 PMMar 29
to pqc-forum
hi-

Most of the threads in this forum covers deep technical details but  if there's interest in applications, i put together some code samples and applications related to PQC.

 I can't contribute towards the technial depth covered in most of the topics but i think some of the applications here maybe of help later on.  Please do let me know if you see any improvements or if i'm doing something outright wrong here (preferably as a github issue or even here)



      * mostly unsorted scratchpad/sample set of using mldsa/mlkem in go, python


    * generating mldsa based JWTs in go using PEM files and keys  in AWS KMS and Google Cloud KMS.  Uses the candidate/proposed api for the next version of go


     * json web encryption (jwe) using MLKEM


     *  go cli and library for MLKEM to wrap+transfer some data
  
          and same for python  https://github.com/salrashid123/python_pqc_wrapping

5)  encrypt docker (oci) containers image layers using MLKEM

    
6) mlkem with TPM based random source as the seed 


    * this one is pretty suspect to me and its practical utility.. . Basically just generating random and using that directly as seed as-is....i don't know if i can 'just use' random squence here as the two values directly..

Again, these are just experimental.


-sal

sal rashid

unread,
Jun 17, 2026, 1:53:58 PM (7 days ago) Jun 17
to pqc-forum
There's also  specifications for MLKEM and MLDSA support for Trusted Platform Modules (TPM) in rev.185

Atleast WolfTPM has support for that now but libraries (go-tpm) and tools (tpm2_tools) are still lacking.

however, just as a test, i modified go-tpm and have some basic samples for mldsa and mlkem:


eventually, it'd be useful to benchmark operations against real hardware TPMs 

Reply all
Reply to author
Forward
0 new messages