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