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
9f10d7df
Commit
9f10d7df
authored
11 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
check for __BIG_ENDIAN__ rather than for __BYTE_ORDER__ and include board.h
parent
b0d51d32
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/crypto/sha256/sha256.c
+3
-2
3 additions, 2 deletions
sys/crypto/sha256/sha256.c
with
3 additions
and
2 deletions
sys/crypto/sha256/sha256.c
+
3
−
2
View file @
9f10d7df
...
@@ -44,15 +44,16 @@
...
@@ -44,15 +44,16 @@
#include
<string.h>
#include
<string.h>
#include
"crypto/sha256.h"
#include
"crypto/sha256.h"
#include
"board.h"
#if
__BYTE_ORDER__ == __ORDER
_BIG_ENDIAN__
#if
def _
_BIG_ENDIAN__
/* Copy a vector of big-endian uint32_t into a vector of bytes */
/* Copy a vector of big-endian uint32_t into a vector of bytes */
#define be32enc_vect memcpy
#define be32enc_vect memcpy
/* Copy a vector of bytes into a vector of big-endian uint32_t */
/* Copy a vector of bytes into a vector of big-endian uint32_t */
#define be32dec_vect memcpy
#define be32dec_vect memcpy
#else
/* _
_BYTE_ORDER__ != __ORDER
_BIG_ENDIAN__ */
#else
/*
!
__BIG_ENDIAN__ */
/*
/*
* Encode a length len/4 vector of (uint32_t) into a length len vector of
* Encode a length len/4 vector of (uint32_t) into a length len vector of
...
...
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