I'm making wap settings senting application, and i need help with HMAC, Mac Value, i use HMAC-SHA module for perl, but i don't know what do i have to set in input fields.

in case of USERPIN (1234) i have set key to "31323334"?, what about other NETWPIN and stuff?

and what do i have to put in data field, all data? encoded how? WBXML or XML and stuff, if somebody can help i would be thankful.