Kind: global class
this: {FP48}
Creates an instance of FP48.
Reduces all components of possibly unreduced FP48 mod Modulus
Kind: instance method of FP48
this: {FP48}
Normalises the components of an FP48
Kind: instance method of FP48
this: {FP48}
Tests for FP48 equal to zero
Kind: instance method of FP48
this: {FP48}
Tests for FP48 equal to unity
Kind: instance method of FP48
this: {FP48}
Conditional copy of FP48 number
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| g | FP48 instance |
| d | copy depends on this value |
Constant time select from pre-computed table
Kind: instance method of FP48
this: {FP48}
extract a from this
Kind: instance method of FP48
this: {FP48}
extract b from this
Kind: instance method of FP48
this: {FP48}
extract c from this
Kind: instance method of FP48
this: {FP48}
Tests for equality of two FP48s
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| x | FP48 instance to compare |
Copy FP48 to another FP48
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| x | FP48 instance to be copied |
Set FP48 to unity
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| x | FP48 instance to be set to one |
Set FP48 to zero
Kind: instance method of FP48
this: {FP48}
Conjugation of FP48
Kind: instance method of FP48
this: {FP48}
Set FP48 from three FP16 values
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| d | FP16 instance |
| e | FP16 instance |
| f | FP16 instance |
Set FP48 from one FP16 value
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| c | FP16 instance |
Fast Squaring of an FP48 in “unitary” form
Kind: instance method of FP48
this: {FP48}
Fast Squaring of an FP48
Kind: instance method of FP48
this: {FP48}
Full unconditional Multiplication of two FP48s
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| y | FP48 instance, the multiplier |
Fast multiplication of two sparse FP48s that arises from ATE pairing line functions
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| y | FP48 instance, the multiplier |
Fast multiplication of what may be sparse multiplicands
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| y | FP48 instance, the multiplier |
Inverting an FP48
Kind: instance method of FP48
this: {FP48}
Raises an FP48 to the power of the internal modulus p, using the Frobenius
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| f | Modulus |
Calculate the trace of an FP48
Kind: instance method of FP48
this: {FP48}
convert this to hex string
Kind: instance method of FP48
this: {FP48}
convert this to byte array
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| w | Byte array |
Raises an FP48 to the power of a BIG
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| e | BIG instance exponent |
Raises an FP48 instance x to a small integer power, side-channel resistant
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| e | small integer exponent |
| bts | maximum number of bits in exponent |
Raises an FP48 instance to a BIG power, compressed to FP4
Kind: instance method of FP48
this: {FP48}
| Param | Description |
|---|---|
| e | BIG exponent |
| r | BIG group order |
convert from byte array to FP48
Kind: static method of FP48
this: {FP48}
| Param | Description |
|---|---|
| w | Byte array |
return 1 if b==c, no branching
Kind: static method of FP48
this: {FP48}
p=q0^u0.q1^u1.q2^u2.q3^u3...
Kind: static method of FP48
this: {FP48}