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