You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
* @note Assumes:- in == iv + ciphertext, i.e. the iv and the ciphertext are
* contiguous. This allows for a very efficient decryption
* algorithm that would not otherwise be possible
* @param in IN -- ciphertext to decrypt, including IV
I'd propose to modify the doc to something like:
* @note Assumes:- the IV and the ciphertext need to be
* contiguous. This allows for a very efficient decryption
* algorithm that would not otherwise be possible
* @param in IN -- ciphertext to decrypt, not including IV * @param iv IN -- the IV for the encrypt/decrypt, must be followed by ciphertext
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The description of the
in
parameter oftc_cbc_mode_decrypt
is misleading. All examples show thatin
should point on the cipher text offset by the size of the iv (which is a block):https://github.com/intel/tinycrypt/blob/master/tests/test_cbc_mode.c#L134 :
But both the note and the description of the
in
param are suggesting that it should point on the cipher text including the IV:https://github.com/intel/tinycrypt/blob/master/lib/include/tinycrypt/cbc_mode.h#L128 :
* @param in IN -- ciphertext to decrypt, including IV
I'd propose to modify the doc to something like:
* @param in IN -- ciphertext to decrypt, not including IV
* @param iv IN -- the IV for the encrypt/decrypt, must be followed by ciphertext
The text was updated successfully, but these errors were encountered: