updates to crypto-primitives