Crate libcrux_rsa
Source - PrivateKey
- An RSA Private Key that is
LEN
bytes long. - PublicKey
- An RSA Public Key that is
LEN
bytes long. - VarLenPrivateKey
- An RSA Private Key backed by slices. Use if the length is not known at compile time.
- VarLenPublicKey
- An RSA Public Key backed by a slice. Use if the length is not known at compile time.
- DigestAlgorithm
- The hash algorithm used for signing or verifying.
- Error
- Represents errors that occurred during signing or verifying.
- sign
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_2048
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_3072
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_4096
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_6144
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_8192
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - sign_varlen
- Computes a signature over
msg
using sk
and writes it to sig
.
Returns Ok(())
on success. - verify
- Returns
Ok(())
if the provided signature is valid. - verify_2048
- Returns
Ok(())
if the provided signature is valid. - verify_3072
- Returns
Ok(())
if the provided signature is valid. - verify_4096
- Returns
Ok(())
if the provided signature is valid. - verify_6144
- Returns
Ok(())
if the provided signature is valid. - verify_8192
- Returns
Ok(())
if the provided signature is valid. - verify_varlen
- Returns
Ok(())
if the provided signature is valid.