]>
Commit | Line | Data |
---|---|---|
b1ab9ed8 A |
1 | #ifndef __SECDECODETRANSFORM_H__ |
2 | #define __SECDECODETRANSFORM_H__ | |
3 | ||
4 | /* | |
5 | * Copyright (c) 2010 Apple Inc. All Rights Reserved. | |
6 | * | |
7 | * @APPLE_LICENSE_HEADER_START@ | |
8 | * | |
9 | * This file contains Original Code and/or Modifications of Original Code | |
10 | * as defined in and that are subject to the Apple Public Source License | |
11 | * Version 2.0 (the 'License'). You may not use this file except in | |
12 | * compliance with the License. Please obtain a copy of the License at | |
13 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
14 | * file. | |
15 | * | |
16 | * The Original Code and all software distributed under the License are | |
17 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
18 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
19 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
20 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
21 | * Please see the License for the specific language governing rights and | |
22 | * limitations under the License. | |
23 | * | |
24 | * @APPLE_LICENSE_HEADER_END@ | |
25 | */ | |
26 | ||
27 | #include "SecEncodeTransform.h" | |
28 | ||
29 | #ifdef __cplusplus | |
30 | extern "C" { | |
31 | #endif | |
32 | ||
33 | /*! | |
34 | @constant kSecDecodeTypeAttribute | |
35 | Used with SecTransformGetAttribute to query the attribute type. | |
36 | Returns one of the strings defined in the previous section. | |
37 | */ | |
38 | ||
39 | extern const CFStringRef kSecDecodeTypeAttribute; | |
40 | ||
41 | /*! | |
42 | @function SecDecodeTransformCreate | |
43 | @abstract Creates an decode computation object. | |
44 | @param DecodeType The type of digest to decode. You may pass NULL | |
45 | for this parameter, in which case an appropriate | |
46 | algorithm will be chosen for you. | |
47 | @param error A pointer to a CFErrorRef. This pointer will be set | |
48 | if an error occurred. This value may be NULL if you | |
49 | do not want an error returned. | |
50 | @result A pointer to a SecTransformRef object. This object must | |
51 | be released with CFRelease when you are done with | |
52 | it. This function will return NULL if an error | |
53 | occurred. | |
54 | @discussion This function creates a transform which computes a | |
55 | decode. | |
56 | */ | |
57 | ||
58 | // See SecEncodeTransformCreate for encoding... | |
59 | ||
60 | SecTransformRef SecDecodeTransformCreate(CFTypeRef DecodeType, | |
61 | CFErrorRef* error | |
62 | ) | |
63 | __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA); | |
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | #ifdef __cplusplus | |
70 | } | |
71 | #endif | |
72 | ||
73 | ||
74 | #endif |