'L{SSHCiphers.makeMAC} computes the HMAC of an outgoing SSH message with
a particular sequence id and content data.'

def test_makeMAC(self):

    vectors = [(('\x0b' * 16), 'Hi    There', '9294727a3638bb1c13f48ef8158bfc9d'), ('Jefe', 'what    do    ya    want    for    nothing?', '750c783e6ab0b503eaa86e310a5db738'), (('\xaa' * 16), ('\xdd' * 50), '56be34521d144c88dbb8c733f0e8b3f6')]
    for (key, data, mac) in vectors:
        outMAC = transport.SSHCiphers('none', 'none', 'hmac-md5', 'none')
        outMAC.outMAC = outMAC._getMAC('hmac-md5', key)
        (seqid,) = struct.unpack('>L', data[:4])
        shortened = data[4:]
        self.assertEqual(mac, binascii.hexlify(outMAC.makeMAC(seqid, shortened)), ('Failed    HMAC    test    vector;    key=%r    data=%r' % (key, data)))
