cloudflare/circl

enhancement request: implement KDF (SDHI and/or Naor-Reingold)

Open

#423 创建于 2023年4月11日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Go (213 fork)auto 404
good first issuehelp wantedquestion

仓库指标

Star
 (1,695 star)
PR 合并指标
 (PR 指标待抓取)

描述

By way of backround, this request is based on my reading about Meta Anonymous Credential Service which they recently open-sourced (unfortunately in C !) https://github.com/facebookresearch/acs.

Anyways ... TL;DR, the curious beast in me thought I might have a go at re-implementing it in Go so I can play around with it.

Obviously Go stdlib doesn't provide many of the necessary building crypto building blocks, but circl does:

  • VOPRF :white_check_mark:
  • DLEQ :white_check_mark:
  • Ed25519 :white_check_mark:

But unfortunately .....

"attribute-based key derivation function" :x:

Meta say in their blog post:

We recommend Strong Diffie–Hellman Inversion (SDHI) or Naor-Reingold for better key transparency.

Hence this request :wink: ( espcially as my github searches seem to show nobody else has a Go implementation of either of those KDFs either)

Perhaps see also comments in the header files re: SDHI and Naor-Reingold: kdf/kdf_sdhi.h kdf/kdf_naor_reingold.h

贡献者指南