Skip to content

Commit 8714822

Browse files
committed
Fix error handling gaps
1 parent dd3fee9 commit 8714822

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/hkdf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def HKDF(hash_cls, in_key, salt=None, info=None, out_len=None):
3434
Perform HKDF Extract-and-Expand in one call (wraps wc_HKDF).
3535
3636
Parameters:
37-
- hash_cls: hash class, see `wolfcrypt.hashes`.
37+
- hash_cls: HMAC class, e.g. HmacSha256, see `wolfcrypt.hashes`.
3838
- in_key: input key material (IKM) as bytes or str.
3939
- salt: optional salt value (bytes or str). If None, treated as empty.
4040
- info: optional context/application info (bytes or str). If None,
@@ -79,7 +79,7 @@ def HKDF_Extract(hash_cls, salt, in_key):
7979
Wraps wc_HKDF_Extract.
8080
8181
Parameters:
82-
- hash_cls: hash class, see `wolfcrypt.hashes`.
82+
- hash_cls: HMAC class, e.g. HmacSha256, see `wolfcrypt.hashes`.
8383
- salt: bytes/str (can be None -> treated as empty).
8484
- in_key: input key material (IKM) as bytes/str.
8585
@@ -106,7 +106,7 @@ def HKDF_Expand(hash_cls, prk, info, out_len):
106106
Wraps wc_HKDF_Expand.
107107
108108
Parameters:
109-
- hash_cls: hash class, see `wolfcrypt.hashes`.
109+
- hash_cls: HMAC class, e.g. HmacSha256, see `wolfcrypt.hashes`.
110110
- prk: pseudorandom key (output from HKDF-Extract) as bytes/str.
111111
- info: optional context/application info (bytes/str). If None, treated as empty.
112112
- out_len: length of output keying material in bytes.

0 commit comments

Comments
 (0)