From 4fa22fa22a624b5d8b3add84ce964bfb1f656498 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Tue, 16 Feb 2016 19:36:24 +0100 Subject: [PATCH] removed one '@saVe' and reverted to chacha20 as default encryption algorithm --- source/app.d | 2 +- source/salsa20.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app.d b/source/app.d index f3ea994..78aef1b 100644 --- a/source/app.d +++ b/source/app.d @@ -11,7 +11,7 @@ int main(string[] args) "encrypt" : false, "decrypt" : false ]; - Cipher cipher = Cipher.salsa20; + Cipher cipher = Cipher.chacha20; string keyFileName = "symkey.asc"; bool armor; diff --git a/source/salsa20.d b/source/salsa20.d index b81f5a7..58bcc04 100644 --- a/source/salsa20.d +++ b/source/salsa20.d @@ -211,7 +211,7 @@ unittest 0x481c2027, 0x53a8e4b5, 0x4c1f89c5, 0x3f78c9c8]); } -ubyte[] salsa20(in ubyte[] input) @save pure nothrow @safe +ubyte[] salsa20(in ubyte[] input) pure nothrow @safe in { assert(input.length == 64);