Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ INC_NANOCBOR=$(NANOCBOR_ROOT)/include
LIB_NANOCBOR_PATH=$(NANOCBOR_ROOT)/bin
LIB_NANOCBOR=$(LIB_NANOCBOR_PATH)/libnanocbor.so

CFLAGS_TIDY ?= -std=c99
CFLAGS_TIDY ?= -std=c99 -Wdocumentation

CFLAGS_COVERAGE += -coverage
CFLAGS_DEBUG += $(CFLAGS_COVERAGE) -g3
Expand Down
3 changes: 1 addition & 2 deletions include/cose/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ COSE_ssize_t cose_crypto_keygen(uint8_t *buf, size_t len, cose_algo_t algo);
*
*
* @param[out] c resulting ciphertext
* @param[inout] clen length of the buffer, length of resulting ciphertext
* @param[in,out] clen length of the buffer, length of resulting ciphertext
* @param msg message to encrypt
* @param msglen length of the message
* @param aad additional authenticated data to protect
* @param aadlen length of the additional authenticated data
* @param key key to decrypt with
* @param nonce nonce to use
*/
int cose_crypto_aead_encrypt(uint8_t *c, size_t *clen, const uint8_t *msg, size_t msglen, const uint8_t *aad, size_t aadlen, const uint8_t *nsec, const uint8_t *npub, const uint8_t *key, cose_algo_t algo);
int cose_crypto_aead_decrypt(uint8_t *msg,
Expand Down
6 changes: 0 additions & 6 deletions include/cose/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ void cose_key_set_kid(cose_key_t *key, uint8_t *kid, size_t len);
*
* @param key The key object
* @param map The cbor encoder map object to add headers to
*
* @return 0 on success
* @return Negative on error
*/
void cose_key_protected_to_map(const cose_key_t *key, nanocbor_encoder_t *map);

Expand All @@ -110,9 +107,6 @@ void cose_key_protected_to_map(const cose_key_t *key, nanocbor_encoder_t *map);
*
* @param key The key object
* @param map The cbor encoder map object to add headers to
*
* @return 0 on success
* @return Negative on error
*/
void cose_key_unprotected_to_map(const cose_key_t *key, nanocbor_encoder_t *map);

Expand Down