Change in ...osmo-ttcn3-hacks[master]: snow-3g: const-ify S-boxes

laforge gerrit-no-reply at lists.osmocom.org
Sun Aug 18 17:14:22 UTC 2019


laforge has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15199 )

Change subject: snow-3g: const-ify S-boxes
......................................................................

snow-3g: const-ify S-boxes

Change-Id: I3a85120aad95011954f25bb42900133cb30cddb7
---
M mme/snow-3g.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/mme/snow-3g.c b/mme/snow-3g.c
index 4c728fe..6d4fe2a 100644
--- a/mme/snow-3g.c
+++ b/mme/snow-3g.c
@@ -31,7 +31,7 @@
 
 /* Rijndael S-box SR */
 
-static u8 SR[256] = {
+static const u8 SR[256] = {
 0x63,0x7C,0x77,0x7B,0xF2,0x6B,0x6F,0xC5,0x30,0x01,0x67,0x2B,0xFE,0xD7,0xAB,0x76,
 0xCA,0x82,0xC9,0x7D,0xFA,0x59,0x47,0xF0,0xAD,0xD4,0xA2,0xAF,0x9C,0xA4,0x72,0xC0,
 0xB7,0xFD,0x93,0x26,0x36,0x3F,0xF7,0xCC,0x34,0xA5,0xE5,0xF1,0x71,0xD8,0x31,0x15,
@@ -52,7 +52,7 @@
 
 /* S-box SQ */
 
-static u8 SQ[256] = {
+static const u8 SQ[256] = {
 0x25,0x24,0x73,0x67,0xD7,0xAE,0x5C,0x30,0xA4,0xEE,0x6E,0xCB,0x7D,0xB5,0x82,0xDB,
 0xE4,0x8E,0x48,0x49,0x4F,0x5D,0x6A,0x78,0x70,0x88,0xE8,0x5F,0x5E,0x84,0x65,0xE2,
 0xD8,0xE9,0xCC,0xED,0x40,0x2F,0x11,0x28,0x57,0xD2,0xAC,0xE3,0x4A,0x15,0x1B,0xB9,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15199
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I3a85120aad95011954f25bb42900133cb30cddb7
Gerrit-Change-Number: 15199
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190818/9f18ed82/attachment.html>


More information about the gerrit-log mailing list