have the functions/structs mostly setup, now need to convert calls into crypto*