uakep
Copyright (c) 2026 Anton Butsyk. Licensed under the MIT License (see LICENSE).

uakep contains code ported from the projects below. Their notices are kept here.

-------------------------------------------------------------------------------
jkurwa — https://github.com/dstucrypt/jkurwa
Author: Ilya Petrov (Illya Petrov)
License: BSD, as declared in the project's package.json. The repository has no
LICENSE file; which BSD text applies is being confirmed with the author.

Ported into uakep: GF(2^m) arithmetic (lib/gf2m.js, lib/field.js), binary curves
and named curves (lib/curve.js, lib/point.js, lib/standard.js), ДСТУ 4145 signing
and verification including the fixed-length signing scalar (lib/models/Priv.js,
lib/models/Pub.js), key containers (lib/spec/keystore.js, lib/spec/pbes.js,
lib/spec/pfx.js), certificates and CMS/CAdES structures (lib/models/Certificate.js,
lib/models/Message.js, lib/spec/*.js).

-------------------------------------------------------------------------------
gost89 — https://github.com/dstucrypt/gost89
Author: Ilya Petrov (Illya Petrov)
License: BSD, as declared in the project's package.json.

Ported into uakep: the ГОСТ 28147-89 block cipher and its ECB, CFB and MAC modes
(lib/gost89.js), the ГОСТ 34.311-95 hash (lib/hash.js), the s-box tables
(lib/dstu.js) and the password-based key derivation (lib/util.js).

-------------------------------------------------------------------------------
ppolib — https://github.com/leon-mbs/ppolib
The four ДСТУ 7564:2014 substitution tables in src/uakep/kupyna.py were taken
from ppolib's src/algo/dstu7564.php. ppolib's license:

  MIT License

  Copyright (c) 2021 Leon

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.

-------------------------------------------------------------------------------
Test data (repository only, not part of the package)
tests/data/*/ holds third-party test files. Each folder's README.md names the
source, version and license; tests/data/dstu-engine/LICENSE is Apache-2.0.
