فهرست منبع

crypto: exported hmac_sha256() to KEMI

Daniel-Constantin Mierla 4 سال پیش
والد
کامیت
b886ba5ce8
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/modules/crypto/crypto_mod.c

+ 5 - 0
src/modules/crypto/crypto_mod.c

@@ -638,6 +638,11 @@ static sr_kemi_t sr_kemi_crypto_exports[] = {
 		{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
 		{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
 	},
+	{ str_init("crypto"), str_init("hmac_sha256"),
+		SR_KEMIP_INT, ki_crypto_hmac_sha256,
+		{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+	},
 
 
 	{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
 	{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
 };
 };