Skip to content
Snippets Groups Projects

Draft: Akms ckms api implementation

Closed Neil-Jocelyn Schark requested to merge akms-ckms-api-implementation into master
3 files
+ 92
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -6,6 +6,7 @@ import (
log "github.com/sirupsen/logrus"
"code.fbi.h-da.de/danet/quant/ekms/internal/akmCkmsInterface"
"code.fbi.h-da.de/danet/quant/ekms/internal/kms"
"github.com/google/uuid"
)
@@ -126,6 +127,7 @@ func NewEkmsClient(bootInfo *Config) (myInfo *ekmsInfo) {
func emulatedKMS(config *Config, id uuid.UUID, peerChannel chan string) *kms.EKMS {
// Attach to eKMS
emuKMS := kms.NewEKMS(config.Name, id, os.Stdout, log.TraceLevel, false, config.InterComAddr)
akmsCkmsReceiver := akmCkmsInterface.NewAKMSReceiver("4567", emuKMS)
var qm kms.QuantumModule
var err error
@@ -167,8 +169,9 @@ func emulatedKMS(config *Config, id uuid.UUID, peerChannel chan string) *kms.EKM
}
}
// Start the SDN/management and key retrieval interface
// Start the SDN/management, key retrieval interface and akms server
go kms.StartETSI(config.GRPCAddr, emuKMS)
go akmsCkmsReceiver.Serve()
return emuKMS
}
Loading