crypto: Fix whitespace errors

This commit is contained in:
Mathias Tausig 2018-10-17 15:20:56 +02:00 committed by Mathias Tausig
parent 41667cef66
commit 4272ccf281
3 changed files with 5 additions and 7 deletions

View File

@ -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
*/ */

View File

@ -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],
* @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,

View File

@ -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,
* @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);