10 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (10)
Cng\CngGcmAuthenticatedEncryptor.cs (10)
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)); 87byte* pbNonce = &pbKeyModifier[KEY_MODIFIER_SIZE_IN_BYTES]; 101cbContext: KEY_MODIFIER_SIZE_IN_BYTES, 157var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 237var totalRequiredSize = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Length + TAG_SIZE_IN_BYTES)); 246byte* pbNonce = &pbKeyModifier[KEY_MODIFIER_SIZE_IN_BYTES]; 251_genRandom.GenRandom(pbKeyModifier, KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES); 265cbContext: KEY_MODIFIER_SIZE_IN_BYTES, 310var size = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES));