Hpke.Seal 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Seal(Byte[], Byte[], Byte[], Byte[], Byte[])
public void Seal(byte[] plaintext, out byte[] encapsulatedSecret, out byte[] ciphertext, byte[]? associatedData = default, byte[]? info = default);
member this.Seal : byte[] * Byte[] * Byte[] * byte[] * byte[] -> unit
Public Sub Seal (plaintext As Byte(), ByRef encapsulatedSecret As Byte(), ByRef ciphertext As Byte(), Optional associatedData As Byte() = Nothing, Optional info As Byte() = Nothing)
參數
- plaintext
- Byte[]
- encapsulatedSecret
- Byte[]
- ciphertext
- Byte[]
- associatedData
- Byte[]
- info
- Byte[]
適用於
Seal(ReadOnlySpan<Byte>, Byte[], Byte[], ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
public void Seal(ReadOnlySpan<byte> plaintext, out byte[] encapsulatedSecret, out byte[] ciphertext, ReadOnlySpan<byte> associatedData = default, ReadOnlySpan<byte> info = default);
member this.Seal : ReadOnlySpan<byte> * Byte[] * Byte[] * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Sub Seal (plaintext As ReadOnlySpan(Of Byte), ByRef encapsulatedSecret As Byte(), ByRef ciphertext As Byte(), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing, Optional info As ReadOnlySpan(Of Byte) = Nothing)
參數
- plaintext
- ReadOnlySpan<Byte>
- encapsulatedSecret
- Byte[]
- ciphertext
- Byte[]
- associatedData
- ReadOnlySpan<Byte>
- info
- ReadOnlySpan<Byte>
適用於
Seal(ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
public void Seal(ReadOnlySpan<byte> plaintext, Span<byte> encapsulatedSecret, Span<byte> ciphertext, ReadOnlySpan<byte> associatedData = default, ReadOnlySpan<byte> info = default);
member this.Seal : ReadOnlySpan<byte> * Span<byte> * Span<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Sub Seal (plaintext As ReadOnlySpan(Of Byte), encapsulatedSecret As Span(Of Byte), ciphertext As Span(Of Byte), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing, Optional info As ReadOnlySpan(Of Byte) = Nothing)
參數
- plaintext
- ReadOnlySpan<Byte>
- associatedData
- ReadOnlySpan<Byte>
- info
- ReadOnlySpan<Byte>