Skip to content

Commit

Permalink
[Ctap2] Use collection expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon committed Dec 25, 2023
1 parent e8e76dc commit a7144c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/Fido2.Ctap2/Commands/CtapCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public byte[] GetPayload()

if (parameters is null)
{
return new byte[] { (byte)Type };
return [(byte)Type];
}

var encodedObject = parameters.Encode();
Expand Down
2 changes: 1 addition & 1 deletion Src/Fido2.Ctap2/Helpers/CryptoHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Fido2NetLib.Ctap2;

public static class CryptoHelper
{
internal static readonly byte[] DefaultIV = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
internal static ReadOnlySpan<byte> DefaultIV => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

internal static byte[] AesCbcDefaultIvNoPadding(byte[] key, ReadOnlySpan<byte> data)
{
Expand Down

0 comments on commit a7144c0

Please sign in to comment.