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