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.
31 lines
900 B
31 lines
900 B
8 months ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
|
||
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
||
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
|
||
|
{
|
||
|
public interface RecipientInfoGenerator
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Generate a RecipientInfo object for the given key.
|
||
|
/// </summary>
|
||
|
/// <param name="contentEncryptionKey">
|
||
|
/// A <see cref="KeyParameter"/>
|
||
|
/// </param>
|
||
|
/// <param name="random">
|
||
|
/// A <see cref="SecureRandom"/>
|
||
|
/// </param>
|
||
|
/// <returns>
|
||
|
/// A <see cref="RecipientInfo"/>
|
||
|
/// </returns>
|
||
|
/// <exception cref="GeneralSecurityException"></exception>
|
||
|
RecipientInfo Generate(KeyParameter contentEncryptionKey, SecureRandom random);
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|