mon/tripemon.in (cryptolayout): Use formatting functions for details.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Sep 2017 20:07:55 +0000 (21:07 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000 (10:34 +0100)
commitfd0e15eecc328bd31e17c93a0fafa65aca6e2bb5
treeb989a7f24960a32c98bdbd672cf75670b0574085
parent3f230a0faea72cc8d079204bc73197a742390dc8
mon/tripemon.in (cryptolayout): Use formatting functions for details.

This fixes two bugs.

  * Firstly, key, block, tag, and hash sizes are no longer wrong by a
    factor of 8 (because they're described as being in bits, but are
    actually shown in bytes since Python format strings can't do
    arithmetic).

  * And, secondly, new bulk crypto transforms don't always report things
    like `cipher-blksz' or `mac-keysz', so there's additional logic for
    coping with these situations.

Also, report the bulk transform, because it's probably useful.

The first of these bugs didn't affect the CryptoInfo window, which
calculates everything properly, but the second does, and this commit
doesn't change that.
mon/tripemon.in