/* Find hash algorithm information from mHashAlgInfo according to given ID. */
STATIC CONST HASH_ALG_INFO* FindHashAlgInfo(IN UINT16 HashAlgId)
/* Find hash algorithm information from mHashAlgInfo according to given ID. */
STATIC CONST HASH_ALG_INFO* FindHashAlgInfo(IN UINT16 HashAlgId)
{
  UINTN  Index;
  for (Index = 0; Index < ARRAY_SIZE (mHashAlgInfo); ++Index) {
    if (mHashAlgInfo[Index].HashAlgId == HashAlgId) {
      return &mHashAlgInfo[Index];
    }
  }
  return NULL;
}