Sha256: c4254c3e4e7204fe971f13dde220550a1372b5bcfca71864db6bc7e58c801269

Contents?: true

Size: 513 Bytes

Versions: 9

Compression:

Stored size: 513 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

9 entries across 9 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.179 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.178 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.177 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.176 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.175 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.174 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.173 tracks/rust/exercises/diffie-hellman/src/lib.rs
trackler-2.2.1.172 tracks/rust/exercises/diffie-hellman/src/lib.rs