Sha256: 27f9052fbfaa3d13ea66ec5c6c27bcca08b415813b2a9985e990cbf1ba7b1e7f

Contents?: true

Size: 437 Bytes

Versions: 54

Compression:

Stored size: 437 Bytes

Contents

pub fn private_key(p: u64) -> u64 {
    unimplemented!("Pick a private key greater than 1 and less than {}", p)
}

pub fn public_key(p: u64, g: u64, a: u64) -> u64 {
    unimplemented!("Calculate public key using prime numbers {} and {}, and private key {}", p, g, a)
}

pub fn secret(p: u64, b_pub: u64, a: u64) -> u64 {
    unimplemented!("Calculate secret key using prime number {}, public key {}, and private key {}", p, b_pub, a)
}

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trackler-2.2.1.171 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.170 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.169 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.167 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.166 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.165 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.164 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.163 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.162 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.161 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.160 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.159 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.158 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.157 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.156 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.155 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.154 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.153 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.152 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.151 tracks/rust/exercises/diffie-hellman/src/lib.rs