1 write to _ctxHandle
System.Security.Cryptography (1)
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (1)
20
_ctxHandle
= Interop.Crypto.EvpCipherCreatePartial(GetCipher(key.Length * 8));
14 references to _ctxHandle
System.Security.Cryptography (14)
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (14)
17
[MemberNotNull(nameof(
_ctxHandle
))]
22
Interop.Crypto.CheckValidOpenSslHandle(
_ctxHandle
);
24
_ctxHandle
,
38
_ctxHandle
,
45
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
51
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, ciphertext, out int ciphertextBytesWritten, plaintext))
57
_ctxHandle
,
72
Interop.Crypto.EvpCipherGetAeadTag(
_ctxHandle
, tag);
83
_ctxHandle
,
90
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, Span<byte>.Empty, out _, associatedData))
96
if (!Interop.Crypto.EvpCipherUpdate(
_ctxHandle
, plaintext, out int plaintextBytesWritten, ciphertext))
101
Interop.Crypto.EvpCipherSetAeadTag(
_ctxHandle
, tag);
104
_ctxHandle
,
134
_ctxHandle
.Dispose();