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