Hi,

Yes. Use of FINAL flag was on my mind. Thanks for that.

The problem here that not always known when calling Update() if it is really 
the final one.
Use of FINAL flag allows to optimize driver implementation.
That's why new kernel implementation added crypto_ahash_finup(req);

Use of COP_FLAG_FINAL will trigger copying of the hash because of
!(cop->flags & COP_FLAG_UPDATE)

But for completeness I would add this patch..

Thanks! 

Dmitry Kasatkin (1):
  use of _FINAL flag when calling _final()

 cryptodev_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to