Skip to content
Snippets Groups Projects
Commit 7ce46c26 authored by gosdn-user's avatar gosdn-user
Browse files

wip

parent e3d7edbf
No related branches found
No related tags found
1 merge request!39Draft: Tud testing
Pipeline #184827 passed
......@@ -166,11 +166,13 @@ func (eqe *EmulatedQuantumModule) KeyChopper(bulkKey *quantumlayer.QuantumLayerB
if eqe.keyStore.keySingleSize == 0 {
return nil, nil, errors.New("KeyChopper: no keySingleSize set")
}
// TODO check if multiple of 8 (1 Byte)
if bulkKey.BulkKeyLength != len(*bulkKey.BulkKey) {
logrus.Errorf("Length missmatch: %d, %d", bulkKey.BulkKeyLength, len(*bulkKey.BulkKey))
return nil, nil, errors.New("bulkKey length mismatch")
if (bulkKey.BulkKeyLength) != (len(*bulkKey.BulkKey)*8){
logrus.Errorf("Length missmatch: %d, %d", bulkKey.BulkKeyLength, len(*bulkKey.BulkKey))
return nil, nil, errors.New("bulkKey length mismatch")
}
}
initialKeyIdsLen := len(keyIds)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment