Part of X.509
Working within the X.509 prototype branch at https://github.com/matrix-org/matrix-rust-sdk/tree/andyrich/x509 , search for TODOs etc and review the code for shortcuts that are not OK for production code. Fix them or create new issues if fixes will be large.
Some ideas for cleanups:
Part of X.509
Working within the X.509 prototype branch at https://github.com/matrix-org/matrix-rust-sdk/tree/andyrich/x509 , search for TODOs etc and review the code for shortcuts that are not OK for production code. Fix them or create new issues if fixes will be large.
Some ideas for cleanups:
RenameX509Signer->X509Signing,X509Verifier->X509Verifying, or better names if we can think of them. Other candidates:X509ObjectSigner,X509KeySigner,X509JsonSigner.X509Sign->X509SignerRawX509Signer,X509Verify->X509VerifierRawX509Verifier.X509Data. It's only used inOlmMachine.with_store. Either pass the two halves separately, or give OlmMachine a builder pattern (and pass the two halves separately into that).MakeX509::signandX509Verify::verifytake&[u8]arguments if possible, instead ofVecConsider whether we can removeX509SignImplinbindings/matrix-sdk-ffi/src/client_builder.rscrates/matrix-sdk-crypto/src/types/mod.rsinto separate files