<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />

Org.BouncyCastle.Crypto.Engines.AesWrapEngine

public AesWrapEngine()

Create a regular AesWrapEngine specifying the encrypt for wrapping, decrypt for unwrapping.

public AesWrapEngine(bool useReverseDirection)

Create an AESWrapEngine where the underlying cipher is (optionally) set to decrypt for wrapping, encrypt for unwrapping.