7 references to KEY_MODIFIER_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (7)
Managed\AesGcmAuthenticatedEncryptor.cs (7)
75if (ciphertext.Count < KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES) 81var plaintextBytes = ciphertext.Count - (KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES); 96nonceOffset = keyModifierOffset + KEY_MODIFIER_SIZE_IN_BYTES; 101var keyModifier = new ArraySegment<byte>(ciphertext.Array!, keyModifierOffset, KEY_MODIFIER_SIZE_IN_BYTES); 155var retVal = new byte[checked(preBufferSize + KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + plaintext.Count + TAG_SIZE_IN_BYTES + postBufferSize)]; 164nonceOffset = keyModifierOffset + KEY_MODIFIER_SIZE_IN_BYTES; 170var keyModifier = _genRandom.GenRandom(KEY_MODIFIER_SIZE_IN_BYTES);