summaryrefslogtreecommitdiff
path: root/nist
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-21 16:37:26 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-21 16:46:26 +0100
commita3663b7b3bdc092fb0667ea6c16b8e9a6cf4cf73 (patch)
tree8d0374b40072883b392acf473328dba9887db95c /nist
parentaaf0d2c49f343e909dc69b487056ca31238ffabf (diff)
downloadlilliput-ae-implem-a3663b7b3bdc092fb0667ea6c16b8e9a6cf4cf73.tar.xz
[implem-python] Utilisation des divisions entières //
Plutôt que int() ; moins de bruit. … Au passage, simplification (j'espère) de ArrayToBlockbytesMatrix() : - pas besoin d'initialiser la matrice à zéro ; suffit d'ajouter les octets et les blocs comme ils viennent, - AFAICT, int((length + (BLOCK_BYTES - (length % BLOCK_BYTES))) / BLOCK_BYTES) quand length % BLOCK_BYTES > 0, c'est juste une façon compliquée d'écrire int(length/BLOCK_BYTES) + 1
Diffstat (limited to 'nist')
0 files changed, 0 insertions, 0 deletions