Cryptographic primitives and utilities for use in UIA software