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.
38 lines
1.0 KiB
38 lines
1.0 KiB
8 months ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||
|
{
|
||
|
public class IesWithCipherParameters : IesParameters
|
||
|
{
|
||
|
private int cipherKeySize;
|
||
|
|
||
|
/**
|
||
|
* @param derivation the derivation parameter for the KDF function.
|
||
|
* @param encoding the encoding parameter for the KDF function.
|
||
|
* @param macKeySize the size of the MAC key (in bits).
|
||
|
* @param cipherKeySize the size of the associated Cipher key (in bits).
|
||
|
*/
|
||
|
public IesWithCipherParameters(
|
||
|
byte[] derivation,
|
||
|
byte[] encoding,
|
||
|
int macKeySize,
|
||
|
int cipherKeySize) : base(derivation, encoding, macKeySize)
|
||
|
{
|
||
|
this.cipherKeySize = cipherKeySize;
|
||
|
}
|
||
|
|
||
|
public int CipherKeySize
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return cipherKeySize;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|