[botan-devel] 1.11.16: AES-NI cannot be disabled?

Marcel lists at nightsoul.org
Wed Jun 3 08:39:04 EDT 2015


Hi Jack,

the fix works fine, thanks!

Marcel

> Am 03.06.2015 um 14:21 schrieb Jack Lloyd <lloyd at randombit.net>:
> 
> On Tue, Jun 02, 2015 at 11:17:21AM +0200, Marcel wrote:
>> Hello,
>> 
>> I have a Botan 1.11.16 amalgamation build generated with the following options:
>> ./configure.py --gen-amalgamation --with-bzip2 --os=osx --cc=clang --disable-aes-ni --disable-avx2 --disable-ssse3
>> 
>> The generated .cpp’s for avx2 and ssse3 disappear as expected if the ISA extensions are disabled, but for AES-NI that doesn’t seem to work and BOTAN_TARGET_SUPPORTS_AESNI is still defined.
>> Am I missing something or is this a bug? :)
> 
> Hi Marcel,
> 
> It is indeed a bug. The following patch should resolve it, I've
> already applied this to trunk.  Thanks for the report.
> 
> Cheers,
>  Jack
> 
> #
> # old_revision [83d0f5bd837e56218513c84a66a14d04750eb389]
> #
> # patch "configure.py"
> #  from [ff4b0f476305b623c36a17472f2ad4bcbecc3b25]
> #    to [8e4726c8e3bccf21d3f09f753bfdca4982b05f95]
> #
> ============================================================
> --- configure.py        ff4b0f476305b623c36a17472f2ad4bcbecc3b25
> +++ configure.py        8e4726c8e3bccf21d3f09f753bfdca4982b05f95
> @@ -275,7 +275,7 @@ def process_command_line(args):
>         target_group.add_option('--disable-%s' % (isa_extn),
>                                 help='disable %s intrinsics' % (isa_extn_name),
>                                 action='append_const',
> -                                const=isa_extn,
> +                                const=isa_extn.replace('-', ''),
>                                 dest='disable_intrinsics')
> 
>     build_group = optparse.OptionGroup(parser, 'Build options')
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list