Skip to content

Commit 5067fae

Browse files
committed
Parenthesize esp_rfc4106_salt macro
F/792
1 parent df6393d commit 5067fae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wolfesp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,9 @@ esp_des3_rfc2451_enc(const wolfIP_esp_sa * esp_sa, uint8_t * esp_data,
848848
* N octets are the AES key, and the remaining four octets are used as the
849849
* salt value in the nonce.
850850
* */
851-
#define esp_rfc4106_salt(esp_sa) (esp_sa)->enc_key \
851+
#define esp_rfc4106_salt(esp_sa) ((esp_sa)->enc_key \
852852
+ (esp_sa)->enc_key_len \
853-
- ESP_GCM_RFC4106_SALT_LEN
853+
- ESP_GCM_RFC4106_SALT_LEN)
854854

855855
/* Deterministic iv construction using pre-iv salt and sequence number.
856856
* NIST SP 800-38D, section 8.2.1 Deterministic Construction, using

0 commit comments

Comments
 (0)