A port of Java's MessageDigest.isEqual.
MessageDigest.isEqual
All bytes in digesta are examined to determine equality. The calculation time depends only on the length of digesta. It does not depend on the length of digestb or the contents of digesta and digestb.
digesta
digestb