From 23eb8c4250d9dc763978e5fbddc1c7e784839078 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 7 Sep 2010 22:58:45 +0000 Subject: Realization while thinking about the recently added truncate: in a STL container like vector, truncate is simply resize, but what MemoryRegion called resize will zap the entire contents, and then what was resize was called grow_to. This is really problematic in terms of the goal of replacing MemoryRegion with a vector with a custom allocator. In this checkin: - Remove MemoryRegion::grow_to and MemoryRegion::truncate - Change the semantics of MemoryRegion::resize to change the size while keeping any current contents intact (up to the new size), zero initializing any new values. Unrelated, just noticed the lack while I was in there, add a version of CryptoBox::decrypt taking a std::string for the input. --- doc/log.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'doc/log.txt') diff --git a/doc/log.txt b/doc/log.txt index f35bd9b8f..756d81555 100644 --- a/doc/log.txt +++ b/doc/log.txt @@ -3,7 +3,6 @@ - Switch default PKCS #8 encryption algorithm from AES-128 to AES-256 - Use smaller tables in the first round of AES - Add hex encoding/decoding functions that can be used without a Pipe - - Add new function MemoryRegion::truncate - Allow using PBKDF2 with empty passphrases - Support use of HMAC(SHA-256) and CMAC(Blowfish) in passhash9 - Support dynamic loading on Windows -- cgit v1.2.3