vincenthz / hs-cipher-aes

DEPRECATED - use cryptonite - a comprehensive fast AES implementation for haskell that supports aesni and advanced cryptographic modes.
Other
21 stars 15 forks source link

Re-enable Mac OS X support #18

Closed pthariensflame closed 11 years ago

pthariensflame commented 11 years ago

x86-Darwin presents the same special case as x86-Linux.

vincenthz commented 11 years ago

unfortunately, this is not as easy. last time i tried on a recentish macosX (10.7 IIRC), the aes activation flags were not recognized, and lead to build failure. I think the approach @TomMD took is much better (autodetecting the flag in the Setup.hs), as technically you could have the same problem on unix, unfortunately it's very brittle and on windows the aesni code doesn't yet work and lead to crash.

pthariensflame commented 11 years ago

I see. This works for me under OS X 10.8, but maybe that's because I've turned it halfway into a Linux machine anyway. :)