Lines Matching defs:ctx
10 static uint64_t getCount(MD5_CTX *ctx)
12 return ( (((uint64_t)ctx->count[0])<<32) | (ctx->count[1]) );
15 static void setCount(MD5_CTX *ctx, uint64_t count)
17 ctx->count[0]=(uint32_t)(count>>32);
18 ctx->count[1]=(uint32_t)count;
21 /* Copy a ccdigest ctx into a legacy MD5 context */
29 /* Copy a legacy MD5 context into a ccdigest ctx */
40 void MD5Init(MD5_CTX *ctx)
47 DiToMD5(di, di_ctx, ctx);
50 void MD5Update(MD5_CTX *ctx, const void *data, unsigned int len)
55 MD5ToDi(di, ctx, di_ctx);
57 DiToMD5(di, di_ctx, ctx);
60 void MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx)
65 MD5ToDi(di, ctx, di_ctx);