(self, key, data)
| 172 | return AES.new(key, AES.MODE_CBC, iv).decrypt(text) |
| 173 | |
| 174 | def _hmac(self, key, data): |
| 175 | return hmac.new(key, data, hashlib.sha256).digest() |
| 176 | |
| 177 | def _prf(self, secret, salt): |
| 178 | return hmac.new(secret, salt, hashlib.sha1).digest() |