Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-17 09:55:58

0001 /*
0002  * Copyright © 2011 Guillem Jover <guillem@hadrons.org>
0003  *
0004  * Redistribution and use in source and binary forms, with or without
0005  * modification, are permitted provided that the following conditions
0006  * are met:
0007  * 1. Redistributions of source code must retain the above copyright
0008  *    notice, this list of conditions and the following disclaimer.
0009  * 2. Redistributions in binary form must reproduce the above copyright
0010  *    notice, this list of conditions and the following disclaimer in the
0011  *    documentation and/or other materials provided with the distribution.
0012  * 3. The name of the author may not be used to endorse or promote products
0013  *    derived from this software without specific prior written permission.
0014  *
0015  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
0016  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
0017  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
0018  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
0019  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
0020  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
0021  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
0022  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
0023  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
0024  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0025  */
0026 
0027 #ifndef LIBMD_SHA512_H
0028 #define LIBMD_SHA512_H
0029 
0030 /* For compatibility with FreeBSD and DragonFlyBSD. */
0031 
0032 #include <sha2.h>
0033 
0034 typedef SHA2_CTX SHA512_CTX;
0035 typedef SHA2_CTX SHA384_CTX;
0036 
0037 #define SHA384_Init     SHA384Init
0038 #define SHA384_Update       SHA384Update
0039 #define SHA384_Final        SHA384Final
0040 #define SHA384_End      SHA384End
0041 #define SHA384_Data     SHA384Data
0042 #define SHA384_File     SHA384File
0043 #define SHA384_FileChunk    SHA384FileChunk
0044 
0045 #define SHA512_Init     SHA512Init
0046 #define SHA512_Update       SHA512Update
0047 #define SHA512_Final        SHA512Final
0048 #define SHA512_End      SHA512End
0049 #define SHA512_Data     SHA512Data
0050 #define SHA512_File     SHA512File
0051 #define SHA512_FileChunk    SHA512FileChunk
0052 
0053 #endif