crypto

package
v0.0.0-...-1aa08c1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package crypto provides private utilities used by several crypto sub-packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(secret []byte, size int, info []byte) ([]byte, error)

Expand the provided `secret` material to the requested `size` in bytes; optionally using context `info` (if not nil).

func RNG

func RNG(seedSize int, base []byte) (*core.RAND, error)

RNG returns a pre-seeded random number generator instance.

func RandomID

func RandomID() string

RandomID returns a short random ID string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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