aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-28 20:31:56 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-28 21:05:33 +0100
commitebd754d88330478981f65e4724cc561ceff4f9e7 (patch)
treeba291f2a4303850fdab7233d0e2e6b0a98760690 /CHANGELOG.md
parent777cbd0fee8187325b0272d3264b535828d4b4ea (diff)
downloadnitrokey-rs-ebd754d88330478981f65e4724cc561ceff4f9e7.tar.gz
nitrokey-rs-ebd754d88330478981f65e4724cc561ceff4f9e7.tar.bz2
Regenerate temporary passwords with null bytes
Previously, we silently cut off temporary passwords that contained a null byte. With the change to CString, we returned a LibraryError instead. With this patch, we change to generate_password function to continue generating passwords until we have a password without a null byte. The chance of generating a password with a null byte is ca. 10 % for our temporary password with 25 characters. Therefore the chance of having to re-generate the password multiple times is low enough that we don’t bother with re-generating only the null bytes of the password for the time being. This should be improved in the future.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index be65865..5f03db2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ SPDX-License-Identifier: CC0-1.0
# Unreleased
- Use `CString` to store the temporary password instead of `Vec<u8>`.
+- Regenerate temporary passwords if they would contain a null byte.
# v0.5.1 (2020-01-15)
- Fix serial number formatting for Nitrokey Pro devices with firmware 0.8 or