From: Vsevolod Stakhov Date: Wed, 7 Aug 2024 14:53:02 +0000 (+0100) Subject: [Test] Use proper keypairs X-Git-Tag: 3.10.0~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80006393468c05cdac38e22fcdb1de626f5704f3;p=rspamd.git [Test] Use proper keypairs --- diff --git a/test/rspamd_cxx_unit_cryptobox.hxx b/test/rspamd_cxx_unit_cryptobox.hxx index feed5bbe3..cfa95dc61 100644 --- a/test/rspamd_cxx_unit_cryptobox.hxx +++ b/test/rspamd_cxx_unit_cryptobox.hxx @@ -161,13 +161,13 @@ TEST_SUITE("rspamd_cryptobox") TEST_CASE("rspamd_cryptobox_sign_25519") { enum rspamd_cryptobox_mode mode = RSPAMD_CRYPTOBOX_MODE_25519; - rspamd_sk_t sk; - rspamd_pk_t pk; + rspamd_sig_sk_t sk; + rspamd_sig_pk_t pk; unsigned char sig[256]; unsigned long long siglen; std::string m{"data to be signed"}; - rspamd_cryptobox_keypair(pk, sk, mode); + rspamd_cryptobox_keypair_sig(pk, sk, mode); rspamd_cryptobox_sign(sig, &siglen, reinterpret_cast(m.data()), m.size(), sk, mode); @@ -179,13 +179,13 @@ TEST_SUITE("rspamd_cryptobox") TEST_CASE("rspamd_cryptobox_sign_nist") { enum rspamd_cryptobox_mode mode = RSPAMD_CRYPTOBOX_MODE_NIST; - rspamd_sk_t sk; - rspamd_pk_t pk; + rspamd_sig_sk_t sk; + rspamd_sig_pk_t pk; unsigned char sig[256]; unsigned long long siglen; std::string m{"data to be signed"}; - rspamd_cryptobox_keypair(pk, sk, mode); + rspamd_cryptobox_keypair_sig(pk, sk, mode); rspamd_cryptobox_sign(sig, &siglen, reinterpret_cast(m.data()), m.size(), sk, mode);