diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2013-08-14 09:52:57 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-08-21 07:08:32 -0400 |
commit | 2a128b4b74e559e585028d0205e9729271530637 (patch) | |
tree | ae460eee32b23b07cf2f875cbe8ba97230203236 /arch/x86/crypto/camellia_glue.c | |
parent | 9dc48034596f3ef47ec5eb820f4dde4129d83a56 (diff) |
crypto: camellia-x86-64 - replace commas by semicolons and adjust code alignment
Adjust alignment and replace commas by semicolons in automatically
generated code.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/camellia_glue.c')
-rw-r--r-- | arch/x86/crypto/camellia_glue.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/arch/x86/crypto/camellia_glue.c b/arch/x86/crypto/camellia_glue.c index fa4c1b9d9ea9..c171dcbf192d 100644 --- a/arch/x86/crypto/camellia_glue.c +++ b/arch/x86/crypto/camellia_glue.c | |||
@@ -828,8 +828,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
828 | 828 | ||
829 | subRL[1] ^= (subRL[1] & ~subRL[9]) << 32; | 829 | subRL[1] ^= (subRL[1] & ~subRL[9]) << 32; |
830 | /* modified for FLinv(kl2) */ | 830 | /* modified for FLinv(kl2) */ |
831 | dw = (subRL[1] & subRL[9]) >> 32, | 831 | dw = (subRL[1] & subRL[9]) >> 32; |
832 | subRL[1] ^= rol32(dw, 1); | 832 | subRL[1] ^= rol32(dw, 1); |
833 | 833 | ||
834 | /* round 8 */ | 834 | /* round 8 */ |
835 | subRL[11] ^= subRL[1]; | 835 | subRL[11] ^= subRL[1]; |
@@ -840,8 +840,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
840 | 840 | ||
841 | subRL[1] ^= (subRL[1] & ~subRL[17]) << 32; | 841 | subRL[1] ^= (subRL[1] & ~subRL[17]) << 32; |
842 | /* modified for FLinv(kl4) */ | 842 | /* modified for FLinv(kl4) */ |
843 | dw = (subRL[1] & subRL[17]) >> 32, | 843 | dw = (subRL[1] & subRL[17]) >> 32; |
844 | subRL[1] ^= rol32(dw, 1); | 844 | subRL[1] ^= rol32(dw, 1); |
845 | 845 | ||
846 | /* round 14 */ | 846 | /* round 14 */ |
847 | subRL[19] ^= subRL[1]; | 847 | subRL[19] ^= subRL[1]; |
@@ -859,8 +859,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
859 | } else { | 859 | } else { |
860 | subRL[1] ^= (subRL[1] & ~subRL[25]) << 32; | 860 | subRL[1] ^= (subRL[1] & ~subRL[25]) << 32; |
861 | /* modified for FLinv(kl6) */ | 861 | /* modified for FLinv(kl6) */ |
862 | dw = (subRL[1] & subRL[25]) >> 32, | 862 | dw = (subRL[1] & subRL[25]) >> 32; |
863 | subRL[1] ^= rol32(dw, 1); | 863 | subRL[1] ^= rol32(dw, 1); |
864 | 864 | ||
865 | /* round 20 */ | 865 | /* round 20 */ |
866 | subRL[27] ^= subRL[1]; | 866 | subRL[27] ^= subRL[1]; |
@@ -882,8 +882,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
882 | 882 | ||
883 | kw4 ^= (kw4 & ~subRL[24]) << 32; | 883 | kw4 ^= (kw4 & ~subRL[24]) << 32; |
884 | /* modified for FL(kl5) */ | 884 | /* modified for FL(kl5) */ |
885 | dw = (kw4 & subRL[24]) >> 32, | 885 | dw = (kw4 & subRL[24]) >> 32; |
886 | kw4 ^= rol32(dw, 1); | 886 | kw4 ^= rol32(dw, 1); |
887 | } | 887 | } |
888 | 888 | ||
889 | /* round 17 */ | 889 | /* round 17 */ |
@@ -895,8 +895,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
895 | 895 | ||
896 | kw4 ^= (kw4 & ~subRL[16]) << 32; | 896 | kw4 ^= (kw4 & ~subRL[16]) << 32; |
897 | /* modified for FL(kl3) */ | 897 | /* modified for FL(kl3) */ |
898 | dw = (kw4 & subRL[16]) >> 32, | 898 | dw = (kw4 & subRL[16]) >> 32; |
899 | kw4 ^= rol32(dw, 1); | 899 | kw4 ^= rol32(dw, 1); |
900 | 900 | ||
901 | /* round 11 */ | 901 | /* round 11 */ |
902 | subRL[14] ^= kw4; | 902 | subRL[14] ^= kw4; |
@@ -907,8 +907,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
907 | 907 | ||
908 | kw4 ^= (kw4 & ~subRL[8]) << 32; | 908 | kw4 ^= (kw4 & ~subRL[8]) << 32; |
909 | /* modified for FL(kl1) */ | 909 | /* modified for FL(kl1) */ |
910 | dw = (kw4 & subRL[8]) >> 32, | 910 | dw = (kw4 & subRL[8]) >> 32; |
911 | kw4 ^= rol32(dw, 1); | 911 | kw4 ^= rol32(dw, 1); |
912 | 912 | ||
913 | /* round 5 */ | 913 | /* round 5 */ |
914 | subRL[6] ^= kw4; | 914 | subRL[6] ^= kw4; |
@@ -928,8 +928,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
928 | SET_SUBKEY_LR(6, subRL[5] ^ subRL[7]); /* round 5 */ | 928 | SET_SUBKEY_LR(6, subRL[5] ^ subRL[7]); /* round 5 */ |
929 | 929 | ||
930 | tl = (subRL[10] >> 32) ^ (subRL[10] & ~subRL[8]); | 930 | tl = (subRL[10] >> 32) ^ (subRL[10] & ~subRL[8]); |
931 | dw = tl & (subRL[8] >> 32), /* FL(kl1) */ | 931 | dw = tl & (subRL[8] >> 32); /* FL(kl1) */ |
932 | tr = subRL[10] ^ rol32(dw, 1); | 932 | tr = subRL[10] ^ rol32(dw, 1); |
933 | tt = (tr | ((u64)tl << 32)); | 933 | tt = (tr | ((u64)tl << 32)); |
934 | 934 | ||
935 | SET_SUBKEY_LR(7, subRL[6] ^ tt); /* round 6 */ | 935 | SET_SUBKEY_LR(7, subRL[6] ^ tt); /* round 6 */ |
@@ -937,8 +937,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
937 | SET_SUBKEY_LR(9, subRL[9]); /* FLinv(kl2) */ | 937 | SET_SUBKEY_LR(9, subRL[9]); /* FLinv(kl2) */ |
938 | 938 | ||
939 | tl = (subRL[7] >> 32) ^ (subRL[7] & ~subRL[9]); | 939 | tl = (subRL[7] >> 32) ^ (subRL[7] & ~subRL[9]); |
940 | dw = tl & (subRL[9] >> 32), /* FLinv(kl2) */ | 940 | dw = tl & (subRL[9] >> 32); /* FLinv(kl2) */ |
941 | tr = subRL[7] ^ rol32(dw, 1); | 941 | tr = subRL[7] ^ rol32(dw, 1); |
942 | tt = (tr | ((u64)tl << 32)); | 942 | tt = (tr | ((u64)tl << 32)); |
943 | 943 | ||
944 | SET_SUBKEY_LR(10, subRL[11] ^ tt); /* round 7 */ | 944 | SET_SUBKEY_LR(10, subRL[11] ^ tt); /* round 7 */ |
@@ -948,8 +948,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
948 | SET_SUBKEY_LR(14, subRL[13] ^ subRL[15]); /* round 11 */ | 948 | SET_SUBKEY_LR(14, subRL[13] ^ subRL[15]); /* round 11 */ |
949 | 949 | ||
950 | tl = (subRL[18] >> 32) ^ (subRL[18] & ~subRL[16]); | 950 | tl = (subRL[18] >> 32) ^ (subRL[18] & ~subRL[16]); |
951 | dw = tl & (subRL[16] >> 32), /* FL(kl3) */ | 951 | dw = tl & (subRL[16] >> 32); /* FL(kl3) */ |
952 | tr = subRL[18] ^ rol32(dw, 1); | 952 | tr = subRL[18] ^ rol32(dw, 1); |
953 | tt = (tr | ((u64)tl << 32)); | 953 | tt = (tr | ((u64)tl << 32)); |
954 | 954 | ||
955 | SET_SUBKEY_LR(15, subRL[14] ^ tt); /* round 12 */ | 955 | SET_SUBKEY_LR(15, subRL[14] ^ tt); /* round 12 */ |
@@ -957,8 +957,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
957 | SET_SUBKEY_LR(17, subRL[17]); /* FLinv(kl4) */ | 957 | SET_SUBKEY_LR(17, subRL[17]); /* FLinv(kl4) */ |
958 | 958 | ||
959 | tl = (subRL[15] >> 32) ^ (subRL[15] & ~subRL[17]); | 959 | tl = (subRL[15] >> 32) ^ (subRL[15] & ~subRL[17]); |
960 | dw = tl & (subRL[17] >> 32), /* FLinv(kl4) */ | 960 | dw = tl & (subRL[17] >> 32); /* FLinv(kl4) */ |
961 | tr = subRL[15] ^ rol32(dw, 1); | 961 | tr = subRL[15] ^ rol32(dw, 1); |
962 | tt = (tr | ((u64)tl << 32)); | 962 | tt = (tr | ((u64)tl << 32)); |
963 | 963 | ||
964 | SET_SUBKEY_LR(18, subRL[19] ^ tt); /* round 13 */ | 964 | SET_SUBKEY_LR(18, subRL[19] ^ tt); /* round 13 */ |
@@ -972,8 +972,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
972 | SET_SUBKEY_LR(24, subRL[24] ^ subRL[23]); /* kw3 */ | 972 | SET_SUBKEY_LR(24, subRL[24] ^ subRL[23]); /* kw3 */ |
973 | } else { | 973 | } else { |
974 | tl = (subRL[26] >> 32) ^ (subRL[26] & ~subRL[24]); | 974 | tl = (subRL[26] >> 32) ^ (subRL[26] & ~subRL[24]); |
975 | dw = tl & (subRL[24] >> 32), /* FL(kl5) */ | 975 | dw = tl & (subRL[24] >> 32); /* FL(kl5) */ |
976 | tr = subRL[26] ^ rol32(dw, 1); | 976 | tr = subRL[26] ^ rol32(dw, 1); |
977 | tt = (tr | ((u64)tl << 32)); | 977 | tt = (tr | ((u64)tl << 32)); |
978 | 978 | ||
979 | SET_SUBKEY_LR(23, subRL[22] ^ tt); /* round 18 */ | 979 | SET_SUBKEY_LR(23, subRL[22] ^ tt); /* round 18 */ |
@@ -981,8 +981,8 @@ static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max) | |||
981 | SET_SUBKEY_LR(25, subRL[25]); /* FLinv(kl6) */ | 981 | SET_SUBKEY_LR(25, subRL[25]); /* FLinv(kl6) */ |
982 | 982 | ||
983 | tl = (subRL[23] >> 32) ^ (subRL[23] & ~subRL[25]); | 983 | tl = (subRL[23] >> 32) ^ (subRL[23] & ~subRL[25]); |
984 | dw = tl & (subRL[25] >> 32), /* FLinv(kl6) */ | 984 | dw = tl & (subRL[25] >> 32); /* FLinv(kl6) */ |
985 | tr = subRL[23] ^ rol32(dw, 1); | 985 | tr = subRL[23] ^ rol32(dw, 1); |
986 | tt = (tr | ((u64)tl << 32)); | 986 | tt = (tr | ((u64)tl << 32)); |
987 | 987 | ||
988 | SET_SUBKEY_LR(26, subRL[27] ^ tt); /* round 19 */ | 988 | SET_SUBKEY_LR(26, subRL[27] ^ tt); /* round 19 */ |