]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Run the plain SHA digest tests from NIST.
authorjhb <jhb@FreeBSD.org>
Wed, 24 Apr 2019 00:16:39 +0000 (00:16 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 24 Apr 2019 00:16:39 +0000 (00:16 +0000)
commit5ca25aadd977e50265d14ac587c2d03b0e7e4d5e
tree874946218ced88209797d8175f9d5207c0119b1c
parent0dec3d5ad8ba3dd2fe4f43a68474a04bafb88d82
Run the plain SHA digest tests from NIST.

Pass in an explicit digest length to the Crypto constructor since it
was assuming only sessions with a MAC key would have a MAC.  Passing
an explicit size allows us to test the full digest in HMAC tests as
well.

Reviewed by: cem
MFC after: 1 month
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D19884
tests/sys/opencrypto/cryptodev.py
tests/sys/opencrypto/cryptotest.py