@@ -197,33 +197,45 @@ extern "C" {
197
197
/// Generates SHA512 hash. See `man 3cc CC_SHA` for details.
198
198
pub fn CC_SHA512_Final ( md : * mut u8 , ctx : * mut CC_SHA512_CTX ) -> c_int ;
199
199
/// Generic digest hasher.
200
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
200
201
pub fn CCDigest ( algorithm : CCDigestAlgorithm ,
201
202
data : * const u8 ,
202
203
length : usize ,
203
204
output : * mut u8 )
204
205
-> c_int ;
205
206
/// Allocate and initialize a `CCDigestCtx` for a digest.
207
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
206
208
pub fn CCDigestCreate ( algorithm : CCDigestAlgorithm ) -> * mut CCDigestCtx ;
207
209
/// Continue to digest data. Returns `0` on success.
210
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
208
211
pub fn CCDigestUpdate ( ctx : * mut CCDigestCtx , data : * const u8 , length : usize ) -> c_int ;
209
212
/// Conclude digest operations and produce the digest output. Returns `0` on success.
213
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
210
214
pub fn CCDigestFinal ( ctx : * mut CCDigestCtx , output : * mut u8 ) -> c_int ;
211
215
/// Clear and free a `CCDigestCtx`.
216
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
212
217
pub fn CCDigestDestroy ( ctx : * mut CCDigestCtx ) ;
213
218
/// Clear and re-initialize a `CCDigestCtx` for the same algorithm.
219
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
214
220
pub fn CCDigestReset ( ctx : * mut CCDigestCtx ) ;
215
221
/// Produce the digest output result for the bytes currently processed. Returns `0` on success.
222
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
216
223
pub fn CCDigestGetDigest ( ctx : * mut CCDigestCtx , output : * mut u8 ) -> c_int ;
217
224
/// Provides the block size of the digest algorithm. Returns `0` on failure.
225
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
218
226
pub fn CCDigestGetBlockSize ( algorithm : CCDigestAlgorithm ) -> usize ;
219
227
/// Provides the digest output size of the digest algorithm. Returns `0` on failure.
228
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
220
229
pub fn CCDigestGetOutputSize ( algorithm : CCDigestAlgorithm ) -> usize ;
221
230
/// Provides the block size of the digest algorithm. Returns `0` on failure.
231
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
222
232
pub fn CCDigestGetBlockSizeFromRef ( ctx : * mut CCDigestCtx ) -> usize ;
223
233
/// Provides the digest output size of the digest algorithm. Returns `0` on failure.
234
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
224
235
pub fn CCDigestGetOutputSizeFromRef ( ctx : * mut CCDigestCtx ) -> usize ;
225
236
226
237
/// Derive a key from a user-supplied password via PBKDF2.
238
+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
227
239
pub fn CCKeyDerivationPBKDF ( algorithm : CCPBKDFAlgorithm ,
228
240
password : * const u8 ,
229
241
passwordLen : usize ,
0 commit comments