Esempio n. 1
0
File: pbc.py Progetto: ace0/pyrelic
def orderGt():
    """
    Retrieves the order (size) of group Gt as a BigInt.
    """
    return _getCachedValue(orderGt, librelic.gt_get_ord_abi, BigInt)
Esempio n. 2
0
File: pbc.py Progetto: ace0/pyrelic
def generatorG2():
    """
    Retrieves the generator <P> = G2
    """
    return _getCachedValue(generatorG2, librelic.g2_get_gen_abi, G2Element)
Esempio n. 3
0
File: pbc.py Progetto: ace0/pyrelic
def generatorGt():
    """
    Retrieves the generator <g> = Gt
    """
    return _getCachedValue(generatorGt, librelic.gt_get_gen, GtElement)
Esempio n. 4
0
File: pbc.py Progetto: ace0/pyrelic
def generatorG1():
    """
    Retrieves the generator <P> = G1
    """
    return _getCachedValue(generatorG1, librelic.g1_get_gen_abi, G1Element)