If you're using java ..
Code:
public static final String HMAC_SHA1_ALGORITHM = "HmacSHA1";
byte[] getMac(byte[] data, String key){
byte[] result;
byte[] keyBytes = key.getBytes();
javax.crypto.spec.SecretKeySpec signingKey = new javax.crypto.spec.SecretKeySpec(keyBytes, HMAC_SHA1_ALGORITHM);
javax.crypto.Mac mac = javax.crypto.Mac.getInstance(HMAC_SHA1_ALGORITHM);
mac.init(signingKey);
byte[] rawHmac = mac.doFinal(data);
byte[] k_result = rawHmac;
if(k_result != null){
result = String.copyValueOf(org.apache.commons.codec.binary.Hex.encodeHex(k_result)).getBytes();
}
return result;
}
Give that a go, hope it helps
er the data passwed is the wbxml in byte[] and the key is the pin you want