Skip to content

Commit

Permalink
sys/include/crypto/modes/ccm: specify implem limits
Browse files Browse the repository at this point in the history
  • Loading branch information
fjmolinas committed Jan 12, 2020
1 parent 8416974 commit 0e46402
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/include/crypto/modes/ccm.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
*
* @param cipher Already initialized cipher struct
* @param auth_data Additional data to authenticate in MAC
* @param auth_data_len Length of additional data
* @param auth_data_len Length of additional data, max (2^16 - 2^8)
* @param mac_length length of the appended MAC (between 4 and 16 - only
* even values)
* @param length_encoding maximal supported length of plaintext
Expand All @@ -57,7 +57,7 @@ extern "C" {
* @param nonce_len Length of the nonce in octets
* (maximum: 15-length_encoding)
* @param input pointer to input data to encrypt
* @param input_len length of the input data
* @param input_len length of the input data, max 2^32
* @param output pointer to allocated memory for encrypted data. It
* has to be of size data_len + mac_length.
* @return Length of encrypted data on a successful encryption
Expand All @@ -76,7 +76,7 @@ int cipher_encrypt_ccm(cipher_t *cipher,
*
* @param cipher Already initialized cipher struct
* @param auth_data Additional data to authenticate in MAC
* @param auth_data_len Length of additional data
* @param auth_data_len Length of additional data, max (2^16 - 2^8)
* @param mac_length length of the appended MAC (between 4 and 16 - only
* even values)
* @param length_encoding maximal supported length of plaintext
Expand All @@ -85,7 +85,7 @@ int cipher_encrypt_ccm(cipher_t *cipher,
* @param nonce_len Length of the nonce in octets
* (maximum: 15-length_encoding)
* @param input pointer to input data to decrypt
* @param input_len length of the input data
* @param input_len length of the input data, max 2^32
* @param output pointer to allocated memory for decrypted data. It
* has to be of size data_len - mac_length.
*
Expand Down

0 comments on commit 0e46402

Please sign in to comment.