group

package
v0.0.0-...-0b3308b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2017 License: MPL-2.0 Imports: 3 Imported by: 4

Documentation

Overview

Package group contains generic facilities for implementing cryptographic groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PointMarshalTo

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

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

func PointUnmarshalFrom

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

PointDecodeFrom 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

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

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

func ScalarUnmarshalFrom

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

ScalarDecodeFrom 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL