am 20cb2310: Merge "KeyStore: Initialize IV correctly." into gingerbread

Merge commit '20cb2310cffb787c54016d50b9b5fe320fc5b025' into gingerbread-plus-aosp

* commit '20cb2310cffb787c54016d50b9b5fe320fc5b025':
  KeyStore: Initialize IV correctly.
This commit is contained in:
Chia-chi Yeh
2010-09-30 10:11:16 -07:00
committed by Android Git Automerger

View File

@@ -166,7 +166,7 @@ static int8_t encrypt_blob(char *name, AES_KEY *aes_key)
int length; int length;
int fd; 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; return SYSTEM_ERROR;
} }