Documentation ¶
Index ¶
- func Add128(sum, a, b []byte) (carry byte, err error)
- func Add128BE(sum, a, b []byte) (carry byte, err error)
- func Add128LE(sum, a, b []byte) (carry byte, err error)
- func Add16(sum, a, b []byte) (carry byte, err error)
- func Add16BE(sum, a, b []byte) (carry byte, err error)
- func Add16LE(sum, a, b []byte) (carry byte, err error)
- func Add256(sum, a, b []byte) (carry byte, err error)
- func Add256BE(sum, a, b []byte) (carry byte, err error)
- func Add256LE(sum, a, b []byte) (carry byte, err error)
- func Add32(sum, a, b []byte) (carry byte, err error)
- func Add32BE(sum, a, b []byte) (carry byte, err error)
- func Add32LE(sum, a, b []byte) (carry byte, err error)
- func Add512(sum, a, b []byte) (carry byte, err error)
- func Add512BE(sum, a, b []byte) (carry byte, err error)
- func Add512LE(sum, a, b []byte) (carry byte, err error)
- func Add64(sum, a, b []byte) (carry byte, err error)
- func Add64BE(sum, a, b []byte) (carry byte, err error)
- func Add64LE(sum, a, b []byte) (carry byte, err error)
- func XorEq(dst, other []byte) (n int)
- func Zero(target []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add128 ¶
Add the first 16 bytes of two byte arrays as if they're 128bit integers in platform endian format
func Add128BE ¶
Add the first 16 bytes of two slices together into sum (which must have space), as if they're 128 bit big endian integers. - `a` or `b` can have less than 16 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add128LE ¶
Add the first 16 bytes of two slices together into sum (which must have space), as if they're 128 bit little endian integers. - `a` or `b` can have less than 16 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add16 ¶
Add the first 2 bytes of two byte arrays as if they're 16bit integers in platform endian format
func Add16BE ¶
Add the first 2 bytes of two slices together into sum (which must have space), as if they're 16 bit big endian integers. - `a` or `b` can have less than 2 bytes of content and will be zero padded (at the end) - `carry` will only contain a 0 or 1
func Add16LE ¶
Add the first 2 bytes of two slices together into sum (which must have space), as if they're 16 bit little endian integers. - `a` or `b` can have less than 2 bytes of content and will be zero padded (at the end) - `carry` will only contain a 0 or 1
func Add256 ¶
Add the first 32 bytes of two byte arrays as if they're 256bit integers in platform endian format
func Add256BE ¶
Add the first 32 bytes of two slices together into sum (which must have space), as if they're 256 bit big endian integers. - `a` or `b` can have less than 32 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add256LE ¶
Add the first 32 bytes of two slices together into sum (which must have space), as if they're 256 bit little endian integers. - `a` or `b` can have less than 32 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add32 ¶
Add the first 4 bytes of two byte arrays as if they're 32bit integers in platform endian format
func Add32BE ¶
Add the first 4 bytes of two slices together into sum (which must have space), as if they're 32 bit big endian integers. - `a` or `b` can have less than 4 bytes of content and will be zero padded (at the end) - `carry` will only contain a 0 or 1
func Add32LE ¶
Add the first 4 bytes of two slices together into sum (which must have space), as if they're 32 bit little endian integers. - `a` or `b` can have less than 4 bytes of content and will be zero padded (at the end) - `carry` will only contain a 0 or 1
func Add512 ¶
Add the first 64 bytes of two byte arrays as if they're 512bit integers in platform endian format
func Add512BE ¶
Add the first 64 bytes of two slices together into sum (which must have space), as if they're 512 bit big endian integers. - `a` or `b` can have less than 64 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add512LE ¶
Add the first 64 bytes of two slices together into sum (which must have space), as if they're 512 bit little endian integers. - `a` or `b` can have less than 64 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add64 ¶
Add the first 8 bytes of two byte arrays as if they're 64bit integers in platform endian format
func Add64BE ¶
Add the first 8 bytes of two slices together into sum (which must have space), as if they're 64 bit big endian integers. - `a` or `b` can have less than 8 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
func Add64LE ¶
Add the first 8 bytes of two slices together into sum (which must have space), as if they're 64 bit little endian integers. - `a` or `b` can have less than 8 bytes of content and will be zero padded (at the end). - `carry` will only contain a 0 or 1
Types ¶
This section is empty.