HMAC function rename for consistency

Make sure that HMAC function names conform to previously established get_*,
set_* naming convention.
This commit is contained in:
Michael Rash
2013-03-29 20:42:44 -04:00
parent d6b4a2a1c3
commit 08c9cc0938
11 changed files with 64 additions and 27 deletions
+4 -4
View File
@@ -591,15 +591,15 @@ class Fko:
"""
_fko.verify_hmac(self.ctx, hmac_key)
def calculate_hmac(self, hmac_key):
def set_spa_hmac(self, hmac_key):
"""Calculate the HMAC for the given data
"""
_fko.calculate_hmac(self.ctx, hmac_key)
_fko.set_spa_hmac(self.ctx, hmac_key)
def get_hmac_data(self):
def get_spa_hmac(self):
"""Return the HMAC for the data in the current context
"""
_fko.get_hmac_data(self.ctx)
_fko.get_spa_hmac(self.ctx)
# GPG-related functions.