Basic cryptography library for SINS.