Table of Contents

AesKeyOptions Constructor

Definition

Namespace
Cuemon.Security.Cryptography
Assemblies
Cuemon.Security.Cryptography.dll
Source
src/Cuemon.Security.Cryptography/AesKeyOptions.cs

AesKeyOptions()

Initializes a new instance of the AesKeyOptions class.

public AesKeyOptions()

Remarks

The following table shows the initial property values for an instance of AesKeyOptions.

PropertyInitial Value
RandomStringProvider
    <pre><code class="lang-csharp">size =>

{ if (size > AesSize.Aes256 || size < AesSize.Aes128) { throw new InvalidEnumArgumentException(nameof(size), (int)size, typeof(AesSize)); } var characters = Alphanumeric.Letters + Alphanumeric.PunctuationMarks; switch (size) { case AesSize.Aes128: return Generate.RandomString(128 / ByteUnit.BitsPerByte, characters); case AesSize.Aes192: return Generate.RandomString(192 / ByteUnit.BitsPerByte, characters); default: return Generate.RandomString(256 / ByteUnit.BitsPerByte, characters); } };

    </td></tr><tr><td class="term"><xref href="Cuemon.Security.Cryptography.AesKeyOptions.Size" data-throw-if-not-resolved="false"></xref></td><td class="description"><xref href="Cuemon.Security.Cryptography.AesSize.Aes256" data-throw-if-not-resolved="false"></xref></td></tr></tbody></table>