kmsServer

package
v0.0.0-...-9b07614 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AesKeySize means the key length of the Aes encryption algorithm
	AesKeySize = 16
	// AlgAES means the code name of the AES algorithm
	AlgAES = 0x0006
	// AlgCBC means the code name of the CBC algorithm
	AlgCBC = 0x0042
)

Variables

This section is empty.

Functions

func CreateSessionKey

func CreateSessionKey(ctx context.Context, payload *kmip.CreateRequestPayload) (*kmip.CreateResponsePayload, error)

CreateSessionKey creates a new key according to masterkey id which is sent by kcms.

func DecryptSessionKey

func DecryptSessionKey(ctx context.Context, payload *typdefs.GetRequestPayload) (*typdefs.GetResponsePayload, error)

DecryptSessionKey decrypts the old key according to masterkey id and key ciphertext which are sent by kcms.

func ExampleServer

func ExampleServer()

ExampleServer starts KMS service.

func StopServer

func StopServer()

StopServer stops KMS service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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