bccrypto

package
v0.0.0-...-817062f Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetF

func GetF(ctx context.Context, s cadata.Getter, dek DEK, id cadata.ID, fn func([]byte) error) error

func Hash

func Hash(x []byte) cadata.ID

Types

type DEK

type DEK [32]byte

func Convergent

func Convergent(ptextHash cadata.ID) DEK

func Post

func Post(ctx context.Context, s cadata.Poster, keyFunc KeyFunc, data []byte) (cadata.ID, *DEK, error)

func RandomKey

func RandomKey(cadata.ID) DEK

func (DEK) MarshalJSON

func (dek DEK) MarshalJSON() ([]byte, error)

func (*DEK) UnmarshalJSON

func (dek *DEK) UnmarshalJSON(data []byte) error

type KeyFunc

type KeyFunc func(ptextHash cadata.ID) DEK

func SaltedConvergent

func SaltedConvergent(salt []byte) KeyFunc

Jump to

Keyboard shortcuts

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