Skip to content

Commit 9d75b54

Browse files
committed
intels sha256
1 parent f091605 commit 9d75b54

3 files changed

Lines changed: 865 additions & 0 deletions

File tree

c_src/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@ sha256_avx1:*.asm *.c
44
sha256_sse4:*.asm *.c
55
gcc -O4 -Dsha256=sha256_sse4 -o $@ main.c $@.o
66

7+
8+
sha256_avx2_rorx8:*.asm *.c sha256_avx2_rorx8.o
9+
gcc -O4 -Dsha256=sha256_rorx_x8ms -o $@ main.c $@.o
10+
11+
sha256_avx2_rorx2:*.asm *.c sha256_avx2_rorx2.o
12+
gcc -O4 -Dsha256=sha256_rorx -o $@ main.c $@.o
13+
714
%.o:%.asm
815
yasm -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -o $@ $^

c_src/open_software_license.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Copyright (c) 2012, Intel Corporation
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are
7+
met:
8+
9+
* Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the
15+
distribution.
16+
17+
* Neither the name of the Intel Corporation nor the names of its
18+
contributors may be used to endorse or promote products derived from
19+
this software without specific prior written permission.
20+
21+
22+
THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION ""AS IS"" AND ANY
23+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION OR
26+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)