liboqs includes two example programs that perform key encapsulation and decapsulation using the Kyber post-quantum KEM and signing and verifying using the Dilithium post-quantum signature scheme. Copies of the examples can be found here: