# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2026 Nice Soft Group (Kbuild integration)
# Additional Linux Crypto API algorithms built INTO the NiceOS kernel.

menuconfig CRYPTO_NICEOS_GOST
    bool "NiceOS built-in GOST cryptography"
    select CRYPTO_ALGAPI
    help
      Built-in GOST algorithms integrated by NiceOS from linux-crypto.
      They are part of vmlinux, not separately loadable .ko modules.
      Native Streebog and EC-RDSA have their own Linux Kconfig symbols.

if CRYPTO_NICEOS_GOST

config CRYPTO_NICEOS_GOST_28147
    bool "GOST 28147-89 cipher, CFB/CNT modes and Imitovstavka"
    select CRYPTO_ALGAPI
    select CRYPTO_SKCIPHER
    select CRYPTO_HASH
    help
      Built-in implementation of GOST 28147-89 with TC26-Z and CryptoPro
      param sets, Imitovstavka, CFB and CNT modes.

config CRYPTO_NICEOS_GOST_HASH94
    bool "GOST R 34.11-94 hash"
    depends on CRYPTO_NICEOS_GOST_28147
    select CRYPTO_HASH
    help
      Legacy GOST R 34.11-94 digest. Depends on GOST 28147 primitives.

config CRYPTO_NICEOS_GOST_MAGMA
    bool "GOST R 34.12-2015 Magma block cipher"
    depends on CRYPTO_NICEOS_GOST_28147
    select CRYPTO_ALGAPI
    help
      Built-in Magma algorithm; uses GOST 28147 primitives.

config CRYPTO_NICEOS_GOST_KUZNYECHIK
    bool "GOST R 34.12-2015 Kuznyechik block cipher"
    select CRYPTO_ALGAPI
    help
      Built-in Kuznyechik block cipher.

endif # CRYPTO_NICEOS_GOST
