11 references to TAG_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (11)
Cng\CngGcmAuthenticatedEncryptor.cs (11)
74if (ciphertext.Length < KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES) 79var plaintextLength = checked(ciphertext.Length - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES)); 121authInfo.cbTag = TAG_SIZE_IN_BYTES; 157var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 207authCipherInfo.cbTag = TAG_SIZE_IN_BYTES; 237var totalRequiredSize = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Length + TAG_SIZE_IN_BYTES)); 310var size = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES)); 368+ TAG_SIZE_IN_BYTES /* tag of GCM-encrypted empty string */)]; 381BitHelpers.WriteTo(ref ptr, TAG_SIZE_IN_BYTES); // block size = tag size 382BitHelpers.WriteTo(ref ptr, TAG_SIZE_IN_BYTES); 415ptr += TAG_SIZE_IN_BYTES;