package
0.0.0-20240920015501-4d0a1e4e5de4
Repository: https://github.com/cloudflare/opaque-core.git
Documentation: pkg.go.dev
# Functions
GetExtensionListFromSignatureScheme returns an ExtensionList containing the given signature scheme.
GetExtensionListFromSignatureSchemes returns an ExtensionList containing the given signature schemes.
GetRandomBytes returns n random bytes.
MarshalErrorAsJSON marshals an error as json.
MarshalList marshals a list of values that are marshal-able.
SelfSignedCert creates a new self-signed cert for the given domain and adds it to the roots pool (if provided).
SelfSignedCerts returns a list of self-signed certificates, each signed with a different signature scheme supported by mint.
UnmarshalList unmarshals a list of values that are unmarshal-able.
XORBytes xors b into a.
# Constants
Test strings.
ErrorBadEnvelope represents error when decription of the envelope fails.
ErrorForbiddenPolicy represents error when there is a forbidden credential encoding policy.
ErrorHmacTagInvalid represents error when HMAC tag is invalid.
ErrorNoError represents an empty error.
ErrorNoPasswordTable represents error when there is no password table.
ErrorNotFound represents error when a field is not found.
ErrorOtherError represents other kinds of errors not previously covered.
ErrorUnexpectedData represents error when unexpected data arrived.
ErrorUnrecognizedMessage represents error when the message is not recognized.
ErrorUserAlreadyRegistered represents error when the user is already registered.
ErrorUserNotRegistered represents error when the user is not yet registered.
# Variables
HashMap is a map from signature schemes to the hash that they use.
MintSupportedSignatureSchemes is a list of all signature schemes supported by the mint package.
# Interfaces
Causer is an interface for the cause of an error.
Marshaler is the interface implemented by types that can be marshaled (converted to raw bytes).
MarshalUnmarshaler is a type that can marshal and unmarshal itself.
Unmarshaler is the interface implemented by types that can be unmarshaled (converted from raw bytes to a struct).
# Type aliases
Error represents an error for the library.