From f7279d827bd14e4534760e76367e55dcb0cef687 Mon Sep 17 00:00:00 2001 From: jsing Date: Thu, 28 Mar 2024 12:09:09 +0000 Subject: [PATCH] Remove unused SM3_Transform() Along with the misnamed SM3_transform() prototype. --- lib/libcrypto/sm3/sm3.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/libcrypto/sm3/sm3.c b/lib/libcrypto/sm3/sm3.c index 9cbda402ac2..b10485dfe3b 100644 --- a/lib/libcrypto/sm3/sm3.c +++ b/lib/libcrypto/sm3/sm3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sm3.c,v 1.16 2024/03/28 12:04:38 jsing Exp $ */ +/* $OpenBSD: sm3.c,v 1.17 2024/03/28 12:09:09 jsing Exp $ */ /* * Copyright (c) 2018, Ribose Inc * @@ -28,8 +28,6 @@ CTASSERT(sizeof(SM3_WORD) == sizeof(uint32_t)); #ifndef OPENSSL_NO_SM3 -void SM3_transform(SM3_CTX *c, const unsigned char *data); - #define P0(X) (X ^ crypto_rol_u32(X, 9) ^ crypto_rol_u32(X, 17)) #define P1(X) (X ^ crypto_rol_u32(X, 15) ^ crypto_rol_u32(X, 23)) @@ -324,12 +322,6 @@ SM3_Update(SM3_CTX *c, const void *data_, size_t len) } LCRYPTO_ALIAS(SM3_Update); -void -SM3_Transform(SM3_CTX *c, const unsigned char *data) -{ - sm3_block_data_order(c, data, 1); -} - int SM3_Final(unsigned char *md, SM3_CTX *c) { -- 2.20.1