kyber

Advanced crypto library for the Go language

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerdedis/kyber
Primary LanguageGo
Program languageGo (Language Count: 4)
Platform
License:Other
所有者活动
Created At2014-10-15 12:25:03
Pushed At2025-04-29 14:42:42
Last Commit At2025-04-14 18:46:12
Release Count26
Last Release Namev3.1.0 (Posted on )
First Release Namev3.0.0-pre1 (Posted on )
用户参与
Stargazers Count660
Watchers Count47
Fork Count170
Commits Count2.4k
Has Issues Enabled
Issues Count206
Issue Open Count19
Pull Requests Count255
Pull Requests Open Count16
Pull Requests Close Count95
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private