HMAC.HashCore 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
HashCore(ReadOnlySpan<Byte>) |
将写入对象的数据路由到 HMAC 算法以计算 HMAC 。 |
HashCore(Byte[], Int32, Int32) |
在派生类中重写时,将写入对象的数据路由到 HMAC 算法以计算 HMAC 值。 |
- Source:
- HMAC.cs
- Source:
- HMAC.cs
- Source:
- HMAC.cs
将写入对象的数据路由到 HMAC 算法以计算 HMAC 。
protected:
override void HashCore(ReadOnlySpan<System::Byte> source);
C#
protected override void HashCore(ReadOnlySpan<byte> source);
override this.HashCore : ReadOnlySpan<byte> -> unit
Protected Overrides Sub HashCore (source As ReadOnlySpan(Of Byte))
参数
- source
- ReadOnlySpan<Byte>
要计算其 HMAC 代码的输入。
例外
在所有情况下。
注解
此方法的默认实现会引发 , PlatformNotSupportedException 因为 HMAC 没有托管实现。
派生类型必须重写此方法。
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
- Source:
- HMAC.cs
- Source:
- HMAC.cs
- Source:
- HMAC.cs
在派生类中重写时,将写入对象的数据路由到 HMAC 算法以计算 HMAC 值。
protected:
override void HashCore(cli::array <System::Byte> ^ rgb, int ib, int cb);
C#
protected override void HashCore(byte[] rgb, int ib, int cb);
override this.HashCore : byte[] * int * int -> unit
Protected Overrides Sub HashCore (rgb As Byte(), ib As Integer, cb As Integer)
参数
- rgb
- Byte[]
输入数据。
- ib
- Int32
字节数组中的偏移量,从该位置开始使用数据。
- cb
- Int32
数组中用作数据的字节数。
注解
应用程序代码不调用此方法。
另请参阅
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.3, 1.4, 1.6, 2.0, 2.1 |