(key, msg []byte)
| 345 | } |
| 346 | |
| 347 | func computeHMAC(key, msg []byte) []byte { |
| 348 | mac := hmac.New(sha256.New, key) |
| 349 | mac.Write(msg) |
| 350 | return mac.Sum(nil) |
| 351 | } |
| 352 | |
| 353 | func computeClientProof(saltedPassword, authMessage []byte) []byte { |
| 354 | clientKey := computeHMAC(saltedPassword, []byte("Client Key")) |
no test coverage detected