chef_crypto

package
v0.4.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package chef_crypto bundles up crytographic routines for goairdi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSAKeys

func GenerateRSAKeys() (string, string, error)

Creates a pair of private and public keys for a client.

func GenerateSalt added in v0.4.0

func GenerateSalt() ([]byte, error)

func HashPasswd added in v0.4.0

func HashPasswd(passwd string, salt []byte) (string, error)

func HeaderDecrypt added in v0.4.0

func HeaderDecrypt(pkPem string, data string) ([]byte, error)

Decrypt the encrypted header for validating requests. This function is informed by chef-golang's privateDecrypt function.

func ValidatePublicKey added in v0.4.0

func ValidatePublicKey(publicKey interface{}) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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