From 76cb5eed6a8029ea2d932581364559f96583a6ee Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Mon, 21 Jan 2019 16:52:56 +0100 Subject: [PATCH] Add more hash primops --- include/aeb_opcodes.hrl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/aeb_opcodes.hrl b/include/aeb_opcodes.hrl index fea855c..5ed77c2 100644 --- a/include/aeb_opcodes.hrl +++ b/include/aeb_opcodes.hrl @@ -180,4 +180,9 @@ -define(PRIM_CALL_MAP_TOLIST, 305). -define(PRIM_CALL_IN_CRYPTO_RANGE(__TTYPE__), (((__TTYPE__) > 399) andalso ((__TTYPE__) < 500))). --define(PRIM_CALL_CRYPTO_ECVERIFY, 400). +-define(PRIM_CALL_CRYPTO_ECVERIFY, 400). +-define(PRIM_CALL_CRYPTO_SHA3, 401). +-define(PRIM_CALL_CRYPTO_SHA256, 402). +-define(PRIM_CALL_CRYPTO_BLAKE2B, 403). +-define(PRIM_CALL_CRYPTO_SHA256_STRING, 404). +-define(PRIM_CALL_CRYPTO_BLAKE2B_STRING, 405).