test and document new crypto functions