riscv / riscv-crypto

RISC-V cryptography extensions standardisation work.
https://wiki.riscv.org/x/MVcF
Creative Commons Attribution 4.0 International
361 stars 83 forks source link

Specification document - LaTeX to Asciidoc conversion #89

Closed ben-marshall closed 3 years ago

ben-marshall commented 3 years ago

The specification needs to be converted from LaTeX to asciidoc, specifically the asciidoctor tool. This issue tries to capture what needs to happen.

What needs converting?

All of the LaTeX files under doc/spec/tex. Starting with the scalar and files shared between specifications, but moving onto the vector spec.

How will it be converted:

We can use Pandoc to bulk convert the files automatically, but there are several important gottchas while will need manual or semi-automatic fixing:

Open Questions:

Progress

Shared files:

File Automated Conversion Manual Fixes Notes
appx-benchmarking.tex Doesn't need converting. Not maintained.
appx-materials.tex [ ] [ ]
changelog.tex Doesn't need converting. Not maintained.
contributors.tex [x] [x] Done
sec-audience.tex [x] [x] Done
sec-policies.tex [x] [x] Done
sec-sail.tex [x] [x] Done
sec-scalar-profiles.tex [x] [x] Done

Scalar Crypto:

File Automated Conversion Manual Fixes Notes
sec-scalar-intro.tex [x] [x]
sec-scalar-aes.tex [x] [x]
sec-scalar-sha2.tex [x] [x]
sec-scalar-sm3.tex [x] [x]
sec-scalar-sm4.tex [x] [x]
sec-scalar-timing.tex [x] [x]
appx-scalar-encodings.tex [ ] [ ] Need some guidance on standard way to do this.
appx-scalar-sail.tex [ ] [ ]

ZKb instruction group:

File Automated Conversion Manual Fixes Notes
sec-scalar-bitmanip.tex [x] [x] Done

Entropy Source:

File Automated Conversion Manual Fixes Notes
sec-entropy-source.tex [x] [x]
appx-entropy.tex [x] [x]

Vector:

These are not a priority right now, we are focusing on the scalar crypto work.

File Automated Conversion Manual Fixes Notes
sec-vector-aes.tex [ ] [ ]
sec-vector-clmul.tex [ ] [ ]
sec-vector-grev.tex [ ] [ ]
sec-vector-intro.tex [ ] [ ]
sec-vector-profiles.tex [ ] [ ]
sec-vector-rotate.tex [ ] [ ]
sec-vector-sha2.tex [ ] [ ]
sec-vector.tex [ ] [ ]
appx-vector-encodings.tex [ ] [ ]
elisa-riscv commented 3 years ago

In answer to your open question about whether to have a monolithic document or to break it into sections, I recommend chapter-sized chunks. The chapter-sized chunks can be grouped into sections, and all can be included in a book header file. You can find an example at https://github.com/riscv/docs-templates. Right now some specifics are subject to change and there is a bug with respect to the use of wavedrom diagramming for which we might need to provide a temporary workaround.

ben-marshall commented 3 years ago

Hi @elisa-riscv

I've made a start translating some parts of the specification which are very stable just to try things out. Your template repository and guide have been extremely helpful!

The asciidoc source so far can be seen here and I've attached a working copy to this comment (riscv-crypto-spec-scalar.pdf). Without wanting to take up too much of your time, I hope I'm going in the right direction?

Cheers, Ben

elisa-riscv commented 3 years ago

HI Ben,

Definitely you are going in the right direction. I am glad that you've got a build working for you and are on your way.

Just a couple of quick comments, after a quick look:

Do let me know if you run into any issues.

I'm thinking that I should put together a checklist for people to use as they go through the conversion process.

On Wed, Apr 28, 2021 at 7:29 AM Ben Marshall @.***> wrote:

Hi @elisa-riscv https://github.com/elisa-riscv

I've made a start translating some parts of the specification which are very stable just to try things out. Your template repository and guide have been extremely helpful!

The asciidoc source so far can be seen here https://github.com/riscv/riscv-crypto/tree/dev/next-release/doc/adoc-scalar and I've attached a working copy to this comment ( riscv-crypto-spec-scalar.pdf https://github.com/riscv/riscv-crypto/files/6392560/riscv-crypto-spec-scalar.pdf). Without wanting to take up too much of your time, I hope I'm going in the right direction?

Cheers, Ben

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/riscv/riscv-crypto/issues/89#issuecomment-828502365, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTDNURHYY5F3DKE2ONGG53TLALUJANCNFSM43KQ66AQ .

ben-marshall commented 3 years ago

Closed with release v0.9.1