|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cms.crypto.XERParameterGenerator
public class XERParameterGenerator
Generates ASN.1 "open type" algorithm parameters values encoded using the Canonical XML Encoding Rules (CXER) of ASN.1.
AES algorithm parameter definitions
The ECB algorithms have no parameters, not even NULL. The
CBC and OFB algorthms have parameters of ASN.1 type AES-IV,
and the CFB algoritms have parameters of type CFBParameters.
ASN.1 type AES-IV is defined as
AES-IV ::= OCTET STRING (SIZE(16))and the XML encoding of a value of this ASN.1 type is tagged as "<AES-IV> ... </AES-IV>".
ASN.1 type CFBParameters is defined as
CFBParameters ::= SEQUENCE {
aes-IV AES-IV,
numberOfBits NumberOfBits
}
NumberOfBits ::= INTEGER(1..128)
TDES algorithm parameter definitions
ASN.1 type IV is defined as
IV ::= OCTET STRING (SIZE(8))
and the XML encoding of a value of this ASN.1 type is tagged as
"<IV> ... </IV>".
| Constructor Summary | |
|---|---|
XERParameterGenerator(CXERCodec codec)
Constructor for XERParameterGenerator with
ASN.1 encoding rules parameter. |
|
| Method Summary | |
|---|---|
java.security.spec.AlgorithmParameterSpec |
get3DesCbcParameters(ASN1OpenType parameters)
Gets 3DES CBC encoded open type parameters. |
java.security.spec.AlgorithmParameterSpec |
getAes128CbcParameters(ASN1OpenType parameters)
Gets the ASN.1 "open type" parameters for the 128-bit AES in CBC mode algorithm encoded using CXER. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XERParameterGenerator(CXERCodec codec)
XERParameterGenerator with
ASN.1 encoding rules parameter.
codec - ASN.1 encoding rules| Method Detail |
|---|
public java.security.spec.AlgorithmParameterSpec getAes128CbcParameters(ASN1OpenType parameters)
throws CryptoException
getAes128CbcParameters in interface ParameterGeneratorparameters - an ASN.1 "open type"
CryptoException
public java.security.spec.AlgorithmParameterSpec get3DesCbcParameters(ASN1OpenType parameters)
throws CryptoException
get3DesCbcParameters in interface ParameterGeneratorparameters - an open type encoding of a value of type IV
CryptoException
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||