public abstract static class DOFSecurityMode.CCM extends DOFSecurityMode implements org.opendof.core.internal.protocol.security.mode.ccm.CCM
DOFSecurityMode.CCM
Constructor and Description |
---|
CCM() |
Modifier and Type | Method and Description |
---|---|
static DOFSecurityMode |
create(DOFCipher.Algorithm algorithm,
DOFCipher.Strength strength,
int macSize,
boolean isEncrypt)
Construct a CCM.
|
getBytes
public static DOFSecurityMode create(DOFCipher.Algorithm algorithm, DOFCipher.Strength strength, int macSize, boolean isEncrypt)
algorithm
- The security cipher algorithm. Must not be null.strength
- The strength of the encryption to use.macSize
- The security CLASS_MAC size. Must be one of the MACSIZE_ constants.isEncrypt
- Whether or not encryption should be used.