Fixed buffer mishandling, previously it copied the first bytes of the tail buffer instead of the last ones. This led to a wrong digest calculation result when performing multiple C_DigestUpdate() calls for blocks bigger than 64 bytes.
Fixed buffer mishandling, previously it copied the first bytes of
the tail buffer instead of the last ones. This led to a wrong
digest calculation result when performing multiple C_DigestUpdate()
calls for blocks bigger than 64 bytes.

Signed-off-by: Rajiv Andrade <3cd4580e3c128af73a5b4375e865c34e65fd90b2@br.ibm.com>

fingunter/OpenCryptoki,joylatten/opencryptoki,shpedoikal/opencryptoki,joylatten/opencryptoki,shpedoikal/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,shpedoikal/opencryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki,shpedoikal/opencryptoki,fingunter/OpenCryptoki