Skip to content

Commit 0665643

Browse files
committed
src: Remove unnecessary validation.
Also, update the program description and version.
1 parent 4571998 commit 0665643

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/MultiMAC/MultiMAC.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<PackageLicenseExpression>MIT</PackageLicenseExpression>
6-
<Description>Authenticate multiple inputs easily.</Description>
6+
<Description>Authenticate multiple inputs easily using keyed BLAKE2b.</Description>
77
<Copyright>Copyright (c) 2022 Samuel Lucas</Copyright>
88
<Authors>Samuel Lucas</Authors>
99
<EnableNETAnalyzers>true</EnableNETAnalyzers>
1010
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1111
<RootNamespace>MultiMAC</RootNamespace>
1212
<AssemblyName>MultiMAC</AssemblyName>
13-
<Version>1.0.0</Version>
13+
<Version>1.0.1</Version>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1515
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1616
<PackageProjectUrl>https://github.com/samuel-lucas6/MultiMAC</PackageProjectUrl>

src/MultiMAC/MultiMac.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
MultiMAC: Authenticate multiple inputs easily.
2+
MultiMAC: Authenticate multiple inputs easily using keyed BLAKE2b.
33
Copyright (c) 2022 Samuel Lucas
44
55
Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -44,9 +44,6 @@ public static byte[] Compute(byte[] key1, byte[] key2, TagLength tagLength, para
4444
public static bool Verify(byte[] tag, byte[] key1, byte[] key2, params byte[][] inputs)
4545
{
4646
ParameterValidation.Tag(tag, tag?.Length ?? 0);
47-
ParameterValidation.Key(key1, tag.Length);
48-
ParameterValidation.Key(key2, tag.Length);
49-
ParameterValidation.Inputs(inputs);
5047
byte[] computedTag = Compute(key1, key2, (TagLength)tag.Length, inputs);
5148
return Utilities.Compare(tag, computedTag);
5249
}

src/MultiMAC/ParameterValidation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
MultiMAC: Authenticate multiple inputs easily.
2+
MultiMAC: Authenticate multiple inputs easily using keyed BLAKE2b.
33
Copyright (c) 2022 Samuel Lucas
44
55
Permission is hereby granted, free of charge, to any person obtaining a copy of

src/MultiMAC/TagLength.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
MultiMAC: Authenticate multiple inputs easily.
2+
MultiMAC: Authenticate multiple inputs easily using keyed BLAKE2b.
33
Copyright (c) 2022 Samuel Lucas
44
55
Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)