Skip to content

Comments

Fix empty bytes being nullptr empty.#71

Merged
bifurcation merged 1 commit intocisco:mainfrom
GhostofCookie:fix-empty_bytes
Jan 21, 2026
Merged

Fix empty bytes being nullptr empty.#71
bifurcation merged 1 commit intocisco:mainfrom
GhostofCookie:fix-empty_bytes

Conversation

@GhostofCookie
Copy link
Contributor

On some machines (M2 MacOS at least), the empty_byte_string is actually set as a nullptr (owned_bytes<0> results in a nullptr), which causes openssl 3 to throw an error in hkdf_extract:

error:078C0102:common libcrypto routines::passed a null parameter

Changing to owned_bytes<1> appears to fix the issue.

@bifurcation
Copy link
Contributor

CI failures are unrelated.

@bifurcation bifurcation merged commit 4596f25 into cisco:main Jan 21, 2026
13 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants