Curve.fromValue constructor
Implementation
factory Curve.fromValue(int value) {
switch (value) {
case 1:
return p224;
case 2:
return p256;
case 3:
return p384;
case 4:
return p521;
case 20:
return sm2p256v1;
case 25:
return ed25519;
default:
throw ArgumentError('Unsupported label');
}
}