diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-23 02:07:32 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-23 02:11:21 +0200 |
commit | 546d6cff4447a56bbf7c0e1a8b6f89dba5d3183b (patch) | |
tree | 7f8bfb3f7e7c6a0aab662fe6dec944cd6ee1a874 /src/Crypto/Sources | |
parent | ab7b5dc685eab3235dd748d8791cb39085ab0394 (diff) | |
download | VeraCrypt-546d6cff4447a56bbf7c0e1a8b6f89dba5d3183b.tar.gz VeraCrypt-546d6cff4447a56bbf7c0e1a8b6f89dba5d3183b.zip |
Crypto: Add optimized SHA-512 and SHA-256 assembly implementations for x86_64 and x86. This improves speed by 30%.
Diffstat (limited to 'src/Crypto/Sources')
-rw-r--r-- | src/Crypto/Sources | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/Crypto/Sources b/src/Crypto/Sources index 60412bf1..a93f9530 100644 --- a/src/Crypto/Sources +++ b/src/Crypto/Sources @@ -9,7 +9,15 @@ NTTARGETFILES = \ "$(OBJ_PATH)\$(O)\gost89_$(TC_ARCH).obj" \ "$(OBJ_PATH)\$(O)\Twofish_$(TC_ARCH).obj" \ "$(OBJ_PATH)\$(O)\Camellia_$(TC_ARCH).obj" \ - "$(OBJ_PATH)\$(O)\Camellia_aesni_$(TC_ARCH).obj" + "$(OBJ_PATH)\$(O)\Camellia_aesni_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha256-$(TC_ARCH)-nayuki.obj" \ + "$(OBJ_PATH)\$(O)\sha512-$(TC_ARCH)-nayuki.obj" \ + "$(OBJ_PATH)\$(O)\sha512_avx1_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha512_avx2_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha512_sse4_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha256_avx1_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha256_avx2_$(TC_ARCH).obj" \ + "$(OBJ_PATH)\$(O)\sha256_sse4_$(TC_ARCH).obj" SOURCES = \ Aes_$(TC_ARCH).asm \ @@ -30,5 +38,12 @@ SOURCES = \ Whirlpool.c \ Camellia.c \ Camellia_$(TC_ARCH).S \ - Camellia_aesni_$(TC_ARCH).S - + Camellia_aesni_$(TC_ARCH).S \ + sha256-$(TC_ARCH)-nayuki.S \ + sha512-$(TC_ARCH)-nayuki.S \ + sha512_avx1_$(TC_ARCH).asm \ + sha512_avx2_$(TC_ARCH).asm \ + sha512_sse4_$(TC_ARCH).asm \ + sha256_avx1_$(TC_ARCH).asm \ + sha256_avx2_$(TC_ARCH).asm \ + sha256_sse4_$(TC_ARCH).asm |