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))] 22Interop.Crypto.CheckValidOpenSslHandle(_ctxHandle); 24_ctxHandle, 38_ctxHandle, 45if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 51if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, ciphertext, out int ciphertextBytesWritten, plaintext)) 57_ctxHandle, 72Interop.Crypto.EvpCipherGetAeadTag(_ctxHandle, tag); 83_ctxHandle, 90if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 96if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, plaintext, out int plaintextBytesWritten, ciphertext)) 101Interop.Crypto.EvpCipherSetAeadTag(_ctxHandle, tag); 104_ctxHandle, 134_ctxHandle.Dispose();