      */
     
     func decrypt(key:NSData , encrypt_bytes:NSData) ->NSData?{
-        if (key.length == 0 || encrypt_bytes.length == 0 || encrypt_bytes.length < Encrypt.IV_SIZE) {
+        if (key.length == 0 || encrypt_bytes.length == 0 ) {
             
             return nil;
             

import Security


//let kChosenCipherBlockSize = kCCBlockSizeAES128
//let kChosenCipherKeySize = kCCKeySizeAES128
//import CryptoSwift

//    private KeyGenerator keyGenerator = null;
    
    //var key:NSData? //加密的key
    var leftdataLength:Int = 0
    var lettnoiseLength:Int = 0
    var recv_iv:NSData?
    
    init (passwd:String) {
        //m = CryptoMethod.init(cipher: "aes-256-cfb")
