Documentation ¶
Index ¶
- func CreateInsecureHandleAndAead(rawKeyset string) (*keyset.Handle, tink.AEAD, error)
- func CreateInsecureHandleAndDeterministicAead(rawKeyset string) (*keyset.Handle, tink.DeterministicAEAD, error)
- func CreateNewAead() (*keyset.Handle, tink.AEAD, error)
- func CreateNewDeterministicAead() (*keyset.Handle, tink.DeterministicAEAD, error)
- func ExtractInsecureKeySetFromKeyhandle(kh *keyset.Handle) (string, error)
- func GetEncryptionKey(fieldName string, AEAD_CONFIG cmap.ConcurrentMap, setDepth ...int) (interface{}, bool)
- func GetKeyPrefix(fieldName string, potentialAEADKey string, kh *keyset.Handle) string
- func IsKeyHandleDeterministic(kh *keyset.Handle) bool
- func IsKeyJsonDeterministic(encryptionkey interface{}) (string, bool)
- func IsSecretAnAEADKeyset(secret interface{}, fName string) (string, *keyset.Handle, error)
- func MuteKeyMaterial(theKey string) string
- func PivotMap(originalMap map[string]map[string]string, newMap map[string]map[string]string)
- func PivotMapInt(mo map[string]interface{}, nmo map[string]interface{})
- func RemoveKeyPrefix(fieldName string) string
- func ReverseKeyPrefix(fieldName string) string
- func RotateKeys(kh *keyset.Handle, deterministic bool)
- func UpdateKeyID(kh *keyset.Handle, keyId string, newKeyId string) (*keyset.Handle, error)
- func UpdateKeyMaterial(kh *keyset.Handle, keyId string, material string) (*keyset.Handle, error)
- func UpdateKeyStatus(kh *keyset.Handle, keyId string, status string) (*keyset.Handle, error)
- func UpdatePrimaryKeyID(kh *keyset.Handle, keyId string) (*keyset.Handle, error)
- func ValidateB64Key(base64Keyset string) (string, error)
- func ValidateKeySetJson(keySetJson string) (*keyset.Handle, error)
- type KeySetStruct
- func (k *KeySetStruct) GetKeyID(keyId int) (int, error)
- func (k *KeySetStruct) UpdateExistingKeyID(keyID int, newkeyID int)
- func (k *KeySetStruct) UpdateExistingKeyMaterial(keyID int, keyMaterial string)
- func (k *KeySetStruct) UpdateExistingKeyStatus(keyID int, enabled string)
- func (k *KeySetStruct) UpdateExistingPrimaryKeyID(keyID int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewDeterministicAead ¶
func CreateNewDeterministicAead() (*keyset.Handle, tink.DeterministicAEAD, error)
func GetEncryptionKey ¶
func GetEncryptionKey(fieldName string, AEAD_CONFIG cmap.ConcurrentMap, setDepth ...int) (interface{}, bool)
func GetKeyPrefix ¶
func IsKeyJsonDeterministic ¶
func IsSecretAnAEADKeyset ¶ added in v0.1.5
func MuteKeyMaterial ¶
func PivotMapInt ¶
func RemoveKeyPrefix ¶
func ReverseKeyPrefix ¶
func RotateKeys ¶
func UpdateKeyID ¶
func UpdateKeyMaterial ¶
func UpdateKeyStatus ¶
func UpdatePrimaryKeyID ¶
func ValidateB64Key ¶
Types ¶
type KeySetStruct ¶
type KeySetStruct struct { PrimaryKeyID int `json:"primaryKeyId"` Key []struct { KeyData struct { TypeURL string `json:"typeUrl"` Value string `json:"value"` KeyMaterialType string `json:"keyMaterialType"` } `json:"keyData"` Status string `json:"status"` KeyID int `json:"keyId"` OutputPrefixType string `json:"outputPrefixType"` } `json:"key"` }
func (*KeySetStruct) UpdateExistingKeyID ¶
func (k *KeySetStruct) UpdateExistingKeyID(keyID int, newkeyID int)
func (*KeySetStruct) UpdateExistingKeyMaterial ¶
func (k *KeySetStruct) UpdateExistingKeyMaterial(keyID int, keyMaterial string)
func (*KeySetStruct) UpdateExistingKeyStatus ¶
func (k *KeySetStruct) UpdateExistingKeyStatus(keyID int, enabled string)
func (*KeySetStruct) UpdateExistingPrimaryKeyID ¶
func (k *KeySetStruct) UpdateExistingPrimaryKeyID(keyID int)
Click to show internal directories.
Click to hide internal directories.