Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

PirDecompose

procedure PirDecompose(aValue: tPirWord; aModulus, aDigitCount: Integer; var aDigits: tPirWordArray; aOffset: NativeInt; aStride: NativeInt);
The base-p decomposition of one Z_q word into aDigitCount digits, least significant first, written at aOffset; and its inverse. Exact whenever p^aDigitCount >= 2^32, which is what PirDoubleDigitCount guarantees.