8 references to NONCE_SIZE_IN_BYTES
Microsoft.AspNetCore.DataProtection (8)
Managed\AesGcmAuthenticatedEncryptor.cs (8)
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);
97
encryptedDataOffset = nonceOffset +
NONCE_SIZE_IN_BYTES
;
124
var nonce = new Span<byte>(ciphertext.Array, nonceOffset,
NONCE_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)];
165
encryptedDataOffset = nonceOffset +
NONCE_SIZE_IN_BYTES
;
171
var nonceBytes = _genRandom.GenRandom(
NONCE_SIZE_IN_BYTES
);
197
var nonce = new Span<byte>(retVal, nonceOffset,
NONCE_SIZE_IN_BYTES
);