public abstract class MacCommon extends Message
| Modifier and Type | Field and Description |
|---|---|
protected SecureRandom |
random |
protected byte[] |
rgbTag |
protected String |
strContext |
emitContent, emitTag, messageTag, rgbContentDO_NOT_SEND, DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, PROTECTED, ProtectedAttributes, rgbProtected, UNPROTECTED, UnprotectedAttributes| Modifier | Constructor and Description |
|---|---|
protected |
MacCommon() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
AES_CBC_MAC(AlgorithmID alg,
byte[] rgbKey) |
protected void |
CreateWithKey(byte[] rgbKey) |
protected boolean |
Validate(byte[] rgbKey) |
DecodeFromBytes, DecodeFromBytes, DecodeFromCBORObject, EncodeCBORObject, EncodeToBytes, EncodeToCBORObject, GetContent, HasContent, SetContent, SetContentaddAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, findAttribute, findAttribute, getDoNotSendAttributes, getExternal, getProtectedAttributes, getUnprotectedAttributes, removeAttribute, removeAttribute, setExternalprotected byte[] rgbTag
protected String strContext
protected SecureRandom random
protected void CreateWithKey(byte[] rgbKey)
throws CoseException
CoseExceptionprotected boolean Validate(byte[] rgbKey)
throws CoseException
CoseExceptionprotected byte[] AES_CBC_MAC(AlgorithmID alg, byte[] rgbKey) throws CoseException
CoseExceptionCOSE for Java documentation, generatedin 2016.