Sprog

Hpke.Seal Method

Definition

Overloads

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)

Parameters

plaintext
Byte[]
encapsulatedSecret
Byte[]
ciphertext
Byte[]
associatedData
Byte[]
info
Byte[]

Applies to

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)

Parameters

plaintext
ReadOnlySpan<Byte>
encapsulatedSecret
Byte[]
ciphertext
Byte[]
associatedData
ReadOnlySpan<Byte>

Applies to

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)

Parameters

plaintext
ReadOnlySpan<Byte>
encapsulatedSecret
Span<Byte>
ciphertext
Span<Byte>
associatedData
ReadOnlySpan<Byte>

Applies to