pkcs1: properly handle keys that are not k*8 bits

fixes #31