Lines Matching refs:ctxt
417 SHA1_CTX *ctxt; in ah_keyed_sha1_init() local
432 ctxt = (SHA1_CTX *)state->foo; in ah_keyed_sha1_init()
433 SHA1Init(ctxt); in ah_keyed_sha1_init()
436 SHA1Update(ctxt, (u_int8_t *)_KEYBUF(state->sav->key_auth), in ah_keyed_sha1_init()
451 SHA1Update(ctxt, &buf[0], 1); in ah_keyed_sha1_init()
456 SHA1Update(ctxt, &buf[0], sizeof(buf)); in ah_keyed_sha1_init()
460 SHA1Update(ctxt, &buf[0], padlen); in ah_keyed_sha1_init()
467 SHA1Update(ctxt, buf, 8); in ah_keyed_sha1_init()
476 SHA1_CTX *ctxt; in ah_keyed_sha1_loop() local
481 ctxt = (SHA1_CTX *)state->foo; in ah_keyed_sha1_loop()
483 SHA1Update(ctxt, (caddr_t)addr, (size_t)len); in ah_keyed_sha1_loop()
490 SHA1_CTX *ctxt; in ah_keyed_sha1_result() local
495 ctxt = (SHA1_CTX *)state->foo; in ah_keyed_sha1_result()
498 SHA1Update(ctxt, (u_int8_t *)_KEYBUF(state->sav->key_auth), in ah_keyed_sha1_result()
501 SHA1Final((caddr_t)&digest[0], ctxt); in ah_keyed_sha1_result()
543 MD5_CTX *ctxt; in ah_hmac_md5_init() local
557 ctxt = (MD5_CTX *)(void *)(opad + 64); in ah_hmac_md5_init()
561 MD5Init(ctxt); in ah_hmac_md5_init()
562 MD5Update(ctxt, _KEYBUF(state->sav->key_auth), in ah_hmac_md5_init()
564 MD5Final(&tk[0], ctxt); in ah_hmac_md5_init()
581 MD5Init(ctxt); in ah_hmac_md5_init()
582 MD5Update(ctxt, ipad, 64); in ah_hmac_md5_init()
590 MD5_CTX *ctxt; in ah_hmac_md5_loop() local
595 ctxt = (MD5_CTX *)(void *)(((caddr_t)state->foo) + 128); in ah_hmac_md5_loop()
597 MD5Update(ctxt, addr, (uint)len); in ah_hmac_md5_loop()
606 MD5_CTX *ctxt; in ah_hmac_md5_result() local
614 ctxt = (MD5_CTX *)(void *)(opad + 64); in ah_hmac_md5_result()
616 MD5Final(&digest[0], ctxt); in ah_hmac_md5_result()
618 MD5Init(ctxt); in ah_hmac_md5_result()
619 MD5Update(ctxt, opad, 64); in ah_hmac_md5_result()
620 MD5Update(ctxt, &digest[0], sizeof(digest)); in ah_hmac_md5_result()
621 MD5Final(&digest[0], ctxt); in ah_hmac_md5_result()
660 SHA1_CTX *ctxt; in ah_hmac_sha1_init() local
678 ctxt = (SHA1_CTX *)(void *)(opad + 64); in ah_hmac_sha1_init()
682 SHA1Init(ctxt); in ah_hmac_sha1_init()
683 SHA1Update(ctxt, _KEYBUF(state->sav->key_auth), in ah_hmac_sha1_init()
685 SHA1Final(&tk[0], ctxt); in ah_hmac_sha1_init()
702 SHA1Init(ctxt); in ah_hmac_sha1_init()
703 SHA1Update(ctxt, ipad, 64); in ah_hmac_sha1_init()
711 SHA1_CTX *ctxt; in ah_hmac_sha1_loop() local
717 ctxt = (SHA1_CTX *)(void *)(((u_char *)state->foo) + 128); in ah_hmac_sha1_loop()
718 SHA1Update(ctxt, (caddr_t)addr, (size_t)len); in ah_hmac_sha1_loop()
727 SHA1_CTX *ctxt; in ah_hmac_sha1_result() local
735 ctxt = (SHA1_CTX *)(void *)(opad + 64); in ah_hmac_sha1_result()
737 SHA1Final((caddr_t)&digest[0], ctxt); in ah_hmac_sha1_result()
739 SHA1Init(ctxt); in ah_hmac_sha1_result()
740 SHA1Update(ctxt, opad, 64); in ah_hmac_sha1_result()
741 SHA1Update(ctxt, (caddr_t)&digest[0], sizeof(digest)); in ah_hmac_sha1_result()
742 SHA1Final((caddr_t)&digest[0], ctxt); in ah_hmac_sha1_result()
794 SHA256_CTX *ctxt; in ah_hmac_sha2_256_init() local
812 ctxt = (SHA256_CTX *)(void *)(opad + 64); in ah_hmac_sha2_256_init()
817 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_256_init()
818 SHA256_Init(ctxt); in ah_hmac_sha2_256_init()
819 SHA256_Update(ctxt, (const u_int8_t *) _KEYBUF(state->sav->key_auth), in ah_hmac_sha2_256_init()
821 SHA256_Final(&tk[0], ctxt); in ah_hmac_sha2_256_init()
838 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_256_init()
839 SHA256_Init(ctxt); in ah_hmac_sha2_256_init()
840 SHA256_Update(ctxt, ipad, 64); in ah_hmac_sha2_256_init()
850 SHA256_CTX *ctxt; in ah_hmac_sha2_256_loop() local
856 ctxt = (SHA256_CTX *)(void *)(((u_char *)state->foo) + 128); in ah_hmac_sha2_256_loop()
857 SHA256_Update(ctxt, (const u_int8_t *)addr, (size_t)len); in ah_hmac_sha2_256_loop()
868 SHA256_CTX *ctxt; in ah_hmac_sha2_256_result() local
876 ctxt = (SHA256_CTX *)(void *)(opad + 64); in ah_hmac_sha2_256_result()
878 SHA256_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_256_result()
880 SHA256_Init(ctxt); in ah_hmac_sha2_256_result()
881 SHA256_Update(ctxt, opad, 64); in ah_hmac_sha2_256_result()
882 SHA256_Update(ctxt, (const u_int8_t *)digest, sizeof(digest)); in ah_hmac_sha2_256_result()
883 SHA256_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_256_result()
934 SHA384_CTX *ctxt; in ah_hmac_sha2_384_init() local
953 ctxt = (SHA384_CTX *)(void *)(opad + 128); in ah_hmac_sha2_384_init()
958 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_384_init()
959 SHA384_Init(ctxt); in ah_hmac_sha2_384_init()
960 SHA384_Update(ctxt, (const u_int8_t *) _KEYBUF(state->sav->key_auth), in ah_hmac_sha2_384_init()
962 SHA384_Final(&tk[0], ctxt); in ah_hmac_sha2_384_init()
979 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_384_init()
980 SHA384_Init(ctxt); in ah_hmac_sha2_384_init()
981 SHA384_Update(ctxt, ipad, 128); in ah_hmac_sha2_384_init()
991 SHA384_CTX *ctxt; in ah_hmac_sha2_384_loop() local
997 ctxt = (SHA384_CTX *)(void *)(((u_char *)state->foo) + 256); in ah_hmac_sha2_384_loop()
998 SHA384_Update(ctxt, (const u_int8_t *)addr, (size_t)len); in ah_hmac_sha2_384_loop()
1009 SHA384_CTX *ctxt; in ah_hmac_sha2_384_result() local
1017 ctxt = (SHA384_CTX *)(void *)(opad + 128); in ah_hmac_sha2_384_result()
1019 SHA384_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_384_result()
1021 SHA384_Init(ctxt); in ah_hmac_sha2_384_result()
1022 SHA384_Update(ctxt, opad, 128); in ah_hmac_sha2_384_result()
1023 SHA384_Update(ctxt, (const u_int8_t *)digest, sizeof(digest)); in ah_hmac_sha2_384_result()
1024 SHA384_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_384_result()
1075 SHA512_CTX *ctxt; in ah_hmac_sha2_512_init() local
1094 ctxt = (SHA512_CTX *)(void *)(opad + 128); in ah_hmac_sha2_512_init()
1099 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_512_init()
1100 SHA512_Init(ctxt); in ah_hmac_sha2_512_init()
1101 SHA512_Update(ctxt, (const u_int8_t *) _KEYBUF(state->sav->key_auth), in ah_hmac_sha2_512_init()
1103 SHA512_Final(&tk[0], ctxt); in ah_hmac_sha2_512_init()
1120 bzero(ctxt, sizeof(*ctxt)); in ah_hmac_sha2_512_init()
1121 SHA512_Init(ctxt); in ah_hmac_sha2_512_init()
1122 SHA512_Update(ctxt, ipad, 128); in ah_hmac_sha2_512_init()
1132 SHA512_CTX *ctxt; in ah_hmac_sha2_512_loop() local
1138 ctxt = (SHA512_CTX *)(void *)(((u_char *)state->foo) + 256); in ah_hmac_sha2_512_loop()
1139 SHA512_Update(ctxt, (const u_int8_t *) addr, (size_t)len); in ah_hmac_sha2_512_loop()
1150 SHA512_CTX *ctxt; in ah_hmac_sha2_512_result() local
1158 ctxt = (SHA512_CTX *)(void *)(opad + 128); in ah_hmac_sha2_512_result()
1160 SHA512_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_512_result()
1162 SHA512_Init(ctxt); in ah_hmac_sha2_512_result()
1163 SHA512_Update(ctxt, opad, 128); in ah_hmac_sha2_512_result()
1164 SHA512_Update(ctxt, (const u_int8_t *)digest, sizeof(digest)); in ah_hmac_sha2_512_result()
1165 SHA512_Final((u_int8_t *)digest, ctxt); in ah_hmac_sha2_512_result()