Skip to content
Snippets Groups Projects
Commit 84f90475 authored by Malte Bauch's avatar Malte Bauch
Browse files

WIP

parent 77b2742c
No related branches found
No related tags found
1 merge request!11Big boom integration
Pipeline #181120 passed
......@@ -262,13 +262,13 @@ func (kms *EKMS) GenerateAndSendKSAKey(address string, requestId string, number
kms.PKStoreMutex.Lock()
keys := make([]*pbIC.Key, number)
cryptoAlgo := crypto.NewAES()
for i := 0; i < number; i++ {
// generate ksa key
ksaKeyId := uuid.New()
ksaKey, err := crypto.Random256BitKey()
// encrypt the key
cryptoAlgo := crypto.NewAES()
encryptedKSAKey, err := cryptoAlgo.Encrypt(ksaKey, pk)
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment