The verification key
If you have openssl in your project, you can enable the openssl
feature on this crate and use
.as_verify_key()?
on an
openssl::rsa::Rsa
type.
This should contain a valid HMAC key, or a valid PKCS#1 DER encoded RSA key.
Create a VerifyKey from an unchecked slice
This is potentially dangerous, since it doesn't enforce that the slice contains a PKCS#1
DER encoded RSA Public Key, or a valid HMAC key.
For RSA verification, this key must be constructed from a PKCS#1 DER encoded byte string.
Create a VerifyKey from an unchecked vec
This is potentially dangerous, since it doesn't enforce that the slice contains a PKCS#1
DER encoded RSA Public Key, or a valid HMAC key.
For RSA verification, this key must be constructed from a PKCS#1 DER encoded byte string.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static