]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/ckutilities.h
1 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
11 * ckutilities.h - general private C routine declarations
16 * Changed to compile with C++.
18 * Broke out from Blaine Garst's original NSCryptors.m
21 #ifndef _CK_UTILITIES_H_
22 #define _CK_UTILITIES_H_
24 #include "giantIntegers.h"
32 unsigned char *mem_from_giant(giant x
, unsigned *memLen
);
33 giant
giant_with_data(const unsigned char *d
, int len
);
35 void serializeGiant(giant g
,
39 void deserializeGiant(const unsigned char *cp
,
47 #endif /* _CK_UTILITIES_H_ */