One of the primary design objectives in constructing a `` quality '' cipher or cryptographic hash function is to build a good avalanche effect . Constructing a cipher or hash to exhibit a substantial avalanche effect is one of the primary design objectives .