Example #1
0
 internal static extern bool EvpPkeySetDsa(SafeEvpPKeyHandle pkey, SafeDsaHandle key);
Example #2
0
 internal static extern bool DsaGenerateKey(out SafeDsaHandle dsa, int bits);
Example #3
0
 internal static extern bool DsaSign(SafeDsaHandle dsa, byte[] hash, int hashLength, byte[] refSignature, out int outSignatureLength);
Example #4
0
 internal static extern bool DsaVerify(SafeDsaHandle dsa, byte[] hash, int hashLength, byte[] signature, int signatureLength);
Example #5
0
 private static extern bool DsaSign(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte refSignature, out int outSignatureLength);
Example #6
0
 internal static bool DsaVerify(SafeDsaHandle dsa, ReadOnlySpan <byte> hash, int hashLength, ReadOnlySpan <byte> signature, int signatureLength) =>
 DsaVerify(dsa, ref hash.DangerousGetPinnableReference(), hashLength, ref signature.DangerousGetPinnableReference(), signatureLength);
Example #7
0
 private static partial int DsaVerify(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte signature, int signatureLength);
Example #8
0
 private static extern int DsaSizeP(SafeDsaHandle dsa);
Example #9
0
 internal static partial bool EvpPkeySetDsa(SafeEvpPKeyHandle pkey, SafeDsaHandle key);
Example #10
0
 private static partial int AndroidCryptoNative_DsaSignatureFieldSize(SafeDsaHandle dsa);
Example #11
0
 private static extern unsafe bool DsaVerify(SafeDsaHandle dsa, byte *hash, int hashLength, byte *signature, int signatureLength);
Example #12
0
 private static extern unsafe bool DsaSign(SafeDsaHandle dsa, byte *hash, int hashLength, byte *refSignature, out int outSignatureLength);
Example #13
0
 internal static bool DsaVerify(SafeDsaHandle dsa, ReadOnlySpan <byte> hash, int hashLength, ReadOnlySpan <byte> signature, int signatureLength) =>
 DsaVerify(dsa, ref MemoryMarshal.GetReference(hash), hashLength, ref MemoryMarshal.GetReference(signature), signatureLength);
Example #14
0
 private static extern int DsaSizeSignature(SafeDsaHandle dsa);
Example #15
0
 internal static partial bool DsaGenerateKey(out SafeDsaHandle dsa, int bits);
Example #16
0
        /// <summary>
        /// Return the maximum size of the DER-encoded key in bytes.
        /// </summary>
        internal static int DsaEncodedSignatureSize(SafeDsaHandle dsa)
        {
            int size = DsaSizeSignature(dsa);

            return(size);
        }
Example #17
0
 private static partial int DsaSizeSignature(SafeDsaHandle dsa);
Example #18
0
 internal static bool DsaSign(SafeDsaHandle dsa, ReadOnlySpan <byte> hash, Span <byte> refSignature, out int outSignatureLength) =>
 DsaSign(dsa, ref MemoryMarshal.GetReference(hash), hash.Length, ref MemoryMarshal.GetReference(refSignature), out outSignatureLength);
Example #19
0
 private static partial int DsaSizeP(SafeDsaHandle dsa);
Example #20
0
 private static extern bool DsaVerify(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte signature, int signatureLength);
Example #21
0
 internal static bool DsaSign(SafeDsaHandle dsa, ReadOnlySpan <byte> hash, int hashLength, ReadOnlySpan <byte> refSignature, out int outSignatureLength) =>
 DsaSign(dsa, ref hash.DangerousGetPinnableReference(), hashLength, ref refSignature.DangerousGetPinnableReference(), out outSignatureLength);