Skip to content

Commit e665cc8

Browse files
Merge pull request #30 from dgarske/rel_v4.3.0
Async Release v4.3.0.
2 parents c13afd6 + 02b6489 commit e665cc8

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

README-async.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The async crypt simulator is enabled by default if the hardware does not support
1414

1515
Each crypto algorithm has its own `WC_ASYNC_DEV` structure, which contains a `WOLF_EVENT`, local crypto context and local hardware context.
1616

17-
For SSL/TLS the `WOLF_EVENT` context is the `WOLFSSL*` and the type is `WOLF_EVENT_TYPE_ASYNC_WOLFSSL`. For wolfCrypt operations the `WOLF_EVENT` context is the `WC_ASYNC_DEV*` and the type is `WOLF_EVENT_TYPE_ASYNC_WOLFCRYPT`.
17+
For SSL/TLS the `WOLF_EVENT` context is the `WOLFSSL*` and the type is `WOLF_EVENT_TYPE_ASYNC_WOLFSSL`. For wolfCrypt operations the `WOLF_EVENT` context is the `WC_ASYNC_DEV*` and the type is `WOLF_EVENT_TYPE_ASYNC_WOLFCRYPT`.
1818

1919
A generic event system has been created using a `WOLF_EVENT` structure when `HAVE_WOLF_EVENT` is defined. The event structure resides in the `WC_ASYNC_DEV`.
2020

@@ -49,7 +49,7 @@ Polls the provided WOLFSSL_CTX context event queue to see if any pending events
4949
int wolfAsync_DevOpen(int *devId);
5050
```
5151

52-
Open the async device and returns an `int` device id for it.
52+
Open the async device and returns an `int` device id for it.
5353

5454
### ```wolfAsync_DevOpenThread```
5555
```
@@ -175,13 +175,13 @@ Stops hardware if internal `--start_count == 0`.
175175
if (ret < 0) { break; } else if (ret == 0) { continue; }
176176
}
177177
#endif
178-
178+
179179
ret = wolfSSL_accept(ssl);
180180
if (ret != SSL_SUCCESS) {
181181
err = wolfSSL_get_error(ssl, 0);
182182
}
183183
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
184-
184+
185185
#ifdef WOLFSSL_ASYNC_CRYPT
186186
wolfAsync_DevClose(&devId);
187187
#endif
@@ -201,9 +201,9 @@ Stops hardware if internal `--start_count == 0`.
201201
202202
RsaKey key;
203203
ret = wc_InitRsaKey_ex(&key, HEAP_HINT, devId);
204-
204+
205205
ret = wc_RsaPrivateKeyDecode(tmp, &idx, &key, (word32)bytes);
206-
206+
207207
do {
208208
#if defined(WOLFSSL_ASYNC_CRYPT)
209209
ret = wc_AsyncWait(ret, &key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
@@ -215,15 +215,15 @@ Stops hardware if internal `--start_count == 0`.
215215
if (ret < 0) {
216216
err_sys("RsaPublicEncrypt operation failed");
217217
}
218-
218+
219219
#ifdef WOLFSSL_ASYNC_CRYPT
220220
wolfAsync_DevClose(&devId);
221221
#endif
222222
```
223223

224224
## Build Options
225225

226-
1. Async mult-threading can be disabled by defining `WC_NO_ASYNC_THREADING`.
226+
1. Async mult-threading can be disabled by defining `WC_NO_ASYNC_THREADING`.
227227
2. Software benchmarks can be disabled by defining `NO_SW_BENCH`.
228228
3. The `WC_ASYNC_THRESH_NONE` define can be used to disable the cipher thresholds, which are tunable values to determine at what size hardware should be used vs. software.
229229
4. Use `WOLFSSL_DEBUG_MEMORY` and `WOLFSSL_TRACK_MEMORY` to help debug memory issues. QAT also supports `WOLFSSL_DEBUG_MEMORY_PRINT`.
@@ -268,6 +268,10 @@ wolfSSL Client Benchmark 16384 bytes
268268

269269
## Change Log
270270

271+
### wolfSSL Async Release v4.3.0 (12/20/2019)
272+
* Fix for async date override callback issue.
273+
* Updates to Octeon README.
274+
271275
### wolfSSL Async Release v4.2.0 (10/22/2019)
272276
* Fix for QuickAssist DH Agree issue with leading zero bytes.
273277
* Fix for QuickAssist AES CBC issue with previous IV on back-to-back operations.
@@ -289,7 +293,7 @@ wolfSSL Client Benchmark 16384 bytes
289293
* Enhanced the Cavium macros for `CAVIUM_MAX_PENDING` and `CAVIUM_MAX_POLL` over-ridable.
290294
* Added build-time override for benchmark thread count `WC_ASYNC_BENCH_THREAD_COUNT`.
291295
* Fixes for wolfCrypt test with asynchronous support enabled and `--enable-nginx`.
292-
* Fix to use QAT for ECC sign and verify when SP is enabled and key was initialized with devId.
296+
* Fix to use QAT for ECC sign and verify when SP is enabled and key was initialized with devId.
293297
* Fixes issues with wolfCrypt test and QAT not properly calling "again" for the ECC sign, verify and shared secret.
294298
* Correct the output for multi-threaded benchmark using `-base10` option.
295299
* Fixes to QAT HMAC enables in benchmark tool.
@@ -348,7 +352,7 @@ wolfSSL Client Benchmark 16384 bytes
348352
* Fix QAT_DEBUG partialState offset.
349353
* Fixes for symmetric context caching.
350354
* Refactored async event initialization so its done prior to making possible async calls.
351-
* Fix to resolve issue with QAT callbacks and multi-threading.
355+
* Fix to resolve issue with QAT callbacks and multi-threading.
352356
* The cleanup is now handled in polling function and the event is only marked done from the polling thread that matches the originating thread.
353357
* Fix possible mem leak with multiple threads `g_qatEcdhY` and `g_qatEcdhCofactor1`.
354358
* Fix the block polling to use `ret` instead of `status`.
@@ -420,7 +424,7 @@ wolfSSL Client Benchmark 16384 bytes
420424

421425
### wolfSSL Async Release v3.9.8 (07/25/2016)
422426

423-
* Asynchronous wolfCrypt and Cavium Nitrox V support.
427+
* Asynchronous wolfCrypt and Cavium Nitrox V support.
424428

425429
### wolfSSL Async Release v3.9.0 (03/04/2016)
426430

wolfcrypt/src/port/cavium/README_Octeon.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ cd examples
200200
ln -s ../../wolfssl wolfssl
201201
cd wolfssl
202202
./autogen.sh
203-
./configure --host=mips64 CC="mips64-octeon-linux-gnu-gcc -mabi=64" --with-octeon=/home/dgarske/OCTEON-SDK --enable-des3 --enable-debug --disable-shared CFLAGS="-DWOLFSSL_AES_DIRECT"
203+
./configure --host=mips64 CC="mips64-octeon-linux-gnu-gcc -mabi=64" \
204+
--with-octeon-sync=../OCTEON-SDK OCTEON_OBJ=obj-octeon3 \
205+
--enable-cryptocb --enable-des3 CPPFLAGS="-DWOLFSSL_AES_DIRECT" \
206+
CFLAGS="-Wno-error=redundant-decls"
204207
make
205208

206209
```

0 commit comments

Comments
 (0)