Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
4272ccf2
Commit
4272ccf2
authored
6 years ago
by
Mathias Tausig
Committed by
Mathias Tausig
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
crypto: Fix whitespace errors
parent
41667cef
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sys/include/crypto/modes/ccm.h
+1
-1
1 addition, 1 deletion
sys/include/crypto/modes/ccm.h
sys/include/crypto/modes/ctr.h
+2
-3
2 additions, 3 deletions
sys/include/crypto/modes/ctr.h
sys/include/crypto/modes/ecb.h
+2
-3
2 additions, 3 deletions
sys/include/crypto/modes/ecb.h
with
5 additions
and
7 deletions
sys/include/crypto/modes/ccm.h
+
1
−
1
View file @
4272ccf2
...
...
@@ -80,7 +80,7 @@ int cipher_encrypt_ccm(cipher_t* cipher, uint8_t* auth_data,
* @param input_len length of the input data
* @param output pointer to allocated memory for decrypted data. It
* has to be of size data_len - mac_length.
*
*
* @return Length of the decrypted data on a successful decryption
* @return A negative error code if something went wrong
*/
...
...
This diff is collapsed.
Click to expand it.
sys/include/crypto/modes/ctr.h
+
2
−
3
View file @
4272ccf2
...
...
@@ -40,7 +40,7 @@ extern "C" {
* @param length length of the input data
* @param output pointer to allocated memory for encrypted data. It has
* to be of size data_len.
*
*
* @return Length of encrypted data on a successful encryption
* @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 output pointer to allocated memory for encrypted data. It has
* to be of size data_len.
*
*
* @return Length of decrypted data on a successful decryption
* @return A negative error code if something went wrong
*
*/
int
cipher_decrypt_ctr
(
cipher_t
*
cipher
,
uint8_t
nonce_counter
[
16
],
uint8_t
nonce_len
,
uint8_t
*
input
,
size_t
length
,
...
...
This diff is collapsed.
Click to expand it.
sys/include/crypto/modes/ecb.h
+
2
−
3
View file @
4272ccf2
...
...
@@ -37,7 +37,7 @@ extern "C" {
* @param length length of the input data
* @param output pointer to allocated memory for encrypted data. It has to
* be of size data_len + BLOCK_SIZE - data_len % BLOCK_SIZE.
*
*
* @return Length of encrypted data on a successful encryption
* @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 output pointer to allocated memory for plaintext data. It has to
* be of size `lengh`.
*
*
* @return Length of decrypted data on a successful decryption
* @return A negative error code if something went wrong
*
*/
int
cipher_decrypt_ecb
(
cipher_t
*
cipher
,
uint8_t
*
input
,
size_t
length
,
uint8_t
*
output
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment