sad: introduce nettle mac library

Four Message Authentication Code (MAC) libraries will be added:
 1. nettle (this patch)
 2. gnutls
 3. gnupg
 4. openssl

This patch introduces the nettle mac library along with all functions
required including initialization/deinitialization of mac context using
key data and generating the digest/mac/icv

Signed-off-by: Clay Kaiser <Clay.Kaiser@ibm.com>
Reviewed-by: Erez Geva <ErezGeva2@gmail.com>
Reviewed-by: Miroslav Lichvar <mlichvar@redhat.com>
5 files changed
tree: d9c92aa54768ef8ac2990a65a41c18eb94a20823
  1. configs/
  2. .gitignore
  3. address.h
  4. as_capable.h
  5. bmc.c
  6. bmc.h
  7. clock.c
  8. clock.h
  9. clockadj.c
  10. clockadj.h
  11. clockcheck.c
  12. clockcheck.h
  13. CODING_STYLE.org
  14. config.c
  15. config.h
  16. contain.h
  17. COPYING
  18. ddt.h
  19. designated_fsm.c
  20. designated_fsm.h
  21. dm.h
  22. ds.h
  23. e2e_tc.c
  24. ether.h
  25. fault.c
  26. fault.h
  27. fd.h
  28. filter.c
  29. filter.h
  30. filter_private.h
  31. foreign.h
  32. fsm.c
  33. fsm.h
  34. hash.c
  35. hash.h
  36. hwstamp_ctl.8
  37. hwstamp_ctl.c
  38. incdefs.sh
  39. interface.c
  40. interface.h
  41. linreg.c
  42. linreg.h
  43. lstab.c
  44. lstab.h
  45. makefile
  46. mave.c
  47. mave.h
  48. missing.h
  49. mmedian.c
  50. mmedian.h
  51. monitor.c
  52. monitor.h
  53. msg.c
  54. msg.h
  55. mtab.h
  56. nmea.c
  57. nmea.h
  58. notification.h
  59. nsm.8
  60. nsm.c
  61. ntpshm.c
  62. ntpshm.h
  63. nullf.c
  64. nullf.h
  65. p2p_tc.c
  66. pdt.h
  67. phc.c
  68. phc.h
  69. phc2sys.8
  70. phc2sys.c
  71. phc_ctl.8
  72. phc_ctl.c
  73. pi.c
  74. pi.h
  75. pmc.8
  76. pmc.c
  77. pmc_agent.c
  78. pmc_agent.h
  79. pmc_common.c
  80. pmc_common.h
  81. port.c
  82. port.h
  83. port_private.h
  84. port_signaling.c
  85. power_profile.h
  86. pqueue.c
  87. pqueue.h
  88. print.c
  89. print.h
  90. ptp4l.8
  91. ptp4l.c
  92. raw.c
  93. raw.h
  94. README.org
  95. refclock_sock.c
  96. refclock_sock.h
  97. rtnl.c
  98. rtnl.h
  99. sad.c
  100. sad.h
  101. sad_nettle.c
  102. sad_private.h
  103. serial.c
  104. serial.h
  105. servo.c
  106. servo.h
  107. servo_private.h
  108. sk.c
  109. sk.h
  110. sock.c
  111. sock.h
  112. stats.c
  113. stats.h
  114. sysoff.c
  115. sysoff.h
  116. tc.c
  117. tc.h
  118. telecom.c
  119. timemaster.8
  120. timemaster.c
  121. tlv.c
  122. tlv.h
  123. tmv.h
  124. transport.c
  125. transport.h
  126. transport_private.h
  127. ts2phc.8
  128. ts2phc.c
  129. ts2phc.h
  130. ts2phc_generic_pps_source.c
  131. ts2phc_generic_pps_source.h
  132. ts2phc_nmea_pps_source.c
  133. ts2phc_nmea_pps_source.h
  134. ts2phc_phc_pps_source.c
  135. ts2phc_phc_pps_source.h
  136. ts2phc_pps_sink.c
  137. ts2phc_pps_sink.h
  138. ts2phc_pps_source.c
  139. ts2phc_pps_source.h
  140. ts2phc_pps_source_private.h
  141. tsproc.c
  142. tsproc.h
  143. tz.h
  144. tz2alt.8
  145. tz2alt.c
  146. udp.c
  147. udp.h
  148. udp6.c
  149. udp6.h
  150. uds.c
  151. uds.h
  152. unicast_client.c
  153. unicast_client.h
  154. unicast_fsm.c
  155. unicast_fsm.h
  156. unicast_service.c
  157. unicast_service.h
  158. util.c
  159. util.h
  160. version.c
  161. version.h
  162. version.sh