gimli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: CC0-1.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Absorb

func Absorb(s *[48]byte, plaintext []byte)

Absorb implements the function Gimli-Absorb defined in draft-shrub.fr-shrubbery at https://github.com/shrub-fr/spec-shrub/blob/master/shrubbery.md#cryptographic-primitives

func CopySponge

func CopySponge(in *[48]byte) *[48]byte

CopySponge returns a clone of the Gimli sponge received as input

func Decrypt

func Decrypt(s *[48]byte, ciphertext []byte)

Decrypt implements the function Gimli-Decrypt defined in draft-shrub.fr-shrubbery at https://github.com/shrub-fr/spec-shrub/blob/master/shrubbery.md#cryptographic-primitives

Decrypt decrypts ciphertext and overwrites ciphertext with the plaintext.

func Encrypt

func Encrypt(s *[48]byte, plaintext []byte)

Encrypt implements the function Gimli-Encrypt defined in draft-shrub.fr-shrubbery at https://github.com/shrub-fr/spec-shrub/blob/master/shrubbery.md#cryptographic-primitives

Encrypt encrypts plaintext and overwrites plaintext with the ciphertext.

func Finalize

func Finalize(s *[48]byte) []byte

Finalize implements the function Gimli-Finalize defined in draft-shrub.fr-shrubbery at https://github.com/shrub-fr/spec-shrub/blob/master/shrubbery.md#cryptographic-primitives

Finalize returns a 32-bytes-long tag of the sponge s.

func InitSponge

func InitSponge(str string) *[48]byte

InitSponge returns a Gimli sponge which has absorbed the string received as input

func Pad

func Pad(in string) []byte

Pad implements the function Pad defined in draft-shrub.fr-shrubbery at https://github.com/shrub-fr/spec-shrub/blob/master/shrubbery.md#cryptographic-primitives

func Sap

func Sap() *[48]byte

Sap returns a Gimli sponge which has absorbed "sap"

Types

This section is empty.

Jump to

Keyboard shortcuts

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