Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stPolyval

Classes, interfaces and records

classePolyval

inherits from eCipherError

(no public members)

classtPolyval

class function New(const aBlockEncryptor: iBlockEncryptor): tPolyval;
The block encryptor is required only because tGhash derives an initial hash key from it at construction. That key is discarded by the first SetHashKey, so any keyed block cipher will do and the caller normally passes the one it already has.
destructor Destroy; override; procedure SetHashKey(const aKey);
aKey is the 16-byte hash key H in POLYVAL's own convention, and this also resets the accumulator.
procedure Init; procedure Update(const aBuf; aLength: Integer);
aLength must be a whole number of blocks; POLYVAL is defined only on block-aligned input and it is the caller that knows how to pad.
procedure Final(out aHash);

Routines