Ec2Key
class Ec2Key extends CoseKey (View source)
Constants
COSE_KTY_EC2 |
EC2 key type |
COSE_KTY_RSA |
RSA key type |
COSE_KEY_PARAM_KTY |
Identification of the key type |
COSE_KEY_PARAM_KID |
Key identification value |
COSE_KEY_PARAM_ALG |
Key usage restriction to this algorithm |
CURVE_P256 |
NIST P-256 also known as secp256r1 |
CURVE_P384 |
NIST P-256 also known as secp256r1 |
CURVE_P521 |
NIST P-521 also known as secp256r1 |
SUPPORTED_CURVES |
|
KTP_CRV |
EC identifier |
KTP_X |
X-coordinate |
KTP_Y |
Y-coordinate |
SUPPORTED_ALGORITHMS |
|
CURVE_KEY_LENGTH |
|
CURVE_OID |
|
Methods
static
from CoseKey
getCbor()
No description
algorithmSupported(int $algorithm)
No description
static
fromCborData(array $data)
No description
getX()
No description
getY()
No description
int
getCurve()
No description
asPEM()
No description
getUncompressedCoordinates()
No description
Details
at line 91
__construct(ByteBuffer $x, ByteBuffer $y, int $curve, int $algorithm)
CoseKey constructor.