X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..HEAD:/EXTERNAL_HEADERS/corecrypto/ccsha1.h?ds=sidebyside diff --git a/EXTERNAL_HEADERS/corecrypto/ccsha1.h b/EXTERNAL_HEADERS/corecrypto/ccsha1.h index 3372324b9..c2198ad95 100644 --- a/EXTERNAL_HEADERS/corecrypto/ccsha1.h +++ b/EXTERNAL_HEADERS/corecrypto/ccsha1.h @@ -1,11 +1,12 @@ -/* - * ccsha1.h - * corecrypto - * - * Created on 12/01/2010 - * - * Copyright (c) 2010,2011,2012,2014,2015 Apple Inc. All rights reserved. +/* Copyright (c) (2010,2011,2012,2014,2015,2016,2017,2018,2019) Apple Inc. All rights reserved. * + * corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which + * is contained in the License.txt file distributed with corecrypto) and only to + * people who accept that license. IMPORTANT: Any license rights granted to you by + * Apple Inc. (if any) are limited to internal use within your organization only on + * devices and computers you own or control, for the sole purpose of verifying the + * security characteristics and correct functioning of the Apple Software. You may + * not, directly or indirectly, redistribute the Apple Software or any portions thereof. */ #ifndef _CORECRYPTO_CCSHA1_H_ @@ -21,31 +22,18 @@ /* sha1 selector */ const struct ccdigest_info *ccsha1_di(void); -extern const uint32_t ccsha1_initial_state[5]; - -/* shared between several implementations */ -void ccsha1_final(const struct ccdigest_info *di, ccdigest_ctx_t, - unsigned char *digest); - - /* Implementations */ extern const struct ccdigest_info ccsha1_ltc_di; extern const struct ccdigest_info ccsha1_eay_di; #if CCSHA1_VNG_INTEL -//extern const struct ccdigest_info ccsha1_vng_intel_di; -#if defined(__x86_64__) -extern const struct ccdigest_info ccsha1_vng_intel_AVX2_di; -extern const struct ccdigest_info ccsha1_vng_intel_AVX1_di; -#endif extern const struct ccdigest_info ccsha1_vng_intel_SupplementalSSE3_di; #endif -#if CCSHA1_VNG_ARMV7NEON -extern const struct ccdigest_info ccsha1_vng_armv7neon_di; +#if CCSHA1_VNG_ARM +extern const struct ccdigest_info ccsha1_vng_arm_di; #endif -/* TODO: Placeholders */ #define ccoid_sha1 ((unsigned char *)"\x06\x05\x2b\x0e\x03\x02\x1a") #define ccoid_sha1_len 7