getKdf function
Returns a Kdf implementation for the given choice
.
Throws UnsupportedAlgorithmException if the KDF algorithm is not supported.
Implementation
Kdf getKdf(final KdfChoice choice) {
final kdf = _kdfChoiceToAlgorithm[choice];
if (kdf == null) {
throw UnsupportedAlgorithmException('KDF algorithm $choice is not supported.');
}
return kdf;
}