1 instantiation of SafeDsaHandle
System.Security.Cryptography (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs (1)
36SafeDsaHandle safeHandle = new SafeDsaHandle();
39 references to SafeDsaHandle
System.Security.Cryptography (39)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs (14)
23internal static partial bool DsaGenerateKey(out SafeDsaHandle dsa, int bits); 26private static partial int DsaSizeSignature(SafeDsaHandle dsa); 31internal static int DsaEncodedSignatureSize(SafeDsaHandle dsa) 38private static partial int DsaSizeQ(SafeDsaHandle dsa); 43internal static int DsaSignatureFieldSize(SafeDsaHandle dsa) 51private static partial int DsaSizeP(SafeDsaHandle dsa); 56internal static int DsaKeySize(SafeDsaHandle dsa) 65internal static bool DsaSign(SafeDsaHandle dsa, ReadOnlySpan<byte> hash, Span<byte> refSignature, out int outSignatureLength) => 70private static partial bool DsaSign(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte refSignature, out int outSignatureLength); 72internal static bool DsaVerify(SafeDsaHandle dsa, ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) 88private static partial bool DsaVerify(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte signature, int signatureLength); 90internal static DSAParameters ExportDsaParameters(SafeDsaHandle key, bool includePrivateParameters) 150SafeDsaHandle key, 160out SafeDsaHandle dsa,
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs (2)
13internal static partial SafeDsaHandle EvpPkeyGetDsa(SafeEvpPKeyHandle pkey); 17internal static partial bool EvpPkeySetDsa(SafeEvpPKeyHandle pkey, SafeDsaHandle key);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs (2)
30internal static SafeDsaHandle DuplicateHandle(IntPtr handle) 36SafeDsaHandle safeHandle = new SafeDsaHandle();
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (16)
25private Lazy<SafeDsaHandle>? _key; 47_key = new Lazy<SafeDsaHandle>(GenerateKey); 64_key = new Lazy<SafeDsaHandle>(GenerateKey); 88SafeDsaHandle key = GetKey(); 120SafeDsaHandle key; 174private static void CheckInvalidKey(SafeDsaHandle key) 182private SafeDsaHandle GenerateKey() 184SafeDsaHandle key; 200SafeDsaHandle key = GetKey(); 227SafeDsaHandle key = GetKey(); 285SafeDsaHandle key) 324SafeDsaHandle key = GetKey(); 354private SafeDsaHandle GetKey() 358SafeDsaHandle key = _key.Value; 365private void SetKey(SafeDsaHandle newKey) 374_key = new Lazy<SafeDsaHandle>(newKey);
System\Security\Cryptography\DSAOpenSsl.cs (5)
20_key = new Lazy<SafeDsaHandle>(); 48SafeDsaHandle key = Interop.Crypto.EvpPkeyGetDsa(pkeyHandle); 79SafeDsaHandle ecKeyHandle = SafeDsaHandle.DuplicateHandle(handle); 90SafeDsaHandle currentKey = GetKey();