crypto: add a generic MAC API · nodejs/node@c162c68 · GitHub
Skip to content

Commit c162c68

Browse files
panvaaduh95
authored andcommitted
crypto: add a generic MAC API
Add getMacs() and createMac() to node:crypto as a layer on top of OpenSSL EVP_MAC. Support incremental and streaming operations with provider parameter validation and configurable output sizes. PR-URL: #65553 Backport-PR-URL: #66128 Refs: #32433 Refs: #40921 Refs: #48314 Refs: #32448 Refs: #32477 Assisted-by: Codex Signed-off-by: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 2b62aaf commit c162c68

28 files changed

Lines changed: 2723 additions & 10 deletions

‎benchmark/crypto/mac.js‎

Lines changed: 254 additions & 0 deletions

‎deps/ncrypto/ncrypto.cc‎

Lines changed: 100 additions & 6 deletions

0 commit comments

Comments
 (0)