* Version 1.3.4 (unreleased)
+** Fix bug that prevented salting during AES key generation
+** from passwords from working. Reported by Ben.
+
** Add contrib/ sub-directory and contrib/programming.sh from David Dindorp.
See contrib/README for more information.
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008, 2009, Yubico AB
+ * Copyright (c) 2008, 2009, 2010, Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
size_t read_bytes = 0;
while (read_bytes < sizeof(_salt)) {
- size_t n = fread(&cfg->ykcore_config.key[read_bytes],
- 1, KEY_SIZE - read_bytes,
+ size_t n = fread(&_salt[read_bytes],
+ 1, sizeof (_salt) - read_bytes,
random_file);
read_bytes += n;
}