diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 12:09:10 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 12:09:10 +0000 |
commit | 18a3003b1f607c27341e4b8631ed4cc64248c9a3 (patch) | |
tree | fc23d12e6450130ff4ac44151e0a9208b94b3e1a /lib/libcrypto | |
parent | 2525d2dc694aeb2a2dc4519a5b8874e12b0a229a (diff) |
Remove unused SM3_Transform()
Along with the misnamed SM3_transform() prototype.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/sm3/sm3.c | 10 |
1 files changed, 1 insertions, 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) { |