abstract class 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

Methods

__construct(int $algorithm)

CoseKey constructor.

static 
parseCbor(ByteBuffer $buffer, int $offset = 0, int $endOffset = null)

No description

getCbor()

No description

int
getAlgorithm()

No description

verifySignature(ByteBuffer $data, ByteBuffer $signature)

No description

algorithmSupported(int $algorithm)

No description

Details

__construct(int $algorithm)

CoseKey constructor.

Parameters

int $algorithm IANA COSE Algorithm

See also

https://www.iana.org/assignments/cose/cose.xhtml#algorithms

static parseCbor(ByteBuffer $buffer, int $offset = 0, int $endOffset = null)

Parameters

ByteBuffer $buffer
int $offset
int $endOffset

abstract getCbor()

int getAlgorithm()

Return Value

int

abstract verifySignature(ByteBuffer $data, ByteBuffer $signature)

Parameters

ByteBuffer $data
ByteBuffer $signature

abstract protected algorithmSupported(int $algorithm)

Parameters

int $algorithm