Modify EVP cipher behaviour in a similar way