Sprog

Hpke.Open Method

Definition

Overloads

Open(Byte[], Byte[], Byte[], Byte[])

public byte[] Open(byte[] encapsulatedSecret, byte[] ciphertext, byte[]? associatedData = default, byte[]? info = default);
member this.Open : byte[] * byte[] * byte[] * byte[] -> byte[]
Public Function Open (encapsulatedSecret As Byte(), ciphertext As Byte(), Optional associatedData As Byte() = Nothing, Optional info As Byte() = Nothing) As Byte()

Parameters

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

Returns

Byte[]

Applies to

Open(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

public byte[] Open(ReadOnlySpan<byte> encapsulatedSecret, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> associatedData = default, ReadOnlySpan<byte> info = default);
member this.Open : ReadOnlySpan<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> byte[]
Public Function Open (encapsulatedSecret As ReadOnlySpan(Of Byte), ciphertext As ReadOnlySpan(Of Byte), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing, Optional info As ReadOnlySpan(Of Byte) = Nothing) As Byte()

Parameters

encapsulatedSecret
ReadOnlySpan<Byte>
ciphertext
ReadOnlySpan<Byte>
associatedData
ReadOnlySpan<Byte>

Returns

Byte[]

Applies to

Open(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

public void Open(ReadOnlySpan<byte> encapsulatedSecret, ReadOnlySpan<byte> ciphertext, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = default, ReadOnlySpan<byte> info = default);
member this.Open : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Sub Open (encapsulatedSecret As ReadOnlySpan(Of Byte), ciphertext As ReadOnlySpan(Of Byte), plaintext As Span(Of Byte), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing, Optional info As ReadOnlySpan(Of Byte) = Nothing)

Parameters

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

Applies to