From 857edec1a25fb112938ff1b012dbe78844db0320 Mon Sep 17 00:00:00 2001 From: Chia-chi Yeh Date: Thu, 30 Sep 2010 17:28:01 +0800 Subject: [PATCH] KeyStore: Initialize IV correctly. Change-Id: Idbf207dfcc11b92e606cbf4fd3732ed7a8aa3416 --- cmds/keystore/keystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/keystore/keystore.c b/cmds/keystore/keystore.c index 60cc521b0..971a177ed 100644 --- a/cmds/keystore/keystore.c +++ b/cmds/keystore/keystore.c @@ -166,7 +166,7 @@ static int8_t encrypt_blob(char *name, AES_KEY *aes_key) int length; int fd; - if (read(the_entropy, vector, AES_BLOCK_SIZE) != AES_BLOCK_SIZE) { + if (read(the_entropy, blob.vector, AES_BLOCK_SIZE) != AES_BLOCK_SIZE) { return SYSTEM_ERROR; }