I have to represent (ASN.1/DER SEQUENCE) pseudocode:
SEQUENCE ::= {
INTEGER
SEQUENCE {...}
...
}
Where INTEGER should be a PUBLIC KEY
In terms of Golang struct I have so far pseudocode:
type ... struct {
num int64,
...
}
But when compile, I got runtime error, saying:
panic: asn1: structure error: integer too large
I understand, that problem is with fitting LARGE PUBLIC KEY into small int64, how should I overcome that problem? When I change num int64 to num []int64 I got another error, saying, that type mismatch (which also MAKE SENSE, since was INTEGER and now SEQUENCE)...
So, again, how do you fit PUBLIC KEY INTEGER into int of Golang or any other prog. lang?