Skip to content

Commit 14ba944

Browse files
committed
AES GCM ARM64: Fix clobber lists
1 parent 6125e59 commit 14ba944

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

wolfcrypt/src/port/arm/armv8-aes.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ static int Aes128GcmEncrypt(Aes* aes, byte* out, const byte* in, word32 sz,
35083508
[aSz] "+r" (authInSz), [sz] "+r" (sz), [aad] "+r" (authIn)
35093509
: [ctr] "r" (ctr), [scratch] "r" (scratch),
35103510
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
3511-
: "cc", "w11", "w12", "w13", "w14", "w15", "w16",
3511+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
35123512
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
35133513
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
35143514
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
@@ -5271,7 +5271,7 @@ static int Aes192GcmEncrypt(Aes* aes, byte* out, const byte* in, word32 sz,
52715271
[aSz] "+r" (authInSz), [sz] "+r" (sz), [aad] "+r" (authIn)
52725272
: [ctr] "r" (ctr), [scratch] "r" (scratch),
52735273
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
5274-
: "cc", "w11", "w12", "w13", "w14", "w15", "w16",
5274+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
52755275
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
52765276
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
52775277
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
@@ -7165,7 +7165,7 @@ static int Aes256GcmEncrypt(Aes* aes, byte* out, const byte* in, word32 sz,
71657165
[aSz] "+r" (authInSz), [sz] "+r" (sz), [aad] "+r" (authIn)
71667166
: [ctr] "r" (ctr), [scratch] "r" (scratch),
71677167
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
7168-
: "cc", "w11", "w12", "w13", "w14", "w15", "w16",
7168+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
71697169
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
71707170
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
71717171
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
@@ -8878,7 +8878,7 @@ static int Aes128GcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
88788878
[ret] "+r" (ret)
88798879
: [ctr] "r" (ctr), [scratch] "r" (scratch),
88808880
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
8881-
: "cc", "memory", "w11", "w12", "w13", "w14", "w15", "w16",
8881+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
88828882
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
88838883
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
88848884
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
@@ -10646,7 +10646,7 @@ static int Aes192GcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
1064610646
[ret] "+r" (ret)
1064710647
: [ctr] "r" (ctr), [scratch] "r" (scratch),
1064810648
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
10649-
: "cc", "memory", "w11", "w12", "w13", "w14", "w15", "w16",
10649+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
1065010650
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
1065110651
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
1065210652
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
@@ -12535,7 +12535,7 @@ static int Aes256GcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
1253512535
[ret] "+r" (ret)
1253612536
: [ctr] "r" (ctr), [scratch] "r" (scratch),
1253712537
[h] "m" (aes->gcm.H), [tag] "r" (authTag), [tagSz] "r" (authTagSz)
12538-
: "cc", "memory", "w11", "w12", "w13", "w14", "w15", "w16",
12538+
: "cc", "memory", "x11", "x12", "w13", "x14", "x15", "w16",
1253912539
"v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
1254012540
"v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
1254112541
"v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",

0 commit comments

Comments
 (0)