tests: implement crypto tests per RFC2202