kyber

Advanced crypto library for the Go language

Github星跟踪图

Docs
Build Status

DEDIS Advanced Crypto Library for Go

This package provides a toolbox of advanced cryptographic primitives for Go,
targeting applications like Cothority
that need more than straightforward signing and encryption.
Please see the
Godoc documentation for this package
for details on the library's purpose and API functionality.

This package includes a mix of variable time and constant time
implementations. If your application is sensitive to timing-based attacks
and you need to constrain Kyber to offering only constant time implementations,
you should use the suites.RequireConstantTime()
function in the init() function of your main package.

Versioning - Development

We use the following versioning model:

  • crypto.v0 was the first semi-stable version. See migration notes.
  • kyber.v1 never existed, in order to keep kyber, onet and cothorithy versions linked
  • gopkg.in/dedis/kyber.v2 was the last stable version
  • Starting with v3.0.0, kyber is a Go module, and we respect semantic versioning.

So if you depend on the master branch, you can expect breakages from time
to time. If you need something that doesn't change in a backward-compatible
way you should use have a go.mod file in the directory where your
main package is.

Installing

First make sure you have Go version 1.11 or newer installed.

The basic crypto library requires only Go and a few
third-party Go-language dependencies that can be installed automatically
as follows:

go get go.dedis.ch/kyber

You can recursively test all the packages in the library as follows:

go test -v ./...

A note on deriving shared secrets

Traditionally, ECDH (Elliptic curve Diffie-Hellman) derives the shared secret
from the x point only. In this framework, you can either manually retrieve the
value or use the MarshalBinary method to take the combined (x, y) value as the
shared secret. We recommend the latter process for new softare/protocols using
this framework as it is cleaner and generalizes across different types of groups
(e.g., both integer and elliptic curves), although it will likely be
incompatible with other implementations of ECDH. See the Wikipedia
page
on
ECDH.

Reporting security problems

This library is offered as-is, and without a guarantee. It will need an
independent security review before it should be considered ready for use in
security-critical applications. If you integrate Kyber into your application it
is YOUR RESPONSIBILITY to arrange for that audit.

If you notice a possible security problem, please report it
to dedis-security@epfl.ch.

主要指标

概览
名称与所有者dedis/kyber
主编程语言Go
编程语言Go (语言数: 4)
平台
许可证Other
所有者活动
创建于2014-10-15 12:25:03
推送于2025-04-29 14:42:42
最后一次提交2025-04-14 18:46:12
发布数26
最新版本名称v3.1.0 (发布于 )
第一版名称v3.0.0-pre1 (发布于 )
用户参与
星数660
关注者数47
派生数170
提交数2.4k
已启用问题?
问题数206
打开的问题数19
拉请求数255
打开的拉请求数16
关闭的拉请求数95
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?