• Home
  • Raw
  • Download

Lines Matching +full:linux +full:- +full:stable +full:- +full:openssl

8 *Note all new crates follow the convention of using underscore `_` instead of hyphen `-` in crate n…
13 of [`LDT`](https://luca-giuzzi.unibs.it/corsi/Support/papers-cryptography/1619-2007-NIST-Submission…
14 which can use `xts-aes` as its tweakable block cipher.
22 Higher-level wrapper around the core LDT algorithm that does key derivation and
32 Sample c program which provides its own OpenSSL based AES implementation to encrypt data through th…
42 of [`XTS-AES`](https://luca-giuzzi.unibs.it/corsi/Support/papers-cryptography/1619-2007-NIST-Submis…
50 brew install protobuf rapidjson google-benchmark
53 We depend on OpenSSL of version at least 3.0.5 being installed on your machine to build the fuzzers…
56 brew install openssl@3
61 brew link --force openssl
64 The in-box version of Clang which comes from XCode developer tools does not have a fuzzer runtime s…
70 $(brew --prefix llvm)/bin
79 clang --version
91 running with `--help` to see all args.
103 cargo run --release --example ldt_prp -- \
104 --trials 1000000 \
105 --check-leading-bytes 16
114 cargo run --release --example ldt_benchmark -- \
115 --trials 500 \
116 --keys 1000
123 mkdir -p cmake-build && cd cmake-build
133 mkdir -p cmake-build && cd cmake-build
134 cmake .. -DENABLE_TESTS=TRUE
146 To build all the fuzzers, run `scripts/build-fuzzers.sh`.
152 - `cd` to a crate's directory
153 - `cargo fuzz list` to list available fuzzers
154 - `cargo fuzz run [fuzzer name]` to run a fuzzer
160 ## Cross-compilation for Android
162 - Add the 64bit ARM target to the stable and nightly toolchains:
163 - `rustup target add aarch64-linux-android`
164 - `rustup target add aarch64-linux-android --toolchain nightly`
166 - Install the v22 NDK that still links against `libgcc` the way rust's stdlib
168 - Newer NDKs use `libunwind` instead, which can be used just fine if you
171 - `./sdkmanager --install platform-tools 'ndk;22.0.7026061'`
173 - Configure the linker used for the ARMv8 Android target to be the NDK's linker.
174- `export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=$ANDROID_HOME/ndk/22.0.7026061/toolchains/llvm…
175- `export PKG_CONFIG_SYSROOT_DIR=$ANDROID_HOME/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86…
177 - See if everything builds, using the nightly toolchain for the moment to
179 - `cargo +nightly build --workspace --all-targets --target aarch64-linux-android`
180 - `cargo +nightly bench --workspace --no-run --target aarch64-linux-android`
182 - Prepare a place for the benchmark to be on the phone
184 - `adb shell`
185 - then
186 - `mkdir -p /data/local/tmp/np && cd /data/local/tmp/np`
187 - Leave the shell on the phone open so you can use it to run the benchmark.
189 - Find the benchmark binary in the build products
191 - Use whatever directory you configured as the `target-dir` in
194 - `find TARGET_DIR -name 'ldt_scan*' | grep android`
195 - Copy the file to the phone
196 - `adb push FILE_FOUND_ABOVE /data/local/tmp/np/`
198 - In your `adb shell`, run the benchmark
200 - `./ldt_scan-... --bench`
201 ### Building min-sized release cross-compiled for Android
202 - Copy and paste the following into your `~/.cargo/config.toml`, replacing with a path to your NDK …
204 [target.aarch64-linux-android]
206 …droid/sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android21-clan…
208 - then run:
209 … +nightly build -Z build-std=core,alloc -Z build-std-features=panic_immediate_abort --target aarch…
215 XTS-AES has a NIST
216 … XTS-AES Tweakable Block Cipher - An Extract from IEEE Std 1619-2007](https://luca-giuzzi.unibs.it…
221 each block or sequence of blocks. XTS-AES in particular is used in disk