Пример #1
0
 internal static extern bool EvpPkeySetDsa(SafeEvpPKeyHandle pkey, SafeDsaHandle key);
Пример #2
0
 internal static extern bool DsaGenerateKey(out SafeDsaHandle dsa, int bits);
Пример #3
0
 internal static extern bool DsaSign(SafeDsaHandle dsa, byte[] hash, int hashLength, byte[] refSignature, out int outSignatureLength);
Пример #4
0
 internal static extern bool DsaVerify(SafeDsaHandle dsa, byte[] hash, int hashLength, byte[] signature, int signatureLength);
Пример #5
0
 private static extern bool DsaSign(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte refSignature, out int outSignatureLength);
Пример #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);
Пример #7
0
 private static partial int DsaVerify(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte signature, int signatureLength);
Пример #8
0
 private static extern int DsaSizeP(SafeDsaHandle dsa);
Пример #9
0
 internal static partial bool EvpPkeySetDsa(SafeEvpPKeyHandle pkey, SafeDsaHandle key);
Пример #10
0
 private static partial int AndroidCryptoNative_DsaSignatureFieldSize(SafeDsaHandle dsa);
Пример #11
0
 private static extern unsafe bool DsaVerify(SafeDsaHandle dsa, byte *hash, int hashLength, byte *signature, int signatureLength);
Пример #12
0
 private static extern unsafe bool DsaSign(SafeDsaHandle dsa, byte *hash, int hashLength, byte *refSignature, out int outSignatureLength);
Пример #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);
Пример #14
0
 private static extern int DsaSizeSignature(SafeDsaHandle dsa);
Пример #15
0
 internal static partial bool DsaGenerateKey(out SafeDsaHandle dsa, int bits);
Пример #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);
        }
Пример #17
0
 private static partial int DsaSizeSignature(SafeDsaHandle dsa);
Пример #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);
Пример #19
0
 private static partial int DsaSizeP(SafeDsaHandle dsa);
Пример #20
0
 private static extern bool DsaVerify(SafeDsaHandle dsa, ref byte hash, int hashLength, ref byte signature, int signatureLength);
Пример #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);