Module t.c.s.common

Part of twisted.conch.ssh View Source

Common functions for the SSH classes.

Maintainer: Paul Swartz
Line # Kind Name Docs
22 Class Entropy A Crypto.Util.randpool.RandomPool mock for compatibility.
38 Function NS net string
44 Function getNS get net string
56 Function MP Undocumented
64 Function getMP Get multiple precision integer out of the string. A multiple precision
85 Function ffs first from second
118 Function install Undocumented
80 Function _MPpow return the MP version of (x**y)%z
98 Function _fastgetMP Undocumented
107 Function _fastMP Undocumented
111 Function _fastMPpow Undocumented
115 Function _fastpow Undocumented
def NS(t): (source)
net string
def getNS(s, count=1): (source)
get net string
def MP(number): (source)
Undocumented
def getMP(data, count=1): (source)
Get multiple precision integer out of the string. A multiple precision integer is stored as a 4-byte length followed by length bytes of the integer. If count is specified, get count integers out of the string. The return value is a tuple of count integers followed by the rest of the data.
def _MPpow(x, y, z): (source)
return the MP version of (x**y)%z
def ffs(c, s): (source)
first from second goes through the first list, looking for items in the second, returns the first one
def _fastgetMP(data, count=1): (source)
Undocumented
def _fastMP(i): (source)
Undocumented
def _fastMPpow(x, y, z=None): (source)
Undocumented
def _fastpow(x, y, z=None): (source)
Undocumented
def install(): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.