close the digest, producing the final digest value. The doFinal call leaves the digest reset.
the array the digest is to be copied into.
the offset into the out array the digest is to start at.