5 * Created by Michael Brouwer on 12/1/10.
6 * Copyright 2010,2011 Apple Inc. All rights reserved.
10 #ifndef _CORECRYPTO_CCSHA1_H_
11 #define _CORECRYPTO_CCSHA1_H_
13 #include <corecrypto/ccdigest.h>
14 #include <corecrypto/cc_config.h>
16 #define CCSHA1_BLOCK_SIZE 64
17 #define CCSHA1_OUTPUT_SIZE 20
18 #define CCSHA1_STATE_SIZE 20
21 const struct ccdigest_info
*ccsha1_di(void);
23 extern const uint32_t ccsha1_initial_state
[5];
25 /* shared between several implementations */
26 void ccsha1_final(const struct ccdigest_info
*di
, ccdigest_ctx_t
,
27 unsigned char *digest
);
31 extern const struct ccdigest_info ccsha1_ltc_di
;
32 extern const struct ccdigest_info ccsha1_eay_di
;
35 //extern const struct ccdigest_info ccsha1_vng_intel_di;
36 extern const struct ccdigest_info ccsha1_vng_intel_SupplementalSSE3_di
;
37 extern const struct ccdigest_info ccsha1_vng_intel_NOSupplementalSSE3_di
;
40 #if CCSHA1_VNG_ARMV7NEON
41 extern const struct ccdigest_info ccsha1_vng_armv7neon_di
;
44 /* TODO: Placeholders */
45 #define ccoid_sha1 ((unsigned char *)"\x06\x05\x2b\x0e\x03\x02\x1a")
46 #define ccoid_sha1_len 7
48 #endif /* _CORECRYPTO_CCSHA1_H_ */