1 /*
2 * Title: S/MIME Project
3 * Description: S/MIME email sending capabilities
4 * @Author Vladimir Radisic
5 * @Version 2.0.1
6 */
7
8
9 package org.webdocwf.util.smime.cms;
10
11
12 import org.webdocwf.util.smime.exception.SMIMEException;
13 import org.webdocwf.util.smime.der.DEROctetString;
14
15
16 /***
17 * DESede3CBCParameter is parameter used in Content Encryption Algorithm
18 * Identifier in CMS object for encrypted message, for DES_EDE3_CBC and DES
19 * algorithms. Parameter for those algorithms is made only from initialization
20 * vector. Key length is not important.<BR>
21 * <BR>
22 * DESede3CBCParameter ::= IV<BR>
23 * <BR>
24 * IV ::= OCTET STRING -- exactly 8 octets<BR>
25 */
26 public class DESede3CBCParameter extends DEROctetString {
27
28 /***
29 * Constructor takes IV (Initialization Vector) as byte array
30 * @param iv0 Initialization Vector
31 * @exception SMIMEException if Initialization Vector - IV is not 8 bytes long.
32 * Also, it can be thrown from super class constructor.
33 */
34 public DESede3CBCParameter(byte[] iv0) throws SMIMEException {
35 super(iv0);
36 if (iv0.length != 8)
37 throw new SMIMEException(this, 1012);
38 }
39 }
40
This page was automatically generated by Maven