Skip to main content

Module rsa

Module rsa 

Source
Expand description

RSA->Ed25519 cross-certificates

These are used in the Tor link handshake to prove that a given ed25519 key speaks for a given (deprecated) RSA identity.

Re-exportsยง

use tor_bytes::Reader; ๐Ÿ”’
use tor_checkable::ExternallySigned; ๐Ÿ”’
use tor_checkable::timed::TimeRangeBound; ๐Ÿ”’
use tor_llcrypto as ll; ๐Ÿ”’
use digest::Digest; ๐Ÿ”’
use crate::CertType; ๐Ÿ”’
use crate::ExpiryHours; ๐Ÿ”’
pub use encode::EncodedRsaCrosscert;

Modulesยง

encode ๐Ÿ”’
RSA cross-cert generation

Structsยง

RsaCrosscert
A RSA->Ed25519 cross-certificate
UncheckedRsaCrosscert
An RsaCrosscert whose signature has not been checked.

Constantsยง

PREFIX ๐Ÿ”’
Prefix appended when generating a digest for an RsaCrosscert

Functionsยง

compute_digest ๐Ÿ”’
Compute the SHA256 digest of c, prefixed with PREFIX.