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:

    ‘Tis no extravagant arithmetic to say, that for every ten jokes,—thou hast got an hundred enemies; and till thou hast gone on, and raised a swarm of wasps about thine ears, and art half stung to death by them, thou wilt never be convinced it is so.
    Laurence Sterne (1713–1768)