Home | History | Annotate | Download | only in dropbear

Lines Matching defs:hmac

267 	/* check the hmac */
318 hmac_state hmac;
329 if (hmac_init(&hmac,
334 dropbear_exit("HMAC error");
339 if (hmac_process(&hmac, tempbuf, 4) != CRYPT_OK) {
340 dropbear_exit("HMAC error");
345 if (hmac_process(&hmac, buf_getptr(sourcebuf, len), len) != CRYPT_OK) {
346 dropbear_exit("HMAC error");
350 if (hmac_done(&hmac, tempbuf, &bufsize) != CRYPT_OK) {
351 dropbear_exit("HMAC error");
500 /* now add a hmac and we're done */
526 hmac_state hmac;
533 if (hmac_init(&hmac,
537 dropbear_exit("HMAC error");
542 if (hmac_process(&hmac, seqbuf, 4) != CRYPT_OK) {
543 dropbear_exit("HMAC error");
548 if (hmac_process(&hmac,
552 dropbear_exit("HMAC error");
556 if (hmac_done(&hmac, tempbuf, &bufsize)
558 dropbear_exit("HMAC error");