Lines Matching refs:bytes
115 # At the very least we are expect 16 bytes. 10 for the actual MAC, 4 for the seqnum, 2 for the msgtype.
117 throw new SaslException('The data to decrypt must be at least 16 bytes.');
186 # The first 10 bytes of the MAC block is used. Extract the last 6 bytes, as that gets tacked onto the end.
256 throw new SaslException('Expected at least 16 bytes of data for the MAC.');
277 * number of padding bytes, such that total length of the encrypted part of the message is a multiple of the
293 * The MAC block is 16 bytes: the first 10 bytes of the HMAC-MD5 [RFC2104] of the message, a 2-byte message type
364 * We need to manually expand the 7-byte DES keys to 8-bytes. This shifts the first 7 bytes into the high seven bits.
369 $bytes = [];
372 $bytes[$i] = ord($key[$i]);
376 chr($bytes[0] & 0xfe) .
377 chr(($bytes[0] << 7) | ($bytes[1] >> 1)) .
378 chr(($bytes[1] << 6) | ($bytes[2] >> 2)) .
379 chr(($bytes[2] << 5) | ($bytes[3] >> 3)) .
380 chr(($bytes[3] << 4) | ($bytes[4] >> 4)) .
381 chr(($bytes[4] << 3) | ($bytes[5] >> 5)) .
382 chr(($bytes[5] << 2) | ($bytes[6] >> 6)) .
383 chr($bytes[6] << 1);