Types for crypto