key_utils

package
v0.0.0-...-7853e9f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkamPublicKeyName        = "aesPkamPublicKey"
	PkamPrivateKeyName       = "aesPkamPrivateKey"
	EncryptionPublicKeyName  = "aesEncryptPublicKey"
	EncryptionPrivateKeyName = "aesEncryptPrivateKey"
	SelfEncryptionKeyName    = "selfEncryptionKey"
)

Variables

View Source
var KeyTypeInstance = KeyType{
	PUBLIC_KEY:         "PUBLIC_KEY",
	SHARED_KEY:         "SHARED_KEY",
	SELF_KEY:           "SELF_KEY",
	PRIVATE_HIDDEN_KEY: "PRIVATE_HIDDEN_KEY",
}

Functions

This section is empty.

Types

type KeyStringUtil

type KeyStringUtil struct {
	// contains filtered or unexported fields
}

func NewKeyStringUtil

func NewKeyStringUtil(fullKeyName string) *KeyStringUtil

func (*KeyStringUtil) GetFullKeyName

func (ks *KeyStringUtil) GetFullKeyName() string

func (*KeyStringUtil) GetKeyName

func (ks *KeyStringUtil) GetKeyName() string

func (*KeyStringUtil) GetKeyType

func (ks *KeyStringUtil) GetKeyType() string

func (*KeyStringUtil) GetNamespace

func (ks *KeyStringUtil) GetNamespace() string

func (*KeyStringUtil) GetSharedBy

func (ks *KeyStringUtil) GetSharedBy() string

func (*KeyStringUtil) GetSharedWith

func (ks *KeyStringUtil) GetSharedWith() string

func (*KeyStringUtil) IsCached

func (ks *KeyStringUtil) IsCached() bool

func (*KeyStringUtil) IsHidden

func (ks *KeyStringUtil) IsHidden() bool

type KeyType

type KeyType struct {
	PUBLIC_KEY         string
	SHARED_KEY         string
	SELF_KEY           string
	PRIVATE_HIDDEN_KEY string
}

type KeysUtil

type KeysUtil struct{}

func NewKeysUtil

func NewKeysUtil() *KeysUtil

func (*KeysUtil) LoadKeys

func (ku *KeysUtil) LoadKeys(atSign string) (map[string]string, error)

Jump to

Keyboard shortcuts

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