 
 import Foundation
 
-internal func addItemWithAttributes(attributes: NSDictionary) -> NSData? {
+internal func addKeychainItemWithAttributes(attributes: NSDictionary) -> NSData? {
     guard let mutableAttributes = attributes.mutableCopy() as? NSMutableDictionary else {
         return nil
     }

    return (resultCode == OSStatus(errSecSuccess))
}

internal func deleteItemForPersistentRef(persistentRef: NSData) -> Bool {
    let queryDict = [
        kSecClass as String:               kSecClassGenericPassword,
        kSecValuePersistentRef as String:  persistentRef,

    return result as? NSArray
}

internal func updateKeychainItemForPersistentRef(persistentRef: NSData, withAttributes attributesToUpdate: NSDictionary) -> Bool {
    let queryDict = [
        kSecClass as String:               kSecClassGenericPassword,
        kSecValuePersistentRef as String:  persistentRef,
