MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / decrypt

Function decrypt

tests/binary/rsa/src/main.rs:70–72  ·  view source on GitHub ↗

RSA decryption: m = c^d mod n

(priv_key: &PrivateKey, ciphertext: u64)

Source from the content-addressed store, hash-verified

68
69// RSA decryption: m = c^d mod n
70fn decrypt(priv_key: &PrivateKey, ciphertext: u64) -> u64 {
71 mod_exp(ciphertext, priv_key.d, priv_key.n)
72}
73
74// Main test function
75fn main() {

Callers 1

mainFunction · 0.85

Calls 1

mod_expFunction · 0.85

Tested by

no test coverage detected