artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e58d34
)
Remove no unnecessary do { } while (0);
author
jsing
<jsing@openbsd.org>
Thu, 28 Mar 2024 08:31:11 +0000
(08:31 +0000)
committer
jsing
<jsing@openbsd.org>
Thu, 28 Mar 2024 08:31:11 +0000
(08:31 +0000)
lib/libcrypto/sm3/sm3.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/sm3/sm3.c
b/lib/libcrypto/sm3/sm3.c
index
d19156a
..
d98288a
100644
(file)
--- a/
lib/libcrypto/sm3/sm3.c
+++ b/
lib/libcrypto/sm3/sm3.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sm3.c,v 1.1
1 2024/03/28 08:30:25
jsing Exp $ */
+/* $OpenBSD: sm3.c,v 1.1
2 2024/03/28 08:31:11
jsing Exp $ */
/*
* Copyright (c) 2018, Ribose Inc
*
@@
-355,7
+355,6
@@
SM3_Final(unsigned char *md, SM3_CTX *c)
c->num = 0;
memset(p, 0, SM3_CBLOCK);
- do {
ll = (c)->A;
HOST_l2c(ll, md);
ll = (c)->B;
@@
-372,7
+371,6
@@
SM3_Final(unsigned char *md, SM3_CTX *c)
HOST_l2c(ll, md);
ll = (c)->H;
HOST_l2c(ll, md);
- } while (0);
return 1;
}