Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for x86_64-fortanix-unknown-sgx target #738

Closed
wants to merge 5 commits into from

Commits on Feb 7, 2019

  1. Implement entropy source for SGX

    I agree to license my contributions to each file under the terms given
    at the top of each file I changed.
    
    Co-authored-by: Akash Anand <akash.anand@fortanix.com>
    Jethro Beekman and akash-fortanix committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    e86ca3a View commit details
    Browse the repository at this point in the history
  2. Disable AES/GCM Fallback implementations on SGX

    I agree to license my contributions to each file under the terms given
    at the top of each file I changed.
    Jethro Beekman committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    7c29308 View commit details
    Browse the repository at this point in the history
  3. Optionally use std::is_x86_feature_detected for feature detection

    Audit of all CPUID features use by *ring* at the time of the commit:
    
    |              | chacha | aesni | mont5 | mont | ghash | sha512 | poly1305 | Rust |
    |--------------|--------|-------|-------|------|-------|--------|----------|------|
    | ADX          |        |       | *     | *    |       |        |          |      |
    | AES          |        |       |       |      |       |        |          | *    |
    | AVX          |        | *     |       |      |       | *      | *        | *    |
    | AVX2         | *      |       |       | *    |       | *      | *        |      |
    | AVX512F      | *      |       |       |      |       |        |          |      |
    | BMI1         |        |       | *     |      |       | *      |          |      |
    | BMI2         |        |       | *     | *    |       | *      |          |      |
    | FXSR         |        |       |       |      |       |        |          | 5    |
    | “intel CPU”  |        |       |       |      |       | *      |          |      |
    | MOVBE        | 1,2    | *     |       |      | 1,3   |        |          | 6    |
    | PCLMULQDQ    |        |       |       |      |       |        |          | *    |
    | SHA          |        |       |       |      |       | *      |          |      |
    | SSSE3        | *      |       |       |      |       | *      |          | *    |
    | XOP          |        | 4     |       |      |       |        |          |      |
    | XSAVE        | 1      | 1     |       |      | 1     |        |          |      |
    
    1. Instruction not used, only used to detect Atom processors
    2. If Atom, change the input lengths for which different code paths are taken (presumably for performance)
    3. If Atom, avoid one code path for performance
    4. Instruction not used
    5. Instruction not used, only used to detect PCLMULQDQ
    6. Instruction not used, only used to detect AVX
    
    I agree to license my contributions to each file under the terms given
    at the top of each file I changed.
    Jethro Beekman committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    2cb1d0c View commit details
    Browse the repository at this point in the history
  4. Add x86_64-fortanix-unknown-sgx to CI

    I agree to license my contributions to each file under the terms given
    at the top of each file I changed.
    Jethro Beekman committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    3759ffa View commit details
    Browse the repository at this point in the history
  5. Add SGX-specific notes to the documentation

    I agree to license my contributions to each file under the terms given
    at the top of each file I changed.
    Jethro Beekman committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    5b5b379 View commit details
    Browse the repository at this point in the history