Lines Matching refs:md
36 @param md The hash state you wish to initialize
39 int sha384_init(hash_state * md)
41 LTC_ARGCHK(md != NULL);
43 md->sha512.curlen = 0;
44 md->sha512.length = 0;
45 md->sha512.state[0] = CONST64(0xcbbb9d5dc1059ed8);
46 md->sha512.state[1] = CONST64(0x629a292a367cd507);
47 md->sha512.state[2] = CONST64(0x9159015a3070dd17);
48 md->sha512.state[3] = CONST64(0x152fecd8f70e5939);
49 md->sha512.state[4] = CONST64(0x67332667ffc00b31);
50 md->sha512.state[5] = CONST64(0x8eb44a8768581511);
51 md->sha512.state[6] = CONST64(0xdb0c2e0d64f98fa7);
52 md->sha512.state[7] = CONST64(0x47b5481dbefa4fa4);
58 @param md The hash state
62 int sha384_done(hash_state * md, unsigned char *out)
66 LTC_ARGCHK(md != NULL);
69 if (md->sha512.curlen >= sizeof(md->sha512.buf)) {
73 sha512_done(md, buf);
114 hash_state md;
117 sha384_init(&md);
118 sha384_process(&md, (unsigned char*)tests[i].msg, (unsigned long)strlen(tests[i].msg));
119 sha384_done(&md, tmp);