Esempio n. 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);
        }
Esempio n. 2
0
 public static bool ECDSAVerify(ECDSA_Public pubKey, byte[] digest, ECDSA_SIG signature) =>
 CryptoLibHelper.DoECDSAVerify(pubKey, digest, signature);
Esempio n. 3
0
 public static byte[] DoRipeMD160AsRaw(byte[] message) => CryptoLibHelper.DoRIPEMD160(message);
Esempio n. 4
0
 public static byte[] DoSha256(byte[] message) => CryptoLibHelper.DoSHA256(message);
Esempio n. 5
0
 public static bool DoPascalCoinECIESDecrypt(
     ushort ecOpensslNid, byte[] privateKey, byte[] encryptedMessage, ref byte[] decryptedMessage) =>
 CryptoLibHelper.DoPascalCoinECIESDecrypt(
     ecOpensslNid, privateKey, encryptedMessage, ref decryptedMessage);
Esempio n. 6
0
 public static bool DoPascalCoinECIESEncrypt(ECDSA_Public publicKey, byte[] message,
                                             ref byte[] encryptedMessage) => CryptoLibHelper.DoPascalCoinECIESEncrypt(publicKey, message,
                                                                                                                      ref encryptedMessage);
Esempio n. 7
0
 public static bool DoPascalCoinAESDecrypt(byte[] encryptedMessage, byte[] password,
                                           ref byte[] decryptedMessage) => CryptoLibHelper.DoPascalCoinAESDecrypt(encryptedMessage, password,
                                                                                                                  ref decryptedMessage);
Esempio n. 8
0
 public static byte[] DoPascalCoinAESEncrypt(byte[] message, byte[] password) =>
 CryptoLibHelper.DoPascalCoinAESEncrypt(message, password);