operations to avoid overhead of multiple memory allocations*/
ctx->buffer = sqlcipher_malloc(size);
if(ctx->buffer == NULL) return SQLCIPHER_NOMEM;
+ memset(ctx->buffer, 0, size);
return SQLCIPHER_OK;
}
ctx->kdf_salt_sz = FILE_HEADER_SZ;
ctx->kdf_salt = sqlcipher_malloc(ctx->kdf_salt_sz);
if(ctx->kdf_salt == NULL) return SQLCIPHER_NOMEM;
+ memset(ctx->kdf_salt, 0, ctx->kdf_salt_sz);
/* allocate space for separate hmac salt data. We want the
HMAC derivation salt to be different than the encryption