X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fsha1.c;h=f54bb5be98195ad6493dab14e64fb9b86cde3b96;hb=4a8b5e7900bb34c38668f270ccc8930c4ea6dca2;hp=05b17a259a66e9b66d2a6e62222dc5a51340385e;hpb=740f41d3cbefe2068247852220226c2c3b287249;p=u-boot diff --git a/lib/sha1.c b/lib/sha1.c index 05b17a259a..f54bb5be98 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -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. @@ -38,6 +26,11 @@ #include #include +const uint8_t sha1_der_prefix[SHA1_DER_LEN] = { + 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, + 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14 +}; + /* * 32-bit integer manipulation macros (big endian) */