13 references to NONCE_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (13)
Cng\CngGcmAuthenticatedEncryptor.cs (13)
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)); 78byte* pbEncryptedData = &pbNonce[NONCE_SIZE_IN_BYTES]; 109authInfo.cbNonce = NONCE_SIZE_IN_BYTES; 147var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 195authCipherInfo.cbNonce = NONCE_SIZE_IN_BYTES; 227var totalRequiredSize = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Length + TAG_SIZE_IN_BYTES)); 237byte* pbEncryptedData = &pbNonce[NONCE_SIZE_IN_BYTES]; 241_genRandom.GenRandom(pbKeyModifier, KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES); 300var size = checked((int)(KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES)); 370BitHelpers.WriteTo(ref ptr, NONCE_SIZE_IN_BYTES); 393byte* pbNonce = stackalloc byte[(int)NONCE_SIZE_IN_BYTES]; 394UnsafeBufferUtil.SecureZeroMemory(pbNonce, NONCE_SIZE_IN_BYTES);