A cryptographic processing system for implementing CRYSTALS-KYBER cryptographic algorithms and CRYSTALS-Dilithium cryptographic algorithms using table-based Arithmetic-to-Boolean (A2B) masked share conversion comprising:
- a logic shift processing element operably configured to divide an N-bit arithmetic share within a range with a maximum value of Q−1 and a minimum value of 0, used in at least one of a CRYSTALS-KYBER cryptographic algorithm and a CRYSTALS-Dilithium cryptographic algorithm, into k chunks each of an n-bit value, wherein Q is larger than a coefficient modulus q of the CRYSTALS-KYBER cryptographic algorithm and the CRYSTALS-Dilithium cryptographic algorithm and Q is a power-of-2;
- a first storage memory unit operably configured to apply a table-based A2B masked share conversion to each n-bit value chunk to generate Boolean shares having k chunks with an n-bit value;
- and
- a second storage memory unit operably configured to concatenate the k chunks of the generated Boolean shares to generate a complete N-bit Boolean share used as an operand in the at least one of a CRYSTALS-KYBER cryptographic algorithm and a CRYSTALS-Dilithium cryptographic algorithm.