I'm encrypting some files using AES in CBC mode.
I'm
I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so iI need to store it with file).
Is
Is it safe to use this digest as AES's IV and store it in the header of file?
Or Or it has security issue?
Thanks