free method

void free()

Frees the key.

Throws an AskarKeyException if the key fails to free.

Implementation

void free() {
  try {
    askarKeyFree(this);
  } catch (e) {
    throw AskarKeyException('Failed to free key: $e');
  }
}