Is there any consensus (i.e. are there any research results) on the benefits and drawbacks of various padding schemes?
Generally there seem to be two kinds of them:
- random paddings, like ISO10126 that pad with random data
- fixed paddings, like PKCS5/7 and X.923 that pad with 0s or some fixed pattern
Is there any reason to prefer one over the other?
In another question of mine it was mentioned that random paddings may be susceptible to subliminal messages, but that answer doesn't cover paddings in general.