kyber: go.dedis.ch/kyber/group/internal/marshalling Index | Files

package marshalling

import "go.dedis.ch/kyber/group/internal/marshalling"

Package marshalling provides a common implementation of (un)marshalling method using Writer and Reader.

Index

Package Files

marshal.go

func GroupNew Uses

func GroupNew(g kyber.Group, t reflect.Type) interface{}

GroupNew is the Default implementation of reflective constructor for Group

func PointMarshalTo Uses

func PointMarshalTo(p kyber.Point, w io.Writer) (int, error)

PointMarshalTo provides a generic implementation of Point.EncodeTo based on Point.Encode.

func PointUnmarshalFrom Uses

func PointUnmarshalFrom(p kyber.Point, r io.Reader) (int, error)

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 Uses

func ScalarMarshalTo(s kyber.Scalar, w io.Writer) (int, error)

ScalarMarshalTo provides a generic implementation of Scalar.EncodeTo based on Scalar.Encode.

func ScalarUnmarshalFrom Uses

func ScalarUnmarshalFrom(s kyber.Scalar, r io.Reader) (int, error)

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.

Package marshalling imports 4 packages (graph). Updated 2020-02-19. Refresh now. Tools for package owners.