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