ChaCha20Poly1305 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示与 Poly1305 验证器组合模式下的 ChaCha20 流密码一起使用的对称密钥。
public ref class ChaCha20Poly1305 sealed : IDisposable[System.Runtime.Versioning.SupportedOSPlatform("ios13.0")]
[System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public sealed class ChaCha20Poly1305 : IDisposable[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public sealed class ChaCha20Poly1305 : IDisposable[<System.Runtime.Versioning.SupportedOSPlatform("ios13.0")>]
[<System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ChaCha20Poly1305 = class
    interface IDisposable[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ChaCha20Poly1305 = class
    interface IDisposablePublic NotInheritable Class ChaCha20Poly1305
Implements IDisposable- 继承
- 
				ChaCha20Poly1305
- 属性
- 实现
构造函数
| ChaCha20Poly1305(Byte[]) | 使用提供的键初始化 ChaCha20Poly1305 类的新实例。 | 
| ChaCha20Poly1305(ReadOnlySpan<Byte>) | 使用提供的键初始化 ChaCha20Poly1305 类的新实例。 | 
属性
| IsSupported | 获取一个值,该值指示当前平台上是否支持该算法。 | 
方法
| Decrypt(Byte[], Byte[], Byte[], Byte[], Byte[]) | 如果可以验证身份验证标记,将密码文本解密到提供的目标缓冲区。 | 
| Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) | 如果可以验证身份验证标记,将密码文本解密到提供的目标缓冲区。 | 
| Dispose() | 执行与释放、释放或重置非托管资源关联的应用程序定义任务。 | 
| Encrypt(Byte[], Byte[], Byte[], Byte[], Byte[]) | 将纯文本加密到密码文本目标缓冲区,并将身份验证标记生成到单独的缓冲区中。 | 
| Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>) | 将纯文本加密到密码文本目标缓冲区,并将身份验证标记生成到单独的缓冲区中。 | 
| Equals(Object) | 确定指定的对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 用作默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object的浅表副本。(继承自 Object) | 
| ToString() | 返回一个表示当前对象的字符串。(继承自 Object) |