util

package
v0.0.0-...-7c8509e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalTokenKey

func MarshalTokenKey(key *rsa.PublicKey, legacyFormat bool) ([]byte, error)

func MarshalTokenKeyPSSOID

func MarshalTokenKeyPSSOID(key *rsa.PublicKey) ([]byte, error)

func MarshalTokenKeyRSAEncryptionOID

func MarshalTokenKeyRSAEncryptionOID(key *rsa.PublicKey) ([]byte, error)

func MustHex

func MustHex(d []byte) string

func MustHexList

func MustHexList(d [][]byte) []string

func MustMarshalPrivateKey

func MustMarshalPrivateKey(key *rsa.PrivateKey) []byte

func MustMarshalPrivateOPRFKey

func MustMarshalPrivateOPRFKey(key *oprf.PrivateKey) []byte

func MustMarshalPublicKey

func MustMarshalPublicKey(key *rsa.PublicKey) []byte

func MustMarshalPublicOPRFKey

func MustMarshalPublicOPRFKey(key *oprf.PublicKey) []byte

func MustUnhex

func MustUnhex(t *testing.T, h string) []byte

func MustUnhexList

func MustUnhexList(t *testing.T, h []string) [][]byte

func MustUnmarshalBatchedPrivateOPRFKey

func MustUnmarshalBatchedPrivateOPRFKey(data []byte) *oprf.PrivateKey

func MustUnmarshalBatchedPublicOPRFKey

func MustUnmarshalBatchedPublicOPRFKey(data []byte) *oprf.PublicKey

func MustUnmarshalPrivateKey

func MustUnmarshalPrivateKey(data []byte) *rsa.PrivateKey

func MustUnmarshalPrivateOPRFKey

func MustUnmarshalPrivateOPRFKey(data []byte) *oprf.PrivateKey

func MustUnmarshalPublicKey

func MustUnmarshalPublicKey(data []byte) *rsa.PublicKey

func MustUnmarshalPublicOPRFKey

func MustUnmarshalPublicOPRFKey(data []byte) *oprf.PublicKey

func UnmarshalTokenKey

func UnmarshalTokenKey(data []byte) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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