# Crate pumpkin [−] [src]

A crate for generating large, cryptographically secure prime numbers. `Primes` are seeded from the operating system's main source of entropy, ensuring proper randomness.

`Primes` must be AT LEAST 512-bits long. Attempting to generate a `Prime` less than 512-bits long will cause a panic.

## Example

    extern crate pumpkin;

    use pumpkin::Prime;

    fn main() {
        // Generate 2048-bit primes
        let p = Prime::new(2048);
        let q = Prime::new(2048);

        let n = p * q;
        println!("{}", n); // Some 4096-bit composite number
    }

## Structs

Prime | A cryptographically secure prime number.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)