Switched to encrypt and decrypt as one large array
Doesn't work but will keep trying. May need to switch to higher level OpenSSL functions.