Files
RedBear-OS/local/recipes/libs/libgcrypt/source/cipher/kem-ecc.h
T
vasilito c825f470cb
redbear-ci / check (push) Has been cancelled
libs: vendor libgcrypt 1.11.1 + libgpg-error 1.55; wire into kf6-kwallet
kf6-kwallet's kwalletbackend hard-requires LibGcrypt 1.5.0 for PBKDF2 key
derivation and the GPG-backed wallet format. Vendor both libraries under the
full-fork model (committed source/, offline-reproducible) and add libgcrypt to
kf6-kwallet's dependencies.

Release tarballs ship a pre-generated configure and a config.sub that already
recognises the *-redox triple, so no autotools regeneration is needed at cook
time. libgpg-error supplies a generic pthread-backed gpgrt_lock_t for Redox via
its build script; the test-only redox.patch (tms/times stub) is baked into
libgcrypt's source and kept alongside for future version bumps.

Promoted from the stale recipes/wip copies (now .disabled).
2026-08-02 04:29:16 +03:00

41 lines
2.0 KiB
C

/* kem-ecc.h - Key Encapsulation Mechanism with ECC
* Copyright (C) 2024 g10 Code GmbH
*
* This file is part of Libgcrypt.
*
* Libgcrypt is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser general Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Libgcrypt is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
gpg_err_code_t _gcry_ecc_raw_keypair (int algo,
void *pubkey, size_t pubkey_len,
void *seckey, size_t seckey_len);
gpg_err_code_t _gcry_ecc_raw_encap (int algo,
const void *pubkey, size_t pubkey_len,
void *ciphertext, size_t ciphertext_len,
void *shared, size_t shared_len);
gpg_err_code_t _gcry_ecc_raw_decap (int algo,
const void *seckey, size_t seckey_len,
const void *ciphertext,
size_t ciphertext_len,
void *shared, size_t shared_len);
gpg_err_code_t _gcry_ecc_dhkem_encap (int algo, const void *pubkey,
void *ciphertext,
void *shared);
gpg_err_code_t _gcry_ecc_dhkem_decap (int algo, const void *seckey,
const void *ciphertext,
void *shared, const void *optional);