Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd back (off-by-default) "soft-aes" feature #10
Conversation
This comment has been minimized.
This comment has been minimized.
|
@newpavlov I think the My personal inclination is to leave it off-by-default so users need to opt-in, but I'd be fine with the |
tarcieri
force-pushed the
soft-aes
branch
from
7bbf254
to
ad367a5
Jan 12, 2019
tarcieri
force-pushed the
soft-aes
branch
from
ad367a5
to
8f8c7be
Jan 12, 2019
tarcieri
merged commit ea72462
into
master
Jan 12, 2019
1 check passed
tarcieri
deleted the
soft-aes
branch
Jan 12, 2019
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Jan 13, 2019
|
I am still not sure about use-cases for this feature flag. Can you elaborate why you may need it? |
This comment has been minimized.
This comment has been minimized.
|
(See also discussion on #12) @newpavlov right now it's difficult to tell if you are configuring Per #12, it seems like without a more draconian mechanism, most people will not configure I think in an ideal case, at least for me:
I can open an issue about this on on https://github.com/RustCrypto/block-ciphers if you'd like. |
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Jan 16, 2019
|
I think if you want to ensure that miscreant is built with the required target-features, you can add cfg'd |
This comment has been minimized.
This comment has been minimized.
|
@newpavlov aah, indeed! I'll go ahead and make that change. |
tarcieri commentedJan 12, 2019
The
aescrate v0.3 eliminated feature-gated fallback to soft AES.This adds back a
soft-aesfeature to opt-in to a software implementation of AES on platforms where a hardware implementation is not available.Right now the only supported hardware implementation is AES-NI. This approach mirrors the target gating used by the
aescrate, and therefore unless thesoft-aesfeature is enabled this cratewill not compile on any other architecture besides x86(-64) with AES-NI target features enabled.