asCoseKey

The value of a data item containing a COSE_Key.

This is equivalent to calling CoseKey.fromDataItem.

Throws

if not the data item isn't a COSE_Key.