11 references to TAG_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (11)
Cng\CngGcmAuthenticatedEncryptor.cs (11)
64if (ciphertext.Length < KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES) 69var plaintextLength = checked(ciphertext.Length - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES)); 111authInfo.cbTag = TAG_SIZE_IN_BYTES; 147var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 197authCipherInfo.cbTag = TAG_SIZE_IN_BYTES; 227var totalRequiredSize = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Length + TAG_SIZE_IN_BYTES)); 300var size = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES)); 358+ TAG_SIZE_IN_BYTES /* tag of GCM-encrypted empty string */)]; 371BitHelpers.WriteTo(ref ptr, TAG_SIZE_IN_BYTES); // block size = tag size 372BitHelpers.WriteTo(ref ptr, TAG_SIZE_IN_BYTES); 405ptr += TAG_SIZE_IN_BYTES;