🐛 [BUG] - Fix Key Verification IV values

Aperta
#446 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@dccutrig ci sta già lavorando.

Dal 31/3/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
Description

Currently keyv just increments a counter, research this a little further and likely need to use the active SA IV (either SA 0 or max for EPs)

Image

I was looking at Crypto_Increment, it only does an increment of +1 on each call. In this example we have a + x + 1... which I think is just so they are all unique. If we use the existing crypto_increment, without the + x, we'd either have to use a for loop X times to increment, or re-write the UTs using it.

Are there any issues with the proposed change along the lines of:

for ( int j=0; j<x; j++ )
{
Crypto_Increment(sdls_ep_keyv_reply.blk[x].iv, SDLS_IV_LEN);
}

I'm unclear on what the second increment could / should be for the line:

sdls_ep_reply[pdu_data_idx - 1] = sdls_ep_reply[pdu_data_idx - 1] + x + 1;

REVIEW this and update.

Branch Name

No response

Reproduction steps
Not blank
Screenshots
![DESCRIPTION](LINK.png)
Logs

OS

Linux

Lingua principale
C
Stelle
178
Fork
70
Merge medio
1h 32m
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nasa/CryptoLib

Tutte le issue di nasa/CryptoLib

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.