Docs.rs
spdb-sm2-0.1.1
spdb-sm2 0.1.1
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
yinxu46
Dependencies
base64 ^0.22.1
normal
byteorder ^1.5.0
normal
efficient-sm2 ^0.2.4
normal
hex ^0.4
normal
libsm ^0.6
normal
md5 ^0.7
normal
num-bigint ^0.4
normal
num-traits ^0.2
normal
openssl ^0.10
normal
sha1 ^0.10
normal
sha2 ^0.10
normal
smcrypto ^0.3
normal
thiserror ^1
normal
yasna ^0.5.2
normal
Versions
53.33%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
rsa_verify
spdb_
sm2
0.1.1
spdb_sm2
Function
rsa_
verify
Copy item path
Source
pub fn rsa_verify(msg: &[
u8
], pk: &[
u8
], sign: &
str
) ->
Result
<
bool
,
Sm2Error
>
Expand description
rsa公钥验签
msg: 待验签数据
pk: 公钥字符串:—–BEGIN PUBLIC KEY—– … —–END PUBLIC KEY—–
sign: 签名字符串 (Header x-spdb-signature )