check identity buffer size
populate session keys