e542f605a Revert "trying with memcpy in openssl"
1f28422b7 Revert "randomize only the IV part of prefix"
git-subtree-dir: librocksdb-sys/rocksdb
git-subtree-split: e542f605ac709ee497dbf7e6aedf97837bf8af8c
if(1!=EVP_EncryptUpdate(ctx_,reinterpret_cast<unsignedchar*>(data),&len,reinterpret_cast<constunsignedchar*>(data),static_cast<int>(dataSize))){err_str="Failed to encrypt.";gotoerror;}
if(1!=EVP_EncryptUpdate(ctx_,out,&len,reinterpret_cast<constunsignedchar*>(ptr),static_cast<int>(dataSize-n))){err_str="Failed to encrypt remaining.";gotoerror;}
if(1!=EVP_EncryptUpdate(ctx_,reinterpret_cast<unsignedchar*>(ptr),&len,reinterpret_cast<constunsignedchar*>(ptr),static_cast<int>(dataSize-n))){err_str="Failed to encrypt remaining.";gotoerror;}