xref: /xnu-12377.61.12/osfmk/corecrypto/ccsha512_ltc_di.c (revision 4d495c6e23c53686cf65f45067f79024cf5dcee8)
1 /* Copyright (c) (2010,2012,2014-2016,2019,2021) Apple Inc. All rights reserved.
2  *
3  * corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
4  * is contained in the License.txt file distributed with corecrypto) and only to
5  * people who accept that license. IMPORTANT:  Any license rights granted to you by
6  * Apple Inc. (if any) are limited to internal use within your organization only on
7  * devices and computers you own or control, for the sole purpose of verifying the
8  * security characteristics and correct functioning of the Apple Software.  You may
9  * not, directly or indirectly, redistribute the Apple Software or any portions thereof.
10  */
11 
12 #include <corecrypto/ccsha2.h>
13 #include <corecrypto/cc_priv.h>
14 #include "ccsha2_internal.h"
15 
16 const struct ccdigest_info ccsha512_ltc_di = {
17     .output_size = CCSHA512_OUTPUT_SIZE,
18     .state_size = CCSHA512_STATE_SIZE,
19     .block_size = CCSHA512_BLOCK_SIZE,
20     .oid_size = ccoid_sha512_len,
21     .oid = CC_DIGEST_OID_SHA512,
22     .initial_state = ccsha512_initial_state,
23     .compress = ccsha512_ltc_compress,
24     .final = ccsha512_final,
25     .impl = CC_IMPL_SHA512_LTC,
26 };
27