1 write to _ctxHandle
System.Security.Cryptography (1)
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
22
_ctxHandle
= Interop.Crypto.EvpCipherCreatePartial(GetCipher(key.Length * 8));
15 references to _ctxHandle
System.Security.Cryptography (15)
System\Security\Cryptography\AesGcm.OpenSsl.cs (15)
19
[MemberNotNull(nameof(
_ctxHandle
))]
24
Interop.Crypto.CheckValidOpenSslHandle(
_ctxHandle
);
26
_ctxHandle
,
30
Interop.Crypto.EvpCipherSetGcmNonceLength(
_ctxHandle
, NonceSize);
41
_ctxHandle
,
48
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
54
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, ciphertext, out int ciphertextBytesWritten, plaintext))
60
_ctxHandle
,
75
Interop.Crypto.EvpCipherGetGcmTag(
_ctxHandle
, tag);
86
_ctxHandle
,
93
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
99
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, plaintext, out int plaintextBytesWritten, ciphertext))
104
Interop.Crypto.EvpCipherSetGcmTag(
_ctxHandle
, tag);
107
_ctxHandle
,
139
_ctxHandle
.Dispose();