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.

Modulesยง

encode ๐Ÿ”’
RSA cross-cert generation

Structsยง

EncodedRsaCrosscert
An RSA cross certificate certificate, created using EncodedRsaCrosscert::encode_and_sign.
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.