Skip to content

Commit

Permalink
docs:
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Sep 26, 2024
1 parent a5819c5 commit d0cbe62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/atchops/src/rsa_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ int atchops_rsa_key_generate(atchops_rsa_key_public_key *public_key, atchops_rsa
goto exit;
}
memset(private_key_pkcs8, 0, sizeof(unsigned char) * private_key_pkcs8_size);



// https://lapo.it/asn1js/ use this to debug
// PrivateKeyInfo SEQUENCE (3 elements)
private_key_pkcs8[0] = 0x30; // constructed sequence tag
private_key_pkcs8[1] = 0x82; // 8 --> 1000 0000 (1 in MSB means that it is long form) and 2 --> 0010 0000 (the next 2
Expand Down

0 comments on commit d0cbe62

Please sign in to comment.