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