Searched refs:sha1ctx (Results 1 - 11 of 11) sorted by relevance

/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dhmacsha.c210 isc_sha1_t sha1ctx; local
211 isc_sha1_init(&sha1ctx);
212 isc_sha1_update(&sha1ctx, key, len);
213 isc_sha1_final(&sha1ctx, ctx->key);
217 isc_sha1_init(&ctx->sha1ctx);
221 isc_sha1_update(&ctx->sha1ctx, ipad, sizeof(ipad));
226 isc_sha1_invalidate(&ctx->sha1ctx);
238 isc_sha1_update(&ctx->sha1ctx, buf, len);
251 isc_sha1_final(&ctx->sha1ctx, newdigest);
257 isc_sha1_init(&ctx->sha1ctx);
[all...]
/freebsd-11-stable/sys/opencrypto/
H A Dxform_auth.h81 SHA1_CTX sha1ctx; member in union:authctx
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/
H A Dhmacsha.h51 isc_sha1_t sha1ctx; member in struct:__anon4824
/freebsd-11-stable/sys/dev/cesa/
H A Dcesa.c452 SHA1_CTX sha1ctx; local
479 SHA1Init(&sha1ctx);
480 SHA1Update(&sha1ctx, ipad, SHA1_HMAC_BLOCK_LEN);
481 memcpy(hin, sha1ctx.h.b32, sizeof(sha1ctx.h.b32));
482 SHA1Init(&sha1ctx);
483 SHA1Update(&sha1ctx, opad, SHA1_HMAC_BLOCK_LEN);
484 memcpy(hout, sha1ctx.h.b32, sizeof(sha1ctx.h.b32));
/freebsd-11-stable/sys/netinet/
H A Dip_carp.c413 SHA1_CTX sha1ctx; local
418 bcopy(&sc->sc_sha1, &sha1ctx, sizeof(sha1ctx));
420 SHA1Update(&sha1ctx, (void *)counter, sizeof(sc->sc_counter));
421 SHA1Final(md, &sha1ctx);
424 SHA1Init(&sha1ctx);
425 SHA1Update(&sha1ctx, sc->sc_pad, sizeof(sc->sc_pad));
426 SHA1Update(&sha1ctx, md, 20);
427 SHA1Final(md, &sha1ctx);
/freebsd-11-stable/sys/dev/safe/
H A Dsafe.c646 SHA1_CTX sha1ctx; local
659 SHA1Init(&sha1ctx);
660 SHA1Update(&sha1ctx, key, klen);
661 SHA1Update(&sha1ctx, hmac_ipad_buffer,
663 bcopy(sha1ctx.h.b32, ses->ses_hminner, sizeof(sha1ctx.h.b32));
675 SHA1Init(&sha1ctx);
676 SHA1Update(&sha1ctx, key, klen);
677 SHA1Update(&sha1ctx, hmac_opad_buffer,
679 bcopy(sha1ctx
[all...]
/freebsd-11-stable/sys/dev/ubsec/
H A Dubsec.c852 SHA1_CTX sha1ctx; local
864 SHA1Init(&sha1ctx);
865 SHA1Update(&sha1ctx, key, klen);
866 SHA1Update(&sha1ctx, hmac_ipad_buffer,
868 bcopy(sha1ctx.h.b32, ses->ses_hminner, sizeof(sha1ctx.h.b32));
880 SHA1Init(&sha1ctx);
881 SHA1Update(&sha1ctx, key, klen);
882 SHA1Update(&sha1ctx, hmac_opad_buffer,
884 bcopy(sha1ctx
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_set_format_mtree.c160 archive_sha1_ctx sha1ctx; member in struct:mtree_writer
1473 if (archive_sha1_init(&mtree->sha1ctx) == ARCHIVE_OK)
1529 archive_sha1_update(&mtree->sha1ctx, buff, n);
1566 archive_sha1_final(&mtree->sha1ctx, reg->digest.sha1);
H A Darchive_write_set_format_xar.c132 archive_sha1_ctx sha1ctx; member in struct:chksumwork
2583 archive_sha1_init(&(sumwrk->sha1ctx));
2599 archive_sha1_update(&(sumwrk->sha1ctx), buff, size);
2616 archive_sha1_final(&(sumwrk->sha1ctx), sumval->val);
H A Darchive_read_support_format_xar.c131 archive_sha1_ctx sha1ctx; member in struct:chksumwork
1361 archive_sha1_init(&(sumwrk->sha1ctx));
1377 archive_sha1_update(&(sumwrk->sha1ctx), buff, size);
1395 archive_sha1_final(&(sumwrk->sha1ctx), sum);
/freebsd-11-stable/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c1722 u32[i] = htobe32(auth_ctx->sha1ctx.h.b32[i]);

Completed in 229 milliseconds