PLShakeXOF

Crittografia

Descrizione

SHAKE XOF in una sola chiamata: assorbe l'intero input e poi spreme il numero richiesto di byte di output

Incapsula PLShakeXOFInit, PLShakeXOFAbsorb, PLShakeXOFFinalize e PLShakeXOFSqueeze attorno a un contesto sullo stack

Sintassi

Delphi

Function PLShakeXOF(Shake128: Boolean; Const Input: AnsiString;
  Out Output: AnsiString; OutputBytes: Integer): Boolean;

Parametri

Shake128Sceglie SHAKE128 (rate 168) con True, SHAKE256 (rate 136) con False
InputByte da assorbire; può essere vuota
OutputRiceve esattamente OutputBytes byte raw
OutputBytesLunghezza di output richiesta; i valori sotto 1 falliscono subito

Valori restituiti

FalseOutputBytes è minore di 1; Output viene impostata a stringa vuota
TrueOutput contiene OutputBytes byte binari raw

Note

Il risultato è binario raw, non esadecimale; i punti di ingresso a lunghezza fissa del profilo di firma PDF sono SHAKE256ByteArray e SHAKE256StreamRange

Vedere anche

SHAKE256ByteArray, SHAKE256StreamRange, PLShakeXOFInit, PLShakeXOFSqueeze