Doh that was supposed to be using the ag crypto api already.