| 1 | package timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ |
| 2 | |
| 3 | import ( |
| 4 | "bytesscip-go gomod github.com/golang/go/src go1.16 bytes/" |
| 5 | "cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/" |
| 6 | "crypto/rsascip-go gomod github.com/golang/go/src go1.16 `crypto/rsa`/" |
| 7 | _ "crypto/sha1scip-go gomod github.com/golang/go/src go1.16 `crypto/sha1`/" |
| 8 | "crypto/sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/" |
| 9 | _ "crypto/sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/" |
| 10 | _ "crypto/sha512scip-go gomod github.com/golang/go/src go1.16 `crypto/sha512`/" |
| 11 | "crypto/x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/" |
| 12 | "encoding/asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/" |
| 13 | "encoding/pemscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/" |
| 14 | "fmtscip-go gomod github.com/golang/go/src go1.16 fmt/" |
| 15 | "math/bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/" |
| 16 | "stringsscip-go gomod github.com/golang/go/src go1.16 strings/" |
| 17 | "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 18 | "timescip-go gomod github.com/golang/go/src go1.16 time/" |
| 19 | |
| 20 | "github.com/digitorus/pkcs7scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/" |
| 21 | ) |
| 22 | |
| 23 | // Random data, to create with OpenSSL: |
| 24 | // |
| 25 | // $ openssl rand -base64 32 > data.txt |
| 26 | // |
| 27 | // Contents of our random date in tests below "RhT49MYCgJzWssTF+LXtFZbLD4pe94q4uezLWoTLzyM=" |
| 28 | var hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/hashedMessage. = []byte{0xf4, 0x87, 0xd8, 0x81, 0x64, 0xbd, 0xe2, 0x23, 0xb7, 0xfd, 0x3c, 0x71, 0xb3, 0xe9, 0xc6, 0x24, 0xc8, 0xa0, 0xcb, 0x55, 0x9c, 0x85, 0x3b, 0x49, 0x55, 0x8e, 0x7e, 0x5e, 0xf4, 0xce, 0x55, 0xf0} |
| 29 | |
| 30 | // Time-Stamp request with nonce, to create with OpenSSL: |
| 31 | // |
| 32 | // $ openssl ts -query -data data.txt -cert -sha256 -out reqnonoce.tsq |
| 33 | var reqNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNonce. = []byte{0x30, 0x43, 0x2, 0x1, 0x1, 0x30, 0x31, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x4, 0x20, 0xf4, 0x87, 0xd8, 0x81, 0x64, 0xbd, 0xe2, 0x23, 0xb7, 0xfd, 0x3c, 0x71, 0xb3, 0xe9, 0xc6, 0x24, 0xc8, 0xa0, 0xcb, 0x55, 0x9c, 0x85, 0x3b, 0x49, 0x55, 0x8e, 0x7e, 0x5e, 0xf4, 0xce, 0x55, 0xf0, 0x2, 0x8, 0x9, 0x2e, 0xf1, 0x9f, 0xfb, 0x5d, 0x2a, 0xe8, 0x1, 0x1, 0xff} |
| 34 | |
| 35 | var respNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNonce. = []byte{0x30, 0x82, 0xe, 0x35, 0x30, 0x3, 0x2, 0x1, 0x0, 0x30, 0x82, 0xe, 0x2c, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0xe, 0x1d, 0x30, 0x82, 0xe, 0x19, 0x2, 0x1, 0x3, 0x31, 0xf, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x30, 0x81, 0xed, 0x6, 0xb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a, 0x30, 0x28, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x21, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x43, 0x44, 0x53, 0x20, 0x2d, 0x20, 0x47, 0x32, 0xa0, 0x82, 0xa, 0x47, 0x30, 0x82, 0x5, 0x47, 0x30, 0x82, 0x4, 0x2f, 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x12, 0x11, 0x21, 0xd2, 0xd1, 0x82, 0xa, 0xf0, 0xa5, 0xc5, 0x48, 0x14, 0x9a, 0x32, 0x74, 0xdc, 0xc3, 0x43, 0x57, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0xb, 0x5, 0x0, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x36, 0x30, 0x35, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x32, 0x30, 0x35, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x5a, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x53, 0x47, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x16, 0x47, 0x4d, 0x4f, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x74, 0x65, 0x20, 0x4c, 0x74, 0x64, 0x31, 0x2a, 0x30, 0x28, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x21, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x43, 0x44, 0x53, 0x20, 0x2d, 0x20, 0x47, 0x32, 0x30, 0x82, 0x1, 0x22, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x1, 0x5, 0x0, 0x3, 0x82, 0x1, 0xf, 0x0, 0x30, 0x82, 0x1, 0xa, 0x2, 0x82, 0x1, 0x1, 0x0, 0xd7, 0xbc, 0xf9, 0x4f, 0xea, 0xab, 0x40, 0xdf, 0x15, 0x5c, 0xd4, 0xe8, 0xa5, 0x8e, 0x7a, 0x8, 0x2e, 0xc6, 0x15, 0xea, 0xa, 0xc, 0x69, 0x94, 0xae, 0x9, 0xc2,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, 0xb2, 0xc4, 0x9c, 0x1b, 0xf7, 0x95, 0x24, 0xdc, 0x13, 0x83, 0x8c, 0x94, 0xc8, 0x57, 0xd8, 0x4f, 0x33, 0xf2, 0xda, 0x5d, 0x73, 0x70, 0x4f, 0x3a, 0xc9, 0xa2, 0x5f, 0x2a, 0x7c, 0x71, 0xc9, 0xc1, 0x4a, 0x5d, 0xe1, 0x98, 0x34, 0x6b, 0xd3, 0xc1, 0x74, 0x15, 0x33, 0x89, 0x93, 0x2, 0x3, 0x1, 0x0, 0x1, 0xa3, 0x82, 0x1, 0xed, 0x30, 0x82, 0x1, 0xe9, 0x30, 0xe, 0x6, 0x3, 0x55, 0x1d, 0xf, 0x1, 0x1, 0xff, 0x4, 0x4, 0x3, 0x2, 0x7, 0x80, 0x30, 0x81, 0xdd, 0x6, 0x3, 0x55, 0x1d, 0x20, 0x4, 0x81, 0xd5, 0x30, 0x81, 0xd2, 0x30, 0x81, 0xcf, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x2f, 0x1, 0x2, 0x1, 0x30, 0x81, 0xc1, 0x30, 0x81, 0x8a, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x2, 0x30, 0x7e, 0xc, 0x7c, 0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x68, 0x61, 0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x72, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x20, 0x43, 0x50, 0x53, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, 0x74, 0x20, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x30, 0x32, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x1, 0x16, 0x26, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x30, 0x9, 0x6, 0x3, 0x55, 0x1d, 0x13, 0x4, 0x2, 0x30, 0x0, 0x30, 0x16, 0x6, 0x3, 0x55, 0x1d, 0x25, 0x1, 0x1, 0xff, 0x4, 0xc, 0x30, 0xa, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x3, 0x8, 0x30, 0x40, 0x6, 0x3, 0x55, 0x1d, 0x1f, 0x4, 0x39, 0x30, 0x37, 0x30, 0x35, 0xa0, 0x33, 0xa0, 0x31, 0x86, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x63, 0x72, 0x6c, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x73, 0x2f, 0x67, 0x73, 0x70, 0x72, 0x6d, 0x73, 0x68,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 0x13, 0xd, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x31, 0x30, 0x35, 0x32, 0x35, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x32, 0x30, 0x35, 0x32, 0x34, 0x32, 0x33, 0x35, 0x39, 0x35, 0x39, 0x5a, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x30, 0x82, 0x1, 0x22, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x1, 0x5, 0x0, 0x3, 0x82, 0x1, 0xf, 0x0, 0x30, 0x82, 0x1, 0xa, 0x2, 0x82, 0x1, 0x1, 0x0, 0xc2, 0xc6, 0xb,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, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x2, 0x30, 0x81, 0x80, 0x1a, 0x7e, 0x54, 0x68, 0x65, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x68, 0x61, 0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x61, 0x74, 0x20, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x61, 0x64, 0x6f, 0x62, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x73, 0x63, 0x2f, 0x70, 0x6b, 0x69, 0x2f, 0x63, 0x64, 0x73, 0x5f, 0x63, 0x70, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x1d, 0x1f, 0x4, 0x26, 0x30, 0x24, 0x30, 0x22, 0xa0, 0x20, 0xa0, 0x1e, 0x86, 0x1c, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x63, 0x72, 0x6c, 0x2e, 0x61, 0x64, 0x6f, 0x62, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x64, 0x73, 0x2e, 0x63, 0x72, 0x6c, 0x30, 0x14, 0x6, 0x3, 0x55, 0x1d, 0x25, 0x4, 0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 0x1, 0x1, 0x30, 0x81, 0x88, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x2, 0x12, 0x11, 0x21, 0xd2, 0xd1, 0x82, 0xa, 0xf0, 0xa5, 0xc5, 0x48, 0x14, 0x9a, 0x32, 0x74, 0xdc, 0xc3, 0x43, 0x57, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0xa0, 0x82, 0x1, 0xe, 0x30, 0x1a, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x3, 0x31, 0xd, 0x6, 0xb, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x10, 0x1, 0x4, 0x30, 0x2f, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x4, 0x31, 0x22, 0x4, 0x20, 0x98, 0x7a, 0x55, 0x9c, 0x19, 0x83, 0x73, 0xd0, 0xcb, 0xfc, 0xe1, 0x4, 0x40, 0xf, 0x78, 0x77, 0xe, 0xbe, 0x86, 0xe5, 0xe0, 0x67, 0xa, 0x2b, 0xc8, 0x3c, 0x68, 0x75, 0xef, 0x7, 0x6d, 0x99, 0x30, 0x81, 0xbe, 0x6, 0xb, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x10, 0x2, 0xc, 0x31, 0x81, 0xae, 0x30, 0x81, 0xab, 0x30, 0x81, 0xa8, 0x30, 0x81, 0xa5, 0x4, 0x14, 0xba, 0x64, 0xa3, 0x69, 0x93, 0xb8, 0xb6, 0x4, 0xf7, 0xfe, 0x65, 0xd3, 0x7d, 0x8f, 0x8e, 0x68, 0x96, 0xfc, 0x96, 0xb, 0x30, 0x81, 0x8c, 0x30, 0x76, 0xa4, 0x74, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48,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x2c, 0xff, 0xac, 0x44, 0x38, 0x85, 0xcc, 0xee, 0xb6, 0xe8, 0xf7, 0xae, 0xaa, 0x97, 0xbd, 0x68, 0x4a, 0xbe, 0x3e, 0xcf, 0xe, 0x71, 0xcd, 0xf3, 0x3e, 0xef, 0xea, 0x20, 0xd5, 0x3c, 0x40, 0xcd, 0x5a, 0x88, 0x7c, 0x16, 0xd4, 0xd8, 0x8, 0xf4, 0x35, 0x6b, 0xca, 0xa8, 0xce, 0x2d, 0x53, 0x99, 0x87, 0xa3, 0x31, 0xd, 0x16, 0xa5, 0x43, 0x1c, 0xff, 0x17, 0x82, 0xd4, 0x39, 0x7, 0xd6, 0xa6, 0xad, 0x2b, 0x1a, 0x48, 0x32, 0x70, 0x5d, 0x8e, 0xfe, 0xe7, 0x54, 0x8b, 0x15, 0xa5, 0x76, 0x2e, 0xa0, 0x2a, 0x9c, 0x4, 0x2e, 0x3e, 0x0, 0x9f, 0xbc, 0x7d, 0xce, 0x71, 0x94, 0x52, 0x5c, 0x6d, 0x78, 0xc5, 0xd2, 0xbc, 0x2e, 0x78, 0x29, 0xb5, 0x95, 0x2a, 0x34, 0x9a, 0x55, 0x60, 0x9a, 0x18, 0x1b, 0xc1, 0x4d, 0x47, 0xc1, 0xa1, 0xe9, 0x16, 0x3b, 0xee, 0x6b, 0xd2} |
| 36 | |
| 37 | // Time-Stamp request without nonce, to create with OpenSSL: |
| 38 | // |
| 39 | // $ openssl ts -query -data data.txt -cert -sha256 -no_nonce -out reqnonoce.tsq |
| 40 | var reqNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoNonce. = []byte{0x30, 0x39, 0x2, 0x1, 0x1, 0x30, 0x31, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x4, 0x20, 0xf4, 0x87, 0xd8, 0x81, 0x64, 0xbd, 0xe2, 0x23, 0xb7, 0xfd, 0x3c, 0x71, 0xb3, 0xe9, 0xc6, 0x24, 0xc8, 0xa0, 0xcb, 0x55, 0x9c, 0x85, 0x3b, 0x49, 0x55, 0x8e, 0x7e, 0x5e, 0xf4, 0xce, 0x55, 0xf0, 0x1, 0x1, 0xff} |
| 41 | |
| 42 | var respNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNoNonce. = []byte{0x30, 0x82, 0xe, 0x2b, 0x30, 0x3, 0x2, 0x1, 0x0, 0x30, 0x82, 0xe, 0x22, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0xe, 0x13, 0x30, 0x82, 0xe, 0xf, 0x2, 0x1, 0x3, 0x31, 0xf, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x30, 0x81, 0xe3, 0x6, 0xb, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x10, 0x1, 0x4, 0xa0, 0x81, 0xd3, 0x4, 0x81, 0xd0, 0x30, 0x81, 0xcd, 0x2, 0x1, 0x1, 0x6, 0x9, 0x2b, 0x6, 0x1, 0x4, 0x1, 0xa0, 0x32, 0x2, 0x1, 0x30, 0x31, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x4, 0x20, 0xf4, 0x87, 0xd8, 0x81, 0x64, 0xbd, 0xe2, 0x23, 0xb7, 0xfd, 0x3c, 0x71, 0xb3, 0xe9, 0xc6, 0x24, 0xc8, 0xa0, 0xcb, 0x55, 0x9c, 0x85, 0x3b, 0x49, 0x55, 0x8e, 0x7e, 0x5e, 0xf4, 0xce, 0x55, 0xf0, 0x2, 0x14, 0x25, 0x92, 0xb9, 0xa, 0x43, 0x4b, 0x2c, 0x7, 0x99, 0xa6, 0xb0, 0xbc, 0xc4, 0x25, 0x7, 0x9e, 0xa5, 0x6e, 0xe5, 0xf6, 0x18, 0xf, 0x32, 0x30, 0x31, 0x37, 0x30, 0x34, 0x31, 0x39, 0x30, 0x36, 0x32, 0x38, 0x31, 0x33, 0x5a, 0x30, 0x3, 0x2, 0x1, 0x1, 0xa0, 0x5e, 0xa4, 0x5c, 0x30, 0x5a, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x53, 0x47, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x16, 0x47, 0x4d, 0x4f, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x74, 0x65, 0x20, 0x4c, 0x74, 0x64, 0x31, 0x2a, 0x30, 0x28, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x21, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x43, 0x44, 0x53, 0x20, 0x2d, 0x20, 0x47, 0x32, 0xa0, 0x82, 0xa, 0x47, 0x30, 0x82, 0x5, 0x47, 0x30, 0x82, 0x4, 0x2f, 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x12, 0x11, 0x21, 0xd2, 0xd1, 0x82, 0xa, 0xf0, 0xa5, 0xc5, 0x48, 0x14, 0x9a, 0x32, 0x74, 0xdc, 0xc3, 0x43, 0x57, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0xb, 0x5, 0x0, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x36, 0x30, 0x35, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x32, 0x30, 0x35, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x5a, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x53, 0x47, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x16, 0x47, 0x4d, 0x4f, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x74, 0x65, 0x20, 0x4c, 0x74, 0x64, 0x31, 0x2a, 0x30, 0x28, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x21, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 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, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x2, 0x30, 0x7e, 0xc, 0x7c, 0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x68, 0x61, 0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x72, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x20, 0x43, 0x50, 0x53, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, 0x74, 0x20, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x30, 0x32, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x1, 0x16, 0x26, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x30, 0x9, 0x6, 0x3, 0x55, 0x1d, 0x13, 0x4, 0x2, 0x30, 0x0, 0x30, 0x16, 0x6, 0x3, 0x55, 0x1d, 0x25, 0x1, 0x1, 0xff, 0x4, 0xc, 0x30, 0xa, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x3, 0x8, 0x30, 0x40, 0x6, 0x3, 0x55, 0x1d, 0x1f, 0x4, 0x39, 0x30, 0x37, 0x30, 0x35, 0xa0, 0x33, 0xa0, 0x31, 0x86, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x63, 0x72, 0x6c, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x73, 0x2f, 0x67, 0x73, 0x70, 0x72, 0x6d, 0x73, 0x68, 0x61, 0x32, 0x61, 0x64, 0x6f, 0x62, 0x65, 0x2e, 0x63, 0x72, 0x6c, 0x30, 0x52, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x1, 0x1, 0x4, 0x46, 0x30, 0x44, 0x30, 0x42, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x30, 0x2, 0x86, 0x36, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x63, 0x65, 0x72, 0x74, 0x2f, 0x67, 0x73, 0x70, 0x72, 0x6d, 0x73, 0x68, 0x61, 0x32, 0x61, 0x64, 0x6f, 0x62, 0x65, 0x2e, 0x64, 0x65, 0x72, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x1d, 0xe, 0x4, 0x16, 0x4, 0x14, 0x48, 0x78, 0xeb, 0x96, 0x27, 0x1e,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 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x55, 0x53, 0x31, 0x23, 0x30, 0x21, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x1a, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x20, 0x49, 0x6e, 0x63, 0x6f, 0x72, 0x70, 0x6f, 0x72, 0x61, 0x74, 0x65, 0x64, 0x31, 0x1d, 0x30, 0x1b, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0x14, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x54, 0x72, 0x75, 0x73, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x31, 0x16, 0x30, 0x14, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0xd, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x31, 0x30, 0x35, 0x32, 0x35, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x32, 0x30, 0x35, 0x32, 0x34, 0x32, 0x33, 0x35, 0x39, 0x35, 0x39, 0x5a, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53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x81, 0xdc, 0x30, 0x81, 0xd9, 0x30, 0x81, 0xd6, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x2f, 0x1, 0x2, 0x1, 0x30, 0x81, 0xc8, 0x30, 0x36, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x1, 0x16, 0x2a, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x61, 0x64, 0x6f, 0x62, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x73, 0x63, 0x2f, 0x70, 0x6b, 0x69, 0x2f, 0x63, 0x64, 0x73, 0x5f, 0x63, 0x70, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x30, 0x81, 0x8d, 0x6, 0x8, 0x2b, 0x6, 0x1, 0x5, 0x5, 0x7, 0x2, 0x2, 0x30, 0x81, 0x80, 0x1a, 0x7e, 0x54, 0x68, 0x65, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x68, 0x61, 0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x61, 0x74, 0x20, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x61, 0x64, 0x6f, 0x62,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x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x2, 0x12, 0x11, 0x21, 0xd2, 0xd1, 0x82, 0xa, 0xf0, 0xa5, 0xc5, 0x48, 0x14, 0x9a, 0x32, 0x74, 0xdc, 0xc3, 0x43, 0x57, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x1, 0x5, 0x0, 0x4, 0x82, 0x1, 0x0, 0x21, 0xd7, 0xe8, 0x74, 0xba, 0x1, 0xb0, 0xb, 0xc2, 0x57, 0x24, 0x62, 0x7b, 0xbd, 0xfb, 0xf2, 0xaa, 0xeb, 0x30, 0x3b, 0x89, 0x51, 0xb7, 0x7f, 0x96, 0x80, 0x84, 0xff, 0x55, 0xbf, 0x0, 0x36, 0x4c, 0xaf, 0xa2, 0x65, 0x36, 0x26, 0x53, 0xda, 0x4c, 0x19, 0xa4, 0x61, 0x97, 0x6a, 0x8, 0xd1, 0xd9, 0x6d, 0x61, 0x8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80, 0x2f, 0xa8, 0x45, 0x9a, 0x41, 0xe3, 0x29, 0x49, 0x50, 0xbf, 0x9e, 0x32, 0xc0, 0xb7, 0x7e, 0x35, 0x32, 0x8, 0xd5, 0x2a} |
| 43 | |
| 44 | // Time-Stamp request without certificate, to create with OpenSSL: |
| 45 | // |
| 46 | // $ openssl ts -query -data data.txt -sha256 -out reqnonoce.tsq |
| 47 | var reqNoCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoCert. = []byte{0x30, 0x41, 0x2, 0x1, 0x1, 0x30, 0x31, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x4, 0x20, 0xf4, 0x87, 0xd8, 0x81, 0x64, 0xbd, 0xe2, 0x23, 0xb7, 0xfd, 0x3c, 0x71, 0xb3, 0xe9, 0xc6, 0x24, 0xc8, 0xa0, 0xcb, 0x55, 0x9c, 0x85, 0x3b, 0x49, 0x55, 0x8e, 0x7e, 0x5e, 0xf4, 0xce, 0x55, 0xf0, 0x2, 0x9, 0x0, 0xb1, 0xfc, 0x81, 0xde, 0xc9, 0x57, 0x49, 0xd9} |
| 48 | |
| 49 | var respNoCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNoCert. = []byte{0x30, 0x82, 0x3, 0xeb, 0x30, 0x3, 0x2, 0x1, 0x0, 0x30, 0x82, 0x3, 0xe2, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x3, 0xd3, 0x30, 0x82, 0x3, 0xcf, 0x2, 0x1, 0x3, 0x31, 0xf, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x5, 0x0, 0x30, 0x81, 0xee, 0x6, 0xb, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x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, 0x21, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x20, 0x43, 0x44, 0x53, 0x20, 0x2d, 0x20, 0x47, 0x32, 0x31, 0x82, 0x2, 0xc6, 0x30, 0x82, 0x2, 0xc2, 0x2, 0x1, 0x1, 0x30, 0x81, 0x88, 0x30, 0x72, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x17, 0x30, 0x15, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0xe, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x44, 0x53, 0x31, 0x2f, 0x30, 0x2d, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x26, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x64, 0x6f, 0x62, 0x65, 0x2, 0x12, 0x11, 0x21, 0xd2, 0xd1, 0x82, 0xa, 0xf0, 0xa5, 0xc5, 0x48, 0x14, 0x9a, 0x32, 0x74, 0xdc, 0xc3, 0x43, 0x57, 0x30, 0xd, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0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0x3d, 0x2d, 0x14, 0xfb, 0xc8, 0xb3, 0x92, 0x9b, 0x88, 0x14, 0x61, 0x44, 0xf4, 0x82, 0xbd, 0xb, 0x61, 0x36, 0xd2, 0x4e, 0x2b, 0xc8, 0xae, 0x75, 0x77, 0x2e, 0x54, 0xe7, 0x2d, 0xd5, 0x42, 0xe5, 0x23, 0xc, 0x1e, 0xb3, 0x80, 0xc7, 0x13, 0xe3, 0x13, 0xb5, 0x63, 0x59, 0x5a, 0x95, 0x4e, 0x33, 0x3, 0xe6, 0x31, 0x82, 0xbc, 0x85, 0xa6, 0x66, 0x48, 0xfa, 0x42, 0x47, 0x6a, 0x76, 0x9a, 0x97, 0x56, 0x6e, 0x1a, 0x33, 0xaa, 0x7d, 0xe5, 0x5e, 0xf9, 0xd, 0x24, 0x19, 0xed, 0xf8, 0x37, 0xe, 0xd0, 0x91, 0xa5, 0x9, 0x72, 0x58, 0x66, 0xf8, 0x13, 0x6c, 0x77, 0x99, 0x8f, 0x1c, 0xd9, 0xad, 0x17, 0x3f, 0xa3, 0xd7, 0x2a, 0x91, 0x93, 0xf9, 0x36, 0x36, 0x6f, 0x6, 0x53, 0x0, 0x23, 0xce, 0x18, 0x5d, 0xd, 0x98, 0x8a, 0x24, 0x94, 0x7f, 0x6d, 0xb9, 0x13, 0xcc, 0xa7, 0xcb, 0x89, 0x5f, 0x3, 0x23, 0x1a, 0x49, 0x70, 0x9b, 0x75, 0x9f, 0xf9, 0x64, 0x42, 0x75, 0xcb, 0x76, 0x2f, 0xb9, 0x82, 0x5e, 0x1c, 0xa9, 0x41, 0xd4, 0x6d, 0x84, 0x4e, 0xf8, 0x2d, 0x93, 0x2c, 0x4c, 0x4f, 0x21, 0x82, 0x6b, 0x5b, 0x95, 0xe3} |
| 50 | |
| 51 | // TimeStampToken excluding response struct |
| 52 | var timeStampTokenscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/timeStampToken. = []byte{0x30, 0x82, 0xc, 0xdc, 0x6, 0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4, 0x6, 0x13, 0x2, 0x53, 0x47, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x16, 0x47, 0x4d, 0x4f, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x74, 0x65, 0x20, 0x4c, 0x74, 0x64, 0x31, 0x2e, 0x30, 0x2c, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x25, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x41, 0x54, 0x4c, 0x20, 0x2d, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x2d, 0x20, 0x47, 0x32, 0xa0, 0x82, 0x9, 0x2c, 0x30, 0x82, 0x4, 0xd1, 0x30, 0x82, 0x3, 0xb9, 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x12, 0x11, 0x21, 0x12, 0x42, 0x28, 0x72, 0xda, 0x4f, 0xa5, 0x6c, 0x1, 0x3b, 0x29, 0x7c, 0xaf, 0x65, 0xf1, 0xfb, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0xb, 0x5, 0x0, 0x30, 0x57, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x2d, 0x30, 0x2b, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x24, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x41, 0x54, 0x4c, 0x20, 0x2d, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x2d, 0x20, 0x47, 0x32, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x36, 0x30, 0x35, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x37, 0x30, 0x36, 0x32, 0x34, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x5e, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x53, 0x47, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x16, 0x47, 0x4d, 0x4f, 0x20, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x50, 0x74, 0x65, 0x20, 0x4c, 0x74, 0x64, 0x31, 0x2e, 0x30, 0x2c, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x25, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x69, 0x67, 0x6e, 0x20, 0x54, 0x53, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x41, 0x54, 0x4c, 0x20, 0x2d, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x2d, 0x20, 0x47, 0x32, 0x30, 0x82, 0x1, 0x22, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x1, 0x5, 0x0, 0x3, 0x82, 0x1, 0xf, 0x0, 0x30, 0x82, 0x1, 0xa, 0x2, 0x82, 0x1, 0x1, 0x0, 0xc3, 0xcf, 0xdd, 0x35, 0xb0, 0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 0x4, 0x0, 0x0, 0x0, 0x0, 0x1, 0x44, 0x4f, 0x2, 0x36, 0xb6, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0xb, 0x5, 0x0, 0x30, 0x4c, 0x31, 0x20, 0x30, 0x1e, 0x6, 0x3, 0x55, 0x4, 0xb, 0x13, 0x17, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, 0x20, 0x2d, 0x20, 0x52, 0x33, 0x31, 0x13, 0x30, 0x11, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0xa, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x31, 0x13, 0x30, 0x11, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0xa, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x30, 0x1e, 0x17, 0xd, 0x31, 0x34, 0x30, 0x32, 0x32, 0x30, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x17, 0xd, 0x32, 0x39, 0x30, 0x33, 0x31, 0x38, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5a, 0x30, 0x57, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x2d, 0x30, 0x2b, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x24, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67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0x14, 0x97, 0xc4, 0xb7, 0x95, 0x36, 0x8d, 0xb5, 0xae, 0x1a, 0x6, 0xc5, 0x44, 0x83, 0x80, 0xaa, 0xeb, 0x1a, 0xc0, 0x9b, 0x8b, 0x30, 0x71, 0x30, 0x5b, 0xa4, 0x59, 0x30, 0x57, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x6e, 0x76, 0x2d, 0x73, 0x61, 0x31, 0x2d, 0x30, 0x2b, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x24, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x20, 0x43, 0x41, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x41, 0x54, 0x4c, 0x20, 0x2d, 0x20, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x20, 0x2d, 0x20, 0x47, 0x32, 0x2, 0x12, 0x11, 0x21, 0x12, 0x42, 0x28, 0x72, 0xda, 0x4f, 0xa5, 0x6c, 0x1, 0x3b, 0x29, 0x7c, 0xaf, 0x65, 0xf1, 0xfb, 0x30, 0xd, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x1, 0x5, 0x0, 0x4, 0x82, 0x1, 0x0, 0xb6, 0x24, 0xfe, 0xeb, 0x50, 0x44, 0xb4, 0xc, 0xf1, 0xc9, 0x55, 0x46, 0x90, 0xa4, 0xad, 0x91, 0xfa, 0xb0, 0x79, 0x60, 0x54, 0xb2, 0x57, 0x31, 0xcf, 0xee, 0xae, 0xf7, 0x5d, 0xb0, 0xa9, 0x8e, 0x4d, 0x58, 0x25, 0x22, 0x6d, 0x82, 0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0x78, 0x5d, 0xa7, 0x3a, 0xa5, 0x57, 0xab, 0x4f, 0x62, 0xf4, 0x2b, 0x3f, 0xb1, 0xd8, 0x77, 0xf2, 0xfe, 0x67, 0x95, 0xfd, 0x6, 0x10, 0x7, 0x4b, 0xd9, 0x1, 0x2a, 0xb4, 0x2b, 0x6f, 0xd3, 0x9c} |
| 53 | |
| 54 | var respRejectionscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respRejection. = []byte{0x30, 0x35, 0x30, 0x33, 0x2, 0x1, 0x2, 0x30, 0x28, 0xc, 0x26, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x3, 0x4, 0x6, 0x0, 0x0, 0x40} |
| 55 | |
| 56 | type testDatascip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData# struct { |
| 57 | namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name. string |
| 58 | requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request. []byte |
| 59 | responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response. []byte |
| 60 | certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates. bool |
| 61 | noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce. *bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.Intscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int# |
| 62 | timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time. timescip-go gomod github.com/golang/go/src go1.16 time/.Timescip-go gomod github.com/golang/go/src go1.16 time/Time# |
| 63 | accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy. timescip-go gomod github.com/golang/go/src go1.16 time/.Durationscip-go gomod github.com/golang/go/src go1.16 time/Duration# |
| 64 | hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage. []byte |
| 65 | hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm. cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.Hashscip-go gomod github.com/golang/go/src go1.16 crypto/Hash# |
| 66 | } |
| 67 | |
| 68 | var testCasesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testCases. = []testDatascip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#{ |
| 69 | { |
| 70 | namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name.: "Including nonce", |
| 71 | requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request.: reqNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNonce., |
| 72 | responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response.: respNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNonce., |
| 73 | certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates.: true, |
| 74 | noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce.: bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0).SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x9, 0x2e, 0xf1, 0x9f, 0xfb, 0x5d, 0x2a, 0xe8}), |
| 75 | timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time.: timescip-go gomod github.com/golang/go/src go1.16 time/.Datescip-go gomod github.com/golang/go/src go1.16 time/Date().(2017, 4, 19, 6, 29, 53, 0, timescip-go gomod github.com/golang/go/src go1.16 time/.UTCscip-go gomod github.com/golang/go/src go1.16 time/UTC.), |
| 76 | accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy.: timescip-go gomod github.com/golang/go/src go1.16 time/.Secondscip-go gomod github.com/golang/go/src go1.16 time/Second., |
| 77 | hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.: hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/hashedMessage., |
| 78 | hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 79 | }, |
| 80 | { |
| 81 | namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name.: "Containing no nonce", |
| 82 | requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request.: reqNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoNonce., |
| 83 | responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response.: respNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNoNonce., |
| 84 | certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates.: true, |
| 85 | noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce.: nil, |
| 86 | timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time.: timescip-go gomod github.com/golang/go/src go1.16 time/.Datescip-go gomod github.com/golang/go/src go1.16 time/Date().(2017, 4, 19, 6, 28, 13, 0, timescip-go gomod github.com/golang/go/src go1.16 time/.UTCscip-go gomod github.com/golang/go/src go1.16 time/UTC.), |
| 87 | accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy.: timescip-go gomod github.com/golang/go/src go1.16 time/.Secondscip-go gomod github.com/golang/go/src go1.16 time/Second., |
| 88 | hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.: hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/hashedMessage., |
| 89 | hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 90 | }, |
| 91 | { |
| 92 | namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name.: "Containing no certificates", |
| 93 | requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request.: reqNoCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoCert., |
| 94 | responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response.: respNoCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNoCert., |
| 95 | certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates.: false, |
| 96 | noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce.: bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0).SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0xb1, 0xfc, 0x81, 0xde, 0xc9, 0x57, 0x49, 0xd9}), |
| 97 | timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time.: timescip-go gomod github.com/golang/go/src go1.16 time/.Datescip-go gomod github.com/golang/go/src go1.16 time/Date().(2017, 4, 19, 6, 32, 43, 0, timescip-go gomod github.com/golang/go/src go1.16 time/.UTCscip-go gomod github.com/golang/go/src go1.16 time/UTC.), |
| 98 | accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy.: timescip-go gomod github.com/golang/go/src go1.16 time/.Secondscip-go gomod github.com/golang/go/src go1.16 time/Second., |
| 99 | hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.: hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/hashedMessage., |
| 100 | hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 101 | }, |
| 102 | } |
| 103 | |
| 104 | // Send the timestamp request to our timestamp server and save the response |
| 105 | // $ curl --globoff -s -S -H Content-Type:application/timestamp-query -H Host:${HOST} --data-binary @request-sha256.tsq -o ts-output.tsr ${URL} |
| 106 | |
| 107 | func TestParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestParseRequest().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 108 | for _, tc := range testCasesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testCases. { |
| 109 | t.Runscip-go gomod github.com/golang/go/src go1.16 testing/T#Run().(tc.namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name., func(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 110 | if tc.requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request. == nil { |
| 111 | return |
| 112 | } |
| 113 | |
| 114 | req, err := ParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseRequest().(tc.requestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#request.) |
| 115 | if err != nil { |
| 116 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("failed to parse request: %s", err.Error()) |
| 117 | return |
| 118 | } |
| 119 | |
| 120 | if !bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.Equalscip-go gomod github.com/golang/go/src go1.16 bytes/Equal().(req.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashedMessage., tc.hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.) { |
| 121 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("req.HashedMessage: got %x, want %x", req.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashedMessage., tc.hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.) |
| 122 | } |
| 123 | |
| 124 | if (tc.noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce. != nil && tc.noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce..CmpAbsscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#CmpAbs().(req.Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Nonce.) != 0) || (req.Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Nonce. != nil && tc.noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce. == nil) { |
| 125 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("req.Nonce: got %v, want %v", req.Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Nonce., tc.noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#nonce.) |
| 126 | } |
| 127 | |
| 128 | if req.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashAlgorithm. != tc.hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm. { |
| 129 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("req.HashAlgorithm: got %v, want %v", req.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashAlgorithm., tc.hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm.) |
| 130 | } |
| 131 | |
| 132 | if req.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Certificates. != tc.certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates. { |
| 133 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("req.Certificates: got %v, want %v", req.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Certificates., tc.certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates.) |
| 134 | } |
| 135 | }) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestParseResponse().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 140 | for _, tc := range testCasesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testCases. { |
| 141 | t.Runscip-go gomod github.com/golang/go/src go1.16 testing/T#Run().(tc.namescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#name., func(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 142 | if tc.responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response. == nil { |
| 143 | return |
| 144 | } |
| 145 | |
| 146 | resp, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(tc.responsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#response.) |
| 147 | if err != nil { |
| 148 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("failed to parse response: %s", err.Error()) |
| 149 | return |
| 150 | } |
| 151 | |
| 152 | if !bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.Equalscip-go gomod github.com/golang/go/src go1.16 bytes/Equal().(resp.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage., tc.hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.) { |
| 153 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("resp.HashedMessage: got %x, want %x", resp.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage., tc.hashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashedMessage.) |
| 154 | } |
| 155 | |
| 156 | if resp.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm. != tc.hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm. { |
| 157 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("resp.HashAlgorithm: got %v, want %v", resp.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm., tc.hashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#hashAlgorithm.) |
| 158 | } |
| 159 | |
| 160 | if !resp.Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time..Equalscip-go gomod github.com/golang/go/src go1.16 time/Time#Equal().(tc.timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time.) { |
| 161 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("resp.Time: got %v, want %v", resp.Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time., tc.timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#time.) |
| 162 | } |
| 163 | |
| 164 | if resp.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy. != tc.accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy. { |
| 165 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("resp.Accuracy: got %v, want %v", resp.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy., tc.accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#accuracy.) |
| 166 | } |
| 167 | |
| 168 | if tc.certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates. && len(resp.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Certificates.) == 0 { |
| 169 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("resp.Certificates: got %v, want %v", len(resp.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Certificates.), tc.certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/testData#certificates.) |
| 170 | } |
| 171 | |
| 172 | /* |
| 173 | if !(resp.Nonce == nil && tc.nonce == nil && resp.Nonce.Cmp(tc.nonce) != 0 { |
| 174 | t.Errorf("resp.Nonce: got %v, want %v", resp.Nonce, tc.nonce) |
| 175 | } |
| 176 | */ |
| 177 | }) |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | func TestParsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestParse().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 182 | ts, err := Parsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Parse().(timeStampTokenscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/timeStampToken.) |
| 183 | if err != nil { |
| 184 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("failed to parse timeStampToken: %s", err.Error()) |
| 185 | } |
| 186 | |
| 187 | hashedMessage := []byte{0x2d, 0xa8, 0x2c, 0x15, 0x72, 0xff, 0x2, 0x5, 0x24, 0xe0, 0x50, 0x69, 0x21, 0x99, 0x75, 0xc9, 0xba, 0x90, 0x72, 0x3f, 0x1a, 0x4d, 0xd5, 0xb9, 0x72, 0x2a, 0xee, 0x8e, 0xc5, 0x47, 0xa2, 0xff} |
| 188 | if !bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.Equalscip-go gomod github.com/golang/go/src go1.16 bytes/Equal().(ts.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage., hashedMessage) { |
| 189 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("ts.HashedMessage: got %x, want %x", ts.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage., hashedMessage) |
| 190 | } |
| 191 | |
| 192 | tsTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Datescip-go gomod github.com/golang/go/src go1.16 time/Date().(2017, 2, 1, 15, 39, 50, 0, timescip-go gomod github.com/golang/go/src go1.16 time/.UTCscip-go gomod github.com/golang/go/src go1.16 time/UTC.) |
| 193 | if !ts.Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time..Equalscip-go gomod github.com/golang/go/src go1.16 time/Time#Equal().(tsTime) { |
| 194 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("ts.Time: got %v, want %v", ts.Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time., tsTime) |
| 195 | } |
| 196 | |
| 197 | if ts.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy. != timescip-go gomod github.com/golang/go/src go1.16 time/.Secondscip-go gomod github.com/golang/go/src go1.16 time/Second. { |
| 198 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("ts.Accuracy: got %v, want %v", ts.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy., timescip-go gomod github.com/golang/go/src go1.16 time/.Secondscip-go gomod github.com/golang/go/src go1.16 time/Second.) |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | func TestParseResponseRejectionscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestParseResponseRejection().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 203 | _, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(respRejectionscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respRejection.) |
| 204 | if err == nil { |
| 205 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("failed to parse response with rejection: %s", err.Error()) |
| 206 | } |
| 207 | expected := "the request is rejected: Error during serial number generation. (the additional information requested could not be understood or is not available)" |
| 208 | if err.Error() != expected { |
| 209 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unexpected error message:\n\t%s\nexpected:\n\t%s\n", err.Error(), expected) |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | func TestCreateErrorResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestCreateErrorResponse().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 214 | resp, err := CreateErrorResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateErrorResponse().(Rejectionscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Rejection., TimeNotAvailablescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TimeNotAvailable.) |
| 215 | if err != nil { |
| 216 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("failed to create error: %s", err.Error()) |
| 217 | } |
| 218 | |
| 219 | expected := "the request is rejected: (the TSA's time source is not available)" |
| 220 | _, err = ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(resp) |
| 221 | if err.Error() != expected { |
| 222 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unexpected error message:\n\t%s\nexpected:\n\t%s\n", err.Error(), expected) |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | func TestMarshalRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestMarshalRequest().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 227 | req, err := ParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseRequest().(reqNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoNonce.) |
| 228 | if err != nil { |
| 229 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 230 | } |
| 231 | |
| 232 | reqByes, err := req.Marshalscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Marshal().() |
| 233 | if err != nil { |
| 234 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 235 | } |
| 236 | |
| 237 | if !bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.Equalscip-go gomod github.com/golang/go/src go1.16 bytes/Equal().(reqByes, reqNoNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNoNonce.) { |
| 238 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("Marshalled response bytes are not the same as parsed") |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | func TestCreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestCreateRequest().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 243 | var testHashes = []cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.Hashscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#{cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA1scip-go gomod github.com/golang/go/src go1.16 crypto/SHA1., cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA384scip-go gomod github.com/golang/go/src go1.16 crypto/SHA384., cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA512scip-go gomod github.com/golang/go/src go1.16 crypto/SHA512.} |
| 244 | |
| 245 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 246 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 247 | |
| 248 | for _, th := range testHashes { |
| 249 | t.Runscip-go gomod github.com/golang/go/src go1.16 testing/T#Run().(fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.16 fmt/Sprintf().("%d", th), func(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 250 | msg := "Content to by timestamped" |
| 251 | |
| 252 | h := th.Newscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#New().() |
| 253 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte(msg)) |
| 254 | if err != nil { |
| 255 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 256 | } |
| 257 | hashedMsg := h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil) |
| 258 | |
| 259 | req, err := CreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateRequest().(stringsscip-go gomod github.com/golang/go/src go1.16 strings/.NewReaderscip-go gomod github.com/golang/go/src go1.16 strings/NewReader().(msg), &RequestOptionsscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#{ |
| 260 | Hashscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#Hash.: th, |
| 261 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#Nonce.: nonce, |
| 262 | TSAPolicyOIDscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#TSAPolicyOID.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 5, 6, 7}, |
| 263 | Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#Certificates.: true, |
| 264 | }) |
| 265 | if err != nil { |
| 266 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 267 | } |
| 268 | |
| 269 | if len(req) == 0 { |
| 270 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("request contains no bytes") |
| 271 | } |
| 272 | |
| 273 | reqCheck, err := ParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseRequest().(req) |
| 274 | if err != nil { |
| 275 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 276 | } |
| 277 | |
| 278 | if !bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.Equalscip-go gomod github.com/golang/go/src go1.16 bytes/Equal().(reqCheck.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashedMessage., hashedMsg) { |
| 279 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("reqCheck.HashedMessage: got %x, want %x", reqCheck.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashedMessage., hashedMsg) |
| 280 | } |
| 281 | |
| 282 | if reqCheck.Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Nonce..Cmpscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#Cmp().(nonce) != 0 { |
| 283 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("reqCheck.Nonce: got %x, want %x", reqCheck.Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Nonce., nonce) |
| 284 | } |
| 285 | |
| 286 | if reqCheck.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Certificates. != true { |
| 287 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("reqCheck.Certificates: got %t, want %t", reqCheck.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#Certificates., true) |
| 288 | } |
| 289 | |
| 290 | if !reqCheck.TSAPolicyOIDscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#TSAPolicyOID..Equalscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#Equal().(asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 5, 6, 7}) { |
| 291 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("reqCheck.TSAPolicyOID: got %x, want %x", reqCheck.TSAPolicyOIDscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#TSAPolicyOID., asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 5, 6, 7}) |
| 292 | } |
| 293 | }) |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | func BenchmarkCreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/BenchmarkCreateRequest().(b *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Bscip-go gomod github.com/golang/go/src go1.16 testing/B#) { |
| 298 | reader := stringsscip-go gomod github.com/golang/go/src go1.16 strings/.NewReaderscip-go gomod github.com/golang/go/src go1.16 strings/NewReader().("Content to be time-stamped") |
| 299 | |
| 300 | for n := 0; n < b.Nscip-go gomod github.com/golang/go/src go1.16 testing/B#N.; n++ { |
| 301 | _, _ = CreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateRequest().(reader, nil) |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | func BenchmarkParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/BenchmarkParseRequest().(b *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Bscip-go gomod github.com/golang/go/src go1.16 testing/B#) { |
| 306 | for n := 0; n < b.Nscip-go gomod github.com/golang/go/src go1.16 testing/B#N.; n++ { |
| 307 | _, _ = ParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseRequest().(reqNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/reqNonce.) |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | func BenchmarkParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/BenchmarkParseResponse().(b *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Bscip-go gomod github.com/golang/go/src go1.16 testing/B#) { |
| 312 | for n := 0; n < b.Nscip-go gomod github.com/golang/go/src go1.16 testing/B#N.; n++ { |
| 313 | _, _ = ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(respNoncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/respNonce.) |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | // ExampleCreateRequest demonstrates how to create a new time-stamping request |
| 318 | // for an io.Reader. |
| 319 | func ExampleCreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ExampleCreateRequest().() { |
| 320 | _, err := CreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateRequest().(stringsscip-go gomod github.com/golang/go/src go1.16 strings/.NewReaderscip-go gomod github.com/golang/go/src go1.16 strings/NewReader().("Content to be time-stamped"), nil) |
| 321 | if err != nil { |
| 322 | panic(err) |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | // ExampleCreateRequest_customHashingAlgorithm demonstrates how to create a new |
| 327 | // time-stamping request with options |
| 328 | func ExampleCreateRequest_customHashingAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ExampleCreateRequest_customHashingAlgorithm().() { |
| 329 | _, err := CreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateRequest().( |
| 330 | stringsscip-go gomod github.com/golang/go/src go1.16 strings/.NewReaderscip-go gomod github.com/golang/go/src go1.16 strings/NewReader().("Content to be time-stamped"), |
| 331 | &RequestOptionsscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#{ |
| 332 | Hashscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/RequestOptions#Hash.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA512scip-go gomod github.com/golang/go/src go1.16 crypto/SHA512., |
| 333 | }) |
| 334 | if err != nil { |
| 335 | panic(err) |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | // ExampleParseRequest demonstrates how to parse a raw der time-stamping request |
| 340 | func ExampleParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ExampleParseRequest().() { |
| 341 | // CreateRequest returns the request in der bytes |
| 342 | createdRequest, err := CreateRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/CreateRequest().(stringsscip-go gomod github.com/golang/go/src go1.16 strings/.NewReaderscip-go gomod github.com/golang/go/src go1.16 strings/NewReader().("Content to be time-stamped"), nil) |
| 343 | if err != nil { |
| 344 | panic(err) |
| 345 | } |
| 346 | |
| 347 | // ParseRequest parses a request in der bytes |
| 348 | parsedRequest, err := ParseRequestscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseRequest().(createdRequest) |
| 349 | if err != nil { |
| 350 | panic(err) |
| 351 | } |
| 352 | |
| 353 | fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Printfscip-go gomod github.com/golang/go/src go1.16 fmt/Printf().("%x\n", parsedRequest.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Request#HashedMessage.) |
| 354 | // Output: 51a3620a3b62ffaff41a434e932223b31bc69e86490c365fa1186033904f1132 |
| 355 | } |
| 356 | |
| 357 | func TestCreateResponseWithNoTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestCreateResponseWithNoTSACertificate().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 358 | tsakey := getTSARSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSARSAKey().() |
| 359 | tsaCert := getTSACertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSACert().() |
| 360 | |
| 361 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 362 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 363 | if err != nil { |
| 364 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 365 | } |
| 366 | |
| 367 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 368 | |
| 369 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 370 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 371 | |
| 372 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 373 | |
| 374 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 375 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 376 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 377 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 378 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 379 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 380 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 381 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 382 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: false, |
| 383 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: false, |
| 384 | } |
| 385 | timestampBytes, err := timestamp.CreateResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponse().(tsaCert, tsakey) |
| 386 | if err != nil { |
| 387 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to generate time stamp response: %s", err.Error()) |
| 388 | } |
| 389 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 390 | if err != nil { |
| 391 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to parse time stamp response: %s", err.Error()) |
| 392 | } |
| 393 | |
| 394 | if timestampRes.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm..HashFuncscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#HashFunc().() != cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256. { |
| 395 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("expected hash algorithm is SHA256") |
| 396 | } |
| 397 | if len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.) != 32 { |
| 398 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %d: expected: %d", len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.), 32) |
| 399 | } |
| 400 | |
| 401 | if timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified. { |
| 402 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %t: expected: %t", timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified., true) |
| 403 | } |
| 404 | |
| 405 | if timestampRes.AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate. { |
| 406 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("TSA certificate must not be included in timestamp response") |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | func TestCreateResponseWithIncludeTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestCreateResponseWithIncludeTSACertificate().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 411 | tsakey := getTSARSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSARSAKey().() |
| 412 | tsaCert := getTSACertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSACert().() |
| 413 | |
| 414 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 415 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 416 | if err != nil { |
| 417 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 418 | } |
| 419 | |
| 420 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 421 | |
| 422 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 423 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 424 | |
| 425 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 426 | |
| 427 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 428 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 429 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 430 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 431 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 432 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 433 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 434 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 435 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: true, |
| 436 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: true, |
| 437 | } |
| 438 | timestampBytes, err := timestamp.CreateResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponse().(tsaCert, tsakey) |
| 439 | if err != nil { |
| 440 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to generate time stamp response: %s", err.Error()) |
| 441 | } |
| 442 | |
| 443 | // To verify the reponse using OpenSSL |
| 444 | // openssl ts -reply -in timestamp.tsr -text |
| 445 | // _ = os.WriteFile("timestamp.tsr", timestampBytes, 0644) |
| 446 | |
| 447 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 448 | if err != nil { |
| 449 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to parse time stamp response: %s", err.Error()) |
| 450 | } |
| 451 | |
| 452 | if timestampRes.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm..HashFuncscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#HashFunc().() != cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256. { |
| 453 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("expected hash algorithm is SHA256") |
| 454 | } |
| 455 | if len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.) != 32 { |
| 456 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %d: expected: %d", len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.), 32) |
| 457 | } |
| 458 | |
| 459 | if timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy. != duration { |
| 460 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got accuracy %s: expected: %s", timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy., duration) |
| 461 | } |
| 462 | |
| 463 | if !timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified. { |
| 464 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %t: expected: %t", timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified., true) |
| 465 | } |
| 466 | |
| 467 | if !timestampRes.AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate. { |
| 468 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("TSA certificate must be included in timestamp response") |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | // Sign with TSU and do not embed certificates |
| 473 | func TestSignWithTSUNoCertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestSignWithTSUNoCertificate().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 474 | tsukey := getTSURSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSURSAKey().() |
| 475 | tsuCert := getTSUCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSUCert().() |
| 476 | |
| 477 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 478 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 479 | if err != nil { |
| 480 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 481 | } |
| 482 | |
| 483 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 484 | |
| 485 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 486 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 487 | |
| 488 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 489 | |
| 490 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 491 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 492 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 493 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 494 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 495 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 496 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 497 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 498 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: false, |
| 499 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: false, |
| 500 | } |
| 501 | timestampBytes, err := timestamp.CreateResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponse().(tsuCert, tsukey) |
| 502 | if err != nil { |
| 503 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to generate time stamp response: %s", err.Error()) |
| 504 | } |
| 505 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 506 | if err != nil { |
| 507 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to parse time stamp response: %s", err.Error()) |
| 508 | } |
| 509 | |
| 510 | if timestampRes.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm..HashFuncscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#HashFunc().() != cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256. { |
| 511 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("expected hash algorithm is SHA256") |
| 512 | } |
| 513 | if len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.) != 32 { |
| 514 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %d: expected: %d", len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.), 32) |
| 515 | } |
| 516 | |
| 517 | if timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified. { |
| 518 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %t: expected: %t", timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified., true) |
| 519 | } |
| 520 | |
| 521 | if timestampRes.AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate. { |
| 522 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("TSU certificate must not be included in timestamp response") |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | // Sign with TSU and only embed TSU certificate |
| 527 | func TestSignWithTSUEmbedTSUCertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestSignWithTSUEmbedTSUCertificate().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 528 | tsukey := getTSURSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSURSAKey().() |
| 529 | tsuCert := getTSUCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSUCert().() |
| 530 | |
| 531 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 532 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 533 | if err != nil { |
| 534 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 535 | } |
| 536 | |
| 537 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 538 | |
| 539 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 540 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 541 | |
| 542 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 543 | |
| 544 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 545 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 546 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 547 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 548 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 549 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 550 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 551 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 552 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: true, |
| 553 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: true, |
| 554 | } |
| 555 | timestampBytes, err := timestamp.CreateResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponse().(tsuCert, tsukey) |
| 556 | if err != nil { |
| 557 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to generate time stamp response: %s", err.Error()) |
| 558 | } |
| 559 | |
| 560 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 561 | if err != nil { |
| 562 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to parse time stamp response: %s", err.Error()) |
| 563 | } |
| 564 | |
| 565 | if timestampRes.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm..HashFuncscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#HashFunc().() != cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256. { |
| 566 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("expected hash algorithm is SHA256") |
| 567 | } |
| 568 | if len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.) != 32 { |
| 569 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %d: expected: %d", len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.), 32) |
| 570 | } |
| 571 | |
| 572 | if timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy. != duration { |
| 573 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got accuracy %s: expected: %s", timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy., duration) |
| 574 | } |
| 575 | |
| 576 | if !timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified. { |
| 577 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %t: expected: %t", timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified., true) |
| 578 | } |
| 579 | |
| 580 | if !timestampRes.AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate. { |
| 581 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("TSU certificate must be included in timestamp response") |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | // Sign with TSU and include certificate chain |
| 586 | func TestSignWithTSUIncludeCertificateChainscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestSignWithTSUIncludeCertificateChain().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 587 | tsuKey := getTSURSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSURSAKey().() |
| 588 | tsuCert := getTSUCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSUCert().() |
| 589 | tsaCert := getTSACertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSACert().() |
| 590 | |
| 591 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 592 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 593 | if err != nil { |
| 594 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 595 | } |
| 596 | |
| 597 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 598 | |
| 599 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 600 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 601 | |
| 602 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 603 | |
| 604 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 605 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 606 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 607 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 608 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 609 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 610 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 611 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 612 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: true, |
| 613 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: true, |
| 614 | Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Certificates.: []*x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.Certificatescip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate#{tsaCert}, // add parent certificate |
| 615 | } |
| 616 | timestampBytes, err := timestamp.CreateResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponse().(tsuCert, tsuKey) |
| 617 | if err != nil { |
| 618 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to generate time stamp response: %s", err.Error()) |
| 619 | } |
| 620 | |
| 621 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 622 | if err != nil { |
| 623 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to parse time stamp response: %s", err.Error()) |
| 624 | } |
| 625 | |
| 626 | if timestampRes.HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm..HashFuncscip-go gomod github.com/golang/go/src go1.16 crypto/Hash#HashFunc().() != cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256. { |
| 627 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("expected hash algorithm is SHA256") |
| 628 | } |
| 629 | if len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.) != 32 { |
| 630 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %d: expected: %d", len(timestampRes.HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.), 32) |
| 631 | } |
| 632 | |
| 633 | if timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy. != duration { |
| 634 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got accuracy %s: expected: %s", timestampRes.Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy., duration) |
| 635 | } |
| 636 | |
| 637 | if !timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified. { |
| 638 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got %t: expected: %t", timestampRes.Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified., true) |
| 639 | } |
| 640 | |
| 641 | if !timestampRes.AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate. { |
| 642 | t.Errorscip-go gomod github.com/golang/go/src go1.16 testing/common#Error().("TSA certificate must be included in timestamp response") |
| 643 | } |
| 644 | |
| 645 | if !timestamp.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Certificates.[0].Equalscip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate#Equal().(tsaCert) { |
| 646 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got certificate %X: expected: %X", timestamp.Certificatesscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Certificates.[0].SubjectKeyIdscip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate#SubjectKeyId., tsaCert.SubjectKeyIdscip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate#SubjectKeyId.) |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | func getTSURSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSURSAKey().() *rsascip-go gomod github.com/golang/go/src go1.16 `crypto/rsa`/.PrivateKeyscip-go gomod github.com/golang/go/src go1.16 `crypto/rsa`/PrivateKey# { |
| 651 | tsuRSAKeyPEM := ` |
| 652 | -----BEGIN RSA PRIVATE KEY----- |
| 653 | MIIEowIBAAKCAQEA7FzZ2Uff6dPKEgJNgUi3EL21y3CzY3zGE3Wi2pTM1oGAMetP |
| 654 | ecEdFnMM2x76lnGuBk0VW04TdOMymXtW6L7X75Yr73/88b4Ycmrg2Xh/HqiCrtQZ |
| 655 | PrCwOn3V8UFulySqJItBUZ1ih6a0A1NNX6lMmQTbbuxLlyP4iz1HveFmOa/gkLh9 |
| 656 | Y1I9yIRTb4Mlm6yISLQkDZn2YMXqlZUv4tyNUmFlSYrMu6lsIwBn2eaBKzQYPZM0 |
| 657 | ExuTDD+d7RnrDr1tcfd5cNOq7XDNP2nIDE4rZSwRhOerDKPL9jqd60FKH40oX51/ |
| 658 | WssiO1zVmi43uX8gr7iaJrzpkVNDN9m41zLheQIDAQABAoIBAQDA21odghnfjqGY |
| 659 | ZCydSpmknUaSgpi8mnh8NEX3F+azN+ND1/53F+0F/kYFHJfW3VbjaU39vA0AGMmW |
| 660 | lh7ptZ43rU6YEtRu427LHQ3uI/WFLHXE9ObMUhrY/wfr3DnCNXZmbwGS+FoG2SyU |
| 661 | cgn1/guz51Ssgz2CSyVnZ078Tce9VISolxGnxZVhEVcssFazEWLaOe/8t2rMg4e+ |
| 662 | RRGiaTcIkTdNTFgk15JrkSRyvU/538vVwNJ67hAwlA011l3XDpVybwEQQ46bG09J |
| 663 | uSNOEm4XMNRxjPS6A2Fd+jtSiP4iYEwVoJU+/P7IRdoVvBjwcXnl7tX9i7o8xwhr |
| 664 | es+NzS8BAoGBAOxxSLk8QVYGoHn+H/I+SHBY8ipY/3mwCzH3shodfAejZ+eoMVI+ |
| 665 | cWJl67QKhsFzlAfRj1YF92h5Hx8oXVR7te7KcjXVyStPlAUigls253GaczSnXjA0 |
| 666 | 0WxpFthES8TSbSfD1VTbU1JB6evUe8KkemEw+9vbl573U3FgEeu67LnxAoGBAP/p |
| 667 | 4HNC2JTFGox7IJoEvO2qeJfxtlyJ5vb/RwlJu/kn7mAFzzjIE1xYFDbImKN8OYA4 |
| 668 | BWXyZ+5WP+HZOBW16HXoYybT02ufFC3lp9p8xOSBs2DQKfrhqgJTOVjq7b4ovSj5 |
| 669 | 3DOnR1YojbiDHQpK2IVIj1Iz0DiIFqPhtB7CzdgJAoGANC3f7bkldhWqTqHNbQlf |
| 670 | tSN79eqEHtfB8LoIHQlKuOjP4mjU0aCkJyH0/VuhV4npLjyKFGLmsbChNKAU0LMo |
| 671 | eFVHFShj5+H8+ZEfEYAxXXnHWORiveK6IOGkP//6dKo3mqH2L27jmXCgbgILee4Q |
| 672 | b+h+fIuej19nk8quycYLvhECgYAwoJsyq6AF3NInoXnXalEQBBV4IcjaGqYVhvpT |
| 673 | jHw4YtsLye7PRk1PfbkRk9pVLlSqxXpZHc+b3S20V5ctoOw0A11b0mJZD9hAxGO5 |
| 674 | w32SQgb4vXVMo7avTGsYN0PHn2waLigmdIG8oGYVimxpOUGdSeVZ5FiLdWh/6XJV |
| 675 | agS9KQKBgGn6Gfp9/67F0zgJ5gh5DsuY6At9VcGnSPmKaO//ME05KMazF6XW2gWs |
| 676 | /VmHEjBRBqXPylh3xmr5DMm95OeQm3QUsNf75aPFnkukRmgmeVIfICjx0twzls4O |
| 677 | vwxcYS6/uRJ1O1K0U2KZgqY9HGSg4Mm4Zs8mAe86evHEGX7g7N6y |
| 678 | -----END RSA PRIVATE KEY----- |
| 679 | ` |
| 680 | |
| 681 | tsuKeyPEMBlock, _ := pemscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/.Decodescip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Decode().([]byte(tsuRSAKeyPEM)) |
| 682 | pvtKey, _ := x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.ParsePKCS1PrivateKeyscip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/ParsePKCS1PrivateKey().(tsuKeyPEMBlock.Bytesscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Block#Bytes.) |
| 683 | |
| 684 | return pvtKey |
| 685 | } |
| 686 | func getTSARSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSARSAKey().() *rsascip-go gomod github.com/golang/go/src go1.16 `crypto/rsa`/.PrivateKeyscip-go gomod github.com/golang/go/src go1.16 `crypto/rsa`/PrivateKey# { |
| 687 | tsaRSAKeyPEM := ` |
| 688 | -----BEGIN RSA PRIVATE KEY----- |
| 689 | MIIEpAIBAAKCAQEApeencH+4Wo3Ry65t2/FdZkHLyQcizv8Xu+4NTEGF502fPV2y |
| 690 | May4/ZU+GXeVTPhwfJuFj1D8Id6skgZ1DlAz+cpIqQQoaUuVM6M5MMJ6Ycf27KAs |
| 691 | knQiEMI7BcyJBni1c/aspLMd3AwPn/4XVweX+KL8FtbNouakKOvKT9MH23hUqJuY |
| 692 | aKxyxRABtuRYaq3PrAvR55gb/f/zLHvPh57vALi4J3WSIePXNpNzpOpZIj+J+UMQ |
| 693 | NQVWVPzRW7Wf057o9cvSl/P/eChKWIeMAsYE5+7Rybj7MnRi5XqDFDCdPLmHaT6/ |
| 694 | ZcE6ijHSjoETi/Ut9BMOyIUqpQAs0uZH39FFwwIDAQABAoIBADuncUh9VD+TUQWJ |
| 695 | Ac2dGzVioTD2lOiTRuh3L2blBI3oFkMNhr5f2eCsojisDA4yIthbX4np188h7zFO |
| 696 | ixaLdjTyLHBBo3pBCDQaE71ZoIG6UipBaeV7Rqh5/pkWM4sVKkG5R9is4ya1W4Tu |
| 697 | 61uKynVHvZdEw4o4nnxsVEGhouih5q/fmETi7XTCYSCe4gljVDtRpvFQBOrrhye/ |
| 698 | BT38SvrXQR2WmgLLpfo+1VR5zcm9bXJXrkOKYNXWDxl9kpY+hwXD0IhTXl4GkqEe |
| 699 | 8CP4WFHtX5WA4s9qLATp/zT7fme2Ojh+NkIdU0FMI9lf4pNX+URxii+hn15vrtCi |
| 700 | UxaSVtECgYEA0FobH8XOw7SWjJRs9wfLoF/Wl3s4ET9neJwx047Xlop8QAwHYzo7 |
| 701 | CiEH+aodgr/UC8KM62+3y4pZgn3Bmt3/p/WyKOsfG3TZXqvuSGqTXO9sn3T1Z552 |
| 702 | jVT/1/3qapHODL4ct52FHxrr243Jp2vfeMciU0tLdsx5FIgRCScqm0sCgYEAy9h/ |
| 703 | qnDAC1fI4eEDYgj+kIUDyQegeKbi79U3aF5QjYSgvYm1pev/Zac8+x9X/zQupObB |
| 704 | FmgbtPYrXTY5J38qG/ELjDu7aHfXqgHcVTda0MsGsaoSCmaJ3y19ewxsmK9pFaEl |
| 705 | BUTmFd2hywK34RG00dyYcrvmP6M4OP/Do1+WPGkCgYEAv9lYhIcl/rr4rXW2aDk7 |
| 706 | XO8ir9V8KRWS91IL51vuU+YsxuTMoKfr2UXVDCWCivSMElAQZnI2cStxhGC7txiX |
| 707 | 4lawuFDYEfYkebIi9Xd9PeQQxztxBPq6+yS7eG2MPpkHfGBKHSDkhWHKsB39Azan |
| 708 | TZU/nCcG09sv2qH33c+8wcUCgYEAli3TqKNWqUSsZ9WZ43ES8zA8ILAwxpLVILKq |
| 709 | Foddu1VaAyngnPQofiDe6XgnIYq1TqH+4V4kA4dVXV/kbbffMyS8SD19jbK1PbgP |
| 710 | Nu0ISEk7jkro7aarrrPZ/XyiyT56IghNuPsQtE1LtMA07mlYGUD3Q5gxQvMiKcQs |
| 711 | w0FZ8vkCgYA7wuwLs7d9LJ4KqMNmOe0eRvIxp+Y8psxykMd1wz3PjdPz30U03xe2 |
| 712 | o40r2ZNTK/OGYPmAOcwma7SjenBQve19eVUaECUVREmbvaJqVzz0uSrfqXrUVIiJ |
| 713 | YyOfhPUI5XhkyUlunO5pSAd0CtRv7NVW1wKDjMbJvgV0MlbVvGraAg== |
| 714 | -----END RSA PRIVATE KEY----- |
| 715 | ` |
| 716 | |
| 717 | tsaKeyPEMBlock, _ := pemscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/.Decodescip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Decode().([]byte(tsaRSAKeyPEM)) |
| 718 | pvtKey, _ := x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.ParsePKCS1PrivateKeyscip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/ParsePKCS1PrivateKey().(tsaKeyPEMBlock.Bytesscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Block#Bytes.) |
| 719 | |
| 720 | return pvtKey |
| 721 | } |
| 722 | func getTSUCertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSUCert().() *x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.Certificatescip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate# { |
| 723 | tsaCertPEM := ` |
| 724 | -----BEGIN CERTIFICATE----- |
| 725 | MIIDrTCCApWgAwIBAgITHtUKVw2T5tfI4jk7zfJvKj39MDANBgkqhkiG9w0BAQsF |
| 726 | ADBdMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwY |
| 727 | SW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRYw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hFL1KUwvkI8HjDE+JGu7hexWtlxwD/dnvpD |
| 743 | 6ZrUnRLuSF3jebNb2DwIXb05ub+YJoBx/0I/zYe3vWISDtO/onNAZz9hnmAzL32f |
| 744 | 69EW22PQaOUDtTbfT2PD09uTUfmA+zZggjPgaWjbw+gf |
| 745 | -----END CERTIFICATE----- |
| 746 | ` |
| 747 | certPEMBlock, _ := pemscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/.Decodescip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Decode().([]byte(tsaCertPEM)) |
| 748 | tsaCert, _ := x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.ParseCertificatescip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/ParseCertificate().(certPEMBlock.Bytesscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Block#Bytes.) |
| 749 | |
| 750 | return tsaCert |
| 751 | } |
| 752 | func getTSACertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSACert().() *x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.Certificatescip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/Certificate# { |
| 753 | tsaCertPEM := ` |
| 754 | -----BEGIN CERTIFICATE----- |
| 755 | MIIDmzCCAoOgAwIBAgIUTrgB1p7WpwYXjwGs/uwfKJt4cFcwDQYJKoZIhvcNAQEL |
| 756 | BQAwXTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM |
| 757 | GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEWMBQGA1UEAwwNVGVzdCBSU0EgQ2Vy |
| 758 | dDAeFw0yMDAzMDQyMjA4MDVaFw00MDAyMjgyMjA4MDVaMF0xCzAJBgNVBAYTAkFV |
| 759 | MRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRz |
| 760 | IFB0eSBMdGQxFjAUBgNVBAMMDVRlc3QgUlNBIENlcnQwggEiMA0GCSqGSIb3DQEB |
| 761 | AQUAA4IBDwAwggEKAoIBAQCl56dwf7hajdHLrm3b8V1mQcvJByLO/xe77g1MQYXn |
| 762 | TZ89XbIxrLj9lT4Zd5VM+HB8m4WPUPwh3qySBnUOUDP5ykipBChpS5Uzozkwwnph |
| 763 | x/bsoCySdCIQwjsFzIkGeLVz9qyksx3cDA+f/hdXB5f4ovwW1s2i5qQo68pP0wfb |
| 764 | eFSom5horHLFEAG25Fhqrc+sC9HnmBv9//Mse8+Hnu8AuLgndZIh49c2k3Ok6lki |
| 765 | P4n5QxA1BVZU/NFbtZ/Tnuj1y9KX8/94KEpYh4wCxgTn7tHJuPsydGLleoMUMJ08 |
| 766 | uYdpPr9lwTqKMdKOgROL9S30Ew7IhSqlACzS5kff0UXDAgMBAAGjUzBRMB0GA1Ud |
| 767 | DgQWBBSI1Fk3y/DpAQwRXhoqRhjeQRsoCjAfBgNVHSMEGDAWgBSI1Fk3y/DpAQwR |
| 768 | XhoqRhjeQRsoCjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAP |
| 769 | +jK6M/zPFrO/hrXOXlfEntbKwxFWoil/BRVMkgMp6JO44wn9QS+oRIVKcMToTPe5 |
| 770 | XaU4D8YgHPFiyhaTOQ95RDVZuy5VPf1li1oujPHXP6Y9Ps5RF9AKtLYdJa8ZBmRx |
| 771 | Cg3mHV4f6VJWziWz3s5n6DVQ5DDrSkQ0dIRs5Tu9W4+aHJUMwdkSP0klvBnlzPhq |
| 772 | kl++ygWDU5bJMbwD53eGieJyo5wL0SR08ijiGxCTmYOUuPl/C62MTPJU+oR8qRd3 |
| 773 | I/rCr/gywfHmAbgupBo9ikC9rrYD5maaC59xr4NjjI1vSeS3nrO9qmd9KnGD98P8 |
| 774 | wA4N9tN/F776b2RG2RZD |
| 775 | -----END CERTIFICATE----- |
| 776 | ` |
| 777 | certPEMBlock, _ := pemscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/.Decodescip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Decode().([]byte(tsaCertPEM)) |
| 778 | tsaCert, _ := x509scip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/.ParseCertificatescip-go gomod github.com/golang/go/src go1.16 `crypto/x509`/ParseCertificate().(certPEMBlock.Bytesscip-go gomod github.com/golang/go/src go1.16 `encoding/pem`/Block#Bytes.) |
| 779 | |
| 780 | return tsaCert |
| 781 | } |
| 782 | |
| 783 | func TestCreateResponseSHA384scip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/TestCreateResponseSHA384().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 784 | tsakey := getTSARSAKeyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSARSAKey().() |
| 785 | tsaCert := getTSACertscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/getTSACert().() |
| 786 | |
| 787 | h := sha256scip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/.Newscip-go gomod github.com/golang/go/src go1.16 `crypto/sha256`/New().() |
| 788 | _, err := h.Writescip-go gomod github.com/golang/go/src go1.16 io/Writer#Write().([]byte("Hello World")) |
| 789 | if err != nil { |
| 790 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 791 | } |
| 792 | |
| 793 | genTime := timescip-go gomod github.com/golang/go/src go1.16 time/.Nowscip-go gomod github.com/golang/go/src go1.16 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.16 time/Time#UTC().() |
| 794 | |
| 795 | nonce := bigscip-go gomod github.com/golang/go/src go1.16 `math/big`/.NewIntscip-go gomod github.com/golang/go/src go1.16 `math/big`/NewInt().(0) |
| 796 | nonce = nonce.SetBytesscip-go gomod github.com/golang/go/src go1.16 `math/big`/Int#SetBytes().([]byte{0x1, 0x2, 0x3}) |
| 797 | |
| 798 | duration, _ := timescip-go gomod github.com/golang/go/src go1.16 time/.ParseDurationscip-go gomod github.com/golang/go/src go1.16 time/ParseDuration().("1s") |
| 799 | |
| 800 | timestamp := Timestampscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#{ |
| 801 | HashAlgorithmscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashAlgorithm.: cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA256scip-go gomod github.com/golang/go/src go1.16 crypto/SHA256., |
| 802 | HashedMessagescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#HashedMessage.: h.Sumscip-go gomod github.com/golang/go/src go1.16 hash/Hash#Sum().(nil), |
| 803 | Timescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Time.: genTime, |
| 804 | Noncescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Nonce.: nonce, |
| 805 | Policyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Policy.: asn1scip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/.ObjectIdentifierscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#{2, 4, 5, 6}, |
| 806 | Orderingscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Ordering.: true, |
| 807 | Accuracyscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Accuracy.: duration, |
| 808 | Qualifiedscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#Qualified.: false, |
| 809 | AddTSACertificatescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#AddTSACertificate.: false, |
| 810 | } |
| 811 | timestampBytes, err := timestamp.CreateResponseWithOptsscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#CreateResponseWithOpts().(tsaCert, tsakey, cryptoscip-go gomod github.com/golang/go/src go1.16 crypto/.SHA384scip-go gomod github.com/golang/go/src go1.16 crypto/SHA384.) |
| 812 | if err != nil { |
| 813 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("unable to generate time stamp response: %s", err.Error()) |
| 814 | } |
| 815 | timestampRes, err := ParseResponsescip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/ParseResponse().(timestampBytes) |
| 816 | if err != nil { |
| 817 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to parse time stamp response: %s", err.Error()) |
| 818 | } |
| 819 | |
| 820 | p7, err := pkcs7scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/.Parsescip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/Parse().(timestampRes.RawTokenscip-go gomod github.com/digitorus/timestamp . `github.com/digitorus/timestamp`/Timestamp#RawToken.) |
| 821 | if err != nil { |
| 822 | t.Fatalscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatal().(err) |
| 823 | } |
| 824 | if got := p7.Signersscip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/PKCS7#Signers.[0].DigestAlgorithmscip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/signerInfo#DigestAlgorithm.; !got.Algorithmscip-go gomod github.com/golang/go/src go1.16 `crypto/x509/pkix`/AlgorithmIdentifier#Algorithm..Equalscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#Equal().(pkcs7scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/.OIDDigestAlgorithmSHA384scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/OIDDigestAlgorithmSHA384.) { |
| 825 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unexpected digest algorithm: want SHA384(%s), got %s", pkcs7scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/.OIDDigestAlgorithmSHA384scip-go gomod github.com/digitorus/pkcs7 e76b763bdc49 `github.com/digitorus/pkcs7`/OIDDigestAlgorithmSHA384., got.Algorithmscip-go gomod github.com/golang/go/src go1.16 `crypto/x509/pkix`/AlgorithmIdentifier#Algorithm..Stringscip-go gomod github.com/golang/go/src go1.16 `encoding/asn1`/ObjectIdentifier#String().()) |
| 826 | } |
| 827 | } |