montana/iOS/Apps/MontanaApp/RustBridge/MontanaCrypto.h

24 lines
1009 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Bridging header — placeholder для будущей FFI к Rust mt-mnemonic / mt-crypto.
//
// Для PBKDF2/HMAC/HKDF/SHA-256 в текущей версии используется Apple CryptoKit
// + CommonCrypto (byte-exact с spec M-1, NIST FIPS 180-4 / RFC 2898 / RFC 5869).
//
// ML-DSA-65 (FIPS 204) и ML-KEM-768 (FIPS 203) — будут подключены через
// xcframework в следующей итерации (cargo build aarch64-apple-ios → .xcframework).
//
// Цель FFI: byte-exact conformance с reference implementation efir369999/Montana
// (узел Montana). Тот же mt-mnemonic + mt-crypto Rust код.
#ifndef MONTANA_CRYPTO_H
#define MONTANA_CRYPTO_H
#import <CommonCrypto/CommonCrypto.h>
// Будущее:
// #include <stdint.h>
// extern "C" {
// void mt_mldsa_keypair_from_seed(const uint8_t* seed_32, uint8_t* pk_1952, uint8_t* sk_4032);
// void mt_mlkem_keypair_from_seed(const uint8_t* seed_64, uint8_t* pk_1184, uint8_t* sk_2400);
// }
#endif