All Projects → dedis → Kyber

dedis / Kyber

Licence: mpl-2.0
Advanced crypto library for the Go language

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Kyber

hazmat-math
Hazmat ECC arithmetic for Cryptography.io
Stars: ✭ 28 (-93.2%)
Mutual labels:  elliptic-curves
zkp
Experimental zero-knowledge proof compiler in Rust macros
Stars: ✭ 121 (-70.63%)
Mutual labels:  elliptic-curves
2D-Elliptic-Mesh-Generator
2D orthogonal elliptic mesh generator which solves the Winslow partial differential equations
Stars: ✭ 36 (-91.26%)
Mutual labels:  elliptic-curves
nim-blscurve
Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Stars: ✭ 19 (-95.39%)
Mutual labels:  elliptic-curves
cryptos
Pure Python from-scratch zero-dependency implementation of Bitcoin for educational purposes
Stars: ✭ 846 (+105.34%)
Mutual labels:  elliptic-curves
ed448
A golang implementation of Ed448-Goldilocks. This is a mirror of https://bugs.otr.im/otrv4/ed448
Stars: ✭ 36 (-91.26%)
Mutual labels:  elliptic-curves
galois
A performant NumPy extension for Galois fields and their applications
Stars: ✭ 106 (-74.27%)
Mutual labels:  elliptic-curves
tweedle
Generator and supporting evidence for security of the Tweedledum/Tweedledee pair of elliptic curves suitable for Halo
Stars: ✭ 16 (-96.12%)
Mutual labels:  elliptic-curves
ecurve
DiffieHellman, Elgamal, ECDSA & STS with elliptic curve in python
Stars: ✭ 19 (-95.39%)
Mutual labels:  elliptic-curves
secp256k1-ml
Elliptic curve library secp256k1 wrapper for Ocaml
Stars: ✭ 18 (-95.63%)
Mutual labels:  elliptic-curves
hacl
Archived. Curve25519 support has been integrated into mirage-crypto-ec (via fiat-crypto). Hacl bindings are available from the hacl-star opam package. OCaml bindings for HACL* elliptic curves
Stars: ✭ 21 (-94.9%)
Mutual labels:  elliptic-curves
noble-ed25519
Fastest JS implementation of ed25519, x25519 & ristretto255. Independently audited, high-security, 0-dependency EDDSA signatures and ECDH key agreement
Stars: ✭ 220 (-46.6%)
Mutual labels:  elliptic-curves
pairing
Optimised bilinear pairings over elliptic curves
Stars: ✭ 44 (-89.32%)
Mutual labels:  elliptic-curves
elliptic-curve
A polymorphic interface for elliptic curve operations
Stars: ✭ 37 (-91.02%)
Mutual labels:  elliptic-curves
zax
NaCl-based Cryptographic Relay
Stars: ✭ 62 (-84.95%)
Mutual labels:  elliptic-curves
bls-js
BLS signature implementation
Stars: ✭ 15 (-96.36%)
Mutual labels:  elliptic-curves
aos-signature
Abe-Ohkubo-Suzuki Linkable Ring Signatures
Stars: ✭ 48 (-88.35%)
Mutual labels:  elliptic-curves
Wickr Crypto C
An implementation of the Wickr Secure Messaging Protocol in C
Stars: ✭ 279 (-32.28%)
Mutual labels:  elliptic-curves
EllipticCurve
An elliptic curve library written in Swift 4
Stars: ✭ 18 (-95.63%)
Mutual labels:  elliptic-curves
schnorr-nizk
Schnorr Protocol for Non-interactive Zero-Knowledge Proofs
Stars: ✭ 67 (-83.74%)
Mutual labels:  elliptic-curves

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.

Using the module

Kyber supports Go modules, and currently has a major version of 3, which means that the import path is: go.dedis.ch/kyber/v3.

Here is a basic example of getting started using it:

  1. Make a new directory called “ex". Change directory to “ex" and put this in main.go:
package main

import (
    "fmt"
    "go.dedis.ch/kyber/v3/suites"
)

func main() {
    s := suites.MustFind("Ed25519")
    x := s.Scalar().Zero()
    fmt.Println(x)
}
  1. Type “go mod init example.com/ex”. The resulting go.mod file will have no dependencies listed yet.
  2. Type “go build”. The go tool will fill in the new dependencies that it find for you, i.e. "require go.dedis.ch/kyber/v3 v3.0.13”.
  3. Running ./ex will print 0000000000000000000000000000000000000000000000000000000000000000.

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 [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].