Primitives
Crypto primitives are the building blocks of any good crypto system. Do not try to write your own primitive. Use one of the well-known implementations for your language. Many primitives are vulnerable to implementation quirks such as timing attacks or cache-based key leaking.