internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package internal values, structures, and functions that are not part of the public API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DstPrime

func DstPrime(dst []byte) []byte

DstPrime length-suffix-encodes dst.

func ExpandXMD

func ExpandXMD(id crypto.Hash, input, dst []byte, length uint) []byte

ExpandXMD implements expand_message_xmd as specified in RFC 9380 section 5.3.1.

func ExpandXOF

func ExpandXOF(ext *hash.ExtendableHash, input, dst []byte, length uint) []byte

ExpandXOF implements expand_message_xof as specified in RFC 9380 section 5.3.2.

func I2osp

func I2osp(value, length uint) []byte

I2osp 32-bit Integer to Octet Stream Primitive on maximum 4 bytes.

func VetDSTXMD

func VetDSTXMD(h hash.Hash, dst []byte) []byte

VetDSTXMD computes a shorter tag for dst if the tag length exceeds 255 bytes.

func VetXofDST

func VetXofDST(x *hash.ExtendableHash, dst []byte) []byte

VetXofDST computes a shorter tag for dst if the tag length exceeds 255 bytes.

Types

This section is empty.

Directories

Path Synopsis
Package field provides modular operations over very high integers.
Package field provides modular operations over very high integers.

Jump to

Keyboard shortcuts

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