Function add_rc_and_sbox_generic

Source
pub fn add_rc_and_sbox_generic<FA: FieldAlgebra, const D: u64>(
    val: &mut FA,
    rc: FA::F,
)
Expand description

A generic method performing the transformation:

s -> (s + rc)^D

This is a little slower than field specific implementations (particularly for packed fields) so should only be used in non performance critical places.