7 references to TAG_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
);
125
var tag = new Span<byte>(ciphertext.Array, tagOffset,
TAG_SIZE_IN_BYTES
);
127
using var aes = new AesGcm(derivedKey,
TAG_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)];
198
var tag = new Span<byte>(retVal, tagOffset,
TAG_SIZE_IN_BYTES
);
200
using var aes = new AesGcm(derivedKey,
TAG_SIZE_IN_BYTES
);