Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5757a9f2 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Make AES control block into a thread local variable

am: 327ea52b

Change-Id: Ib09ebcdac90e0203fa15bd1044ff85cea25efa18
parents 07a3d450 327ea52b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ typedef struct {
  uint16_t round;
} tCMAC_CB;

tCMAC_CB cmac_cb;
thread_local tCMAC_CB cmac_cb;

/* Rb for AES-128 as block cipher, LSB as [0] */
Octet16 const_Rb{0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,