Skip to content

IsValidKeySize Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Crypto.dll

Overloads ​

NameDescription
bool IsValidKeySize(SymmetricAlgorithm input, byte[] key)Checks if input byte is a valid key length for current cipher implementation
bool IsValidKeySize(SymmetricAlgorithm input, int keyLength)Checks if input byte is a valid key length for current cipher implementation

bool IsValidKeySize(SymmetricAlgorithm input, byte[] key) ​

csharp
bool IsValidKeySize(SymmetricAlgorithm input, byte[] key)

Checks if input byte is a valid key length for current cipher implementation

Returns ​

true if valid key length, else false

bool IsValidKeySize(SymmetricAlgorithm input, int keyLength) ​

csharp
bool IsValidKeySize(SymmetricAlgorithm input, int keyLength)

Checks if input byte is a valid key length for current cipher implementation

Returns ​

true if valid key length, else false