Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/l/BlueCop-XBMC-Plugins-HEAD/script.module.cryptopy/lib/crypto/cipher/tkip_encr_test.py   BlueCop-XBMC-Plugins(Download)
		print 'ct:	%s'%b2a_p(ct)[9:]
 
		cpt = alg.decrypt(kct)
		print 'cpt:    %s'%b2a_p(cpt)[9:]
 
		print '========================================================'
		self.assertEqual( ct, kct )
		alg.setKey(key)
		dct = alg.decrypt( ct )

src/b/l/BlueCop-XBMC-Plugins-HEAD/script.module.cryptopy/lib/crypto/cipher/tkip_fake_crc_test.py   BlueCop-XBMC-Plugins(Download)
		newCtCrc = pack('<I', (maskDiff ^ unpack('<I',ctCrcEncrypted)[0]) )
		newCt = ctHeader + maskedCt + newCtCrc
		newPt = alg.decrypt(newCt)	 # this will raise an exception if the crc is 'bad'!
		print "newPt	 = %s " % b2a_hex(newPt)