From 463d75b842dac392ea246df6d710f850f75bd6a6 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 60cc521b04cad..971a177ed3a00 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; }