Lines Matching refs:hmac
15 #include "crypto/hmac.h"
141 HMAC hmac(HMAC::SHA256);
142 if (!hmac.Init(raw_mac_key))
146 if (!hmac.Sign(ciphertext, &hash[0], hash.size()))
177 HMAC hmac(HMAC::SHA256);
178 if (!hmac.Init(raw_mac_key))
182 if (!hmac.Sign(ciphertext, &hash[0], hash.size()))
215 HMAC hmac(HMAC::SHA256);
216 if (!hmac.Init(raw_mac_key))
220 if (!hmac.Sign(ciphertext, &expected[0], expected.size()))