integergroup

integergroup.ClearBenchmark()[source]
integergroup.EndBenchmark()[source]
integergroup.GetBenchmark(option)[source]
integergroup.GetGeneralBenchmarks()[source]
integergroup.InitBenchmark()[source]
class integergroup.IntegerGroup(start=0)[source]

Bases: object

EndBenchmark()[source]

ends an ongoing benchmark

GetBenchmark(option)[source]

retrieves benchmark results for any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

GetGeneralBenchmarks()[source]

retrieves benchmark count for all group operations

InitBenchmark()[source]

initiates the benchmark state

StartBenchmark(options)[source]

starts the benchmark with any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

bitsize()[source]
decode(element)[source]
deserialize(bytes_object)[source]
encode(M)[source]
groupOrder()[source]
groupSetting()[source]
groupType()[source]
hash(*args)[source]
isMember(x)[source]
paramgen(bits, r=2)[source]
random(max=0)[source]
randomGen()[source]
serialize(object)[source]
setparam(p, q)[source]
class integergroup.IntegerGroupQ(start=0)[source]

Bases: object

EndBenchmark()[source]

ends an ongoing benchmark

GetBenchmark(option)[source]

retrieves benchmark results for any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

GetGeneralBenchmarks()[source]

retrieves benchmark count for all group operations

InitBenchmark()[source]

initiates the benchmark state

StartBenchmark(options)[source]

starts the benchmark with any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

decode(element)[source]
deserialize(bytes_object)[source]
encode(M)[source]
groupOrder()[source]
groupSetting()[source]
groupType()[source]
hash(*args)[source]
isMember(x)[source]
messageSize()[source]
paramgen(bits, r=2)[source]
random(max=0)[source]
randomG()[source]
randomGen()[source]
serialize(object)[source]
setparam(p, q)[source]
class integergroup.RSAGroup[source]

Bases: object

EndBenchmark()[source]

ends an ongoing benchmark

GetBenchmark(option)[source]

retrieves benchmark results for any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

GetGeneralBenchmarks()[source]

retrieves benchmark count for all group operations

InitBenchmark()[source]

initiates the benchmark state

StartBenchmark(options)[source]

starts the benchmark with any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp

decode(value)[source]
deserialize(bytes_object)[source]
encode(value)[source]
groupOrder()[source]
groupSetting()[source]
groupType()[source]
paramgen(secparam)[source]
random(max=0)[source]
serialize(object)[source]
setparam(p, q)[source]
integergroup.StartBenchmark(options)[source]
integergroup.bitsize(n)[source]
integergroup.decode(element, p, q)[source]
integergroup.deserialize(data)[source]
integergroup.encode(M, p, q)[source]
integergroup.gcd(a, b)[source]
integergroup.hashInt(args, p, q, flag)[source]
integergroup.int2Bytes(n)[source]
class integergroup.integer[source]

Bases: object

Stub class for documentation. Requires C extension for actual use.

integergroup.isPrime(n)[source]
integergroup.lcm(a, b)[source]
integergroup.legendre(a, p)[source]
integergroup.random(max)[source]
integergroup.randomBits(bits)[source]
integergroup.randomPrime(bits, safe=False)[source]
integergroup.serialize(obj)[source]
integergroup.toInt(obj)[source]