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))] 24Interop.Crypto.CheckValidOpenSslHandle(_ctxHandle); 26_ctxHandle, 30Interop.Crypto.EvpCipherSetGcmNonceLength(_ctxHandle, NonceSize); 41_ctxHandle, 48if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 54if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, ciphertext, out int ciphertextBytesWritten, plaintext)) 60_ctxHandle, 75Interop.Crypto.EvpCipherGetGcmTag(_ctxHandle, tag); 86_ctxHandle, 93if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 99if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, plaintext, out int plaintextBytesWritten, ciphertext)) 104Interop.Crypto.EvpCipherSetGcmTag(_ctxHandle, tag); 107_ctxHandle, 139_ctxHandle.Dispose();