-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
008061f
commit afaa6d3
Showing
5 changed files
with
480 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
override JFLAGS += -arch arm-m4 | ||
SRCS := hash.jazz | ||
include ../../../../Makefile.common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require "sha256.jinc" | ||
|
||
export fn jade_hash_sha256_armv7m_ref(reg u32 hash input input_length) -> reg u32 | ||
{ | ||
reg u32 r; | ||
__sha256_ref(hash, input, input_length); | ||
r = 0; | ||
return r; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef JADE_HASH_sha256_armv7m_ref_API_H | ||
#define JADE_HASH_sha256_armv7m_ref_API_H | ||
|
||
#define JADE_HASH_sha256_armv7m_ref_BYTES 32 | ||
|
||
#define JADE_HASH_sha256_armv7m_ref_ALGNAME "SHA256" | ||
#define JADE_HASH_sha256_armv7m_ref_ARCH "armv7m" | ||
#define JADE_HASH_sha256_armv7m_ref_IMPL "ref" | ||
|
||
#include <stdint.h> | ||
|
||
int jade_hash_sha256_armv7m_ref( | ||
uint8_t *hash, | ||
const uint8_t *input, | ||
uint32_t input_length | ||
); | ||
|
||
#endif |
Oops, something went wrong.