On Mon, 27 Jun 2022 at 16:04, Andrew Cagney <andrew.cag...@gmail.com> wrote: > > Hi, > > I've code for dumping the very raw rsa _public_ key in base-64 per: > https://www.rfc-editor.org/rfc/rfc4025.html#section-2.6 > https://www.rfc-editor.org/rfc/rfc3110#section-2 > but would like to also dump it in a format that is more friendly to > crypto tools, notably something from the PEM family such as: > - RSA PUBLIC KEY being ASN.1: SEQUENCE ( M E ) > - PUBLIC KEY above + ASN.1 to indicate it is rsa > are there any routines for helping with this? > > I see cmds/btoa has code for dumping binary as PEM but that isn't public.
To answer my own question, best place to start is keyhi.h -- You received this message because you are subscribed to the Google Groups "dev-tech-crypto@mozilla.org" group. To unsubscribe from this group and stop receiving emails from it, send an email to dev-tech-crypto+unsubscr...@mozilla.org. To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-tech-crypto/CAJeAr6ttovaoLX95WAs%2B-OBCCzfw8wm_xTRi1%3D3RuGA-bbpWZQ%40mail.gmail.com.