pyecsca.ec.mult.fake module

fake_mult(mult_class, mult_factory, params)[source]

Get a multiplier with `FakeFormula`s.

Parameters:
  • mult_class (Type[ScalarMultiplier]) – The class of the scalar multiplier to use.

  • mult_factory (Callable) – A callable that takes the formulas and instantiates the multiplier.

  • params (DomainParameters) – The domain parameters to use.

Return type:

ScalarMultiplier

Returns:

The multiplier.

turn_fake(mult)[source]

Turn a multiplier into a fake multiplier.

Parameters:

mult (ScalarMultiplier) – The multiplier to turn into a fake multiplier.

Return type:

ScalarMultiplier

Returns:

The multiplier with fake formulas.