21 references to HMACSHA1
Microsoft.AspNetCore.Cryptography.KeyDerivation (6)
KeyDerivation.cs (1)
34
if (prf < KeyDerivationPrf.
HMACSHA1
|| prf > KeyDerivationPrf.HMACSHA512)
PBKDF2\ManagedPbkdf2Provider.cs (1)
76
case KeyDerivationPrf.
HMACSHA1
:
PBKDF2\NetCorePbkdf2Provider.cs (1)
27
case KeyDerivationPrf.
HMACSHA1
:
PBKDF2\Win7Pbkdf2Provider.cs (1)
88
case KeyDerivationPrf.
HMACSHA1
:
PBKDF2\Win8Pbkdf2Provider.cs (2)
115
case KeyDerivationPrf.
HMACSHA1
:
200
case KeyDerivationPrf.
HMACSHA1
:
Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests (12)
Pbkdf2Tests.cs (12)
21
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 - 1, "efmxNcKD/U1urTEDGvsThlPnHA==")]
22
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 0, "efmxNcKD/U1urTEDGvsThlPnHDI=")]
23
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 1, "efmxNcKD/U1urTEDGvsThlPnHDLk")]
84
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 - 1, "efmxNcKD/U1urTEDGvsThlPnHA==")]
85
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 0, "efmxNcKD/U1urTEDGvsThlPnHDI=")]
86
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 1, "efmxNcKD/U1urTEDGvsThlPnHDLk")]
111
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 - 1, "efmxNcKD/U1urTEDGvsThlPnHA==")]
112
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 0, "efmxNcKD/U1urTEDGvsThlPnHDI=")]
113
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 1, "efmxNcKD/U1urTEDGvsThlPnHDLk")]
138
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 - 1, "efmxNcKD/U1urTEDGvsThlPnHA==")]
139
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 0, "efmxNcKD/U1urTEDGvsThlPnHDI=")]
140
[InlineData("my-password", KeyDerivationPrf.
HMACSHA1
, 5, 160 / 8 + 1, "efmxNcKD/U1urTEDGvsThlPnHDLk")]
Microsoft.Extensions.Identity.Core (3)
PasswordHasher.cs (3)
115
const KeyDerivationPrf Pbkdf2Prf = KeyDerivationPrf.
HMACSHA1
; // default for Rfc2898DeriveBytes
203
if (prf == KeyDerivationPrf.
HMACSHA1
|| prf == KeyDerivationPrf.HMACSHA256)
222
const KeyDerivationPrf Pbkdf2Prf = KeyDerivationPrf.
HMACSHA1
; // default for Rfc2898DeriveBytes