org.webdocwf.util.smime.cms
Class RC2CBCParameter

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERSequencePr
              |
              +--org.webdocwf.util.smime.cms.RC2CBCParameter

public class RC2CBCParameter
extends DERSequencePr

RC2CBCParameter is parameter used in Content Encryption Algorithm Identifier in CMS object for encrypted message, for RC2_CBC algorithms. Parameter for this algorithm is made from initialization vector and key length in bits.

RC2CBCParameter ::= SEQUENCE {
rc2ParameterVersion INTEGER,
iv OCTET STRING }

rc2ParameterVersion ::= INTEGER

IV ::= OCTET STRING -- exactly 8 octets


Constructor Summary
RC2CBCParameter(int lenKey0, byte[] iv0)
          Constructor takes key length in bits and IV (Initialization Vector) as byte array
 
Methods inherited from class org.webdocwf.util.smime.der.DERSequencePr
addContent
 
Methods inherited from class org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, getDEREncoded, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RC2CBCParameter

public RC2CBCParameter(int lenKey0,
                       byte[] iv0)
                throws SMIMEException
Constructor takes key length in bits and IV (Initialization Vector) as byte array
Parameters:
lenKey0 - key length
iv0 - Initialization Vector
Throws:
SMIMEException - if Initialization Vector - IV is not 8 bytes long or key size is not 40, 64 or 128. Also, exception could be thrown in super class constructor or in super class addContent method.


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.