1/*
2 * Copyright (c) 2000-2001,2003-2004,2006,2011,2014 Apple Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24
25//
26// KeySchema.h
27//
28#ifndef _H_KEYSCHEMA
29#define _H_KEYSCHEMA
30
31#include <Security/cssmtype.h>
32
33namespace KeySchema
34{
35	extern const CSSM_DB_ATTRIBUTE_INFO KeyClass;
36	extern const CSSM_DB_ATTRIBUTE_INFO PrintName;
37	extern const CSSM_DB_ATTRIBUTE_INFO Alias;
38	extern const CSSM_DB_ATTRIBUTE_INFO Permanent;
39	extern const CSSM_DB_ATTRIBUTE_INFO Private;
40	extern const CSSM_DB_ATTRIBUTE_INFO Modifiable;
41	extern const CSSM_DB_ATTRIBUTE_INFO Label;
42	extern const CSSM_DB_ATTRIBUTE_INFO ApplicationTag;
43	extern const CSSM_DB_ATTRIBUTE_INFO KeyCreator;
44	extern const CSSM_DB_ATTRIBUTE_INFO KeyType;
45	extern const CSSM_DB_ATTRIBUTE_INFO KeySizeInBits;
46	extern const CSSM_DB_ATTRIBUTE_INFO EffectiveKeySize;
47	extern const CSSM_DB_ATTRIBUTE_INFO StartDate;
48	extern const CSSM_DB_ATTRIBUTE_INFO EndDate;
49	extern const CSSM_DB_ATTRIBUTE_INFO Sensitive;
50	extern const CSSM_DB_ATTRIBUTE_INFO AlwaysSensitive;
51	extern const CSSM_DB_ATTRIBUTE_INFO Extractable;
52	extern const CSSM_DB_ATTRIBUTE_INFO NeverExtractable;
53	extern const CSSM_DB_ATTRIBUTE_INFO Encrypt;
54	extern const CSSM_DB_ATTRIBUTE_INFO Decrypt;
55	extern const CSSM_DB_ATTRIBUTE_INFO Derive;
56	extern const CSSM_DB_ATTRIBUTE_INFO Sign;
57	extern const CSSM_DB_ATTRIBUTE_INFO Verify;
58	extern const CSSM_DB_ATTRIBUTE_INFO SignRecover;
59	extern const CSSM_DB_ATTRIBUTE_INFO VerifyRecover;
60	extern const CSSM_DB_ATTRIBUTE_INFO Wrap;
61	extern const CSSM_DB_ATTRIBUTE_INFO Unwrap;
62
63	extern const CSSM_DB_SCHEMA_ATTRIBUTE_INFO KeySchemaAttributeList[];
64	extern const CSSM_DB_SCHEMA_INDEX_INFO KeySchemaIndexList[];
65	extern const uint32 KeySchemaAttributeCount;
66	extern const uint32 KeySchemaIndexCount;
67};
68
69
70#endif // _H_KEYSCHEMA
71