Searched refs:MD5Update (Results 1 - 25 of 55) sorted by relevance

123

/macosx-10.9.5/ntp-88/include/
H A Dntp_md5.h11 # define MD5Update CC_MD5_Update macro
17 # define MD5Update isc_md5_update macro
/macosx-10.9.5/ppp-727.90.1/Helpers/pppd/
H A Dmd5.h83 void MD5Update ();
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/md5crypt/
H A Dmd5crypt.tcl28 namespace import -force ::md5::MD5Init ::md5::MD5Update ::md5::MD5Final
66 MD5Update $ctx $pw
67 MD5Update $ctx $magic
68 MD5Update $ctx $salt
71 MD5Update $ctx2 $pw
72 MD5Update $ctx2 $salt
73 MD5Update $ctx2 $pw
78 MD5Update $ctx [string range $H2 0 $tl]
87 MD5Update $ctx $c
97 MD5Update
[all...]
H A Dmd5cryptc.tcl83 MD5Update(&ctx,(const unsigned char *)pw,strlen(pw));
86 MD5Update(&ctx,magic,strlen((const char *)magic));
89 MD5Update(&ctx,sp,sl);
93 MD5Update(&ctx1,(const unsigned char *)pw,strlen(pw));
94 MD5Update(&ctx1,sp,sl);
95 MD5Update(&ctx1,(const unsigned char *)pw,strlen(pw));
100 MD5Update(&ctx,final,pl>16 ? 16 : pl);
109 MD5Update(&ctx, final, 1);
111 MD5Update(&ctx, (const unsigned char *)pw, 1);
128 MD5Update(
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/md5/
H A Dmd5.h62 void MD5Update (MD5_CTX *mdContext, unsigned char *buf, unsigned int len);
H A Dmd5x.tcl29 namespace export md5 hmac MD5Init MD5Update MD5Final
79 # MD5Update --
89 proc ::md5::MD5Update {token data} {
203 MD5Update $tok $K
220 MD5Update $tok $Ki; # initialize with the inner pad
231 # Identical to calling MD5Update
234 MD5Update $token $data
247 MD5Update $tok $state(Ko); # prepare with the outer pad.
248 MD5Update $tok [MD5Final $token]; # hash the inner result
573 MD5Update
[all...]
/macosx-10.9.5/xnu-2422.115.4/libkern/libkern/crypto/
H A Dmd5.h74 extern void MD5Update(MD5_CTX *, const void *, unsigned int);
/macosx-10.9.5/Security-55471.14.18/include/security_cryptkit/
H A DckMD5.h45 #define MD5Update(c, d, l) CC_MD5_Update(c, d, l) macro
75 void MD5Update(MD5Context *context, unsigned char const *buf,
H A DfeeHash.c88 MD5Update(&hinst->context, data, dataLen);
/macosx-10.9.5/Security-55471.14.18/libsecurity_cryptkit/lib/
H A DckMD5.h45 #define MD5Update(c, d, l) CC_MD5_Update(c, d, l) macro
75 void MD5Update(MD5Context *context, unsigned char const *buf,
H A DfeeHash.c88 MD5Update(&hinst->context, data, dataLen);
/macosx-10.9.5/CPANInternal-140/Data-UUID/
H A Dmd5.h83 void MD5Update PROTO_LIST
/macosx-10.9.5/tcl-102/tcl_ext/trf/trf/generic/md5/
H A Dmd5.h68 void MD5Update _ANSI_ARGS_ ((MD5_CTX *mdContext, unsigned char *bug, unsigned int len));
/macosx-10.9.5/ntp-88/libntp/
H A Da_md5encrypt.c52 MD5Update(&md5, key, (u_int)cache_keylen);
53 MD5Update(&md5, (u_char *)pkt, (u_int)length);
97 MD5Update(&md5, key, (u_int)cache_keylen);
98 MD5Update(&md5, (u_char *)pkt, (u_int)length);
138 MD5Update(&md5, (u_char *)PSOCK_ADDR6(addr),
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/libdes/src/
H A Dfcrypt.c177 /* crypto/des/fcrypt.c */ /* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@mincom.oz.au). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@mincom.oz.au). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@mincom.oz.au)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@mincom.oz.au)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <stdio.h> /* Eric Young. * This version of crypt has been developed from my MIT compatable * DES library. * The library is available at pub/Crypto/DES at ftp.psy.uq.oz.au * eay@mincom.oz.au or eay@psych.psy.uq.oz.au */ /* Modification by Jens Kupferschmidt (Cu) * I have included directive PARA for shared memory computers. * I have included a directive LONGCRYPT to using this routine to cipher * passwords with more then 8 bytes like HP-UX 10.x it used. The MAXPLEN * definition is the maximum of lenght of password and can changed. I have * defined 24. */ #define FCRYPT_MOD(R,u,t,E0,E1,tmp) \ u=R>>16; \ t=R^u; \ u=t&E0; t=t&E1; \ tmp=(u<<16); u^=R^s[S ]; u^=tmp; \ tmp=(t<<16); t^=R^s[S+1]; t^=tmp #define DES_FCRYPT #include "des_locl.h" #undef DES_FCRYPT #undef PERM_OP #define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\ (b)^=(t),\ (a)^=((t)<<(n))) #undef HPERM_OP #define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),\ (a)=(a)^(t)^(t>>(16-(n))))\ #ifdef PARA #define STATIC #else #define STATIC static #endif /* It is really only FreeBSD that still suffers from MD5 based crypts */ #ifdef __FreeBSD__ #define MD5_CRYPT_SUPPORT 1 #endif #if MD5_CRYPT_SUPPORT /* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <md5.h> static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; static void to64(s, v, n) char *s; unsigned long v; int n; { while (--n >= 0) { *s++ = itoa64[v&0x3f]; v >>= 6; } } /* * UNIX password * * Use MD5 for what it is best at... */ static char * crypt_md5(pw, salt) register const char *pw; register const char *salt; { static char *magic = "$1$"; /* * This string is magic for * this algorithm. Having * it this way, we can get * get better later on */ static char passwd[120], *p; static const char *sp,*ep; unsigned char final[16]; int sl,pl,i,j; MD5_CTX ctx,ctx1; unsigned long l; /* Refine the Salt first */ sp = salt; /* If it starts with the magic string, then skip that */ if(!strncmp(sp,magic,strlen(magic))) sp += strlen(magic); /* It stops at the first '$', max 8 chars */ for(ep=sp;*ep && *ep != '$' && ep < (sp+8);ep++) continue; /* get the length of the true salt */ sl = ep - sp; MD5Init(&ctx); /* The password first, since that is what is most unknown */ MD5Update(&ctx,pw,strlen(pw)); /* Then our magic string */ MD5Update(&ctx,magic,strlen(magic)); /* Then the raw salt */ MD5Update(&ctx,sp,sl); /* Then just as many characters of the MD5(pw,salt,pw) */ MD5Init(&ctx1); MD5Update(&ctx1,pw,strlen(pw)); MD5Update(&ctx1,sp,sl); MD5Update(&ctx1,pw,strlen(pw)); MD5Final(final,&ctx1); for(pl = strlen(pw); pl > 0; pl -= 16) MD5Update(&ctx,final,pl>16 ? 16 : pl); /* Don't leave anything around in vm they could use. */ memset(final,0,sizeof final); /* Then something really weird... */ for (j=0,i = strlen(pw); i ; i >>= 1) if(i&1) MD5Update(&ctx, final+j, 1); else MD5Update(&ctx, pw+j, 1); /* Now make the output string */ snprintf (passwd, sizeof(passwd), "%s%.*s$", magic, sl, sp); MD5Final(final,&ctx); /* * and now, just to make sure things don't run too fast * On a 60 Mhz Pentium this takes 34 msec, so you would * need 30 seconds to build a 1000 entry dictionary... */ for(i=0;i<1000;i++) { MD5Init(&ctx1); if(i & 1) MD5Update(
[all...]
H A Dmd5.h82 /* * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H�gskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the Kungliga Tekniska * H�gskolan and its contributors. * * 4. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* $Id: md5.h,v 1.4 2005/01/10 19:09:06 snsimon Exp $ */ #include <stdlib.h> #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef HAVE_SYS_BITYPES_H #include <sys/bitypes.h> #endif #ifdef KRB5 #include <krb5-types.h> #elif defined(KRB4) #include <ktypes.h> #endif struct md5 { unsigned int offset; unsigned int sz; u_int32_t counter[4]; unsigned char save[64]; }; void md5_init (struct md5 *m); void md5_update (struct md5 *m, const void *p, size_t len); void md5_finito (struct md5 *m, void *res); /* u_int32_t res[4] */ /* * Functions for compatibility that have never been tested. */ typedef struct { u_int32_t i[2]; /* number of _bits_ handled mod 2^64 */ u_int32_t buf[4]; /* scratch buffer */ unsigned char in[64]; /* input buffer */ } MD5_CTX_PREAMBLE; typedef struct { union { MD5_CTX_PREAMBLE preamble_; struct md5 d5; } m; } MD5_CTX; void MD5Init (MD5_CTX *mdContext); void MD5Update (MD5_CTX *mdContext, const unsigned char *inBuf, unsigned int inLen); void MD5Final (unsigned char digest[16], MD5_CTX *mdContext); #ifndef NO_MD5_MACROS #define MD5Init(mdContext) md5_init(&(mdContext)->m.d5) #define MD5Update(mdCtx, inBuf, inLen) md5_update(&(mdCtx)->m.d5, inBuf, inLen) #define MD5Final(digest, mdCtx) md5_ (…)
/macosx-10.9.5/libresolv-54/
H A Ddst_hmac_link.c109 MD5Update(ctx, key->hk_ipad, HMAC_LEN);
113 MD5Update(ctx, data, len);
122 MD5Update(ctx, key->hk_opad, HMAC_LEN);
123 MD5Update(ctx, signature, MD5_LEN);
176 MD5Update(ctx, key->hk_ipad, HMAC_LEN);
179 MD5Update(ctx, data, len);
189 MD5Update(ctx, key->hk_opad, HMAC_LEN);
190 MD5Update(ctx, digest, MD5_LEN);
239 MD5Update(&ctx, key, keylen);
/macosx-10.9.5/network_cmds-433/ping6.tproj/
H A Dmd5.h68 #define MD5Update(x, y, z) md5_loop((x), (y), (z)) macro
/macosx-10.9.5/ppp-727.90.1/Authenticators/Radius/
H A Dradlib.c58 #define MD5Update MD5_Update macro
139 MD5Update(&ctx, srvp->secret, strlen(srvp->secret));
140 MD5Update(&ctx, md5, 16);
165 MD5Update(&ctx, &h->request[POS_CODE], POS_AUTH - POS_CODE);
166 MD5Update(&ctx, memset(&h->request[POS_AUTH], 0, LEN_AUTH), LEN_AUTH);
167 MD5Update(&ctx, &h->request[POS_ATTRS], h->req_len - POS_ATTRS);
168 MD5Update(&ctx, srvp->secret, strlen(srvp->secret));
227 MD5Update(&ctx, &h->response[POS_CODE], POS_AUTH - POS_CODE);
228 MD5Update(&ctx, &h->request[POS_AUTH], LEN_AUTH);
229 MD5Update(
[all...]
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/plugins/
H A Ddigestmd5.c354 utils->MD5Update(&Md5Ctx, pszMethod, strlen((char *) pszMethod));
356 utils->MD5Update(&Md5Ctx, (unsigned char *) COLON, 1);
358 /* utils->MD5Update(&Md5Ctx, (unsigned char *) "AUTHENTICATE:", 13); */
359 utils->MD5Update(&Md5Ctx, pszDigestUri, strlen((char *) pszDigestUri));
362 utils->MD5Update(&Md5Ctx, COLON, 1);
363 utils->MD5Update(&Md5Ctx, HEntity, HASHHEXLEN);
370 utils->MD5Update(&Md5Ctx, HA1, HASHHEXLEN);
371 utils->MD5Update(&Md5Ctx, COLON, 1);
372 utils->MD5Update(&Md5Ctx, pszNonce, strlen((char *) pszNonce));
373 utils->MD5Update(
[all...]
/macosx-10.9.5/smb-697.95.1/kernel/netsmb/
H A Dsmb_crypt.c255 MD5Update(&md5, vcp->vc_mackey, vcp->vc_mackeylen);
257 MD5Update(&md5, mbuf_data(mb), (unsigned int)mbuf_len(mb));
285 MD5Update(&md5, vcp->vc_mackey, vcp->vc_mackeylen);
286 MD5Update(&md5, mbuf_data(mb), SMBSIGOFF);
289 MD5Update(&md5, sigbuf, SMBSIGLEN);
290 MD5Update(&md5, (uint8_t *)mbuf_data(mb) + SMBPASTSIG,
294 MD5Update(&md5, mbuf_data(mb), (unsigned int)mbuf_len(mb));
/macosx-10.9.5/ntp-88/sntp/
H A Dcrypto.c36 MD5Update(&ctx, (u_char *)digest_data, LEN_PKT_NOMAC + cmp_key->key_len);
/macosx-10.9.5/xnu-2422.115.4/libkern/crypto/
H A Dcorecrypto_md5.c47 void MD5Update(MD5_CTX *ctx, const void *data, unsigned int len) function
/macosx-10.9.5/xnu-2422.115.4/bsd/netinet6/
H A Dah_core.c315 MD5Update((MD5_CTX *)state->foo,
332 MD5Update((MD5_CTX *)state->foo, &buf[0], 1);
337 MD5Update((MD5_CTX *)state->foo, &buf[0], sizeof(buf));
341 MD5Update((MD5_CTX *)state->foo, &buf[0], padlen);
348 MD5Update((MD5_CTX *)state->foo, buf, 8);
363 MD5Update((MD5_CTX *)state->foo, addr, len);
378 MD5Update((MD5_CTX *)state->foo,
567 MD5Update(ctxt, _KEYBUF(state->sav->key_auth),
587 MD5Update(ctxt, ipad, 64);
603 MD5Update(ctx
[all...]
/macosx-10.9.5/CPANInternal-140/Data-UUID-1.218/
H A DUUID.h154 static void MD5Update(SV* ctx, SV* data);

Completed in 390 milliseconds

123