AnsweredAssumed Answered

MPC8548E  Sec 2.x Device driver to calc md5 digests.....

Question asked by wang dongwen on Jul 31, 2012
Latest reply on Apr 18, 2013 by lunminliang

Hi all, I'm trying to write code to use the MPC8315E's security engine to calc md5 digests.

Linux kernel 2.6.38
Sec 2.x Device driver

The problem:
I can calculate correctly md5 digests using single requests, but i can't using multiple interim requests.

If I use request as DPD_MD5_LDCTX_IDGS_HASH_ULCTX I expect to have a context in the outData member of th HASH_REQ struct. At next request I put the previous outData in ctxData. This is correct ?
And what about the field outBytes and ctxBytes? Are these fields written by the driver?How to solve the problem that using the driver to calc variety of data??

Outcomes