Skip to content

Instantly share code, notes, and snippets.

@davidmtamas
Created April 2, 2020 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmtamas/15425f868d03aaf9c6acfe27c6eff672 to your computer and use it in GitHub Desktop.
Save davidmtamas/15425f868d03aaf9c6acfe27c6eff672 to your computer and use it in GitHub Desktop.
/// ASN1 header for our public key to re-create the subject public key info
private let rsa2048Asn1Header: [UInt8] = [
0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment