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

    return (resultCode == OSStatus(errSecSuccess))
}

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

    }
}

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