diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-09-08 02:46:05 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-09-08 16:46:05 +1000 |
commit | 881a37eea1668d47c5d5fb38001a2850ca117495 (patch) | |
tree | 898db838171a0920fc0b29ac900ecdcf7ec6ee6a /examples/c/ex_encrypt.c | |
parent | 5f07ab685f2b1e978cfda354dd52a5fc52f8f8ab (diff) | |
download | mongo-881a37eea1668d47c5d5fb38001a2850ca117495.tar.gz |
WT-2873 Refactor CRC32 code (#3000)
* Add --enable-crc32-hardware configuration option (configured on by default), which allows CRC32 hardware support to be turned off.
* Move the CRC32 implementation in software from the x86-specific code to software/checksum.c, leave the x86-specific code in x86/crc32-x86.c.
* Move the pointer to the checksum function from a file static to the WT_PROCESS.cksum field, change the __wt_cksum_init() function to set that field.
* WT-2882 Create CRC32 Hardware implementation for ARM8
* Change "cksum" to "checksum" everywhere (hopefully) no semantic changes.
Diffstat (limited to 'examples/c/ex_encrypt.c')
-rw-r--r-- | examples/c/ex_encrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_encrypt.c b/examples/c/ex_encrypt.c index 3b3323bc091..5d5cc66c87f 100644 --- a/examples/c/ex_encrypt.c +++ b/examples/c/ex_encrypt.c @@ -76,12 +76,12 @@ typedef struct { #define IV_LEN 16 /* - * make_cksum -- + * make_checksum -- * This is where one would call a checksum function on the encrypted * buffer. Here we just put a constant value in it. */ static void -make_cksum(uint8_t *dst) +make_checksum(uint8_t *dst) { int i; /* @@ -220,7 +220,7 @@ rotate_encrypt(WT_ENCRYPTOR *encryptor, WT_SESSION *session, * Checksum the encrypted buffer and add the IV. */ i = 0; - make_cksum(&dst[i]); + make_checksum(&dst[i]); i += CHKSUM_LEN; make_iv(&dst[i]); *result_lenp = dst_len; |