+2013-08-26 Bob Halley <halley@dnspython.org>
+
+ * dns/tsig.py (sign): multi-message TSIGs were broken for
+ algorithms other than HMAC-MD5 because we weren't passing the
+ right digest module to the HMAC code. Thanks to salzmdan for
+ reporting the bug.
+
2013-07-01 Bob Halley <halley@dnspython.org>
* (Version 1.11.0 released)
mpack = struct.pack('!H', len(mac))
tsig_rdata = pre_mac + mpack + mac + id + post_mac
if multi:
- ctx = hmac.new(secret)
+ ctx = hmac.new(secret, digestmod=digestmod)
ml = len(mac)
ctx.update(struct.pack('!H', ml))
ctx.update(mac)