crypto

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cdata []byte, keyring []byte) ([]byte, error)

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

type RamToken

type RamToken struct {
	AccessKeyId     string `json:"access.key.id"`
	AccessKeySecret string `json:"access.key.secret"`
	SecurityToken   string `json:"security.token"`
	Expiration      string `json:"expiration"`
	Keyring         string `json:"keyring"`
	ClusterType     string `json:"cluster.type"`
}

func RamTokenDecrypt

func RamTokenDecrypt(token *RamToken) (*RamToken, error)

Jump to

Keyboard shortcuts

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