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
8 changes: 0 additions & 8 deletions .github/workflows/build-wolfprovider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true

# Avoid "detected dubious ownership" warning
- name: Ensure the working directory safe
if: steps.check_artifact.outcome != 'success'
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"

# When running on a fork the upstream tags are not present, so fetch them explicitly
- name: Fetch tags from upstream(for Debian versioning)
if: steps.check_artifact.outcome != 'success'
run: |
git remote add upstream https://github.com/wolfSSL/wolfProvider.git || true
git fetch upstream --tags --no-recurse-submodules

- name: Install wolfProvider
if: steps.check_artifact.outcome != 'success'
run: |
Expand Down
10 changes: 1 addition & 9 deletions include/wolfprovider/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@
#include "wp_params.h"

#ifndef AES_BLOCK_SIZE
#include <openssl/aes.h>
#ifndef AES_BLOCK_SIZE
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
#else
#error AES_BLOCK_SIZE not defined when it should be
#endif
#endif
#define AES_BLOCK_SIZE 16
#endif

#ifndef WP_INTERNAL_H
Expand Down Expand Up @@ -257,4 +250,3 @@ byte wp_ct_int_mask_lt(int a, int b);
byte wp_ct_byte_mask_sel(byte mask, byte a, byte b);

#endif /* WP_INTERNAL_H */

4 changes: 0 additions & 4 deletions test/test_cmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include <openssl/core_names.h>

#include "unit.h"
#undef AES_BLOCK_SIZE
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/cmac.h>

#ifdef WP_HAVE_CMAC

Expand Down Expand Up @@ -262,4 +259,3 @@ int test_cmac_create(void *data)

#endif /* WP_HAVE_CMAC */


11 changes: 4 additions & 7 deletions test/test_gmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include <openssl/core_names.h>

#include "unit.h"
#undef AES_BLOCK_SIZE
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/aes.h>

#ifdef WP_HAVE_GMAC

Expand Down Expand Up @@ -195,10 +192,10 @@ int test_gmac_dup(void *data)
(void)data;

/* Build full messages used for one-shot expected MAC calculations. */
XMEMCPY(msgA, prefix, sizeof(prefix));
XMEMCPY(msgA + sizeof(prefix), tailA, sizeof(tailA));
XMEMCPY(msgB, prefix, sizeof(prefix));
XMEMCPY(msgB + sizeof(prefix), tailB, sizeof(tailB));
memcpy(msgA, prefix, sizeof(prefix));
memcpy(msgA + sizeof(prefix), tailA, sizeof(tailA));
memcpy(msgB, prefix, sizeof(prefix));
memcpy(msgB + sizeof(prefix), tailB, sizeof(tailB));

/* Compute expected MACs for each post-duplication branch. */
ret = test_gmac_gen_mac(wpLibCtx, cipher, iv, (int)sizeof(iv), key,
Expand Down
5 changes: 4 additions & 1 deletion test/unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@
#include <openssl/evp.h>
#include <openssl/ec.h>
#include <openssl/ssl.h>
#include <openssl/aes.h>
#include <openssl/rand.h>
#include <openssl/kdf.h>
#include <openssl/core_names.h>

#include <wolfprovider/settings.h>
#include <wolfprovider/wp_logging.h>

#ifndef AES_BLOCK_SIZE
#define AES_BLOCK_SIZE 16
#endif

#ifdef TEST_MULTITHREADED
#define PRINT_MSG(str)
#define PRINT_ERR_MSG(str)
Expand Down
Loading