pyecsca.ec.naf module

pyecsca.ec.naf.wnaf(k, w)[source]

Compute width w NAF (Non-Adjacent Form) of the scalar k.

Parameters:
  • k (int) –
  • w (int) –
Return type:

List[int]

Returns:

pyecsca.ec.naf.naf(k)[source]

Compute the NAF (Non-Adjacent Form) of the scalar k.

Parameters:k (int) –
Return type:List[int]
Returns: