Browse Source

Set VPAES flags in x86-64 code.

The ImplDispatchTest was broken because the 64-bit VPAES code wasn't
setting the hit flags.

Change-Id: I30200db64337deba7ae9d70d8427decbdfceca58
Reviewed-on: https://boringssl-review.googlesource.com/c/34986
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
Adam Langley 5 years ago
parent
commit
a367d9267f
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      crypto/fipsmodule/aes/asm/vpaes-x86_64.pl

+ 13
- 0
crypto/fipsmodule/aes/asm/vpaes-x86_64.pl View File

@@ -696,6 +696,13 @@ _vpaes_schedule_mangle:
.align 16
${PREFIX}_set_encrypt_key:
.cfi_startproc
#ifndef NDEBUG
#ifndef BORINGSSL_FIPS
.extern BORINGSSL_function_hit
movb \$1, BORINGSSL_function_hit+5(%rip)
#endif
#endif

___
$code.=<<___ if ($win64);
lea -0xb8(%rsp),%rsp
@@ -801,6 +808,12 @@ $code.=<<___;
.align 16
${PREFIX}_encrypt:
.cfi_startproc
#ifndef NDEBUG
#ifndef BORINGSSL_FIPS
.extern BORINGSSL_function_hit
movb \$1, BORINGSSL_function_hit+4(%rip)
#endif
#endif
___
$code.=<<___ if ($win64);
lea -0xb8(%rsp),%rsp


Loading…
Cancel
Save