PLShakeXOF
Criptografía
Descripción
SHAKE XOF de una sola llamada: absorbe toda la entrada y luego extrae los bytes de salida pedidos
Envuelve PLShakeXOFInit, PLShakeXOFAbsorb, PLShakeXOFFinalize y PLShakeXOFSqueeze sobre un contexto en pila
Sintaxis
Delphi
Function PLShakeXOF(Shake128: Boolean; Const Input: AnsiString;
Out Output: AnsiString; OutputBytes: Integer): Boolean;Parámetros
| Shake128 | Elige SHAKE128 (rate 168) con True, SHAKE256 (rate 136) con False |
|---|---|
| Input | Bytes que absorber; puede venir vacía |
| Output | Recibe exactamente OutputBytes bytes crudos |
| OutputBytes | Longitud de salida solicitada; valores menores que 1 fallan de inmediato |
Valores devueltos
| False | OutputBytes es menor que 1; Output queda como cadena vacía |
|---|---|
| True | Output contiene OutputBytes bytes binarios crudos |
Observaciones
El resultado es binario crudo, no hexadecimal; los puntos de entrada de longitud fija del perfil de firma PDF son SHAKE256ByteArray y SHAKE256StreamRange
Véase también
SHAKE256ByteArray, SHAKE256StreamRange, PLShakeXOFInit, PLShakeXOFSqueeze