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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.