rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
202 stars 55 forks source link

Relax Base64 decoding to allow empty line after the checksum. #2199

Closed ni4 closed 8 months ago

ni4 commented 8 months ago

Description

Apple security key, armored and published at the following link, cannot be imported since it has extra empty line after the checksum.

https://support.apple.com/en-us/HT201214

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGTKwtoBEADcVttPfg5CNIGSn/9ezyIDjSm2oM4yQFqrAsVqsNG5Tf2rlNg5
nXvOL7eKzS+zsPxaiEXlEj3PYyo5AR/SbtWlN7X6ipnS+lal8E5B540Tb1k+CVyq
/1OqA6jX2H68stlozOrhJDZ8qjZRCt5cUrPsDhdAPJpR17q8UyZyApZc78IeCilg
FCHlstgNY2L4C8Q+yi4RSV9y3Yc2KWcRlgeBP9ZFSUUVq42jzGP/gvssO60knG8X
yhj+91sTh6UY7kOCTK5iQDctg5XN27njO1CBzkJpE9J7wgH/D/xX6aMHw/eaIDLo
qPkJMkgaH9yDUlVOERzBkuPNg42hYnyK1JZvD1ULs0bLg4RxiNMzItG7aXHu3aLF
ibmph4Aw/WjqVRJ/18weZ2dZUP6PmY6+CyBIaINbgP/+n7ZMH3ez8B5BAezr5km8
3NBkRlnUofTcOYC5fJG1uc5TRCphxn1XlZFglGFksvx+H6zJEj58ewituTixhWTc
2q4x7ryg5EWx5WiyGD8lApdMvqJiJVxdp8iKQTY+8qLLRs8jAq3Cdems01ZAFy06
r5noB70IhSVARJpw5DUVzAGldDEMPPRm+HZtY/ZbvA0Ps7A6E0BYMx/EomAZZMZO
rgXXACge76ZMaQlfj+KdOm16NTlJ9pcPURQODqbsmXjl2uP0IhMiy6z4WQARAQAB
tDNBcHBsZSBQcm9kdWN0IFNlY3VyaXR5IDxwcm9kdWN0LXNlY3VyaXR5QGFwcGxl
LmNvbT6JAlQEEwEIAD4WIQSzP1qW0Du5Mj6sT+pf7l3VNdoi+gUCZMrC2gIbAwUJ
A9I5AAULCQg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