getNative method

Pointer<uECC_Curve_t> getNative(
  1. MicroEcc ecc
)

Implementation

Pointer<uECC_Curve_t> getNative(MicroEcc ecc) {
  switch (_curveId) {
    case 1:
      return ecc.uECC_secp160r1();
    case 2:
      return ecc.uECC_secp192r1();
    case 3:
      return ecc.uECC_secp224r1();
    case 4:
      return ecc.uECC_secp256r1();
    case 5:
      return ecc.uECC_secp256k1();
  }
  throw UnimplementedError();
}