You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
using System;
|
|
|
|
using Org.BouncyCastle.Asn1.X509;
|
|
|
|
namespace Org.BouncyCastle.Crypto.Operators
|
|
{
|
|
public class GenericKey
|
|
{
|
|
private readonly AlgorithmIdentifier algorithmIdentifier;
|
|
private readonly object representation;
|
|
|
|
public GenericKey(object representation)
|
|
{
|
|
this.algorithmIdentifier = null;
|
|
this.representation = representation;
|
|
}
|
|
|
|
public GenericKey(AlgorithmIdentifier algorithmIdentifier, byte[] representation)
|
|
{
|
|
this.algorithmIdentifier = algorithmIdentifier;
|
|
this.representation = representation;
|
|
}
|
|
|
|
public GenericKey(AlgorithmIdentifier algorithmIdentifier, object representation)
|
|
{
|
|
this.algorithmIdentifier = algorithmIdentifier;
|
|
this.representation = representation;
|
|
}
|
|
|
|
public AlgorithmIdentifier AlgorithmIdentifier
|
|
{
|
|
get { return algorithmIdentifier; }
|
|
}
|
|
|
|
public object Representation
|
|
{
|
|
get { return representation; }
|
|
}
|
|
}
|
|
}
|
|
|