Home | History | Annotate | Download | only in crypto

Lines Matching refs:md

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