[native] update C++ crypto module to handle session version
Summary:
Updates in-memory CryptoModule to work with session versions.
Depends on D11580
Test Plan: Tested in TBD
Reviewers: bartek, marcin, tomek
Reviewed By: marcin
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11582