Lines Matching refs:padding

45  * data is replaced by (confounder || data || padding).
56 * The padding used with a WrapToken. All data is padded to the
59 * Use this table as a quick way to obtain padding bytes by
60 * indexing it with the number of padding bytes required.
63 null, // No, no one escapes padding
98 // the len of the token data: (confounder || data || padding)
103 byte[] padding = null;
184 // Remove the confounder and the padding
186 padding.length];
211 return (dataSize - confounder.length - padding.length);
250 dataSize - CONFOUNDER_SIZE - padding.length) +
251 getHexBytes(padding) +
267 padding = pads[padSize];
287 - padding.length,
288 padding))
326 // dataSize - CONFOUNDER_SIZE - padding.length) +
327 // getHexBytes(padding) +
337 padding = pads[1];
353 padding = pads[padSize];
373 - padding.length,
374 padding))
381 * Helper routine to pick the right padding for a certain length
383 * padding between 1 and 8 bytes.
385 * @return the padding to be applied
389 // For RC4-HMAC, all padding is rounded up to 1 byte.
390 // One byte is needed to say that there is 1 byte of padding.
408 padding = getPadding(dataLen);
409 dataSize = confounder.length + dataLen + padding.length;
418 // padding is never null for Wrap
419 getHexBytes(padding) + "]\n");
425 padding);
452 // debug(" " + getHexBytes(padding, padding.length));
453 os.write(padding);
458 dataBytes, dataOffset, dataLen, padding, os);
493 // debug(" " + getHexBytes(padding, padding.length));
494 System.arraycopy(padding, 0, outToken, offset, padding.length);
499 dataOffset, dataLen, padding, outToken, offset);
507 return (header.length + confounder.length + dataLen + padding.length);