summaryrefslogtreecommitdiff
path: root/src/ciphers
diff options
context:
space:
mode:
authorGuillaume LE VAILLANT <glv@posteo.net>2018-09-24 14:31:42 +0200
committerGuillaume LE VAILLANT <glv@posteo.net>2018-09-24 14:50:12 +0200
commitb9fe4b09e7f928f60b098c5f33a3cabdcccdf416 (patch)
treeef00850396b253a7de683d29c2b4720210ef3263 /src/ciphers
parentd03b0e9ecd4961e668b46b7fd498cacf1390dd16 (diff)
Add optimized Chacha core function for ECL
Diffstat (limited to 'src/ciphers')
-rw-r--r--src/ciphers/chacha.lisp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ciphers/chacha.lisp b/src/ciphers/chacha.lisp
index c2c5e33..9e7a76d 100644
--- a/src/ciphers/chacha.lisp
+++ b/src/ciphers/chacha.lisp
@@ -18,9 +18,11 @@
(declare (type chacha-keystream-buffer buffer))
(declare (type chacha-state state))
(declare (optimize speed))
- #+(and sbcl x86-64 ironclad-assembly)
+ #+(or (and ecl ironclad-assembly)
+ (and sbcl x86-64 ironclad-assembly))
(x-chacha-core n-rounds buffer state)
- #-(and sbcl x86-64 ironclad-assembly)
+ #-(or (and ecl ironclad-assembly)
+ (and sbcl x86-64 ironclad-assembly))
(let ((x (make-array 16 :element-type '(unsigned-byte 32))))
(declare (dynamic-extent x))
(replace x state)