summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sm3/sm3.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sm3: fix ugly whitespacetb2024-12-121-5/+5
|
* Remove unused SM3_Transform()jsing2024-03-281-9/+1
| | | | Along with the misnamed SM3_transform() prototype.
* Rename SM3_block_data_order() and make static.jsing2024-03-281-9/+8
|
* Rework loads and stores for sm3.jsing2024-03-281-61/+57
| | | | | | | Replace loads with crypto_load_be32toh() or be32toh(). Use crypto_store_htobe32() or htobe32() for stores. ok tb@
* Expand ROTATE macro to crypto_rol_u32().jsing2024-03-281-8/+10
|
* Inline initial hash values.jsing2024-03-281-18/+11
|
* Remove no unnecessary do { } while (0);jsing2024-03-281-3/+1
|
* Inline HASH_MAKE_STRING.jsing2024-03-281-17/+20
| | | | No change to generated assembly.
* Expand HASH_* defines.jsing2024-03-281-26/+28
| | | | No change in generated assembly.
* Reorder functions.jsing2024-03-281-116/+115
| | | | No functional change.
* Tidy includes.jsing2024-03-281-5/+5
|
* Inline functions from md32_common.h.jsing2024-03-281-1/+101
| | | | No change in generated assembly.
* Inline sm3_local.h in sm3.c.jsing2023-07-081-2/+70
| | | | | | | | sm3_local.h is not really a local header, just another layer of indirection that cannot be included by anything other than sm3.c. As such, include it directly instead. No change in generated assembly.
* Hide symbols in sm3beck2023-07-081-1/+4
| | | | ok tb@ jsing@
* Unbreak the namespace build after a broken mk.conf and tool misfire hadbeck2023-07-071-2/+1
| | | | | | | | me aliasing symbols not in the headers I was procesing. This unbreaks the namespace build so it will pass again ok tb@
* hide symbols in sm, rand, and poly1305beck2023-07-071-1/+2
| | | | ok jsing@
* Make internal header file names consistenttb2022-11-261-2/+2
| | | | | | | | | | | | | | | | Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook
* Add Ribose Inc's implementation of the SM3 hashing function withtb2018-11-111-0/+206
tweaks from jsing and myself. The SM2/SM3/SM4 algorithms are mandatory for legal use of cryptography within China and [are] widely applied in the country, covering identification/financial cards, contactless, TPM 2.0 and PKI. ok beck inoguchi jsing