Skip to content

Instantly share code, notes, and snippets.

@mcr
Created April 12, 2026 22:40
Show Gist options
  • Select an option

  • Save mcr/2bd359c29b4bd2a8062a49fe76a34d21 to your computer and use it in GitHub Desktop.

Select an option

Save mcr/2bd359c29b4bd2a8062a49fe76a34d21 to your computer and use it in GitHub Desktop.
obiwan-[minerva-voucher/data/00-D0-E5-F2-00-02](3.3.8) mcr 10493 %dumpasn1 key.pkcs8.der
0 135: SEQUENCE {
3 1: INTEGER 0
6 19: SEQUENCE {
8 7: OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1)
17 8: OBJECT IDENTIFIER prime256v1 (1 2 840 10045 3 1 7)
: }
27 109: OCTET STRING, encapsulates {
29 107: SEQUENCE {
31 1: INTEGER 1
34 32: OCTET STRING
: 11 CD 87 AA FC 41 17 AF 46 EA 3E B4 49 81 25 E1
: 63 40 A7 FA 6E 91 40 FF D3 46 A2 5B 6F FB DB 0D
68 68: [1] {
70 66: BIT STRING
: 04 03 A3 75 43 87 B3 7C C0 0A 9A 87 9C AD F6 F4
: 38 13 1C D4 0C 84 1F E0 40 4E 41 79 F0 5B 13 4B
: 20 71 B3 44 9B 49 62 F1 16 30 CE BB 00 7D 80 B1
: A7 D9 3B 13 50 9B A6 27 A5 4F C3 96 7F 4C FE 21
: 27
: }
: }
: }
: }
obiwan-[ring/worktree/ec-key-load](3.3.8) mcr 10486 %dumpasn1 src/data/alg-ec-dsa.der
0 19: SEQUENCE {
2 7: OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1)
11 8: OBJECT IDENTIFIER prime256v1 (1 2 840 10045 3 1 7)
: }
RFC5208 and RFC5958:
AlgorithmIdentifier: A type that identifies an algorithm (by
object identifier) and any **associated parameters**. This type is
defined in [X.509].
(** mine)
-- Private-key information syntax
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
privateKey PrivateKey,
attributes [0] Attributes OPTIONAL }
RFC5912 seems to define:
AlgorithmIdentifier{ALGORITHM-TYPE, ALGORITHM-TYPE:AlgorithmSet} ::=
SEQUENCE {
algorithm ALGORITHM-TYPE.&id({AlgorithmSet}),
parameters ALGORITHM-TYPE.
&Params({AlgorithmSet}{@algorithm}) OPTIONAL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment