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