9 references to TAG_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (9)
Cng\CngGcmAuthenticatedEncryptor.cs (9)
62
+
TAG_SIZE_IN_BYTES
/* tag of GCM-encrypted empty string */)];
75
BitHelpers.WriteTo(ref ptr,
TAG_SIZE_IN_BYTES
); // block size = tag size
76
BitHelpers.WriteTo(ref ptr,
TAG_SIZE_IN_BYTES
);
109
ptr +=
TAG_SIZE_IN_BYTES
;
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
));
163
authInfo.cbTag =
TAG_SIZE_IN_BYTES
;
212
authCipherInfo.cbTag =
TAG_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)];