I'm using the following openssl functions:
- PKCS5_PBKDF2_HMAC_SHA1
- EVP_BytesToKey
- EVP_aes_256_cbc
- EVP_sha1
- EVP_CIPHER_CTX_init
- EVP_EncryptInit_ex
- EVP_DecryptInit_ex
- EVP_CIPHER_CTX_cleanup
- EVP_DecryptUpdate
- EVP_DecryptFinal_ex
- EVP_EncryptUpdate
- EVP_EncryptFinal_ex
When decrypting data on a background thread, there are no issues if the data size is fairly small.
For data around 500 kilobytes the decrypt routine will always crash on EVP_DecryptUpdate
but is fine on the main thread.
What gives?