toAlgorithmSpec method
Implementation
AlgorithmSpec toAlgorithmSpec() {
switch (this) {
case 'RSAES_PKCS1_V1_5':
return AlgorithmSpec.rsaesPkcs1V1_5;
case 'RSAES_OAEP_SHA_1':
return AlgorithmSpec.rsaesOaepSha_1;
case 'RSAES_OAEP_SHA_256':
return AlgorithmSpec.rsaesOaepSha_256;
}
throw Exception('$this is not known in enum AlgorithmSpec');
}