- Initial commit
This commit is contained in:
44
Runtime/3rdParty/BouncyCastle/crypto/operators/GenericKey.cs
vendored
Normal file
44
Runtime/3rdParty/BouncyCastle/crypto/operators/GenericKey.cs
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user