-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Microsoft.Bcl.Cryptography/src/PACKAGE.md
- Loading branch information
Showing
1 changed file
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,39 @@ | ||
## About | ||
|
||
<!-- A description of the package and where one can find more documentation --> | ||
|
||
|
||
This library provides some cryptographic types and functionality for .NET Standard and .NET Framework. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support. | ||
|
||
## Key Features | ||
|
||
<!-- The key features of this package --> | ||
|
||
* | ||
* | ||
* | ||
* Enables the use of some cryptographic functionality on older .NET platforms. | ||
|
||
## How to Use | ||
|
||
<!-- A compelling example on how to use this package with code, as well as any specific guidelines for when to use the package --> | ||
This package should only be used by platforms where the desired functionality is not built-in. | ||
|
||
## Main Types | ||
```C# | ||
using System.Security.Cryptography; | ||
|
||
internal static class Program | ||
{ | ||
private static void Main() | ||
{ | ||
byte[] key = LoadKey(); | ||
SP800108HmacCounterKdf kbkdf = new(key, HashAlgorithmName.SHA256); | ||
byte[] derivedKey = kbkdf.DeriveKey("label"u8, "context"u8, derivedKeyLengthInBytes: 32); | ||
} | ||
} | ||
``` | ||
|
||
<!-- The main types provided in this library --> | ||
## Main Types | ||
|
||
The main types provided by this library are: | ||
|
||
* `` | ||
* `` | ||
* `` | ||
* `System.Security.Cryptography.SP800108HmacCounterKdf` | ||
|
||
## Addtional Documentation | ||
|
||
<!-- Links to further documentation. Remove conceptual documentation if not available for the library. --> | ||
|
||
* [Conceptual documentation](https://learn.microsoft.com/en-us/dotnet/standard/serialization/**LIBRARYNAME**/overview) | ||
* [API documentation](https://learn.microsoft.com/en-us/dotnet/api/**LIBRARYNAME**) | ||
|
||
## Related Packages | ||
|
||
<!-- The related packages associated with this package --> | ||
* [API documentation](https://learn.microsoft.com/en-us/dotnet/api/System.Security.Cryptography) | ||
|
||
## Feedback & Contributing | ||
|
||
<!-- How to provide feedback on this package and contribute to it --> | ||
|
||
Microsoft.Bcl.Cryptography is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime). | ||
Microsoft.Bcl.Cryptography is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime). |