Edit

Share via


Aes.EncryptKeyWrapPadded Method

Definition

Overloads

EncryptKeyWrapPadded(Byte[])

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm.

EncryptKeyWrapPadded(ReadOnlySpan<Byte>)

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm.

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

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm, writing the result to a specified buffer.

EncryptKeyWrapPadded(Byte[])

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm.

public:
 cli::array <System::Byte> ^ EncryptKeyWrapPadded(cli::array <System::Byte> ^ plaintext);
public byte[] EncryptKeyWrapPadded(byte[] plaintext);
member this.EncryptKeyWrapPadded : byte[] -> byte[]
Public Function EncryptKeyWrapPadded (plaintext As Byte()) As Byte()

Parameters

plaintext
Byte[]

The data to wrap.

Returns

Byte[]

The wrapped data.

Exceptions

plaintext is null or empty.

An error occurred during the cryptographic operation.

Applies to

EncryptKeyWrapPadded(ReadOnlySpan<Byte>)

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm.

public:
 cli::array <System::Byte> ^ EncryptKeyWrapPadded(ReadOnlySpan<System::Byte> plaintext);
public byte[] EncryptKeyWrapPadded(ReadOnlySpan<byte> plaintext);
member this.EncryptKeyWrapPadded : ReadOnlySpan<byte> -> byte[]
Public Function EncryptKeyWrapPadded (plaintext As ReadOnlySpan(Of Byte)) As Byte()

Parameters

plaintext
ReadOnlySpan<Byte>

The data to wrap.

Returns

Byte[]

The wrapped data.

Exceptions

plaintext is empty.

An error occurred during the cryptographic operation.

Applies to

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

Wraps a key using the IETF RFC 5649 AES Key Wrap with Padding algorithm, writing the result to a specified buffer.

public:
 void EncryptKeyWrapPadded(ReadOnlySpan<System::Byte> plaintext, Span<System::Byte> destination);
public void EncryptKeyWrapPadded(ReadOnlySpan<byte> plaintext, Span<byte> destination);
member this.EncryptKeyWrapPadded : ReadOnlySpan<byte> * Span<byte> -> unit
Public Sub EncryptKeyWrapPadded (plaintext As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

Parameters

plaintext
ReadOnlySpan<Byte>

The data to wrap.

destination
Span<Byte>

The buffer to receive the wrapped data.

Exceptions

plaintext is empty.

-or-

destination is not precisely sized.

plaintext and destination overlap.

-or-

An error occurred during the cryptographic operation.

See also

Applies to