*/
public ASN1Primitive toASN1Primitive()
{
if (value instanceof EncryptedKey)
{
return new DERTaggedObject(true, encryptedPrivKey, value); // choice
}
if (value instanceof ASN1OctetString)
{
return new DERTaggedObject(false, keyGenParameters, value);
}
return new DERTaggedObject(false, archiveRemGenPrivKey, value);
}