summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/sm3/sm3.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libcrypto/sm3/sm3.c b/src/lib/libcrypto/sm3/sm3.c
index 9cbda402ac..b10485dfe3 100644
--- a/src/lib/libcrypto/sm3/sm3.c
+++ b/src/lib/libcrypto/sm3/sm3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sm3.c,v 1.16 2024/03/28 12:04:38 jsing Exp $ */ 1/* $OpenBSD: sm3.c,v 1.17 2024/03/28 12:09:09 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, Ribose Inc 3 * Copyright (c) 2018, Ribose Inc
4 * 4 *
@@ -28,8 +28,6 @@ CTASSERT(sizeof(SM3_WORD) == sizeof(uint32_t));
28 28
29#ifndef OPENSSL_NO_SM3 29#ifndef OPENSSL_NO_SM3
30 30
31void SM3_transform(SM3_CTX *c, const unsigned char *data);
32
33#define P0(X) (X ^ crypto_rol_u32(X, 9) ^ crypto_rol_u32(X, 17)) 31#define P0(X) (X ^ crypto_rol_u32(X, 9) ^ crypto_rol_u32(X, 17))
34#define P1(X) (X ^ crypto_rol_u32(X, 15) ^ crypto_rol_u32(X, 23)) 32#define P1(X) (X ^ crypto_rol_u32(X, 15) ^ crypto_rol_u32(X, 23))
35 33
@@ -324,12 +322,6 @@ SM3_Update(SM3_CTX *c, const void *data_, size_t len)
324} 322}
325LCRYPTO_ALIAS(SM3_Update); 323LCRYPTO_ALIAS(SM3_Update);
326 324
327void
328SM3_Transform(SM3_CTX *c, const unsigned char *data)
329{
330 sm3_block_data_order(c, data, 1);
331}
332
333int 325int
334SM3_Final(unsigned char *md, SM3_CTX *c) 326SM3_Final(unsigned char *md, SM3_CTX *c)
335{ 327{