]> wagner.pp.ru Git - openssl-gost/engine.git/commit
gost_crypt: Add some sanity checking to GOST_init_cipher
authorVitaly Chikunov <vt@altlinux.org>
Tue, 12 May 2020 09:26:01 +0000 (12:26 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Tue, 12 May 2020 09:55:47 +0000 (12:55 +0300)
commitc6b44c8eaf68bf045805163a8825e5440632653e
treecc0799bc0f519881adf3cb9be5cffd801181aa43
parent6957d3487caffeb79cf90c06d006599dcad85d15
gost_crypt: Add some sanity checking to GOST_init_cipher

- Stream cipher should have block_size 1, other should not.
- Stream cipher should not have padding.
- If IV is specified Custom IV flag should be set.
gost_crypt.c