13 references to KeyDerivationKdf
System.Security.Cryptography (13)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (1)
135
Span<byte> prk = prkBuffer.Slice(0,
KeyDerivationKdf
.Nh);
System\Security\Cryptography\HpkeManagedKemAdapter.cs (11)
82
if (
KeyDerivationKdf
.Nh > PrkStackBufferSize)
84
Debug.Fail($"{
KeyDerivationKdf
.Nh} is unexpectedly bigger than {PrkStackBufferSize}.");
89
Span<byte> prk = prkBuffer.Slice(0,
KeyDerivationKdf
.Nh);
117
Debug.Assert(
KeyDerivationKdf
.IsTwoStage);
118
Debug.Assert(prk.Length ==
KeyDerivationKdf
.Nh);
134
int written = HKDF.Extract(
KeyDerivationKdf
.HkdfHashAlgorithm, destination, salt, prk);
145
Debug.Assert(
KeyDerivationKdf
.IsTwoStage);
146
Debug.Assert(prk.Length ==
KeyDerivationKdf
.Nh);
165
HKDF.Expand(
KeyDerivationKdf
.HkdfHashAlgorithm, prk, output, destination);
174
Debug.Assert(
KeyDerivationKdf
.Kdf == HpkeKdf.SHAKE256);
175
Debug.Assert(!
KeyDerivationKdf
.IsTwoStage);
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (1)
37
Span<byte> prk = prkBuffer.Slice(0,
KeyDerivationKdf
.Nh);