X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=echo%2Fgf256mul.c;fp=echo%2Fgf256mul.c;h=0000000000000000000000000000000000000000;hp=a47364601e06dcd4656ef95cbad216a45d94ff79;hb=d70d1d77bab1a5f5278227d674bc59da0378fe15;hpb=d00ed9a275c69fa3512007452e479abd98dbe745
diff --git a/echo/gf256mul.c b/echo/gf256mul.c
deleted file mode 100644
index a473646..0000000
--- a/echo/gf256mul.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* gf256mul.c */
-/*
- This file is part of the ARM-Crypto-Lib.
- Copyright (C) 2006-2010 Daniel Otte (daniel.otte@rub.de)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-*/
-
-#include
-
-uint8_t gf256mul(uint8_t a, uint8_t b, uint8_t reducer){
- uint8_t r=0;
- while(a&0xFE){
- if(a&1){
- r ^= b;
- }
- a >>= 1;
- if(b&0x80){
- b <<= 1;
- b ^= reducer;
- }else{
- b <<= 1;
- }
- }
- if(a&1){
- r ^= b;
- }
- return r;
-}