(data, algorithm)
| 268 | # qop is a quality of protection |
| 269 | |
| 270 | def H(data, algorithm): |
| 271 | if algorithm == 'SHA-256': |
| 272 | return sha256(data).hexdigest() |
| 273 | elif algorithm == 'SHA-512': |
| 274 | return sha512(data).hexdigest() |
| 275 | else: |
| 276 | return md5(data).hexdigest() |
| 277 | |
| 278 | |
| 279 | def HA1(realm, username, password, algorithm): |
no outgoing calls
no test coverage detected