0
0
Fork 0
forked from freeipa/synta
Commit graph

17 commits

Author SHA1 Message Date
693f35f10a docs: split static API content into crypto-operations page
Move PKCS#11, RSA key transport, AES-GCM, key import, CMC, and MTC
reference documentation from api-reference.md into a new
crypto-operations.md page. api-reference.md now contains only the
rustdoc iframe embed.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-07-16 22:32:48 +03:00
0e45cbe84c docs(cmc): add synta-cmc to project documentation
Add CMC crate entry to the root README protocol schemas section,
codebase summary inventory, system architecture Mermaid diagram,
and API reference.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-07-16 17:50:03 +03:00
e55997b51e docs: update documentation for MTC tools, wire format, and feature gating
- system-architecture.md: update leaf hash wire format to include
  extensions prefix per draft-04 section 4.1; add tools --> mtc
  dependency edge
- api-reference.md: update CosignerID from struct to ObjectIdentifier
- codebase-summary.md: update synta-tools line count (~500 -> ~1600)
  and description to include MTC support
- contribution.md: update synta-tools description for MTC capabilities
- synta-tools/README.md: document MTC certificate types (X.509 wrapper,
  standalone, landmark) and --subtree-root option
- CHANGELOGs: add entries for MTC tools (synta-tools), extensions
  prefix fix (synta-mtc), and FailedKeySigner gating (synta-certificate)
- Fix incorrect "NSS takes priority" claims in rust/installation.md,
  rust/pki/keys.md, and python/dev/cargo-features.md; OpenSSL takes
  priority per the actual cfg gating in synta-certificate/src/lib.rs

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-06-09 13:47:18 +03:00
8e14755af8 docs(synta-mtc): update docs for spec compliance fixes
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-05-01 09:35:29 +03:00
acce987d1b docs(api-reference): add Python synta.pkcs11 management API section
Document the synta.pkcs11 submodule: list_slots, SlotInfo, KeyInfo,
Pkcs11Token (find_key, list_keys, delete_key, generate_key_pair), full
Python usage example, Rust TokenManager/Pkcs11Manager reference, and
module-path resolution order.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-05-01 09:35:29 +03:00
cb144bef07 docs: document raw private key import API
Add user-facing documentation for the raw component import constructors
added to BackendPrivateKey:

- BackendPrivateKey::from_ec_private_scalar
- BackendPrivateKey::from_rsa_private_components / RsaPrivateComponents

Covers docs/api-reference.md (new section), docs/python/src/pki/keys.md
(note on Python workaround), docs/rust/src/pki/keys.md (usage examples
and RsaPrivateComponents field table), and synta-certificate/README.md
(updated BackendPrivateKey description).

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-28 08:50:54 +03:00
3627d25908 docs: document AES-GCM encrypt/decrypt API
Add user-facing documentation for the AES-GCM authenticated encryption
feature added to synta-certificate and synta-python:

- BlockCipherProvider::aes_gcm_encrypt / aes_gcm_decrypt (Rust trait)
- synta.crypto.aes_gcm_encrypt / aes_gcm_decrypt (Python functions)

Covers docs/api-reference.md (new section), docs/rust/src/pki/keys.md
(BlockCipherProvider AES-GCM example), synta-certificate/README.md
(feature bullet), and synta-python/README.md (module table row and
module tree entry).

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-28 08:50:54 +03:00
3371667ee7 docs: update documentation for backend gating and PKCS#11 limitations
- api-reference.md: add RSA Key Transport section documenting
  rsa_oaep_encrypt, rsa_pkcs1v15_encrypt, rsa_oaep_decrypt, and
  rsa_pkcs1v15_decrypt with backend comparison table
- codebase-summary.md: extend synta-certificate entry with new source
  files (nss_backend/rsa_transport.rs, nss_backend/ffi.rs)
- limitations.md: add PKCS#11 URI limitations section
- system-architecture.md: add backend gating section describing the
  openssl-takes-priority-over-nss model
- testing-guide.md: correct kryoptic test skip-condition wording
- troubleshooting.md: add PKCS#11 diagnostic section

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-15 11:57:08 +03:00
b2c52f158b docs: document PKCS#11 URI key loading in guides
- api-reference.md: add PKCS#11 URI Key Loading section with full API
  reference for from_pkcs11_uri(), pkcs11_info(), Pkcs11Uri, and
  Pkcs11UriAttributes including per-backend mandatory attribute table
- system-architecture.md: add PKCS#11 Key Loading Architecture section
  with OpenSSL (OSSL_STORE) and NSS (PK11_ListPrivKeysInSlot) Mermaid
  sequence diagrams and design decision table
- testing-guide.md: add PKCS#11/HSM integration test section documenting
  the kryoptic test, build-time library discovery, --test-threads=1
  requirement, and graceful skip behaviour
- deployment-guide.md: add HSM/PKCS#11 Key Storage section with step-by-step
  OpenSSL provider and NSS secmod setup, kryoptic usage example, and
  no-key-extraction guarantee
- codebase-summary.md: note new synta-certificate modules, foreign-types
  optional dependency, and PKCS#11 URI support in Python API surface

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-15 11:55:52 +03:00
c721e67674 docs: embed rustdoc in an iframe on the API reference page
Scale rustdoc font size to match mdBook: the iframe viewport is the
content area (~83% of page width), so clamp(16px, 1.5vw, 26px) on
html produces the same effective text size as mdBook's 1.2vw on the
full page.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-08 12:51:31 +03:00
169aab2644 docs: integrate rustdoc into the book via api-reference.md
- Extend job_doc in local-ci.sh to build the mdBook and copy
  target/doc/ into docs/book/api/ after cargo doc runs
- Detect mdbook in detect_tools(); gracefully skip book build if absent
- Add docs/api-reference.md: meta-refresh redirect + per-crate links
  with a note explaining how to build when links are missing
- Register the page in docs/SUMMARY.md under the Reference section

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-08 12:51:31 +03:00
8839381194 docs: remove 15 redirect stub files superseded by mdbooks
All 15 files were 5-10 line stubs pointing to pages in the new sub-books
(docs/rust/src/, docs/c/src/, docs/perf/src/, docs/python/src/).
Content is fully covered; no migration needed.

Removed: C_API.md, C_CODE_GENERATION.md, C_MEMORY.md,
COMPARISON_BENCHMARK.md, MIGRATION_LIBTASN1.md, MIGRATION_OPENSSL.md,
api-reference.md, asn1-support.md, best-practices.md, c-generation.md,
no_std.md, performance.md, rust-generation.md, tutorial.md, usage.md

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-07 11:29:51 +03:00
30448378da docs/rust: restructure Rust API docs as mdbook
Split ten monolithic markdown files (usage.md 872 lines,
rust-generation.md 1,072 lines, asn1-support.md 737 lines,
best-practices.md 632 lines, api-reference.md 472 lines,
tutorial.md 470 lines, no_std.md 252 lines,
MIGRATION_OPENSSL.md 716 lines, MIGRATION_LIBTASN1.md 644 lines,
troubleshooting.md 485 lines) into a navigable mdbook under
docs/rust/, following the docs/python/ and docs/c/ precedents.

New structure: introduction, getting-started (2 pages), tutorial
(3 pages), codegen (9 pages), asn1 (5 pages), pki (5 pages),
best-practices, api-reference, migration (2 pages),
troubleshooting. Old files replaced with forwarding stubs
pointing to docs/rust/.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-04-07 09:45:46 +03:00
a5d0b29c3a docs: expand documentation for CMS, Python bindings, and codegen
- README.md: update feature list to reflect CMS full suite (SignedData,
  EnvelopedData, EncryptedData, DigestedData), Python synta.cms submodule,
  Kerberos ETYPE_* constants, and improved codegen capabilities; refresh
  docs table of contents with new guide links
- docs/C_API.md: add complete CMS API section (ContentInfo, SignedData,
  SignerInfo, EnvelopedData, EncryptedData, DigestedData) with function
  signatures, parameters, return values, and usage examples
- docs/api-reference.md: expand codegen library API reference with
  DeriveMode, any_as_raw_der, and Information Object Class sections
- docs/asn1-support.md: document ANY DEFINED BY and IOC parsing support
- docs/rust-generation.md: document DeriveMode variants and RawDer output
  for open-typed fields
- synta-ffi/README.md: update feature count and add CMS section overview

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 09:20:17 +02:00
ecdcc2e8aa docs(docs): add doctoc-compatible table of contents to all doc pages
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-03-01 17:00:39 +02:00
390965c1b0 docs(api-reference): mark synta-codegen library blocks with rust,ignore
The two CCodeGenConfig examples use synta_codegen::{parse, …} which
is not a dependency of the doc-checker crate (the validator only
depends on synta).  Mark them rust,ignore so the validator skips
them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-02-28 23:39:52 +01:00
f2f36c4cac docs: move synta-codegen docs to top-level docs/
All markdown documentation outside README files now lives under a
single docs/ tree. Move the eight files from synta-codegen/docs/:

  asn1-support.md, api-reference.md, best-practices.md,
  c-generation.md, limitations.md, rust-generation.md,
  troubleshooting.md, tutorial.md

Cross-references between these files use relative names and remain
correct since they all land in the same directory. Remove the now-empty
synta-codegen/docs/ directory and merge its README into docs/README.md
as a new "Code Generation" section.

Update synta-codegen/README.md links from docs/ to ../docs/.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2026-02-28 23:39:52 +01:00
Renamed from synta-codegen/docs/api-reference.md (Browse further)