chef_crypto

package
v0.5.0-pre1 Latest Latest
Warning

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

Go to latest
Published: May 1, 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)

Generate a new salt for hashing a password.

func HashPasswd added in v0.4.0

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

SHA512 hash a password string with the provided salt.

func HeaderDecrypt added in v0.4.0

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

Decrypt the encrypted header with the client or user's public key 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)

Checks that the provided public key is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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