Skip to content
Snippets Groups Projects
Commit 4272ccf2 authored by Mathias Tausig's avatar Mathias Tausig Committed by Mathias Tausig
Browse files

crypto: Fix whitespace errors

parent 41667cef
Branches
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ int cipher_encrypt_ccm(cipher_t* cipher, uint8_t* auth_data, ...@@ -80,7 +80,7 @@ int cipher_encrypt_ccm(cipher_t* cipher, uint8_t* auth_data,
* @param input_len length of the input data * @param input_len length of the input data
* @param output pointer to allocated memory for decrypted data. It * @param output pointer to allocated memory for decrypted data. It
* has to be of size data_len - mac_length. * has to be of size data_len - mac_length.
* *
* @return Length of the decrypted data on a successful decryption * @return Length of the decrypted data on a successful decryption
* @return A negative error code if something went wrong * @return A negative error code if something went wrong
*/ */
......
...@@ -40,7 +40,7 @@ extern "C" { ...@@ -40,7 +40,7 @@ extern "C" {
* @param length length of the input data * @param length length of the input data
* @param output pointer to allocated memory for encrypted data. It has * @param output pointer to allocated memory for encrypted data. It has
* to be of size data_len. * to be of size data_len.
* *
* @return Length of encrypted data on a successful encryption * @return Length of encrypted data on a successful encryption
* @return A negative error code if something went wrong * @return A negative error code if something went wrong
*/ */
...@@ -64,10 +64,9 @@ int cipher_encrypt_ctr(cipher_t* cipher, uint8_t nonce_counter[16], ...@@ -64,10 +64,9 @@ int cipher_encrypt_ctr(cipher_t* cipher, uint8_t nonce_counter[16],
* @param length length of the input data * @param length length of the input data
* @param output pointer to allocated memory for encrypted data. It has * @param output pointer to allocated memory for encrypted data. It has
* to be of size data_len. * to be of size data_len.
* *
* @return Length of decrypted data on a successful decryption * @return Length of decrypted data on a successful decryption
* @return A negative error code if something went wrong * @return A negative error code if something went wrong
*
*/ */
int cipher_decrypt_ctr(cipher_t* cipher, uint8_t nonce_counter[16], int cipher_decrypt_ctr(cipher_t* cipher, uint8_t nonce_counter[16],
uint8_t nonce_len, uint8_t* input, size_t length, uint8_t nonce_len, uint8_t* input, size_t length,
......
...@@ -37,7 +37,7 @@ extern "C" { ...@@ -37,7 +37,7 @@ extern "C" {
* @param length length of the input data * @param length length of the input data
* @param output pointer to allocated memory for encrypted data. It has to * @param output pointer to allocated memory for encrypted data. It has to
* be of size data_len + BLOCK_SIZE - data_len % BLOCK_SIZE. * be of size data_len + BLOCK_SIZE - data_len % BLOCK_SIZE.
* *
* @return Length of encrypted data on a successful encryption * @return Length of encrypted data on a successful encryption
* @return A negative error code if something went wrong * @return A negative error code if something went wrong
* *
...@@ -55,10 +55,9 @@ int cipher_encrypt_ecb(cipher_t* cipher, uint8_t* input, size_t length, ...@@ -55,10 +55,9 @@ int cipher_encrypt_ecb(cipher_t* cipher, uint8_t* input, size_t length,
* @param length length of the input data * @param length length of the input data
* @param output pointer to allocated memory for plaintext data. It has to * @param output pointer to allocated memory for plaintext data. It has to
* be of size `lengh`. * be of size `lengh`.
* *
* @return Length of decrypted data on a successful decryption * @return Length of decrypted data on a successful decryption
* @return A negative error code if something went wrong * @return A negative error code if something went wrong
*
*/ */
int cipher_decrypt_ecb(cipher_t* cipher, uint8_t* input, size_t length, int cipher_decrypt_ecb(cipher_t* cipher, uint8_t* input, size_t length,
uint8_t* output); uint8_t* output);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment