10 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (10)
Cng\CngGcmAuthenticatedEncryptor.cs (10)
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)); 77byte* pbNonce = &pbKeyModifier[KEY_MODIFIER_SIZE_IN_BYTES]; 91cbContext: KEY_MODIFIER_SIZE_IN_BYTES, 147var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 227var totalRequiredSize = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Length + TAG_SIZE_IN_BYTES)); 236byte* pbNonce = &pbKeyModifier[KEY_MODIFIER_SIZE_IN_BYTES]; 241_genRandom.GenRandom(pbKeyModifier, KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES); 255cbContext: KEY_MODIFIER_SIZE_IN_BYTES, 300var size = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES));