]> Cypherpunks repositories - keks.git/commitdiff
Separate documentation section for CM
authorSergey Matveev <stargrave@stargrave.org>
Fri, 14 Feb 2025 08:53:29 +0000 (11:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 14 Feb 2025 08:55:30 +0000 (11:55 +0300)
16 files changed:
spec/cm/encrypted.cddl [moved from spec/format/encrypted.cddl with 100% similarity]
spec/cm/encrypted.texi [moved from spec/format/encrypted.texi with 99% similarity]
spec/cm/hashed.cddl [moved from spec/format/hashed.cddl with 100% similarity]
spec/cm/hashed.texi [moved from spec/format/hashed.texi with 99% similarity]
spec/cm/index.texi [new file with mode: 0644]
spec/cm/prv.cddl [moved from spec/format/prv.cddl with 100% similarity]
spec/cm/prv.texi [moved from spec/format/prv.texi with 97% similarity]
spec/cm/pub-load.cddl [moved from spec/format/pub-load.cddl with 100% similarity]
spec/cm/pub-sig-tbs.cddl [moved from spec/format/pub-sig-tbs.cddl with 100% similarity]
spec/cm/pub.texi [moved from spec/format/pub.texi with 98% similarity]
spec/cm/signed-prehash.cddl [moved from spec/format/signed-prehash.cddl with 100% similarity]
spec/cm/signed.cddl [moved from spec/format/signed.cddl with 100% similarity]
spec/cm/signed.texi [moved from spec/format/signed.texi with 97% similarity]
spec/format/index.texi [deleted file]
spec/format/registry.texi [deleted file]
spec/index.texi

similarity index 99%
rename from spec/format/encrypted.texi
rename to spec/cm/encrypted.texi
index c328a122cc13b8c1fddb8c1a90bb547bd5104b5864e612cca650fd741f60a643..6b7c22673c798880a7e9e1e432d7501ad99927fb9a255f102f3ad345241b4fb2 100644 (file)
@@ -4,7 +4,7 @@
 
 Stored in a file, it should begin with "cm/encrypted" @ref{Magic, magic}.
 
-@verbatiminclude format/encrypted.cddl
+@verbatiminclude cm/encrypted.cddl
 
 @code{/ciphertext} contains the ciphertext. It is encrypted with random
 "content encryption key" (CEK) with an algorithm specified in
similarity index 100%
rename from spec/format/hashed.cddl
rename to spec/cm/hashed.cddl
similarity index 99%
rename from spec/format/hashed.texi
rename to spec/cm/hashed.texi
index e5dcae5a7c847c7e23e32f71bb51b6cbf348e18a418ac4c1b535ef12a7565e32..785da1f02dbc7c818c42c25ab519ad4e57e4b4a437bd505faa1a62417fa8739f 100644 (file)
@@ -5,7 +5,7 @@
 Integrity protected container, CMS'es DigestedData analogue.
 Stored in a file, it should begin with "cm/hashed" @ref{Magic, magic}.
 
-@verbatiminclude format/hashed.cddl
+@verbatiminclude cm/hashed.cddl
 
 @code{/a} tells what algorithms will be used to hash the data.
 
diff --git a/spec/cm/index.texi b/spec/cm/index.texi
new file mode 100644 (file)
index 0000000..e00c77f
--- /dev/null
@@ -0,0 +1,12 @@
+@node CM
+@unnumbered Cryptographic messages
+
+Here are some suggested formats for use with cryptographic messages.
+They are written in
+@url{https://datatracker.ietf.org/doc/html/rfc8610, CDDL}-like format.
+
+@include cm/prv.texi
+@include cm/signed.texi
+@include cm/pub.texi
+@include cm/hashed.texi
+@include cm/encrypted.texi
similarity index 100%
rename from spec/format/prv.cddl
rename to spec/cm/prv.cddl
similarity index 97%
rename from spec/format/prv.texi
rename to spec/cm/prv.texi
index 206acb6e85b66509d0da9885a3293f1f3e1861847f5eeb81671933ba785d5302..3060a545c1798b3900518c6a80a24341e5827158d5e85d265856a0b57b09b4ff 100644 (file)
@@ -4,7 +4,7 @@
 
 Private key container.
 
-@verbatiminclude format/prv.cddl
+@verbatiminclude cm/prv.cddl
 
 Stored in a file, it should begin with "cm/prv" @ref{Magic, magic}.
 
similarity index 98%
rename from spec/format/pub.texi
rename to spec/cm/pub.texi
index 830defb68f8c742bb894f28b1fb0cc351071d164057c72a06312e529dde89c5c..85e5f17be98fdce04c4e3e93e87d30648fb3b29c2c37615925af163b0b5d6767 100644 (file)
@@ -12,7 +12,7 @@ Its @code{/load/t} equals to @code{pub}.
 cm-pub = cm-signed ; with /load/t = "pub", /load/v = cm-pub-load
 @end verbatim
 
-@verbatiminclude format/pub-load.cddl
+@verbatiminclude cm/pub-load.cddl
 
 @table @code
 
@@ -54,7 +54,7 @@ It @strong{must} be absent if empty. Values are extension specific.
 
 @code{cm-signed}'s @code{sig-tbs} @strong{must} contain additional fields:
 
-@verbatiminclude format/pub-sig-tbs.cddl
+@verbatiminclude cm/pub-sig-tbs.cddl
 
 @table @code
 
similarity index 100%
rename from spec/format/signed.cddl
rename to spec/cm/signed.cddl
similarity index 97%
rename from spec/format/signed.texi
rename to spec/cm/signed.texi
index 3f0fc19ae6f2202a20bb32b4d1f67e0e4e3a4f7b70df832d1cb06e002cd89e66..5979a1381876e34f20fe5c31efaec842b33ad714d34ebed7282b3000cc3a76e9 100644 (file)
@@ -8,7 +8,7 @@ That resembles @url{https://datatracker.ietf.org/doc/html/rfc5652, CMS}
 Stored in a file, it should begin with "cm/signed" @ref{Magic, magic},
 unless it is a @ref{cm-pub, public key}.
 
-@verbatiminclude format/signed.cddl
+@verbatiminclude cm/signed.cddl
 
 Signature is created by signing the:
 
@@ -26,7 +26,7 @@ following approach:
 cm-signed-prehash || BLOB(detached-data) || cm-signed
 @end verbatim
 
-@verbatiminclude format/signed-prehash.cddl
+@verbatiminclude cm/signed-prehash.cddl
 
 With @code{cm-signed-prehash} you initialise your hashers used during
 signing process and feed BLOB's contents (not the encoded BLOB itself!)
diff --git a/spec/format/index.texi b/spec/format/index.texi
deleted file mode 100644 (file)
index f41ff74..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-@node Formats
-@unnumbered Formats
-
-Here are some suggested formats.
-They are written in
-@url{https://datatracker.ietf.org/doc/html/rfc8610, CDDL}-like format.
-
-@include format/prv.texi
-@include format/signed.texi
-@include format/pub.texi
-@include format/hashed.texi
-@include format/encrypted.texi
-@include format/registry.texi
diff --git a/spec/format/registry.texi b/spec/format/registry.texi
deleted file mode 100644 (file)
index 92be7a2..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-@node Registry
-@cindex Registry
-@section AI registry
-
-There is example registry of known algorithm identifiers.
-
-@node AI Hashes
-@subsection Hashes
-
-@table @code
-@item blake2b, blake2b256
-    @code{@ref{cm-pub-ed25519-blake2b}},
-    @code{@ref{cm-hashed-blake2b}},
-    @code{@ref{cm-signed-ed25519-blake2b}}
-@item blake2b-merkle
-    @code{@ref{cm-hashed-blake2b-merkle}},
-    @code{@ref{cm-signed-ed25519ph-blake2b-merkle}}
-@item blake3
-    @code{@ref{cm-hashed-blake3}}
-@item sha2-256, sha2-512
-    @code{@ref{cm-hashed-sha2}}
-@item shake128, shake256
-    @code{@ref{cm-hashed-shake}}
-@item shake128-merkle, shake256-merkle
-    @code{@ref{cm-hashed-shake-merkle}}
-@item skein512
-    @code{@ref{cm-hashed-skein512}}
-@item streebog256, streebog512
-    @code{@ref{cm-hashed-gost3411}}
-@item streebog256-merkle, streebog512-merkle
-    @code{@ref{cm-hashed-gost3411-merkle}}
-@item xxh3-128
-    @code{@ref{cm-hashed-xxh3-128}}
-@end table
-
-@node AI DH
-@subsection DH
-
-@table @code
-@item ecdsa-nist256p, ecdsa-nist521p
-@item gost3410-256A, gost3410-512C
-    @code{@ref{cm-pub-gost3410}},
-    @code{@ref{cm-prv-gost3410}}
-@item x25519
-@item x448
-@end table
-
-@node AI DEM
-@subsection DEM
-
-@table @code
-@item chacha20poly1305
-    @code{@ref{cm-encrypted-chacha20poly1305}}
-@item kuznechik-ctracpkm-hmac
-    @code{@ref{cm-encrypted-kuznechik-ctracpkm-hmac}}
-@end table
-
-@node AI KEM
-@subsection KEM
-
-@table @code
-@item argon2id-hkdf-blake2b
-@item balloon-blake2b-hkdf
-    @code{@ref{cm-encrypted-balloon-blake2b-hkdf}}
-@item gost3410-hkdf-kexp15
-    @code{@ref{cm-encrypted-gost3410-hkdf-kexp15}}
-@item mceliece6960119-x25519-hkdf-shake256
-    @code{@ref{cm-encrypted-mceliece6960119-x25519-hkdf-shake256}}
-@item mlkem768-x25519
-@item sntrup761-x25519
-@item sntrup4591761-x25519
-    @code{@ref{cm-pub-sntrup4591761-x25519}},
-    @code{@ref{cm-prv-sntrup4591761-x25519}}
-@item sntrup4591761-x25519-hkdf-blake2b
-    @code{@ref{cm-encrypted-sntrup4591761-x25519-hkdf-blake2b}}
-@item sntrup761-x25519-hkdf-blake2b
-@end table
-
-@node AI Sign
-@subsection Signatures
-
-@table @code
-@item ecdsa-nist256p, ecdsa-nist521p
-@item ed25519-blake2b
-    @code{@ref{cm-prv-ed25519-blake2b}},
-    @code{@ref{cm-signed-ed25519-blake2b}},
-    @code{@ref{cm-pub-ed25519-blake2b}}
-@item ed25519ph-blake2b
-    @code{@ref{cm-signed-ed25519-blake2b}}
-@item ed25519ph-blake2b-merkle
-    @code{@ref{cm-signed-ed25519ph-blake2b-merkle}}
-@item ed448
-@item gost3410-256A, gost3410-512C
-    @code{@ref{cm-pub-gost3410}},
-    @code{@ref{cm-prv-gost3410}},
-    @code{@ref{cm-signed-gost3410}}
-@item gost3410-256A-merkle, gost3410-512C-merkle
-    @code{@ref{cm-signed-gost3410-merkle}}
-@end table
-
-@node AI Content types
-@subsection Content types
-
-@itemize
-@item @ref{cm-pub, @code{pub}}
-@item @ref{cm-signed, @code{data}}
-@item @ref{cm-prv, @code{prv}}
-@end itemize
index 9003ad52ad2ac30c517eb272d54ea0d5c05354b31ced476f023dd9d71c3d2f83..bcdd1d1dc09f5c54eda0b2651c3362be06786acc828d16027a55b048fe8e2014 100644 (file)
@@ -132,7 +132,7 @@ and won't be able to interpret/validate them.
 @include install.texi
 @include encoding/index.texi
 @include schema.texi
-@include format/index.texi
+@include cm/index.texi
 
 @node Concepts Index
 @unnumbered Concepts Index