pkcs8 package: implement PKCS#8 private key parsing and conversion as defined in RFC5208 and RFC5958