aboutsummaryrefslogtreecommitdiff
path: root/src/hkdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hkdf.c')
-rw-r--r--src/hkdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hkdf.c b/src/hkdf.c
index 16e0b5b..7b0b822 100644
--- a/src/hkdf.c
+++ b/src/hkdf.c
@@ -95,7 +95,7 @@ cstatus_t hkdfExpandProcess(
}
/* tlen becomes the hash size or remaining okm size */
- tLen = HKDF_MIN(okm.size - okmOffset, SHA256_DIGEST_SIZE);
+ tLen = HKDF_MIN(ncSpanGetSize(okm) - okmOffset, SHA256_DIGEST_SIZE);
DEBUG_ASSERT(tLen <= sizeof(t));