SecDbKeychainItem.h [plain text]
#ifndef _SECURITYD_SECKEYCHAINITEM_H_
#define _SECURITYD_SECKEYCHAINITEM_H_
#include <securityd/SecKeybagSupport.h>
#include <securityd/SecDbItem.h>
#include <securityd/SecDbQuery.h>
__BEGIN_DECLS
bool ks_encrypt_data(keybag_handle_t keybag, SecAccessControlRef access_control, CFTypeRef *cred_handle,
CFDictionaryRef attributes, CFDictionaryRef authenticated_attributes, CFDataRef *pBlob, CFErrorRef *error);
bool ks_decrypt_data(keybag_handle_t keybag, enum SecKsCryptoOp cryptoOp, SecAccessControlRef *paccess_control, CFTypeRef *cred_handle,
CFDataRef blob, const SecDbClass *db_class, CFArrayRef caller_access_groups,
CFMutableDictionaryRef *attributes_p, uint32_t *version_p, CFErrorRef *error);
bool s3dl_item_from_data(CFDataRef edata, Query *q, CFArrayRef accessGroups,
CFMutableDictionaryRef *item, SecAccessControlRef *access_control, CFErrorRef *error);
SecDbItemRef SecDbItemCreateWithBackupDictionary(CFAllocatorRef allocator, const SecDbClass *dbclass, CFDictionaryRef dict, keybag_handle_t src_keybag, keybag_handle_t dst_keybag, CFErrorRef *error);
bool SecDbItemExtractRowIdFromBackupDictionary(SecDbItemRef item, CFDictionaryRef dict, CFErrorRef *error);
bool SecDbItemInferSyncable(SecDbItemRef item, CFErrorRef *error);
__END_DECLS
#endif