get curve name from PKCS#8 PEM private/public key string
PKCS#8 PEM private or public key string
supported EC curve name (P-256/384/521) otherwise returns null
pemtocurve("-----BEGIN PRIVATE...") -> "P-521"pemtocurve("-----BEGIN PUBLIC...") -> null // if RSA key or not supported curve Copy
pemtocurve("-----BEGIN PRIVATE...") -> "P-521"pemtocurve("-----BEGIN PUBLIC...") -> null // if RSA key or not supported curve
get curve name from PKCS#8 PEM private/public key string