AWS.Cryptography.EncryptionSDK
4.0.0
Prefix Reserved
See the version list below for details.
dotnet add package AWS.Cryptography.EncryptionSDK --version 4.0.0
NuGet\Install-Package AWS.Cryptography.EncryptionSDK -Version 4.0.0
<PackageReference Include="AWS.Cryptography.EncryptionSDK" Version="4.0.0" />
paket add AWS.Cryptography.EncryptionSDK --version 4.0.0
#r "nuget: AWS.Cryptography.EncryptionSDK, 4.0.0"
// Install AWS.Cryptography.EncryptionSDK as a Cake Addin #addin nuget:?package=AWS.Cryptography.EncryptionSDK&version=4.0.0 // Install AWS.Cryptography.EncryptionSDK as a Cake Tool #tool nuget:?package=AWS.Cryptography.EncryptionSDK&version=4.0.0
AWS Encryption SDK for .NET
AWS Encryption SDK for .NET
Using the AWS Encryption SDK for .NET
The AWS Encryption SDK is available on NuGet and can referenced from an existing .csproj
through typical ways.
Using the dotnet CLI:
dotnet add <your-project-name>.csproj package AWS.Cryptography.EncryptionSDK
Alternatively, you may directly modify the .csproj
and add the AWS Encryption SDK to PackageReference
ItemGroup
:
<PackageReference Include="AWS.Cryptography.EncryptionSDK" />
The AWS Encryption SDK targets .NET 6.0 and newer on all platforms, and .NET Framework 4.8.0 and newer on Windows only.
Additional setup for macOS only
If you are using macOS then you must install OpenSSL 1.1,
and the OpenSSL 1.1 lib
directory must be on the dynamic linker path at runtime.
Also, if using an M1-based Mac, you must install OpenSSL and the .NET SDK for x86-64.
Please refer to the wiki for detailed instructions.
Building the AWS Encryption SDK for .NET
To build, the AWS Encryption SDK requires the most up to date version of Dafny on your PATH.
The AWS Encryption SDK targets frameworks net48
.
Tests and test vectors target frameworks net6.0
.
In all cases, net48
and newer .NET Framework versions are only supported on Windows.
To build and test the AWS Encryption SDK, you must install the following .NET tools:
- .NET 6.0 or newer
- .NET Framework 4.8.0 or newer (if on Windows)
You will also need to ensure that you fetch all submodules using either git clone --recursive ...
when cloning the repository or git submodule update --init
on an existing clone.
To build all source files into one dll:
dotnet build
(Optional) Set up the AWS Encryption SDK to work with AWS KMS
If you set up the AWS Encryption SDK to use the AWS KMS Keyring, the AWS Encryption SDK will make calls to AWS KMS on your behalf, using the appropriate AWS SDK.
However, you must first set up AWS credentials for use with the AWS SDK. Instructions for setting up AWS credentials are available in the AWS Docs for the AWS SDK for .NET..
Testing the AWS Encryption SDK for .NET
Configure AWS credentials
To run the test suite you must first set up AWS credentials for use with the AWS SDK. This is required in order to run the integration tests, which use a KMS Keyring against a publically accessible KMS CMK.
Instructions for setting up AWS credentials are available in the AWS Docs for the AWS SDK for .NET.
Run the tests
Run the test suite with:
dotnet test
You can see more detail about what test cases are being run by increasing the verbosity:
dotnet test --logger:"console;verbosity=normal"
Run tests on examples, to ensure they are up to date:
dotnet test Examples
Please note that tests and test vectors require internet access and valid AWS credentials, since calls to KMS are made as part of the test workflow.
License
This library is licensed under the Apache 2.0 License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- AWS.Cryptography.MaterialProviders (>= 1.0.0)
- AWSSDK.Core (>= 3.7.103)
- BouncyCastle.Cryptography (>= 2.2.1)
- DafnyRuntime (>= 4.2.0)
- System.Collections.Immutable (>= 1.7.0)
- System.ValueTuple (>= 4.5.0)
-
net6.0
- AWS.Cryptography.MaterialProviders (>= 1.0.0)
- AWSSDK.Core (>= 3.7.103)
- BouncyCastle.Cryptography (>= 2.2.1)
- DafnyRuntime (>= 4.2.0)
- System.Collections.Immutable (>= 1.7.0)
- System.ValueTuple (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.