Aes.EncryptKeyWrapPadded 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.
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
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
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.
Exceptions
plaintext and destination overlap.
-or-
An error occurred during the cryptographic operation.