Skip to content

Commit 5cf4224

Browse files
committed
Add comment back in
1 parent 8ec2e23 commit 5cf4224

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/dtls13.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ static int Dtls13GetRnMask(WOLFSSL* ssl, const byte* ciphertext, byte* mask,
274274
if (c->chacha == NULL)
275275
return BAD_STATE_E;
276276

277+
/* assuming CIPHER[0..3] should be interpreted as little endian 32-bits
278+
integer. The draft rfc isn't really clear on that. See sec 4.2.3 of
279+
the draft. See also Section 2.3 of the Chacha RFC. */
277280
ato32le(ciphertext, &counter);
278281

279282
ret = wc_Chacha_SetIV(c->chacha, &ciphertext[4], counter);

0 commit comments

Comments
 (0)