Пример #1
0
 public ECPrivateKey()
 {
     _privateKeyInfo.RAW_PrivKey    = null;
     _privateKeyInfo.EC_OpenSSL_NID = Constants.CT_Default_EC_OpenSSL_NID;
     _bufferedPublicKey             = CT_TECDSA_Public_Nul;
 }
Пример #2
0
 public static bool DoPascalCoinECIESEncrypt(ECDSA_Public publicKey, byte[] message,
                                             ref byte[] encryptedMessage) => CryptoLibHelper.DoPascalCoinECIESEncrypt(publicKey, message,
                                                                                                                      ref encryptedMessage);
Пример #3
0
 public static bool ECDSAVerify(ECDSA_Public pubKey, byte[] digest, ECDSA_SIG signature) =>
 CryptoLibHelper.DoECDSAVerify(pubKey, digest, signature);
Пример #4
0
 public bool IsEqualTo(ECDSA_Public compareTo) =>
 EC_OpenSSL_NID == compareTo.EC_OpenSSL_NID &&
 X.IsEqualTo(compareTo.X) &&
 Y.IsEqualTo(compareTo.Y);