Aes.EncryptKeyWrapPaddedCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.