Edit

Share via


Aes.EncryptKeyWrapPaddedCore Method

Definition

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

protected:
 virtual void EncryptKeyWrapPaddedCore(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
protected virtual void EncryptKeyWrapPaddedCore(ReadOnlySpan<byte> source, Span<byte> destination);
abstract member EncryptKeyWrapPaddedCore : ReadOnlySpan<byte> * Span<byte> -> unit
override this.EncryptKeyWrapPaddedCore : ReadOnlySpan<byte> * Span<byte> -> unit
Protected Overridable Sub EncryptKeyWrapPaddedCore (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

Parameters

source
ReadOnlySpan<Byte>

The data to wrap.

destination
Span<Byte>

The buffer to receive the wrapped data.

Exceptions

An error occurred during the cryptographic operation.

Remarks

When called by the base class, source is pre-validated to not be empty.

When called by the base class, destination is pre-validated to be exactly the length returned by GetKeyWrapPaddedLength(Int32) for the given input.

Applies to