Documentation ¶
Overview ¶
Package crypto provides some abstract and easy-to-use interfaces to common cryptographic operations.
It enables using one interface for a variety of underlying primitives, and without the hassle of setting them up.
Available interfaces are:
- Group: implementing hashing of arbitrary strings into prime-order groups, after hash-to-curve.
- Hash: interface to hashing primitives and exposing common functions such as hashing, hmac, HKDF, and expand-only HKDF.
- MHF: for memory hard function, a.k.a. password key derivation functions.
- Signature: for public key signatures.
Directories ¶
Path | Synopsis |
---|---|
Package group exposes a prime-order elliptic curve groups with additional hash-to-curve operations.
|
Package group exposes a prime-order elliptic curve groups with additional hash-to-curve operations. |
curve25519
Package curve25519 implements a prime-order group over Curve25519 with hash-to-curve.
|
Package curve25519 implements a prime-order group over Curve25519 with hash-to-curve. |
edwards25519
Package edwards25519 wraps filippo.io/edwards25519 and exposes a simple prime-order group API with hash-to-curve.
|
Package edwards25519 wraps filippo.io/edwards25519 and exposes a simple prime-order group API with hash-to-curve. |
hash2curve
Package hash2curve provides hash-to-curve compatible hashing over arbitrary input.
|
Package hash2curve provides hash-to-curve compatible hashing over arbitrary input. |
internal
Package internal defines simple and abstract APIs to group Elements and Scalars.
|
Package internal defines simple and abstract APIs to group Elements and Scalars. |
other
Package other wraps an hash-to-curve implementation and exposes functions for operations on points and scalars.
|
Package other wraps an hash-to-curve implementation and exposes functions for operations on points and scalars. |
ristretto
Package ristretto allows simple and abstracted operations in the Ristretto255 group Package ristretto wraps "github.com/gtank/ristretto255" and exposes a simple prime-order group API with hash-to-curve.
|
Package ristretto allows simple and abstracted operations in the Ristretto255 group Package ristretto wraps "github.com/gtank/ristretto255" and exposes a simple prime-order group API with hash-to-curve. |
Package hash provides an interface to hashing functions.
|
Package hash provides an interface to hashing functions. |
internal
|
|
Package mhf provides an interface to memory hard functions, a.k.a password key derivation functions.
|
Package mhf provides an interface to memory hard functions, a.k.a password key derivation functions. |
Package signature provides additional abstraction and modularity to digital signature schemes of built-in implementations
|
Package signature provides additional abstraction and modularity to digital signature schemes of built-in implementations |
internal
Package internal holds different signature mechanisms.
|
Package internal holds different signature mechanisms. |
Package utils provides some wrappers to commonly used functions.
|
Package utils provides some wrappers to commonly used functions. |
Click to show internal directories.
Click to hide internal directories.