         public var kSecAttrCanSign : Bool? // NSNumber
         private let kSecAttrCanSignKey = "sign" 
         private func kSecAttrCanSignAddToDic(dic : NSMutableDictionary) {
-            if kSecAttrCanSign {
+            if (kSecAttrCanSign != nil && kSecAttrCanSign!) {
                 dic.setObject(NSNumber(bool: true), forKey: kSecAttrCanSignKey)
             }
         }

        
        public var kSecAttrApplicationTag : NSData?
        private let kSecAttrApplicationTagKey = "atag"
         private func kSecAttrApplicationTagAddToDic(dic : NSMutableDictionary) {
            if let v = kSecAttrApplicationTag {
                dic.setObject(v, forKey: kSecAttrApplicationTagKey)
            }

        public var kSecAttrCanWrap : Bool? // NSNumber
        private let kSecAttrCanWrapKey = "wrap" 
        private func kSecAttrCanWrapAddToDic(dic : NSMutableDictionary) {
            if (kSecAttrCanWrap != nil  && kSecAttrCanWrap!) {
                dic.setObject(NSNumber(bool: true), forKey: kSecAttrCanWrapKey)
            }
        }
