h_mac

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const VaultHeader = "$ANSIBLE_VAULT;1.1;AES256"

Variables

This section is empty.

Functions

func CheckDigest

func CheckDigest(secret *Secret, key *Key) error

func EncodeSecretAnsibleVault

func EncodeSecretAnsibleVault(secret *Secret, key *Key) (string, error)

func Hash

func Hash(hmacKey, data []byte) []byte

func HexDecode

func HexDecode(input string) (string, error)

Types

type Key

type Key struct {
	CipherKey []byte
	HMACKey   []byte
	IV        []byte
}

type Secret

type Secret struct {
	Salt []byte
	HMAC []byte
	Data []byte
}

func DecodeSecretAnsibleVault

func DecodeSecretAnsibleVault(input string) (*Secret, error)

Jump to

Keyboard shortcuts

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