]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - lib/sha1.c
cmd: add command for accessing the RPM via SMD protocol
[karo-tx-uboot.git] / lib / sha1.c
index a121224855f4786f9ca92de5396bd1262301c6bc..72c5dea14f092cdb2ce72e260fe3ac67d30dc2b7 100644 (file)
@@ -5,19 +5,7 @@
  *
  *  Copyright (C) 2003-2006  Christophe Devine
  *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public
- *  License, version 2.1 as published by the Free Software Foundation.
- *
- *  This library 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
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this library; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- *  MA  02110-1301  USA
+ * SPDX-License-Identifier:    LGPL-2.1
  */
 /*
  *  The SHA-1 standard was published by NIST in 1993.
@@ -36,7 +24,7 @@
 #include <string.h>
 #endif /* USE_HOSTCC */
 #include <watchdog.h>
-#include "sha1.h"
+#include <u-boot/sha1.h>
 
 /*
  * 32-bit integer manipulation macros (big endian)
@@ -389,8 +377,6 @@ void sha1_hmac(const unsigned char *key, int keylen,
        memset (&ctx, 0, sizeof (sha1_context));
 }
 
-static const char _sha1_src[] = "_sha1_src";
-
 #ifdef SELF_TEST
 /*
  * FIPS-180-1 test vectors