- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for makeBigInt (0.21 sec)
-
src/encoding/asn1/marshal.go
for i := l - 1; i >= 0; i-- { o := byte(n >> uint(i*7)) o &= 0x7f if i != 0 { o |= 0x80 } dst = append(dst, o) } return dst } func makeBigInt(n *big.Int) (encoder, error) { if n == nil { return nil, StructuralError{"empty integer"} } if n.Sign() < 0 { // A negative number has to be converted to two's-complement
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 17.1K bytes - Viewed (0) -
src/encoding/asn1/asn1_test.go
} if test.ok { if ret.String() != test.base10 { t.Errorf("#%d: bad result from %x, got %s want %s", i, test.in, ret.String(), test.base10) } e, err := makeBigInt(ret) if err != nil { t.Errorf("%d: err=%q", i, err) continue } result := make([]byte, e.Len()) e.Encode(result) if !bytes.Equal(result, test.in) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0)