kmsutils

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KMSContext *kmsContext

KMSContext is a kms context

Functions

func CreateKMSKeyWithContext

func CreateKMSKeyWithContext(context *kmsContext, extParams map[string]string) ([]byte, crypto.PrivateKey, error)

CreateKMSKeyWithContext - create kms private key with Context

func InitKMS

func InitKMS(config KMSConfig) *kmsContext

InitKMS is used to init kms context, run only once nolint

func ParseKMSPrivKey

func ParseKMSPrivKey(keySpecJson []byte) (crypto.PrivateKey, error)

ParseKMSPrivKey parse a kms private key

Types

type KMSConfig

type KMSConfig struct {
	Enable bool
	kms.Config
}

KMSConfig is kms config struct

Jump to

Keyboard shortcuts

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