Hello, 2014-12-11 1:03 GMT+03:00 Miod Vallat <m...@online.fr>: > I agree with the intent; but I believe that... > >> - if (s == NULL || s->length != 32) { >> + if (s == NULL) { > > ... the exact length check should be kept.
I don't think so. This is a leftover from GOST 34.10-2001-only. The proper check would be s->length != 32 && !(is_GOST-2012 && s->length == 64). However I think it's just simpler to drop the length check alltogether. -- With best wishes Dmitry