• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Security-57031.1.35/Security/libsecurity_apple_cspdl/lib/

Lines Matching refs:attributes

78 		DbAttributes attributes(inSSDatabase);
79 attributes.recordType(mRecordType);
80 attributes.add(KeySchema::KeyClass, mRecordType);
81 attributes.add(KeySchema::PrintName, label);
82 attributes.add(KeySchema::Alias, none);
83 attributes.add(KeySchema::Permanent,
85 attributes.add(KeySchema::Private,
87 attributes.add(KeySchema::Modifiable,
89 attributes.add(KeySchema::Label, label);
90 attributes.add(KeySchema::ApplicationTag, none);
91 attributes.add(KeySchema::KeyCreator, creatorGuid);
92 attributes.add(KeySchema::KeyType, header.AlgorithmId);
93 attributes.add(KeySchema::KeySizeInBits, header.LogicalKeySizeInBits);
95 attributes.add(KeySchema::EffectiveKeySize, header.LogicalKeySizeInBits);
96 attributes.add(KeySchema::StartDate, startDate);
97 attributes.add(KeySchema::EndDate, endDate);
98 attributes.add(KeySchema::Sensitive,
100 attributes.add(KeySchema::AlwaysSensitive,
102 attributes.add(KeySchema::Extractable,
104 attributes.add(KeySchema::NeverExtractable,
106 attributes.add(KeySchema::Encrypt,
108 attributes.add(KeySchema::Decrypt,
110 attributes.add(KeySchema::Derive,
112 attributes.add(KeySchema::Sign,
114 attributes.add(KeySchema::Verify,
116 attributes.add(KeySchema::SignRecover,
119 attributes.add(KeySchema::VerifyRecover,
122 attributes.add(KeySchema::Wrap,
124 attributes.add(KeySchema::Unwrap,
128 mUniqueId = inSSDatabase->insert(mRecordType, &attributes, &blob,
167 DbAttributes attributes(mUniqueId->database());
168 attributes.recordType(mRecordType);
169 attributes.add(KeySchema::KeyClass); // 0
170 attributes.add(KeySchema::Permanent); // 1
171 attributes.add(KeySchema::Private); // 2
172 attributes.add(KeySchema::Modifiable); // 3
173 attributes.add(KeySchema::KeyCreator); // 4
174 attributes.add(KeySchema::KeyType); // 5
175 attributes.add(KeySchema::KeySizeInBits); // 6
176 attributes.add(KeySchema::StartDate); // 7
177 attributes.add(KeySchema::EndDate); // 8
178 attributes.add(KeySchema::Sensitive); // 9
179 attributes.add(KeySchema::AlwaysSensitive); // 10
180 attributes.add(KeySchema::Extractable); // 11
181 attributes.add(KeySchema::NeverExtractable); // 12
182 attributes.add(KeySchema::Encrypt); // 13
183 attributes.add(KeySchema::Decrypt); // 14
184 attributes.add(KeySchema::Derive); // 15
185 attributes.add(KeySchema::Sign); // 16
186 attributes.add(KeySchema::Verify); // 17
187 attributes.add(KeySchema::SignRecover); // 18
188 attributes.add(KeySchema::VerifyRecover); // 19
189 attributes.add(KeySchema::Wrap); // 20
190 attributes.add(KeySchema::Unwrap); // 21
192 mUniqueId->get(&attributes, NULL);
195 if (mRecordType != uint32(attributes[0]))
198 header.AlgorithmId = attributes[5]; // KeyType
199 header.LogicalKeySizeInBits = attributes[6]; // KeySizeInBits
201 if (attributes[1]) header.setAttribute(CSSM_KEYATTR_PERMANENT);
202 if (attributes[2]) header.setAttribute(CSSM_KEYATTR_PRIVATE);
203 if (attributes[3]) header.setAttribute(CSSM_KEYATTR_MODIFIABLE);
204 if (attributes[9]) header.setAttribute(CSSM_KEYATTR_SENSITIVE);
205 if (attributes[11]) header.setAttribute(CSSM_KEYATTR_EXTRACTABLE);
206 if (attributes[10]) header.setAttribute(CSSM_KEYATTR_ALWAYS_SENSITIVE);
207 if (attributes[12]) header.setAttribute(CSSM_KEYATTR_NEVER_EXTRACTABLE);
209 if (attributes[13]) header.usage(CSSM_KEYUSE_ENCRYPT);
210 if (attributes[14]) header.usage(CSSM_KEYUSE_DECRYPT);
211 if (attributes[15]) header.usage(CSSM_KEYUSE_DERIVE);
212 if (attributes[16]) header.usage(CSSM_KEYUSE_SIGN);
213 if (attributes[17]) header.usage(CSSM_KEYUSE_VERIFY);
214 if (attributes[18]) header.usage(CSSM_KEYUSE_SIGN_RECOVER);
215 if (attributes[19]) header.usage(CSSM_KEYUSE_VERIFY_RECOVER);
216 if (attributes[20]) header.usage(CSSM_KEYUSE_WRAP);
217 if (attributes[21]) header.usage(CSSM_KEYUSE_UNWRAP);
227 if (!attributes[7].size() || !attributes[8].size())
230 header.StartDate = attributes[7].at<CSSM_DATE>(0);
231 header.EndDate = attributes[8].at<CSSM_DATE>(0);