https://github.com/murphsicles/hkdf
HMAC-based Extract-and-Expand Key Derivation for Zeta
https://github.com/murphsicles/hkdf
Last synced: 22 days ago
JSON representation
HMAC-based Extract-and-Expand Key Derivation for Zeta
- Host: GitHub
- URL: https://github.com/murphsicles/hkdf
- Owner: murphsicles
- License: mit
- Created: 2026-06-02T09:18:57.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-02T09:47:03.000Z (about 2 months ago)
- Last Synced: 2026-06-02T11:18:51.329Z (about 2 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡ @crypto/hkdf — HMAC-based Key Derivation for Zeta
**Port of the Rust `hkdf` crate (v0.12.x). HMAC-SHA256 extract-and-expand
per RFC 5869. Depends on @crypto/sha2 for the underlying HMAC.**
## 📦 Package
```
zorbs add @crypto/hkdf
```
## 🔧 API
```zeta
let okm = hkdf::derive(salt, ikm, info, 32);
// 32 bytes of derived key material
// Or step by step:
let prk = hkdf::extract(salt, ikm);
let okm = hkdf::expand(&prk, info, 64);
```
## 📄 License
MIT OR Apache-2.0