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