NServiceBus.RijndaelEncryptionService.VerifyEncryptionKey C# (CSharp) Method

VerifyEncryptionKey() static private method

static private VerifyEncryptionKey ( byte key ) : void
key byte
return void
        static void VerifyEncryptionKey(byte[] key)
        {
            if (IsValidKey(key))
            {
                return;
            }
            var message = $"The encryption key has an invalid length of {key.Length} bytes.";
            throw new Exception(message);
        }