From 5e22f61cda65381b00a599d99c9e4b51994c20f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de>
Date: Tue, 19 Dec 2017 18:24:44 +0100
Subject: [PATCH] sys/crypto/ccm: fix docstring value for 'nonce_len'

From RFC3610 - 2.1.2:

    A nonce N of 15-L octets
    (where L: Number of octets in length field)
---
 sys/include/crypto/modes/ccm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/include/crypto/modes/ccm.h b/sys/include/crypto/modes/ccm.h
index c5cf5e1b6b..d2f076bf48 100644
--- a/sys/include/crypto/modes/ccm.h
+++ b/sys/include/crypto/modes/ccm.h
@@ -44,7 +44,7 @@ extern "C" {
  *                         (2^(8*length_enc)).
  * @param nonce            Nounce for ctr mode encryption
  * @param nonce_len        Length of the nonce in octets
- *                         (maximum: 16-length_encoding)
+ *                         (maximum: 15-length_encoding)
  * @param input            pointer to input data to encrypt
  * @param input_len        length of the input data
  * @param output           pointer to allocated memory for encrypted data. It
@@ -69,7 +69,7 @@ int cipher_encrypt_ccm(cipher_t* cipher, uint8_t* auth_data,
  *                         (2^(8*length_enc)).
  * @param nonce            Nounce for ctr mode encryption
  * @param nonce_len        Length of the nonce in octets
- *                         (maximum: 16-length_encoding)
+ *                         (maximum: 15-length_encoding)
  * @param input            pointer to input data to decrypt
  * @param input_len        length of the input data
  * @param output           pointer to allocated memory for decrypted data. It
-- 
GitLab