Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jobs:
uses: ./.github/workflows/build-workflow.yml
with:
config: --enable-mldsa --enable-mlkem --enable-lms --enable-xmss CFLAGS="-DWOLFPKCS11_NO_STORE"
no_digest_state:
uses: ./.github/workflows/build-workflow.yml
with:
config: CFLAGS="-DWOLFPKCS11_NO_DIGEST_STATE"
no_env:
uses: ./.github/workflows/build-workflow.yml
with:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ one byte at a time, so define this only where strict specification
compliance is required. `--disable-derive-length-guard` and the CMake option
`WOLFPKCS11_DERIVE_LENGTH_GUARD=no` define it.

#### Define WOLFPKCS11_NO_DIGEST_STATE

Makes `C_GetOperationState` return `CKR_STATE_UNSAVEABLE` for every active
operation and `C_SetOperationState` return `CKR_SAVED_STATE_INVALID` for
every saved state. It is defined automatically when wolfSSL does not keep the
whole hash state in the software digest, buffer and length fields: hash
hardware ports, builds with `WOLFSSL_NO_HASH_RAW` and builds with
`WOLFSSL_HASH_KEEP`. Define it for a port that is not detected and either
fails to build the digest state code or keeps the hash state somewhere else,
such as in a hardware engine.

### Behavior changes for PKCS#11 spec compliance

Several pre-existing gaps were closed; applications upgrading from earlier
Expand Down
Loading
Loading