Documentation ¶
Overview ¶
Package marshalling provides a common implementation of (un)marshalling method using Writer and Reader.
Index ¶
- func GroupNew(g kyber.Group, t reflect.Type) interface{}
- func PointMarshalTo(p kyber.Point, w io.Writer) (int, error)
- func PointUnmarshalFrom(p kyber.Point, r io.Reader) (int, error)
- func ScalarMarshalTo(s kyber.Scalar, w io.Writer) (int, error)
- func ScalarUnmarshalFrom(s kyber.Scalar, r io.Reader) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PointMarshalTo ¶
PointMarshalTo provides a generic implementation of Point.EncodeTo based on Point.Encode.
func PointUnmarshalFrom ¶
PointUnmarshalFrom provides a generic implementation of Point.DecodeFrom, based on Point.Decode, or Point.Pick if r is a Cipher or cipher.Stream. The returned byte-count is valid only when decoding from a normal Reader, not when picking from a pseudorandom source.
func ScalarMarshalTo ¶
ScalarMarshalTo provides a generic implementation of Scalar.EncodeTo based on Scalar.Encode.
func ScalarUnmarshalFrom ¶
ScalarUnmarshalFrom provides a generic implementation of Scalar.DecodeFrom, based on Scalar.Decode, or Scalar.Pick if r is a Cipher or cipher.Stream. The returned byte-count is valid only when decoding from a normal Reader, not when picking from a pseudorandom source.
Types ¶
This section is empty.