Beispiel #1
0
        public static ECDSA_SIG ECDSASign(ECPrivateKeyInfo keyInfo, byte[] digest)
        {
            ECDSA_SIG result = default;

            CryptoLibHelper.DoECDSASign(keyInfo.EC_OpenSSL_NID, keyInfo.RAW_PrivKey, digest, ref result);
            return(result);
        }
Beispiel #2
0
        //  public static byte[] DoRandomHash2(byte[] message) => RandomHash2Fast.Compute(message);

        public static string PrivateKey2Hexa(ECPrivateKeyInfo privateKeyInfo) =>
        privateKeyInfo.RAW_PrivKey.ToHexaString();