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

io API #98

Closed
radumarias opened this issue Aug 4, 2024 · 1 comment
Closed

io API #98

radumarias opened this issue Aug 4, 2024 · 1 comment

Comments

@radumarias
Copy link
Member

radumarias commented Aug 4, 2024

Implement a similar API to tokio::io that calls methods from EncryptedFs.

Structure of crypto module

Flow

  • Use crypto::fs::OpenOptionsto create a crypto::fs::File from https://github.com/radumarias/rencfs/issues/97
  • That calls EncryptedFs::open with corresponding read, write flags and internally we keep the CryptoReaderSeek or/and CryptoWriterSeek based on flags passed to open
  • When the File object is dropped we close the handle with EncryptedFs::release
  • You can use crypto::io to read of write to the File.
@radumarias radumarias added this to rencfs Aug 4, 2024
@radumarias radumarias converted this from a draft issue Aug 4, 2024
@radumarias
Copy link
Member Author

@github-project-automation github-project-automation bot moved this from Todo to Merged in rencfs Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant