1 write to _ctxHandle
System.Security.Cryptography (1)
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
20
_ctxHandle
= Interop.Crypto.EvpCipherCreatePartial(GetCipher(key.Length * 8));
15 references to _ctxHandle
System.Security.Cryptography (15)
System\Security\Cryptography\AesGcm.OpenSsl.cs (15)
17
[MemberNotNull(nameof(
_ctxHandle
))]
22
Interop.Crypto.CheckValidOpenSslHandle(
_ctxHandle
);
24
_ctxHandle
,
28
Interop.Crypto.EvpCipherSetGcmNonceLength(
_ctxHandle
, NonceSize);
39
_ctxHandle
,
46
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
52
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, ciphertext, out int ciphertextBytesWritten, plaintext))
58
_ctxHandle
,
73
Interop.Crypto.EvpCipherGetGcmTag(
_ctxHandle
, tag);
84
_ctxHandle
,
91
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
97
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, plaintext, out int plaintextBytesWritten, ciphertext))
102
Interop.Crypto.EvpCipherSetGcmTag(
_ctxHandle
, tag);
105
_ctxHandle
,
137
_ctxHandle
.Dispose();