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
| Shake128 | Sceglie SHAKE128 (rate 168) con True, SHAKE256 (rate 136) con False |
|---|---|
| Input | Byte da assorbire; può essere vuota |
| Output | Riceve esattamente OutputBytes byte raw |
| OutputBytes | Lunghezza di output richiesta; i valori sotto 1 falliscono subito |
Valori restituiti
| False | OutputBytes è minore di 1; Output viene impostata a stringa vuota |
|---|---|
| True | Output 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