Lines Matching refs:ctxt
387 SHA1_CTX *ctxt;
400 ctxt = (SHA1_CTX *)state->foo;
401 SHA1Init(ctxt);
404 SHA1Update(ctxt, (u_int8_t *)_KEYBUF(state->sav->key_auth),
418 SHA1Update(ctxt, &buf[0], 1);
423 SHA1Update(ctxt, &buf[0], sizeof(buf));
427 SHA1Update(ctxt, &buf[0], padlen);
434 SHA1Update(ctxt, buf, 8);
446 SHA1_CTX *ctxt;
450 ctxt = (SHA1_CTX *)state->foo;
452 SHA1Update(ctxt, (caddr_t)addr, (size_t)len);
461 SHA1_CTX *ctxt;
465 ctxt = (SHA1_CTX *)state->foo;
468 SHA1Update(ctxt, (u_int8_t *)_KEYBUF(state->sav->key_auth),
471 SHA1Final((caddr_t)&digest[0], ctxt);
516 MD5_CTX *ctxt;
528 ctxt = (MD5_CTX *)(opad + 64);
532 MD5Init(ctxt);
533 MD5Update(ctxt, _KEYBUF(state->sav->key_auth),
535 MD5Final(&tk[0], ctxt);
552 MD5Init(ctxt);
553 MD5Update(ctxt, ipad, 64);
564 MD5_CTX *ctxt;
568 ctxt = (MD5_CTX *)(((caddr_t)state->foo) + 128);
569 MD5Update(ctxt, addr, len);
580 MD5_CTX *ctxt;
587 ctxt = (MD5_CTX *)(opad + 64);
589 MD5Final(&digest[0], ctxt);
591 MD5Init(ctxt);
592 MD5Update(ctxt, opad, 64);
593 MD5Update(ctxt, &digest[0], sizeof(digest));
594 MD5Final(&digest[0], ctxt);
636 SHA1_CTX *ctxt;
653 ctxt = (SHA1_CTX *)(opad + 64);
657 SHA1Init(ctxt);
658 SHA1Update(ctxt, _KEYBUF(state->sav->key_auth),
660 SHA1Final(&tk[0], ctxt);
677 SHA1Init(ctxt);
678 SHA1Update(ctxt, ipad, 64);
689 SHA1_CTX *ctxt;
694 ctxt = (SHA1_CTX *)(((u_char *)state->foo) + 128);
695 SHA1Update(ctxt, (caddr_t)addr, (size_t)len);
706 SHA1_CTX *ctxt;
713 ctxt = (SHA1_CTX *)(opad + 64);
715 SHA1Final((caddr_t)&digest[0], ctxt);
717 SHA1Init(ctxt);
718 SHA1Update(ctxt, opad, 64);
719 SHA1Update(ctxt, (caddr_t)&digest[0], sizeof(digest));
720 SHA1Final((caddr_t)&digest[0], ctxt);
765 SHA256_CTX *ctxt;
782 ctxt = (SHA256_CTX *)(opad + 64);
787 bzero(ctxt, sizeof(*ctxt));
788 SHA256_Init(ctxt);
789 SHA256_Update(ctxt, _KEYBUF(state->sav->key_auth),
791 SHA256_Final(&tk[0], ctxt);
808 bzero(ctxt, sizeof(*ctxt));
809 SHA256_Init(ctxt);
810 SHA256_Update(ctxt, ipad, 64);
821 SHA256_CTX *ctxt;
826 ctxt = (SHA256_CTX *)(((u_char *)state->foo) + 128);
827 SHA256_Update(ctxt, (caddr_t)addr, (size_t)len);
838 SHA256_CTX *ctxt;
845 ctxt = (SHA256_CTX *)(opad + 64);
847 SHA256_Final((caddr_t)&digest[0], ctxt);
849 bzero(ctxt, sizeof(*ctxt));
850 SHA256_Init(ctxt);
851 SHA256_Update(ctxt, opad, 64);
852 SHA256_Update(ctxt, (caddr_t)&digest[0], sizeof(digest));
853 SHA256_Final((caddr_t)&digest[0], ctxt);
897 SHA384_CTX *ctxt;
915 ctxt = (SHA384_CTX *)(opad + 64);
920 bzero(ctxt, sizeof(*ctxt));
921 SHA384_Init(ctxt);
922 SHA384_Update(ctxt, _KEYBUF(state->sav->key_auth),
924 SHA384_Final(&tk[0], ctxt);
941 bzero(ctxt, sizeof(*ctxt));
942 SHA384_Init(ctxt);
943 SHA384_Update(ctxt, ipad, 64);
954 SHA384_CTX *ctxt;
959 ctxt = (SHA384_CTX *)(((u_char *)state->foo) + 128);
960 SHA384_Update(ctxt, (caddr_t)addr, (size_t)len);
971 SHA384_CTX *ctxt;
978 ctxt = (SHA384_CTX *)(opad + 64);
980 SHA384_Final((caddr_t)&digest[0], ctxt);
982 bzero(ctxt, sizeof(*ctxt));
983 SHA384_Init(ctxt);
984 SHA384_Update(ctxt, opad, 64);
985 SHA384_Update(ctxt, (caddr_t)&digest[0], sizeof(digest));
986 SHA384_Final((caddr_t)&digest[0], ctxt);
1030 SHA512_CTX *ctxt;
1048 ctxt = (SHA512_CTX *)(opad + 64);
1053 bzero(ctxt, sizeof(*ctxt));
1054 SHA512_Init(ctxt);
1055 SHA512_Update(ctxt, _KEYBUF(state->sav->key_auth),
1057 SHA512_Final(&tk[0], ctxt);
1074 bzero(ctxt, sizeof(*ctxt));
1075 SHA512_Init(ctxt);
1076 SHA512_Update(ctxt, ipad, 64);
1087 SHA512_CTX *ctxt;
1092 ctxt = (SHA512_CTX *)(((u_char *)state->foo) + 128);
1093 SHA512_Update(ctxt, (caddr_t)addr, (size_t)len);
1104 SHA512_CTX *ctxt;
1111 ctxt = (SHA512_CTX *)(opad + 64);
1113 SHA512_Final((caddr_t)&digest[0], ctxt);
1115 bzero(ctxt, sizeof(*ctxt));
1116 SHA512_Init(ctxt);
1117 SHA512_Update(ctxt, opad, 64);
1118 SHA512_Update(ctxt, (caddr_t)&digest[0], sizeof(digest));
1119 SHA512_Final((caddr_t)&digest[0], ctxt);