Advertisement
pcwizz

structs for parsing the result from a keygen tag

Jan 17th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.38 KB | None | 0 0
  1. type SubjectPublicKeyInfo struct {
  2.     Algorithm pkix.AlgorithmIdentifier
  3.     SubjectPublicKey asn1.BitString
  4. }
  5.  
  6. type PublicKeyAndChallenge struct {
  7.     Spki SubjectPublicKeyInfo
  8.     Challenge string
  9. }
  10.  
  11. type SignedPublicKeyAndChallenge struct{
  12.     PublicKeyAndChallenge PublicKeyAndChallenge
  13.     SignitureAlgorithm pkix.AlgorithmIdentifier
  14.     Signiture asn1.BitString
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement