masterkey

package module
v0.0.0-...-bac0eee Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 3 Imported by: 1

README

masterkey

GoDoc

A Go package which manages the creation of cryptographic subkeys from master keys

Documentation

Overview

Package masterkey manages the creation of cryptographic subkeys from master keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterKey

type MasterKey struct {
	// contains filtered or unexported fields
}

MasterKey is a crypto key that rather than being used directly generates subkeys that are used for different purposes

func New

func New(material []byte) MasterKey

New returns a MasterKey struct

func (MasterKey) SubKey

func (m MasterKey) SubKey(id string, size int) ([]byte, error)

SubKey returns a deterministcally generated subkey of `size` bytes

Directories

Path Synopsis
examples
aes256cbc
Perform AES-256-CBC encryption using a 4096-bit masterkey and derived subkeys for encryption and IV materials.
Perform AES-256-CBC encryption using a 4096-bit masterkey and derived subkeys for encryption and IV materials.

Jump to

Keyboard shortcuts

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