XCMS Toolkit

com.cms.crypto
Class DERParameterGenerator

java.lang.Object
  extended by com.cms.crypto.DERParameterGenerator
All Implemented Interfaces:
ParameterGenerator

public class DERParameterGenerator
extends java.lang.Object
implements ParameterGenerator

Generate ASN.1 "open type" algorithm parameters components encoded using the Distinguished Encoding Rules (DER) of ASN.1.

Version:
1.00 - 2006/01/24
Author:
support@phillipgriffin.com

Constructor Summary
DERParameterGenerator(DERCodec codec)
          Constructor for DERParameterGenerator with ASN.1 encoding rules parameter.
 
Method Summary
 java.security.spec.AlgorithmParameterSpec get3DesCbcParameters(ASN1OpenType parameters)
          Gets the encoded open type parameters for the 3DES CBC algorithm.
 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 DER.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DERParameterGenerator

public DERParameterGenerator(DERCodec codec)
Constructor for DERParameterGenerator with ASN.1 encoding rules parameter.

Parameters:
codec - ASN.1 encoding rules
Method Detail

getAes128CbcParameters

public java.security.spec.AlgorithmParameterSpec getAes128CbcParameters(ASN1OpenType parameters)
                                                                 throws CryptoException
Gets the ASN.1 "open type" parameters for the 128-bit AES in CBC mode algorithm encoded using DER.

Specified by:
getAes128CbcParameters in interface ParameterGenerator
Parameters:
parameters - an ASN.1 "open type"
Returns:
128-bit AES with CBC algorithm parameters
Throws:
CryptoException

get3DesCbcParameters

public java.security.spec.AlgorithmParameterSpec get3DesCbcParameters(ASN1OpenType parameters)
                                                               throws CryptoException
Gets the encoded open type parameters for the 3DES CBC algorithm.

Specified by:
get3DesCbcParameters in interface ParameterGenerator
Parameters:
parameters - an ASN.1 open type, the value of some ASN.1 type in its encoded format
Throws:
CryptoException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.