8 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (8)
Cng\CngGcmAuthenticatedEncryptor.cs (8)
120
if (cbCiphertext <
KEY_MODIFIER_SIZE_IN_BYTES
+ NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES)
127
var cbPlaintext = checked(cbCiphertext - (
KEY_MODIFIER_SIZE_IN_BYTES
+ NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES));
134
byte* pbNonce = &pbKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];
148
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,
237
var retVal = new byte[checked(cbPreBuffer +
KEY_MODIFIER_SIZE_IN_BYTES
+ NONCE_SIZE_IN_BYTES + cbPlaintext + TAG_SIZE_IN_BYTES + cbPostBuffer)];
242
byte* pbNonce = &pbKeyModifier[
KEY_MODIFIER_SIZE_IN_BYTES
];
247
_genRandom.GenRandom(pbKeyModifier,
KEY_MODIFIER_SIZE_IN_BYTES
+ NONCE_SIZE_IN_BYTES);
261
cbContext:
KEY_MODIFIER_SIZE_IN_BYTES
,