Documentation ¶
Index ¶
- func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
- func ElementSliceToInterfaceSlice(x interface{}) []interface{}
- func ElementToInterface(x *small_rational.SmallRational) interface{}
- func HashFromDescription(d HashDescription) (hash.Hash, error)
- func NewMessageCounter(startState, step int) hash.Hash
- func NewMessageCounterGenerator(startState, step int) func() hash.Hash
- func PolynomialSliceEquals(a []polynomial.Polynomial, b []polynomial.Polynomial) error
- func SliceEquals(a []small_rational.SmallRational, b []small_rational.SmallRational) error
- func SliceSliceEquals(a [][]small_rational.SmallRational, b [][]small_rational.SmallRational) error
- func SliceToElementSlice[T any](slice []T) ([]small_rational.SmallRational, error)
- func ToElement(i int64) *small_rational.SmallRational
- type HashDescription
- type ListHash
- type MessageCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementSliceSliceToInterfaceSliceSlice ¶
func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
func ElementSliceToInterfaceSlice ¶
func ElementSliceToInterfaceSlice(x interface{}) []interface{}
func ElementToInterface ¶
func ElementToInterface(x *small_rational.SmallRational) interface{}
func HashFromDescription ¶ added in v0.9.1
func HashFromDescription(d HashDescription) (hash.Hash, error)
func NewMessageCounter ¶
func PolynomialSliceEquals ¶
func PolynomialSliceEquals(a []polynomial.Polynomial, b []polynomial.Polynomial) error
func SliceEquals ¶
func SliceEquals(a []small_rational.SmallRational, b []small_rational.SmallRational) error
func SliceSliceEquals ¶
func SliceSliceEquals(a [][]small_rational.SmallRational, b [][]small_rational.SmallRational) error
func SliceToElementSlice ¶
func SliceToElementSlice[T any](slice []T) ([]small_rational.SmallRational, error)
func ToElement ¶
func ToElement(i int64) *small_rational.SmallRational
Types ¶
type HashDescription ¶ added in v0.9.1
type HashDescription map[string]interface{}
type ListHash ¶
type ListHash []small_rational.SmallRational
type MessageCounter ¶
type MessageCounter struct {
// contains filtered or unexported fields
}
func (*MessageCounter) BlockSize ¶
func (m *MessageCounter) BlockSize() int
func (*MessageCounter) Reset ¶
func (m *MessageCounter) Reset()
func (*MessageCounter) Size ¶
func (m *MessageCounter) Size() int
func (*MessageCounter) Sum ¶
func (m *MessageCounter) Sum(b []byte) []byte
Click to show internal directories.
Click to hide internal directories.