cryptutil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary []byte

Binary is a []byte slice that can be safely unmarshaled from YAML. For the time being, the value is just decoded as-is, but the custom type allows us to switch to other formats in the future such as base64 or hex-encoding.

func (*Binary) UnmarshalYAML

func (b *Binary) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML implements the yaml.Unmarshaler interface.

type RSAKey

type RSAKey struct {
	*rsa.PublicKey
}

A rsa.PublicKey wrapper that can be deserialized from YAML as a PEM-encoded string value.

func (*RSAKey) UnmarshalYAML

func (k *RSAKey) UnmarshalYAML(value *yaml.Node) error

type RSAPrivateKey

type RSAPrivateKey struct {
	*rsa.PrivateKey
}

A rsa.PrivateKey wrapper that can be deserialized from YAML as a PEM-encoded string value.

func (*RSAPrivateKey) UnmarshalYAML

func (k *RSAPrivateKey) UnmarshalYAML(value *yaml.Node) error

type Regexp

type Regexp struct {
	*regexp.Regexp
}

func (*Regexp) UnmarshalYAML

func (r *Regexp) UnmarshalYAML(value *yaml.Node) error

type SessionAuthenticationKey

type SessionAuthenticationKey Binary

SessionAuthenticationKey is a binary type for gorilla.session authentication keys, that is YAML-unserializable.

func (*SessionAuthenticationKey) UnmarshalYAML

func (k *SessionAuthenticationKey) UnmarshalYAML(value *yaml.Node) error

type SessionEncryptionKey

type SessionEncryptionKey Binary

SessionEncryptionKey is a binary type for gorilla.session encryption keys, that is YAML-unserializable.

func (*SessionEncryptionKey) UnmarshalYAML

func (k *SessionEncryptionKey) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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