kubernetes: k8s.io/kubernetes/cmd/kubeadm/app/util/crypto Index | Files

package crypto

import "k8s.io/kubernetes/cmd/kubeadm/app/util/crypto"

Index

Package Files

crypto.go

func CreateRandBytes Uses

func CreateRandBytes(size uint32) ([]byte, error)

CreateRandBytes returns a cryptographically secure slice of random bytes with a given size

func DecryptBytes Uses

func DecryptBytes(data, key []byte) ([]byte, error)

DecryptBytes takes a byte slice of encrypted data and an encryption key and returns a decrypted byte slice of data. The key must be an AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256

func EncryptBytes Uses

func EncryptBytes(data, key []byte) ([]byte, error)

EncryptBytes takes a byte slice of raw data and an encryption key and returns an encrypted byte slice of data. The key must be an AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256

Package crypto imports 4 packages (graph) and is imported by 2 packages. Updated 2019-03-26. Refresh now. Tools for package owners.