Bee2 – это криптографическая библиотека, которая реализует алгоритмы и протоколы, определённые в стандартах Республики Беларусь. http://apmi.bsu.by/resources/tools.html

Stanislau Paruchnik da93a91967 ecMul fixes, allow w = 2 in divp 3 years ago
apps 69685e1cae finish belt-che and fix botp-ocra 5 years ago
doc 827e5ca740 += bash-aeXXX oids 6 years ago
img 2bd3ec1a32 += logo 8 years ago
include da93a91967 ecMul fixes, allow w = 2 in divp 3 years ago
src da93a91967 ecMul fixes, allow w = 2 in divp 3 years ago
test da93a91967 ecMul fixes, allow w = 2 in divp 3 years ago
win 45874728aa draft safe(ecMulA) 4 years ago
.editorconfig 69685e1cae finish belt-che and fix botp-ocra 5 years ago
.gitignore 9a0752a945 start belt-che 5 years ago
.travis.yml ae4ca4be41 travis.yml += BASH_SSE2 5 years ago
AUTHORS.md 99528e4379 defs += ENSCRIPTEN 5 years ago
CMakeLists.txt c4c5c78ca4 +bash sse2 5 years ago
LICENSE 4156b31eea Initial commit 10 years ago
README.md 47e4c4bd98 fix cmake options 5 years ago

README.md

Bee2: a cryptographic library

Build Status Coverity Static Analysis Coverage Analysis

What is Bee2?

Bee2 is a cryptographic library which implements cryptographic algorithm and protocols standardized in Belarus. Bee2 fully supports the following standards (see apmi.bsu.by/resources/std.html):

  1. STB 34.101.31 (belt): data encryption and integrity algorithms.
  2. STB 34.101.45 (bign): digital signature and key transport algorithms over elliptic curves.
  3. STB 34.101.47 (brng): cryptographic algorithms of pseudorandom number generation + one-time passwords.
  4. STB 34.101.60 (bels): secret sharing algorithms.
  5. STB 34.101.66 (bake): key establishment protocols over elliptic curves.
  6. STB 34.101.77 (bash): sponge-based algorithms.

Additionally, Bee2 implements digital signature algorithms standardized in Russia and Ukraine.

Build

mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE={Release|Debug|Coverage|ASan|ASanDbg|MemSan|MemSanDbg|Check}]\
      [-DBUILD_FAST=ON]\
      [-DBASH_PLATFORM={BASH_32|BASH_64|BASH_AVX2|BASH_AVX512}]\
      ..
make
[make test]
[make install]

Build types (Release by default):

The BUILD_FAST option (OFF by default) switches from safe (constant-time) functions to fast (non-constant-time) ones.

The BASH_PLATFORM option (BASH_64 by default) requests to use a specific implementation of the STB 34.101.77 algorithms optimized for a given hardware platform. The request may be rejected if it conflicts with other options.

License

Bee2 is released under the terms of the GNU General Public License version 3 (GNU GPLv3). See LICENSE for more information.

What is the logo?

The logo of Bee2 is taken from a self-portrait engraving by Francysk Skaryna, the famous Belarusian medieval printer, enlightener, translator and writer. The engraving is full of riddles, mysteries and cryptograms. One version is that a bee in the right-bottom corner, our logo, designates the constellation known as Apes (Latin for bees) in Skaryna's time. This constellation was later renamed in Musca Borelias (Latin for northern fly) and then absorbed by Aries.