Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 857edec1 authored by Chia-chi Yeh's avatar Chia-chi Yeh
Browse files

KeyStore: Initialize IV correctly.

Change-Id: Idbf207dfcc11b92e606cbf4fd3732ed7a8aa3416
parent 18fc21da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }