8 writes to cbBuffer
System.Security.Cryptography (8)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (1)
161
buff.
cbBuffer
= (curveName.Length + 1) * 2; // Add 1 for null terminator
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (3)
54
buffers[0].
cbBuffer
= label.Length;
57
buffers[1].
cbBuffer
= context.Length;
60
buffers[2].
cbBuffer
= (_hashAlgorithm.Name.Length + 1) * 2; // +1 for the null terminator.
System\Security\Cryptography\HKDF.Windows.cs (1)
199
infoBuffer.
cbBuffer
= infoBlob.Length;
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (3)
159
buffers[0].
cbBuffer
= sizeof(ulong);
163
buffers[1].
cbBuffer
= salt.Length;
169
buffers[2].
cbBuffer
= checked((hashAlgorithmName.Length + 1) * sizeof(char)); // Add null terminator.