void |
Attribute.addAttribute(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value,
int where) |
Set an attribute in the COSE object.
|
void |
Attribute.addAttribute(HeaderKeys label,
byte[] value,
int where) |
Set an attribute in the COSE object.
|
void |
Attribute.addAttribute(HeaderKeys label,
com.upokecenter.cbor.CBORObject value,
int where) |
Set an attribute in the COSE object.
|
void |
Attribute.AddProtected(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value) |
Deprecated.
|
void |
Attribute.AddProtected(HeaderKeys label,
byte[] value) |
Deprecated.
|
void |
Attribute.AddProtected(HeaderKeys label,
com.upokecenter.cbor.CBORObject value) |
Deprecated.
|
void |
MACMessage.addRecipient(Recipient recipient) |
|
void |
Attribute.AddUnprotected(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value) |
Deprecated.
|
void |
Attribute.AddUnprotected(HeaderKeys label,
byte[] value) |
Deprecated.
|
void |
Attribute.AddUnprotected(HeaderKeys label,
com.upokecenter.cbor.CBORObject value) |
Deprecated.
|
protected byte[] |
MacCommon.AES_CBC_MAC(AlgorithmID alg,
byte[] rgbKey) |
|
static byte[] |
ASN1.AlgorithmIdentifier(byte[] oid,
byte[] params) |
|
PrivateKey |
OneKey.AsPrivateKey() |
Return a java.security.PrivateKey that is the same as the OneKey key
|
PublicKey |
OneKey.AsPublicKey() |
Return a java.security.PublicKey that is the same as the OneKey key
|
void |
MAC0Message.Create(byte[] rgbKey) |
|
void |
MACMessage.Create() |
|
protected void |
MacCommon.CreateWithKey(byte[] rgbKey) |
|
static ASN1.TagValue |
ASN1.DecodeCompound(int offset,
byte[] encoding) |
Decode an array of bytes which is supposed to be an ASN.1 encoded structure.
|
void |
CounterSign.DecodeFromBytes(byte[] rgb) |
|
static Message |
Message.DecodeFromBytes(byte[] rgbData) |
Decode a COSE message object.
|
static Message |
Message.DecodeFromBytes(byte[] rgbData,
MessageTag defaultTag) |
Decode a COSE message object.
|
void |
CounterSign1.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject cbor) |
|
void |
Encrypt0Message.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
|
void |
EncryptMessage.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
|
void |
MAC0Message.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
|
void |
MACMessage.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
|
protected abstract void |
Message.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject messageObject) |
Given a CBOR tree, parse the message.
|
void |
Recipient.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject objRecipient) |
|
protected void |
Sign1Message.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject messageObject) |
Internal function used in creating a Sign1Message object from a byte string.
|
protected void |
Signer.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
Internal function used in creating a Sign1Message object from a byte string.
|
protected void |
SignMessage.DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
Internal function used in creating a SignMessage object from a byte string.
|
static ArrayList<ASN1.TagValue> |
ASN1.DecodePKCS8EC(ArrayList<ASN1.TagValue> pkcs8) |
Decode an EC PKCS#8 private key octet string
|
static ArrayList<ASN1.TagValue> |
ASN1.DecodePKCS8RSA(ArrayList<ASN1.TagValue> pkcs8) |
Decode a RSA PKCS#8 private key octet string
|
static ArrayList<ASN1.TagValue> |
ASN1.DecodePKCS8Structure(byte[] encodedData) |
Decode a PKCS#8 private key structure, leaving the private key as an octetstring.
|
static ArrayList<ASN1.TagValue> |
ASN1.DecodeSubjectPublicKeyInfo(byte[] encoding) |
|
byte[] |
Encrypt0Message.decrypt(byte[] rgbKey) |
Decrypt the message using the passed in key.
|
byte[] |
EncryptMessage.decrypt(Recipient whom) |
|
byte[] |
Recipient.decrypt(AlgorithmID algCEK,
Recipient recip) |
|
protected byte[] |
EncryptCommon.decryptWithKey(byte[] rgbKey) |
|
protected com.upokecenter.cbor.CBORObject |
Encrypt0Message.EncodeCBORObject() |
Internal function used to construct the CBORObject
|
protected com.upokecenter.cbor.CBORObject |
EncryptMessage.EncodeCBORObject() |
|
protected com.upokecenter.cbor.CBORObject |
MAC0Message.EncodeCBORObject() |
|
protected com.upokecenter.cbor.CBORObject |
MACMessage.EncodeCBORObject() |
|
protected abstract com.upokecenter.cbor.CBORObject |
Message.EncodeCBORObject() |
Encode the COSE message object to a CBORObject tree.
|
protected com.upokecenter.cbor.CBORObject |
Recipient.EncodeCBORObject() |
|
protected com.upokecenter.cbor.CBORObject |
Sign1Message.EncodeCBORObject() |
Internal function used to create a serialization of a COSE_Sign1 message
|
protected com.upokecenter.cbor.CBORObject |
SignMessage.EncodeCBORObject() |
Internal function used to create a serialization of a COSE_Sign message
|
static byte[] |
ASN1.EncodeEcPrivateKey(byte[] oid,
byte[] keyBytes,
byte[] spki) |
Encode an EC Private key
|
static byte[] |
ASN1.EncodeOctetString(byte[] data) |
|
static byte[] |
ASN1.EncodePKCS8(byte[] algorithm,
byte[] keyBytes,
byte[] spki) |
Encode a private key into a PKCS#8 private key structure.
|
static byte[] |
ASN1.EncodeSignature(byte[] r,
byte[] s) |
|
static byte[] |
ASN1.EncodeSubjectPublicKeyInfo(byte[] algorithm,
byte[] keyBytes) |
Encode a subject public key info structure from an OID and the data bytes
for the key
This function assumes that we are encoding an EC Public key.d
|
byte[] |
CounterSign.EncodeToBytes() |
|
byte[] |
Message.EncodeToBytes() |
Encode the message to a byte array.
|
com.upokecenter.cbor.CBORObject |
CounterSign1.EncodeToCBORObject() |
|
com.upokecenter.cbor.CBORObject |
Message.EncodeToCBORObject() |
Encode the COSE message object to a CBORObject tree.
|
protected com.upokecenter.cbor.CBORObject |
Signer.EncodeToCBORObject() |
Internal function used to create a serialization of a COSE_Sign1 message
|
void |
Encrypt0Message.encrypt(byte[] rgbKey) |
Encrypt the message using the passed in key.
|
void |
EncryptMessage.encrypt() |
|
void |
Recipient.encrypt() |
|
static AlgorithmID |
AlgorithmID.FromCBOR(com.upokecenter.cbor.CBORObject obj) |
|
static MessageTag |
MessageTag.FromInt(int i) |
|
static OneKey |
OneKey.generateKey(com.upokecenter.cbor.CBORObject curve) |
|
static OneKey |
OneKey.generateKey(AlgorithmID algorithm) |
|
static OneKey |
OneKey.generateKey(AlgorithmID algorithm,
String parameters) |
Generate a random key pair based on the given algorithm.
|
com.upokecenter.cbor.CBORObject |
OneKey.get(com.upokecenter.cbor.CBORObject keyValue) |
|
ECGenParameterSpec |
OneKey.GetCurve2() |
|
byte[] |
EncryptCommon.getEncryptedContent() |
Used to obtain the encrypted content for the cases where detached content
is requested.
|
byte[] |
Recipient.getKey(AlgorithmID algCEK) |
|
int |
Recipient.getRecipientType() |
|
protected void |
EncryptCommon.ProcessCounterSignatures() |
|
protected void |
Message.ProcessCounterSignatures() |
|
protected void |
Signer.ProcessCounterSignatures() |
|
void |
Attribute.removeAttribute(com.upokecenter.cbor.CBORObject label) |
Remove an attribute from the set of all attribute maps.
|
void |
Attribute.removeAttribute(HeaderKeys label) |
Remove an attribute from the set of all attribute maps.
|
void |
Signer.setKey(OneKey keyIn) |
Set a key object on a signer
|
void |
Recipient.SetKey(com.upokecenter.cbor.CBORObject key) |
Deprecated.
|
void |
Recipient.SetSenderKey(com.upokecenter.cbor.CBORObject key) |
Deprecated.
|
void |
Sign1Message.sign(OneKey key) |
Create a signature for the message if one does not exist.
|
void |
Signer.sign(byte[] rgbBodyProtected,
byte[] rgbContent) |
|
void |
SignMessage.sign() |
Causes a signature to be created for every signer that does not already have one.
|
void |
CounterSign.Sign(Message message) |
|
boolean |
EncryptCommon.validate(CounterSign countersignature) |
|
boolean |
EncryptCommon.validate(CounterSign1 countersignature) |
|
boolean |
Message.validate(CounterSign countersignature) |
|
boolean |
Message.validate(CounterSign1 countersignature) |
|
boolean |
Sign1Message.validate(OneKey cnKey) |
Validate the signature on the message using the passed in key.
|
boolean |
Signer.validate(byte[] rgbBodyProtected,
byte[] rgbContent) |
|
boolean |
Signer.validate(CounterSign countersignature) |
|
boolean |
Signer.validate(CounterSign1 countersignature) |
|
boolean |
SignMessage.validate(Signer signerToUse) |
Validate the signature on a message for a specific signer.
|
boolean |
CounterSign.Validate(Message message) |
|
boolean |
MAC0Message.Validate(byte[] rgbKey) |
|
protected boolean |
MacCommon.Validate(byte[] rgbKey) |
|
boolean |
MACMessage.Validate(Recipient recipientToUse) |
|