collision-free 1-way hash function y = g^x mod p block cipher - - - - - - - - - - | API | | Resource Server | - - - - - - - - - -