xref: /freebsd-src/sys/crypto/sha2/sha512c_impl.h (revision 71bf1c4cc5b21e7e5740514c1bc6ad751f312eea)
1*71bf1c4cSAndrew Turner /*-
2*71bf1c4cSAndrew Turner  * Copyright (c) 2021 The FreeBSD Foundation
3*71bf1c4cSAndrew Turner  *
4*71bf1c4cSAndrew Turner  * This software was developed by Andrew Turner under sponsorship from
5*71bf1c4cSAndrew Turner  * the FreeBSD Foundation.
6*71bf1c4cSAndrew Turner  *
7*71bf1c4cSAndrew Turner  * Redistribution and use in source and binary forms, with or without
8*71bf1c4cSAndrew Turner  * modification, are permitted provided that the following conditions
9*71bf1c4cSAndrew Turner  * are met:
10*71bf1c4cSAndrew Turner  * 1. Redistributions of source code must retain the above copyright
11*71bf1c4cSAndrew Turner  *    notice, this list of conditions and the following disclaimer.
12*71bf1c4cSAndrew Turner  * 2. Redistributions in binary form must reproduce the above copyright
13*71bf1c4cSAndrew Turner  *    notice, this list of conditions and the following disclaimer in the
14*71bf1c4cSAndrew Turner  *    documentation and/or other materials provided with the distribution.
15*71bf1c4cSAndrew Turner  *
16*71bf1c4cSAndrew Turner  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17*71bf1c4cSAndrew Turner  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*71bf1c4cSAndrew Turner  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*71bf1c4cSAndrew Turner  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*71bf1c4cSAndrew Turner  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*71bf1c4cSAndrew Turner  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*71bf1c4cSAndrew Turner  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*71bf1c4cSAndrew Turner  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*71bf1c4cSAndrew Turner  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*71bf1c4cSAndrew Turner  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*71bf1c4cSAndrew Turner  * SUCH DAMAGE.
27*71bf1c4cSAndrew Turner  */
28*71bf1c4cSAndrew Turner 
29*71bf1c4cSAndrew Turner #ifndef _SHA512_IMPL_H_
30*71bf1c4cSAndrew Turner #define _SHA512_IMPL_H_
31*71bf1c4cSAndrew Turner 
32*71bf1c4cSAndrew Turner #if defined(ARM64_SHA512)
33*71bf1c4cSAndrew Turner void SHA512_Transform_arm64_impl(uint64_t * state,
34*71bf1c4cSAndrew Turner     const unsigned char block[SHA512_BLOCK_LENGTH], const uint64_t K[80]);
35*71bf1c4cSAndrew Turner #endif
36*71bf1c4cSAndrew Turner 
37*71bf1c4cSAndrew Turner #endif /* !_SHA512_IMPL_H_ */
38