PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
270 stars 76 forks source link

How to parse OpenPGP pem files? #140

Open proteye opened 6 years ago

proteye commented 6 years ago

How to parse OpenPGP pem files?

My implementation for parsing OpenSSL pem files (parsePublicKeyFromPem, parsePrivateKeyFromPem): https://gist.github.com/proteye/982d9991922276ccfb011dfc55443d74

But I catch "Instance of 'ASN1Exception'" error when I'm parsing OpenPGP generated keys.