Home Online Manual
Top
Back: ECPP
Forward: is_primitive_root
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.2.36 calculate_ordering

Procedure from library crypto.lib (see crypto_lib).

Usage:
calculate_ordering(num1, primitive, mod1)

Return:
x so that primitive^x == num1 mod mod1

Example:
 
LIB "crypto.lib";
bigint mod1 = 33;
bigint primitive = 14;
bigint num1 = 5;
calculate_ordering(num1,primitive,mod1);
==> 3