Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: "Crypto Cipher" API isn't available in the docs #21820

Closed
pfalcon opened this issue Jan 10, 2020 · 6 comments · Fixed by #23446
Closed

docs: "Crypto Cipher" API isn't available in the docs #21820

pfalcon opened this issue Jan 10, 2020 · 6 comments · Fixed by #23446
Assignees
Labels
area: Documentation bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@pfalcon
Copy link
Contributor

pfalcon commented Jan 10, 2020

So, we have https://github.com/zephyrproject-rtos/zephyr/blob/master/include/crypto/cipher.h#L9 which clearly has docstrings defining a whole API subsystem. However, search for "Crypto Cipher APIs" (section title from that file) doesn't give useful hits: https://docs.zephyrproject.org/latest/search.html?q=Crypto+Cipher+APIs&check_keywords=yes&area=default

It looks like that API is not included in the docs. That might be as well because of warning sign in that file:

  • [Experimental] Users should note that the APIs can change
  • as a part of ongoing development.

But that notice is from 2016. By 2020, it may be still experimental, but not as experimental as to exclude it from the docs.

@dbkinder, Can you please do initial triaging on this, maybe you're aware of the situation, maybe there's just some markup error. Then as needed, let's involve Anas et al.

@pfalcon pfalcon added bug The issue is a bug, or the PR is fixing a bug area: Documentation labels Jan 10, 2020
@pfalcon
Copy link
Contributor Author

pfalcon commented Jan 10, 2020

Note that we have https://docs.zephyrproject.org/latest/guides/crypto/index.html . But that goes just orthogonal: So, Zephyt has own crypto API, in particular, it provides wrappers for 3rd-party libraries, like mbedTLS. Wrappers, because we want to use people to use native Zephyr API, which may be implemented by different underlying crupto providers. And yet we have that "Cryptography" section where only thing that it does is exposes 3rd-party lib directly.

Also cc: @d3zd3z to be aware of this situation.

@pfalcon
Copy link
Contributor Author

pfalcon commented Jan 10, 2020

Actually, looking closer at cipher.h, the majority of comments there are simple comments /* */, and not docstring comments /** */. @dbkinder, is that what precludes a useful doc section to be generated out of it?

@pfalcon
Copy link
Contributor Author

pfalcon commented Jan 10, 2020

David let me know that he no longer oversees Zephyr docs. So, ping to you, @nashif, whether you know of a reason why Crypto API docs shouldn't be in the manual. If not, I'll try to look into getting them rendered there.

@jhedberg jhedberg added the priority: low Low impact/importance bug label Jan 14, 2020
@nashif
Copy link
Member

nashif commented Jan 16, 2020

Actually, looking closer at cipher.h, the majority of comments there are simple comments /* */, and not docstring comments /** */. @dbkinder, is that what precludes a useful doc section to be generated out of it?

This is correct, need **, but also need to put this in some group to make it easy to import them into rst, so first goal is to get them listed here:

https://docs.zephyrproject.org/apidoc/latest/modules.html

@pfalcon you already started fixing that, so it would be great if you can continue... reassigning.

@nashif nashif assigned pfalcon and unassigned nashif Jan 16, 2020
@pfalcon
Copy link
Contributor Author

pfalcon commented Jan 16, 2020

@pfalcon you already started fixing that, so it would be great if you can continue...

Sounds good, in my list.

@nashif nashif assigned nashif and unassigned pfalcon Mar 12, 2020
@nashif
Copy link
Member

nashif commented Mar 12, 2020

taking a stab on this now

nashif added a commit to nashif/zephyr that referenced this issue Mar 13, 2020
Fix crypto API doxygen syntax and integrate into documentation as RST.

Fixes zephyrproject-rtos#21820

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
nashif added a commit that referenced this issue Mar 14, 2020
Fix crypto API doxygen syntax and integrate into documentation as RST.

Fixes #21820

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
hakehuang pushed a commit to hakehuang/zephyr that referenced this issue Mar 18, 2020
Fix crypto API doxygen syntax and integrate into documentation as RST.

Fixes zephyrproject-rtos#21820

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Documentation bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants