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

Use openssl-rust's OCB mode once implemented #1

Open
hargoniX opened this issue May 8, 2020 · 1 comment
Open

Use openssl-rust's OCB mode once implemented #1

hargoniX opened this issue May 8, 2020 · 1 comment

Comments

@hargoniX
Copy link

hargoniX commented May 8, 2020

I recently stumbled upon this lib while writing a little bot for mumble in rust (it turned out to be a little client framework actually take a look if you want. And I saw you're currently implementing AES OCB yourself so I went ahead and started working in integrating it into rust-openssl (tracking issue sfackler/rust-openssl#1268) would be nice if we could integrate this instead of the custom implementation once it's done.

@lemon-sh
Copy link

lemon-sh commented Jun 2, 2024

Now that AES-OCB is implemented in rust-openssl, I tried having a go at resolving this issue, but got confused with the IV/nonce. It seems to be 128-bit long (that is also the case upstream), but openssl won't let me use an IV of that size - it returns an empty ErrorStack (it accepts smaller sizes though).

Also I noticed that the upstream file is called CryptStateOCB2.cpp, which hints at OCB2, but I can't find any information about the revision of OCB that OpenSSL is using.

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

2 participants