16 writes to cbData
System.Security (16)
system\security\cryptography\dataprotection.cs (4)
54dataIn.cbData = (uint) userData.Length; 59entropy.cbData = (uint) optionalEntropy.Length; 129dataIn.cbData = (uint) encryptedData.Length; 134entropy.cbData = (uint) optionalEntropy.Length;
system\security\cryptography\pkcs\envelopedpkcs7.cs (2)
468dataBlob.cbData = (uint) content.Length; 672pBlob->cbData = pCertContext.cbCertEncoded;
system\security\cryptography\pkcs\pkcsutils.cs (8)
445octetsBlob.cbData = (uint) octets.Length; 679pDataBlob->cbData = (uint) encodedData.Length; 762cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.Issuer.cbData = (uint)dummyName.RawData.Length; 771cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.SerialNumber.cbData = (uint)1; 817cmsSignerEncodeInfo.SignerId.Value.KeyId.cbData = cbData; 966pCertBlob->cbData = pCertContext.cbCertEncoded; 988certBlob.cbData = pCertContext.cbCertEncoded; 1088SubjectIssuerBlob.cbData = (uint)subjectName.RawData.Length;
system\security\cryptography\pkcs\signerinfo.cs (2)
626addPara.blob.cbData = (uint) encodedNewAttribute.Length; 648addPara.blob.cbData = (uint) encodedAttribute.Length;
43 references to cbData
System.Security (43)
system\security\cryptography\cryptoapi.cs (3)
2299if (blob.cbData == 0) 2306if (blob.cbData == 0) 2308byte[] data = new byte[blob.cbData];
system\security\cryptography\dataprotection.cs (4)
92byte[] encryptedData = new byte[(int) blob.cbData]; 106CAPI.CAPISafe.ZeroMemory(blob.pbData, blob.cbData); 155byte[] data = new byte[(int) userData.cbData]; 169CAPI.CAPISafe.ZeroMemory(userData.pbData, userData.cbData);
system\security\cryptography\pkcs\envelopedpkcs7.cs (6)
722Marshal.WriteInt32(pcbData, (int) certInfo.SubjectPublicKeyInfo.Algorithm.Parameters.cbData); 795Marshal.WriteInt32(pcbData, (int) certInfo.Issuer.cbData); 806Marshal.WriteInt32(pcbData, (int) certInfo.SerialNumber.cbData); 885Marshal.WriteInt32(pcbData, (int) certInfo.SubjectPublicKeyInfo.Algorithm.Parameters.cbData); 971Marshal.WriteInt32(pcbData, (int) certInfo.Issuer.cbData); 982Marshal.WriteInt32(pcbData, (int) certInfo.SerialNumber.cbData);
system\security\cryptography\pkcs\pkcsmisc.cs (16)
54for (uint i = 0; i < serialNumber.cbData; i++) { 62byte[] issuerBytes = new byte[issuer.cbData]; 84issuer.cbData, 101byte[] ski = new byte[certRdnAttr.Value.cbData]; 129byte[] ski = new byte[certId.Value.KeyId.cbData]; 236byte[] ski = new byte[certId.Value.KeyId.cbData]; 324byte[] parameters = new byte[keyInfo.Algorithm.Parameters.cbData]; 343if (algorithmIdentifier.Parameters.cbData > 0) { 346algorithmIdentifier.Parameters.cbData, 373if (algorithmIdentifier.Parameters.cbData > 0) { 376algorithmIdentifier.Parameters.cbData, 385if (blob.cbData > 0) { 386parameters = new byte[blob.cbData]; 401Array.Clear(parameters, sizeof(uint), (int)(parameters.Length - blob.cbData - sizeof(uint))); 422if (algorithmIdentifier.Parameters.cbData > 0) { 423parameters = new byte[algorithmIdentifier.Parameters.cbData];
system\security\cryptography\pkcs\pkcsutils.cs (8)
314cmsgSignerInfo1.Issuer.cbData, 316cmsgSignerInfo2.Issuer.cbData) && 318cmsgSignerInfo1.SerialNumber.cbData, 320cmsgSignerInfo2.SerialNumber.cbData)) { 384byte[] serial = new byte[pIssuerAndSerial.SerialNumber.cbData]; 407if (decodedBlob.cbData == 0) 765new IntPtr(cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.Issuer.cbData)); 774new IntPtr(cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.SerialNumber.cbData));
system\security\cryptography\pkcs\recipientinfo.cs (5)
116for (int i = 0; i < certInfo.SerialNumber.cbData; i++) { 180if (keyTrans.EncryptedKey.cbData > 0) { 181m_encryptedKey = new byte[keyTrans.EncryptedKey.cbData]; 324if (m_encryptedKeyInfo.EncryptedKey.cbData > 0) { 325m_encryptedKey = new byte[m_encryptedKeyInfo.EncryptedKey.cbData];
system\security\cryptography\pkcs\signerinfo.cs (1)
259byte[] ret = new byte[m_cmsgSignerInfo.EncryptedHash.cbData];