save method
void
save()
Saves the key to a byte array
The key is saved to serialized and size is updated
Implementation
void save() {
if (obj == nullptr)
{
throw Exception("Cannot save key, as obj is not set");
}
serialized = _c_save_key(obj);
size = _c_save_key_size(obj);
raiseForStatus();
}