Skip to content

Commit

Permalink
[KEW-1360] Fix access to verify_rsa_sha256_sig C API
Browse files Browse the repository at this point in the history
  • Loading branch information
jalbiero authored Jul 5, 2019
1 parent df3a390 commit 9905a27
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion libraries/eosiolib/core/eosio/crypto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
#include <array>

namespace eosio {
namespace internal_use_do_not_use {
extern "C" {
__attribute__((eosio_wasm_import))
int verify_rsa_sha256_sig(const void* message, uint32_t message_len,
const char* signature, uint32_t signature_len,
const char* exponent, uint32_t exponent_len,
const char* modulus, uint32_t modulus_len);
}
}


/**
* @defgroup public_key Public Key Type
Expand Down Expand Up @@ -292,7 +302,7 @@ namespace eosio {
std::string_view signature,
std::string_view exponent,
std::string_view modulus) {
return ::verify_rsa_sha256_sig(
return internal_use_do_not_use::verify_rsa_sha256_sig(
message, message_len,
signature.data(), signature.size(),
exponent.data(), exponent.size(),
Expand Down

0 comments on commit 9905a27

Please sign in to comment.