Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit c143153

Browse files
committed
adding a comment
1 parent 2b0d472 commit c143153

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.AspNet.Mvc.Core/AntiForgery/BinaryBlob.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ private static byte[] GenerateNewToken(int bitLength)
9595
return data;
9696
}
9797

98+
// Need to mark it with NoInlining and NoOptimization attributes to ensure that the
99+
// operation runs in constant time.
98100
[MethodImplAttribute(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
99101
private static bool AreByteArraysEqual(byte[] a, byte[] b)
100102
{

0 commit comments

Comments
 (0)