This commit is contained in:
NIIBE Yutaka
2012-06-15 13:30:07 +09:00
parent fe58e86c6c
commit e0282629e3
2 changed files with 4 additions and 2 deletions

View File

@@ -135,6 +135,8 @@ extern const uint8_t *flash_init (void);
extern void flash_do_release (const uint8_t *);
extern const uint8_t *flash_do_write (uint8_t nr, const uint8_t *data, int len);
extern uint8_t *flash_key_alloc (void);
extern int flash_key_write (uint8_t *key_addr, const uint8_t *key_data,
const uint8_t *modulus);
extern void flash_keystore_release (void);
extern void flash_set_data_pool_last (const uint8_t *p);
extern void flash_clear_halfword (uint32_t addr);
@@ -195,7 +197,6 @@ struct prvkey_data {
extern void resetcode_s2k (const unsigned char *input, unsigned int ilen,
unsigned char output[32]);
extern int flash_key_write (uint8_t *key_addr, const uint8_t *key_data, const uint8_t *modulus);
#define KEYSTRING_PASSLEN_SIZE 1
#define KEYSTRING_SALT_SIZE 8 /* optional */

View File

@@ -58,7 +58,8 @@ random_bytes_get (void)
void
random_bytes_free (const uint8_t *p)
{
memset (p, 0, RANDOM_BYTES_LENGTH);
(void)p;
memset (random_word, 0, RANDOM_BYTES_LENGTH);
neug_flush ();
}