uint8_t * pk_decode(const uint8_t * data,int * len);