Skip to content

Commit

Permalink
aarch64-linux-gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
piggypiggy committed Jan 10, 2021
1 parent 1a49368 commit 7205f24
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@
AArch64 implementation of Chinese SM3 Cryptographic Hash Algorithm. [ch](https://www.oscca.gov.cn/sca/xxgk/2010-12/17/1002389/files/302a3ada057c4a73830536d03e683110.pdf), [en](https://tools.ietf.org/html/draft-sca-cfrg-sm3-02).

## implementation
* message extension : Neon.
* message extension : Armv8 Neon.
* compression function : A64.

## build
$ mkdir build
$ cd build
$ cmake ..
$ make -j
$ make test
$ make test

cross compile:

$ mkdir build
$ cd build
$ cmake -DCMAKE_TOOLCHAIN_FILE=../aarch64-linux-gcc.cmake ..
$ make -j

### option
`-DCMAKE_BUILD_TYPE` : possible values are empty, Debug, Release, RelWithDebInfo and MinSizeRel, default is `Release`.
Expand All @@ -21,4 +28,4 @@ AArch64 implementation of Chinese SM3 Cryptographic Hash Algorithm. [ch](https:/
`-DUSE_ASAN` : use AddressSanitizer, default is `OFF`.

# license
Apache 2.0
Apache 2.0
7 changes: 7 additions & 0 deletions aarch64-linux-gcc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cmake -DCMAKE_TOOLCHAIN_FILE=../aarch64-linux-gcc.cmake ..

set(toolchain_path /usr/bin)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_C_COMPILER ${toolchain_path}/aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER ${toolchain_path}/aarch64-linux-gnu-g++)

0 comments on commit 7205f24

Please sign in to comment.