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

Commit d414624

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. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65553 Refs: #32433 Refs: #40921 Refs: #48314 Refs: #32448 Refs: #32477 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 5f95032 commit d414624

27 files changed

Lines changed: 2722 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)