… | |
… | |
43 | |
43 | |
44 | //////////////////////////////////////////////////////////////////////////////////////// |
44 | //////////////////////////////////////////////////////////////////////////////////////// |
45 | |
45 | |
46 | struct crypto_ctx; |
46 | struct crypto_ctx; |
47 | |
47 | |
48 | struct hmac_packet:net_packet |
48 | struct hmac_packet : net_packet |
49 | { |
49 | { |
50 | u8 hmac[HMACLENGTH]; // each and every packet has a hmac field, but that is not (yet) checked everywhere |
50 | u8 hmac[HMACLENGTH]; // each and every packet has a hmac field, but that is not (yet) checked everywhere |
51 | |
51 | |
52 | void hmac_set (crypto_ctx * ctx); |
52 | void hmac_set (crypto_ctx * ctx); |
53 | bool hmac_chk (crypto_ctx * ctx); |
53 | bool hmac_chk (crypto_ctx * ctx); |