/* Digest Algorithm Identifier */
add(dAlg_);
/* Authenticated Attributes */
auth_ = new Attributes();
add(new ASN1TaggedType(0, auth_, false, true));
/* Digest Encryption Algorithm Identifier */
add(cAlg_);
/* Encrypted Digest */
edig_ = new ASN1OctetString();
add(edig_);
/* Unauthenticated Attributes */
attr_ = new Attributes();
add(new ASN1TaggedType(1, attr_, false, true));
algorithm_ = algorithm;
if (params != null) {
try {
spec_ = params.getParameterSpec(AlgorithmParameterSpec.class);