algorithm property
Gets the key algorithm.
Throws an AskarKeyException if the algorithm retrieval fails.
Implementation
KeyAlgorithm get algorithm {
try {
return KeyAlgorithm.fromString(
askarKeyGetAlgorithm(localKeyHandle).getValueOrException(),
);
} catch (e) {
throw AskarKeyException('Failed to get key algorithm: $e');
}
}