Crypto related functions and helpers for Swift implemented in Swift.