Skip to content
Open
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
1 change: 1 addition & 0 deletions .wolfssl_known_macro_extras
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,7 @@ WOLFSSL_KYBER_NO_DECAPSULATE
WOLFSSL_KYBER_NO_ENCAPSULATE
WOLFSSL_KYBER_NO_MAKE_KEY
WOLFSSL_LIB
WOLFSSL_LINUXKM_LKCAPI_NO_STDRNG
WOLFSSL_LINUXKM_USE_GET_RANDOM_KPROBES
WOLFSSL_LINUXKM_USE_GET_RANDOM_USER_KRETPROBE
WOLFSSL_LINUXKM_USE_MUTEXES
Expand Down
5 changes: 4 additions & 1 deletion doc/dox_comments/header_files/asn_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -3251,10 +3251,13 @@ int wc_Curve448PublicKeyToDer(curve448_key* key, byte* output,

\return Success On successfully writing the encoded signature to output,
returns the length written to the buffer
\return 0 Returned on error, including when digSz is larger than
WC_MAX_DIGEST_SIZE

\param out pointer to the buffer where the encoded signature will be written
\param digest pointer to the digest to use to encode the signature
\param digSz the length of the buffer containing the digest
\param digSz the length of the buffer containing the digest; at most
WC_MAX_DIGEST_SIZE
\param hashOID OID identifying the hash type used to generate the
signature. Valid options, depending on build configurations, are: SHAh,
SHA256h, SHA384h, SHA512h, MD2h, MD5h, DESb, DES3b, CTC_MD5wRSA,
Expand Down
11 changes: 9 additions & 2 deletions linuxkm/linuxkm_wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,12 @@
#include <crypto/scatterwalk.h>
#include <crypto/internal/aead.h>
#include <crypto/internal/hash.h>
#include <crypto/internal/rng.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 5, 0) && !defined(WOLFSSL_LINUXKM_LKCAPI_NO_STDRNG)
#define WOLFSSL_LINUXKM_LKCAPI_HAVE_STDRNG
#include <crypto/internal/rng.h>
#else
#undef WOLFSSL_LINUXKM_LKCAPI_HAVE_STDRNG
#endif
#include <crypto/internal/skcipher.h>
#include <crypto/internal/akcipher.h>
#include <crypto/internal/kpp.h>
Expand Down Expand Up @@ -2328,9 +2333,11 @@
#endif /* !WC_CONTAINERIZE_THIS */
#endif

#ifdef LINUXKM_LKCAPI_REGISTER_HASH_DRBG_DEFAULT
#ifdef WOLFSSL_LINUXKM_LKCAPI_HAVE_STDRNG
struct crypto_rng;
WOLFSSL_API int wc_linux_kernel_rng_is_wolfcrypt(struct crypto_rng *rng);
#else
#define wc_linux_kernel_rng_is_wolfcrypt(rng) 0
#endif

/* Undo copied defines from wc_port.h, to avoid redefinition warnings. */
Expand Down
Loading
Loading