Finite Field Arithmetic - Arithmetic Example (where The Characteristic Is Not 2)

Arithmetic Example (where The Characteristic Is Not 2)

Addition: (A + B) mod Characteristic
Subtraction: (A - B) mod Characteristic
Multiplication: (A * B) mod Characteristic

This code is vulnerable to timing attacks when used for cryptography.

Read more about this topic:  Finite Field Arithmetic

Famous quotes containing the word arithmetic:

    O! O! another stroke! that makes the third.
    He stabs me to the heart against my wish.
    If that be so, thy state of health is poor;
    But thine arithmetic is quite correct.
    —A.E. (Alfred Edward)