         public var kSecAttrCanUnwrap : Bool? // NSNumber
         private let kSecAttrCanUnwrapKey = "unwp" 
         private func kSecAttrCanUnwrapAddToDic(dic : NSMutableDictionary) {
-            if kSecAttrCanUnwrap {
+            if (kSecAttrCanUnwrap != nil && kSecAttrCanUnwrap!) {
                 dic.setObject(NSNumber(bool: true), forKey: kSecAttrCanUnwrapKey)
             }
         }

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

        public var kSecAttrCanEncrypt : Bool? // NSNumber
        private let kSecAttrCanEncryptKey = "encr" 
        private func kSecAttrCanEncryptAddToDic(dic : NSMutableDictionary) {
            if (kSecAttrCanEncrypt != nil && kSecAttrCanEncrypt!) {
                dic.setObject(NSNumber(bool: true), forKey: kSecAttrCanEncryptKey)
            }
        }
