浏览代码

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_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 } }
 };