pyecsca.ec.formula.metrics module

Provides metrics for comparing formulas.

formula_ivs(formula)[source]
ivs_norm(one)[source]
formula_similarity(one, other)[source]

Formula similarity based on symbolic intermediate value sets.

Parameters:
Return type:

Dict[str, float]

Returns:

formula_similarity_abs(one, other)[source]

Formula similarity based on symbolic intermediate value sets (absolute value)

Parameters:
Return type:

Dict[str, float]

Returns:

formula_similarity_fuzz(one, other, curve, samples=1000)[source]

Formula similarity based on random computation.

Parameters:
Return type:

Dict[str, float]

Returns: