lib: initial PPK support