Lines Matching full:md
49 @param md The hash state you wish to initialize
52 void sha384_init(struct sha384_state *md) in sha384_init() argument
54 md->curlen = 0; in sha384_init()
55 md->length = 0; in sha384_init()
56 md->state[0] = CONST64(0xcbbb9d5dc1059ed8); in sha384_init()
57 md->state[1] = CONST64(0x629a292a367cd507); in sha384_init()
58 md->state[2] = CONST64(0x9159015a3070dd17); in sha384_init()
59 md->state[3] = CONST64(0x152fecd8f70e5939); in sha384_init()
60 md->state[4] = CONST64(0x67332667ffc00b31); in sha384_init()
61 md->state[5] = CONST64(0x8eb44a8768581511); in sha384_init()
62 md->state[6] = CONST64(0xdb0c2e0d64f98fa7); in sha384_init()
63 md->state[7] = CONST64(0x47b5481dbefa4fa4); in sha384_init()
66 int sha384_process(struct sha384_state *md, const unsigned char *in, in sha384_process() argument
69 return sha512_process(md, in, inlen); in sha384_process()
74 @param md The hash state
78 int sha384_done(struct sha384_state *md, unsigned char *out) in sha384_done() argument
82 if (md->curlen >= sizeof(md->buf)) in sha384_done()
85 if (sha512_done(md, buf) != 0) in sha384_done()