new echo 512 algo and renamed functions