diff options
author | pjd <pjd@FreeBSD.org> | 2006-06-04 15:00:52 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-06-04 15:00:52 +0000 |
commit | ab72bdd9e661c23fb54ca5e3dd45285e269f7c2f (patch) | |
tree | 72fe3fe7e05ea74da3175b341fa5ba2e90369723 | |
parent | 1dc756f40595d438e645a833fe6a7764d02535a5 (diff) | |
download | FreeBSD-src-ab72bdd9e661c23fb54ca5e3dd45285e269f7c2f.zip FreeBSD-src-ab72bdd9e661c23fb54ca5e3dd45285e269f7c2f.tar.gz |
Use defines from cryptodev.h.
-rw-r--r-- | sys/dev/safe/safe.c | 4 | ||||
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c index 2c887fc..0908b23 100644 --- a/sys/dev/safe/safe.c +++ b/sys/dev/safe/safe.c @@ -807,9 +807,9 @@ safe_newsession(void *arg, u_int32_t *sidp, struct cryptoini *cri) ses->ses_mlen = macini->cri_mlen; if (ses->ses_mlen == 0) { if (macini->cri_alg == CRYPTO_MD5_HMAC) - ses->ses_mlen = MD5_DIGEST_LENGTH; + ses->ses_mlen = MD5_HASH_LEN; else - ses->ses_mlen = SHA1_RESULTLEN; + ses->ses_mlen = SHA1_HASH_LEN; } if (macini->cri_key != NULL) { diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index d2e89d2..342b1b9 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -976,9 +976,9 @@ ubsec_newsession(void *arg, u_int32_t *sidp, struct cryptoini *cri) ses->ses_mlen = macini->cri_mlen; if (ses->ses_mlen == 0) { if (macini->cri_alg == CRYPTO_MD5_HMAC) - ses->ses_mlen = MD5_DIGEST_LENGTH; + ses->ses_mlen = MD5_HASH_LEN; else - ses->ses_mlen = SHA1_RESULTLEN; + ses->ses_mlen = SHA1_HASH_LEN; } if (macini->cri_key != NULL) { |