private function getCurve($oid) { $curves = $this->getSupportedCurves(); $curve = array_search($oid, $curves, true); Assertion::string($curve, 'Unsupported OID'); return $curve; }