Skip to content

Commit 6db0f74

Browse files
committed
Rename assert_rsa_sha1_assert to assert_rsa_sha1
1 parent 8bcdd4d commit 6db0f74

File tree

3 files changed

+58
-58
lines changed

3 files changed

+58
-58
lines changed

examples/helloack/src/helloack.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void helloack::check_ecdsa_secp256r1_sha256(bytes_view qx, bytes_view qy, bytes_
3838
void helloack::check_rsa_sha1(rsa_public_key_view pubkey, bytes_view msg, bytes_view sig)
3939
{
4040
auto md = eosio::sha1( reinterpret_cast<const char*>( msg.data() ), msg.size() );
41-
assert_rsa_sha1_assert( pubkey, md, sig,
41+
assert_rsa_sha1( pubkey, md, sig,
4242
"RSA PKCS v1.5 SHA-1 signature verification failed"
4343
);
4444
}
@@ -92,7 +92,7 @@ void helloack::check_rsa_pss_sha512(rsa_pss_public_key_view pubkey, bytes_view m
9292
void helloack::bt_rsa_1024_sha1()
9393
{
9494
constexpr auto pubkey = rsa_public_key_view( rsa_1024_sha1::mod, rsa_1024_sha1::exp );
95-
assert_rsa_sha1_assert( pubkey, rsa_1024_sha1::md, rsa_1024_sha1::sig,
95+
assert_rsa_sha1( pubkey, rsa_1024_sha1::md, rsa_1024_sha1::sig,
9696
"RSA 1024 PKCS v1.5 SHA-1 signature verification failed"
9797
);
9898
}
@@ -101,7 +101,7 @@ void helloack::bt_rsa_1024_sha1()
101101
void helloack::bt_rsa_2048_sha1()
102102
{
103103
constexpr auto pubkey = rsa_public_key_view( rsa_2048_sha1::mod, rsa_2048_sha1::exp );
104-
assert_rsa_sha1_assert( pubkey, rsa_2048_sha1::md, rsa_2048_sha1::sig,
104+
assert_rsa_sha1( pubkey, rsa_2048_sha1::md, rsa_2048_sha1::sig,
105105
"RSA 2048 PKCS v1.5 SHA-1 signature verification failed"
106106
);
107107
}

include/ack/rsa.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ namespace ack {
341341
* @param signature - RSA PKCS1 v1.5 signature
342342
* @param error - error message to use when verification fails
343343
*/
344-
inline void assert_rsa_sha1_assert(const rsa_public_key_view& pub_key, const hash160& digest, const bytes_view& signature, const char* error) {
344+
inline void assert_rsa_sha1(const rsa_public_key_view& pub_key, const hash160& digest, const bytes_view& signature, const char* error) {
345345
eosio::check( verify_rsa_sha1( pub_key, digest, signature ), error );
346346
}
347347

0 commit comments

Comments
 (0)