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);