AesCcm 类
定义
表示一个高级加密标准 (AES) 密钥,该密钥用于采用 CBC-MAC (CCM) 操作模式的计数器。Represents an Advanced Encryption Standard (AES) key to be used with the Counter with CBC-MAC (CCM) mode of operation.
public ref class AesCcm sealed : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public sealed class AesCcm : IDisposable
public sealed class AesCcm : IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type AesCcm = class
interface IDisposable
type AesCcm = class
interface IDisposable
Public NotInheritable Class AesCcm
Implements IDisposable
- 继承
-
AesCcm
- 属性
- 实现
构造函数
| AesCcm(Byte[]) |
使用所提供的密钥来初始化 AesCcm 类的一个新实例。Initializes a new instance of the AesCcm class with a provided key. |
| AesCcm(ReadOnlySpan<Byte>) |
使用所提供的密钥来初始化 AesCcm 类的一个新实例。Initializes a new instance of the AesCcm class with a provided key. |
属性
| NonceByteSizes |
获取此实例支持的 nonce 大小(以字节为单位)。Gets the nonce sizes, in bytes, supported by this instance. |
| TagByteSizes |
获取此实例支持的标记大小(以字节为单位)。Gets the tag sizes, in bytes, supported by this instance. |
方法
| Decrypt(Byte[], Byte[], Byte[], Byte[], Byte[]) |
如果可验证身份验证标记,则将已加密文本解密到提供的目标缓冲区中。Decrypts the ciphertext into the provided destination buffer if the authentication tag can be validated. |
| Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) |
如果可验证身份验证标记,则将已加密文本解密到提供的目标缓冲区中。Decrypts the ciphertext into the provided destination buffer if the authentication tag can be validated. |
| Dispose() |
释放 AesCcm 类的当前实例使用的资源。Releases the resources used by the current instance of the AesCcm class. |
| Encrypt(Byte[], Byte[], Byte[], Byte[], Byte[]) |
将纯文本加密到已加密文本目标缓冲区,并将身份验证标签生成到单独的缓冲区中。Encrypts the plaintext into the ciphertext destination buffer and generates the authentication tag into a separate buffer. |
| Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>) |
将纯文本加密到已加密文本目标缓冲区,并将身份验证标签生成到单独的缓冲区中。Encrypts the plaintext into the ciphertext destination buffer and generates the authentication tag into a separate buffer. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |