From 865a0719fc6a19e8d6730b0ad689885e45d83c42 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 25 Jun 2014 20:21:48 -0700 Subject: [PATCH] The easy interface doesn't require any memory allocations any more. At least for crypto_secretbox. crypto_box will follow. --- README.markdown | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.markdown b/README.markdown index d9470a4e..7791a34d 100644 --- a/README.markdown +++ b/README.markdown @@ -263,12 +263,8 @@ The length of the ciphertext, which will include the MAC, is the decrypted message doesn't have to be more than `len(c) - crypto_secretbox_MACBYTES`. -The "easy" interface currently requires allocations and copying, which -makes it slower than using the traditional NaCl interface. This -shouldn't make any sensible difference in most use cases, and future -versions of the library may not require extra copy operations any -more. Unless speed is absolutely critical, you are welcome to use the -"easy" interface, especially if you are new to NaCl/Sodium. +The "easy" interface is as fast as the traditional NaCl API and +doesn't require any memory allocations. ## New operations