4 // Created by Mitch Adler on 4/2/13.
8 // CFError to OSStatus conversion
17 _kSecPasswordMinLengthKey
18 _kSecPasswordMaxLengthKey
19 _kSecPasswordAllowedCharactersKey
20 _kSecPasswordRequiredCharactersKey
21 _kSecPasswordDefaultForType
22 _kSecPasswordDisallowedCharacters
23 _kSecPasswordCantStartWithChars
24 _kSecPasswordCantEndWithChars
25 _kSecPasswordContainsNoMoreThanNSpecificCharacters
26 _kSecPasswordContainsAtLeastNSpecificCharacters
27 _kSecPasswordContainsNoMoreThanNConsecutiveIdenticalCharacters
28 _kSecPasswordGroupSize
29 _kSecPasswordNumberOfGroups
30 _kSecPasswordSeparator
31 _kSecPasswordCharacterCount
32 _kSecPasswordCharacters
33 _SecPasswordIsPasswordWeak
35 _SecPasswordCopyDefaultPasswordLength
48 _kSecPolicyAppleX509Basic
53 _kSecPolicyAppleCodeSigning
54 _kSecPolicyAppleIDValidation
55 _kSecPolicyAppleIDValidationRecordSigningPolicy
56 _kSecPolicyAppleTimeStamping
57 _kSecPolicyAppleRevocation
58 _kSecPolicyApplePassbookSigning
59 _kSecPolicyAppleMobileStore
60 _kSecPolicyAppleTestMobileStore
61 _kSecPolicyAppleOTAPKISigner
62 _kSecPolicyAppleTestOTAPKISigner
63 _kSecPolicyAppleEscrowService
64 _kSecPolicyAppleProfileSigner
65 _kSecPolicyAppleQAProfileSigner
66 _kSecPolicyCheckAnchorSHA1
67 _kSecPolicyCheckAnchorTrusted
68 _kSecPolicyCheckBasicCertificateProcessing
69 _kSecPolicyCheckBasicContraints
70 _kSecPolicyCheckBlackListedKey
71 _kSecPolicyCheckBlackListedLeaf
72 _kSecPolicyCheckCertificatePolicy
73 _kSecPolicyCheckChainLength
74 _kSecPolicyCheckCriticalExtensions
75 _kSecPolicyCheckEAPTrustedServerNames
77 _kSecPolicyCheckExtendedKeyUsage
78 _kSecPolicyCheckExtendedValidation
79 _kSecPolicyCheckGrayListedKey
80 _kSecPolicyCheckGrayListedLeaf
81 _kSecPolicyCheckIdLinkage
82 _kSecPolicyCheckIntermediateMarkerOid
83 _kSecPolicyCheckIssuerCommonName
84 _kSecPolicyCheckKeyUsage
85 _kSecPolicyCheckLeafMarkerOid
86 _kSecPolicyCheckNoNetworkAccess
87 _kSecPolicyCheckNonEmptySubject
88 _kSecPolicyCheckNotValidBefore
89 _kSecPolicyCheckQualifiedCertStatements
90 _kSecPolicyCheckRevocation
91 _kSecPolicyCheckSSLHostname
92 _kSecPolicyCheckSubjectCommonName
93 _kSecPolicyCheckSubjectCommonNamePrefix
94 _kSecPolicyCheckSubjectCommonNameTEST
95 _kSecPolicyCheckSubjectOrganization
96 _kSecPolicyCheckSubjectOrganizationalUnit
97 _kSecPolicyCheckValidIntermediates
98 _kSecPolicyCheckValidLeaf
99 _kSecPolicyCheckValidRoot
103 _kSecPolicyRevocationFlags
104 _kSecPolicyTeamIdentifier
107 _SecPolicyCopyEscrowRootCertificate
108 _SecPolicyCopyProperties
110 _SecPolicyCreateAppleIDAuthorityPolicy
112 _SecPolicyCreateAppleIDValidationRecordSigningPolicy
114 _SecPolicyCreateBasicX509
115 _SecPolicyCreateCodeSigning
116 _SecPolicyCreateConfigurationProfileSigner
117 _SecPolicyCreateQAConfigurationProfileSigner
119 _SecPolicyCreateOTAPKISigner
120 _SecPolicyCreateTestOTAPKISigner
123 _SecPolicyCreateEscrowServiceSigner
124 _SecPolicyCreateFactoryDeviceCertificate
125 _SecPolicyCreateIPSec
126 _SecPolicyCreateMobileStoreSigner
127 _SecPolicyCreateTestMobileStoreSigner
128 _SecPolicyCreateOCSPSigner
129 _SecPolicyCreateRevocation
130 _SecPolicyCreatePassbookCardSigner
131 _SecPolicyCreateShoeboxCardSigner
132 _SecPolicyCreateSMIME
135 _SecPolicyCreateiPhoneActivation
136 _SecPolicyCreateiPhoneApplicationSigning
137 _SecPolicyCreateiPhoneDeviceCertificate
138 _SecPolicyCreateiPhoneProfileApplicationSigning
139 _SecPolicyCreateiPhoneProvisioningProfileSigning
140 _SecPolicyCreateiTunesStoreURLBag
141 _SecPolicyCreateLockdownPairing
142 _SecPolicyCreateMobileAsset
143 _SecPolicyCreateOTATasking
144 _SecPolicyCreateURLBag
145 _SecPolicyCreateWithProperties
149 _kSecPropertyKeyLabel
150 _kSecPropertyKeyLocalizedLabel
152 _kSecPropertyKeyValue
153 _kSecPropertyTypeData
154 _kSecPropertyTypeDate
155 _kSecPropertyTypeError
156 _kSecPropertyTypeSection
157 _kSecPropertyTypeString
158 _kSecPropertyTypeSuccess
159 _kSecPropertyTypeTitle
161 _kSecPropertyTypeWarning
163 _kSecTrustEvaluationDate
164 _kSecTrustExtendedValidation
165 _kSecTrustOrganizationName
166 _kSecTrustResultValue
167 _kSecTrustRevocationChecked
168 _kSecTrustRevocationValidUntilDate
169 _kSecTrustInfoCompanyNameKey
170 _kSecTrustInfoExtendedValidationKey
171 _kSecTrustInfoRevocationKey
172 _kSecTrustInfoRevocationValidUntilKey
174 _SecTrustCopyCustomAnchorCertificates
175 _SecTrustCopyDetailedPropertiesAtIndex
176 _SecTrustCopyExceptions
177 _SecTrustCopyFailureDescription
179 _SecTrustCopyPolicies
180 _SecTrustCopyProperties
181 _SecTrustCopyPublicKey
183 _SecTrustCopySummaryPropertiesAtIndex
184 _SecTrustCreateWithCertificates
186 _SecTrustEvaluateAsync
187 _SecTrustGetCertificateAtIndex
188 _SecTrustGetCertificateCount
190 _SecTrustGetNetworkFetchAllowed
191 _SecTrustGetOTAPKIAssetVersionNumber
192 _SecTrustOTAPKIGetUpdatedAsset
193 _SecTrustGetTrustResult
195 _SecTrustGetVerifyTime
196 _SecTrustSetAnchorCertificates
197 _SecTrustSetAnchorCertificatesOnly
198 _SecTrustSetExceptions
199 _SecTrustSetNetworkFetchAllowed
200 _SecTrustSetOCSPResponse
202 _SecTrustSetVerifyDate
203 _SecTrustStoreContains
204 _SecTrustStoreForDomain
205 _SecTrustStoreGetSettingsVersionNumber
206 _SecTrustStoreRemoveCertificate
207 _SecTrustStoreSetTrustSettings
213 _SecIdentityCopyCertificate
214 _SecIdentityCopyPrivateKey
216 _SecIdentityGetTypeID
217 _SecIdentitySignCertificate
223 _kSecCertificateKeyUsage
224 _kSecCertificateExtensions
225 _SecCertificateCopyCommonNames
226 _SecCertificateCopyCompanyName
227 _SecCertificateCopyEscrowRoots
228 _SecCertificateCopyDNSNames
229 _SecCertificateCopyData
230 _SecCertificateCopyExtendedKeyUsage
231 _SecCertificateCopyIPAddresses
232 _SecCertificateCopyIssuerSHA1Digest
233 _SecCertificateCopyIssuerSequence
234 _SecCertificateCopyIssuerSummary
235 _SecCertificateCopyNTPrincipalNames
236 _SecCertificateCopyOrganization
237 _SecCertificateCopyOrganizationalUnit
238 _SecCertificateCopyProperties
239 _SecCertificateCopyPublicKey
240 _SecCertificateCopyPublicKeySHA1Digest
241 _SecCertificateCopyRFC822Names
242 _SecCertificateCopySerialNumber
243 _SecCertificateCopySubjectSequence
244 _SecCertificateCopySubjectString
245 _SecCertificateCopySubjectSummary
246 _SecCertificateCopySummaryProperties
247 _SecCertificateCreate
248 _SecCertificateCreateWithBytes
249 _SecCertificateCreateWithData
250 _SecCertificateCreateWithPEM
251 _SecCertificateGetAuthorityKeyID
252 _SecCertificateGetBasicConstraints
253 _SecCertificateGetBytePtr
254 _SecCertificateGetCAIssuers
255 _SecCertificateGetCertificatePolicies
256 _SecCertificateGetInhibitAnyPolicySkipCerts
257 _SecCertificateGetKeyUsage
258 _SecCertificateGetLength
259 _SecCertificateGetNormalizedIssuerContent
260 _SecCertificateGetNormalizedSubjectContent
261 _SecDistinguishedNameCopyNormalizedContent
262 _SecCertificateGetOCSPResponders
263 _SecCertificateGetPolicyConstraints
264 _SecCertificateGetPublicKeyAlgorithm
265 _SecCertificateGetPublicKeyData
266 _SecCertificateGetSHA1Digest
267 _SecCertificateGetSubjectKeyID
268 _SecCertificateGetTypeID
269 _SecCertificateHasCriticalSubjectAltName
270 _SecCertificateHasMarkerExtension
271 _SecCertificateHasSubject
272 _SecCertificateHasUnknownCriticalExtension
273 _SecCertificateIsSelfSignedCA
274 _SecCertificateIsValid
275 _SecCertificateNotValidAfter
276 _SecCertificateNotValidBefore
277 _SecCertificatePathCopyAddingLeaf
278 _SecCertificatePathCopyFromParent
279 _SecCertificatePathCopyPublicKeyAtIndex
280 _SecCertificatePathCreate
281 _SecCertificatePathGetCertificateAtIndex
282 _SecCertificatePathGetCount
283 _SecCertificatePathGetIndexOfCertificate
284 _SecCertificatePathGetNextSourceIndex
285 _SecCertificatePathGetRoot
286 _SecCertificatePathIsAnchored
287 _SecCertificatePathScore
288 _SecCertificatePathSelfSignedIndex
289 _SecCertificatePathSetIsAnchored
290 _SecCertificatePathSetNextSourceIndex
291 _SecCertificatePathSetSelfIssued
292 _SecCertificatePathVerify
293 _SecCertificateVersion
294 _kSecCertificateProductionEscrowKey
295 _kSecCertificateEscrowFileName
300 _SecSCEPCreateTemporaryIdentity
301 _SecSCEPCertifyRequest
302 _SecSCEPGenerateCertificateRequest
304 _SecSCEPValidateCACertMessage
305 _SecSCEPGetCertInitial
312 _SecVerifyCertificateRequest
313 _SecGenerateCertificateRequest
314 _SecGenerateCertificateRequestWithParameters
315 _SecGenerateSelfSignedCertificate
320 _SecOTRDHKGenerateOTRKeys
322 _SecOTRPublicDHKCreateFromFullKey
323 _SecOTRSessionCreateFromID
324 _SecOTRSessionCreateFromIDAndFlags
325 _SecOTRSessionCreateFromData
327 _SecOTRSAppendSerialization
328 _SecOTRSAppendStartPacket
329 _SecOTRSAppendRestartPacket
330 _SecOTRSProcessPacket
332 _SecOTRSGetIsReadyForMessages
334 _SecOTRSGetMessageKind
335 _SecOTRSSignAndProtectMessage
336 _SecOTRSVerifyAndExposeMessage
337 _SecOTRSPrecalculateKeys
338 _SecOTRFIAppendSerialization
339 _SecOTRFIPurgeAllFromKeychain
340 _SecOTRFIPurgeFromKeychain
341 _SecOTRFullIdentityCreate
342 _SecOTRFullIdentityCreateFromData
343 _SecOTRFullIdentityCreateFromSecKeyRef
344 _SecOTRPIAppendSerialization
345 _SecOTRPublicIdentityCopyFromPrivate
346 _SecOTRPublicIdentityCreateFromData
347 _SecOTRPublicIdentityCreateFromSecKeyRef
348 _SecOTRPacketTypeString
356 _SecDHCreateFromAlgorithmId
357 _SecDHCreateFromParameters
359 _SecDHGenerateKeypair
360 _SecDHGetMaxKeyLength
377 _kSecXPCKeyUserPassword
379 _kSecXPCKeyOTAFileDirectory
386 _kSecCMSBulkEncryptionAlgorithm
389 _kSecCMSSignHashAlgorithm
390 _kSecCMSEncryptionAlgorithmDESCBC
391 _kSecCMSEncryptionAlgorithmAESCBC
392 _kSecCMSHashingAlgorithmMD5
393 _kSecCMSCertChainMode
394 _kSecCMSAdditionalCerts
395 _kSecCMSSignedAttributes
398 _kSecCMSCertChainModeNone
399 _SecCmsContentInfoGetBulkKey
400 _SecCmsContentInfoGetBulkKeySize
401 _SecCmsContentInfoGetChildContentInfo
402 _SecCmsContentInfoGetContent
403 _SecCmsContentInfoGetContentEncAlg
404 _SecCmsContentInfoGetContentEncAlgTag
405 _SecCmsContentInfoGetContentTypeOID
406 _SecCmsContentInfoGetContentTypeTag
407 _SecCmsContentInfoGetInnerContent
408 _SecCmsContentInfoSetBulkKey
409 _SecCmsContentInfoSetContentData
410 _SecCmsContentInfoSetContentDigestedData
411 _SecCmsContentInfoSetContentEncAlg
412 _SecCmsContentInfoSetContentEncAlgID
413 _SecCmsContentInfoSetContentEncryptedData
414 _SecCmsContentInfoSetContentEnvelopedData
415 _SecCmsContentInfoSetContentSignedData
417 _SecCmsDecoderDestroy
420 _SecCmsDigestContextCancel
421 _SecCmsDigestContextDestroy
422 _SecCmsDigestContextFinishMultiple
423 _SecCmsDigestContextStartMultiple
424 _SecCmsDigestContextUpdate
425 _SecCmsDigestedDataCreate
426 _SecCmsDigestedDataDestroy
427 _SecCmsDigestedDataGetContentInfo
429 _SecCmsEncoderDestroy
432 _SecCmsEncryptedDataCreate
433 _SecCmsEncryptedDataDestroy
434 _SecCmsEncryptedDataGetContentInfo
435 _SecCmsEnvelopedDataCreate
436 _SecCmsEnvelopedDataDestroy
437 _SecCmsEnvelopedDataGetContentInfo
438 _SecCmsMessageContainsCertsOrCrls
439 _SecCmsMessageContentLevel
440 _SecCmsMessageContentLevelCount
444 _SecCmsMessageDestroy
446 _SecCmsMessageGetContent
447 _SecCmsMessageGetContentInfo
448 _SecCmsMessageIsContentEmpty
449 _SecCmsMessageIsEncrypted
450 _SecCmsMessageIsSigned
451 _SecCmsRecipientInfoCreate
452 _SecCmsRecipientInfoCreateWithSubjKeyID
453 _SecCmsSignedDataAddCertChain
454 _SecCmsSignedDataAddCertList
455 _SecCmsSignedDataAddCertificate
456 _SecCmsSignedDataContainsCertsOrCrls
457 _SecCmsSignedDataCreate
458 _SecCmsSignedDataCreateCertsOnly
459 _SecCmsSignedDataDestroy
460 _SecCmsSignedDataGetCertificateList
461 _SecCmsSignedDataGetContentInfo
462 _SecCmsSignedDataGetDigestAlgs
463 _SecCmsSignedDataGetSignerInfo
464 _SecCmsSignedDataGetSignerInfos
465 _SecCmsSignedDataHasDigests
466 _SecCmsSignedDataImportCerts
467 _SecCmsSignedDataSetDigestContext
468 _SecCmsSignedDataSignerInfoCount
469 _SecCmsSignedDataVerifyCertsOnly
470 _SecCmsSignedDataVerifySignerInfo
471 _SecCmsSignerInfoAddCounterSignature
472 _SecCmsSignerInfoAddMSSMIMEEncKeyPrefs
473 _SecCmsSignerInfoAddSMIMECaps
474 _SecCmsSignerInfoAddSMIMEEncKeyPrefs
475 _SecCmsSignerInfoAddSigningTime
476 _SecCmsSignerInfoCreate
477 _SecCmsSignerInfoCreateWithSubjKeyID
478 _SecCmsSignerInfoGetCertList
479 _SecCmsSignerInfoGetDigestAlg
480 _SecCmsSignerInfoGetDigestAlgTag
481 _SecCmsSignerInfoGetSignerCommonName
482 _SecCmsSignerInfoGetSignerEmailAddress
483 _SecCmsSignerInfoGetSigningCertificate
484 _SecCmsSignerInfoGetSigningTime
485 _SecCmsSignerInfoGetVerificationStatus
486 _SecCmsSignerInfoIncludeCerts
487 _SecCmsSignerInfoSaveSMIMEProfile
488 _SecCmsUtilVerificationStatusToString
489 _SecCMSCertificatesOnlyMessageCopyCertificates
490 _SecCMSCreateCertificatesOnlyMessage
491 _SecCMSCreateCertificatesOnlyMessageIAP
492 _SecCMSCreateEnvelopedData
493 _SecCMSDecryptEnvelopedData
494 _SecCMSSignDataAndAttributes
495 _SecCMSSignDigestAndAttributes
497 _SecCMSVerifyCopyDataAndAttributes
498 _SecCMSVerifySignedData
499 _SecCMSCreateSignedData
508 _SecKeyFromPassphraseDataHMACSHA1
514 _SecKeyCopyAttributeDictionary
515 _SecKeyCopyMatchingPrivateKey
516 _SecKeyCopyPersistentRef
517 _SecKeyCopyPublicBytes
519 _SecKeyCreatePublicFromPrivate
520 _SecKeyCreateFromAttributeDictionary
521 _SecKeyCreateECPrivateKey
522 _SecKeyCreateECPublicKey
523 _SecKeyCreateFromPublicBytes
524 _SecKeyCreateFromPublicData
525 _SecKeyCreatePersistentRefToMatchingPrivateKey
526 _SecKeyCreateRSAPrivateKey
527 _SecKeyCreateRSAPublicKey
529 _SecKeyFindWithPersistentRef
531 _SecKeyDigestAndVerify
534 _SecKeyGetAlgorithmID
547 _kSecAttrAFPServerSignature
550 _kSecAttrAccessibleAfterFirstUnlock
551 _kSecAttrAccessibleAlways
552 _kSecAttrAccessibleWhenUnlocked
553 _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
554 _kSecAttrAccessibleAlwaysThisDeviceOnly
555 _kSecAttrAccessibleWhenUnlockedThisDeviceOnly
559 _kSecAttrApplicationLabel
560 _kSecAttrApplicationTag
561 _kSecAttrAuthenticationType
562 _kSecAttrAuthenticationTypeDPA
563 _kSecAttrAuthenticationTypeDefault
564 _kSecAttrAuthenticationTypeHTMLForm
565 _kSecAttrAuthenticationTypeHTTPBasic
566 _kSecAttrAuthenticationTypeHTTPDigest
567 _kSecAttrAuthenticationTypeMSN
568 _kSecAttrAuthenticationTypeNTLM
569 _kSecAttrAuthenticationTypeRPA
576 _kSecAttrCanSignRecover
579 _kSecAttrCanVerifyRecover
581 _kSecAttrCertificateEncoding
582 _kSecAttrCertificateType
584 _kSecAttrCreationDate
587 _kSecAttrEffectiveKeySize
590 _kSecAttrHasCustomIcon
591 _kSecAttrIsExtractable
593 _kSecAttrIsModifiable
600 _kSecAttrKeyClassPrivate
601 _kSecAttrKeyClassPublic
602 _kSecAttrKeyClassSymmetric
604 _kSecAttrKeySizeInBits
609 _kSecAttrModificationDate
614 _kSecAttrProtocolAppleTalk
615 _kSecAttrProtocolDAAP
616 _kSecAttrProtocolEPPC
618 _kSecAttrProtocolFTPAccount
619 _kSecAttrProtocolFTPProxy
620 _kSecAttrProtocolFTPS
621 _kSecAttrProtocolHTTP
622 _kSecAttrProtocolHTTPProxy
623 _kSecAttrProtocolHTTPS
624 _kSecAttrProtocolHTTPSProxy
625 _kSecAttrProtocolIMAP
626 _kSecAttrProtocolIMAPS
629 _kSecAttrProtocolIRCS
630 _kSecAttrProtocolLDAP
631 _kSecAttrProtocolLDAPS
632 _kSecAttrProtocolNNTP
633 _kSecAttrProtocolNNTPS
634 _kSecAttrProtocolPOP3
635 _kSecAttrProtocolPOP3S
636 _kSecAttrProtocolRTSP
637 _kSecAttrProtocolRTSPProxy
639 _kSecAttrProtocolSMTP
640 _kSecAttrProtocolSOCKS
642 _kSecAttrProtocolTelnet
643 _kSecAttrProtocolTelnetS
644 _kSecAttrPublicKeyHash
646 _kSecAttrSecurityDomain
647 _kSecAttrSerialNumber
652 _kSecAttrSubjectKeyID
653 _kSecAttrSynchronizable
654 _kSecAttrSynchronizableAny
658 _kSecAttrWasAlwaysSensitive
659 _kSecAttrWasNeverExtractable
661 _kSecClassAppleSharePassword
662 _kSecClassCertificate
663 _kSecClassGenericPassword
665 _kSecClassInternetPassword
667 _kSecImportExportPassphrase
668 _kSecImportItemCertChain
669 _kSecImportItemIdentity
676 _kSecValuePersistentRef
678 _kSecMatchCaseInsensitive
679 _kSecMatchEmailAddressIfPresent
687 _kSecMatchSubjectContains
688 _kSecMatchTrustedOnly
689 _kSecMatchValidOnDate
690 _kSecReturnAttributes
692 _kSecReturnPersistentRef
695 _SecItemCopyDisplayNames
700 __SecItemMakePersistentRef
701 __SecItemParsePersistentRef
702 __SecKeychainCopyBackup
703 __SecKeychainCopyOTABackup
704 __SecKeychainRestoreBackup
705 __SecKeychainSyncUpdate
706 __SecKeychainBackupSyncable
707 __SecKeychainRestoreSyncable
709 _kSecXPCKeyAttributesToUpdate
711 _kSecXPCKeyCertificate
718 _SecCertificatePathCopyXPCArray
719 _SecCertificateXPCArrayCopyArray
720 _SecPolicyXPCArrayCopyArray
721 _SecServerSetMachServiceName