Craig McQueen
Craig McQueen
@jwinarske I didn't encounter ``error: failed to run custom build command for `ring v0.16.20` ``. I'm using Rust 1.54.0-x86_64-unknown-linux-gnu on Ubuntu 20.04.3 (64-bit). What are you using?
``` $ cargo --version && rustc --version cargo 1.54.0 (5ae8d74b3 2021-06-22) rustc 1.54.0 (a178d0322 2021-07-26) $ uname -a Linux ir-craig-vm1 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64...
To cross-compile `ring` and complete the cross-compile of the whole example, you need to install the cross-compile tools such as `aarch64-linux-gnu-gcc`. On Ubuntu, you can do: sudo apt install gcc-aarch64-linux-gnu...
@jwinarske have you been able to investigate this further? With my previous comment, you should be able to manually cross-compile for the aarch64 target, I think.
In my small AES implementation, [cmcqueen/aes-min](https://github.com/cmcqueen/aes-min), I've been adding some code for the Galois 128-bit multiply used in the GHASH for AES-GCM. I've got: * a bit-by-bit implementation (slow but...
You can validate an AES-GCM implementation against [these AES-GCM test vectors from NIST](https://csrc.nist.gov/csrc/media/projects/cryptographic-algorithm-validation-program/documents/mac/gcmtestvectors.zip).
See also my [cmcqueen/aes-min](https://github.com/cmcqueen/aes-min).
[aes-min](/cmcqueen/aes-min) does not provide code for any of the encryption modes, only the basic encryption/decryption block operation. And, it is 128-bit key size only. It does provide for using a...
Okay, I'm working on a write-up.
### Outline * Refer to classic doc on CRCs: [A Painless Guide to CRC Error Detection Algorithms](http://ross.net/crc/download/crc_v3.txt), by Ross Williams * For the purposes of a rolling CRC, it is...