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

Blowfish doesn't have proper init method for bcmode objects #35

Open
MatthewScholefield opened this issue Nov 30, 2019 · 0 comments
Open

Comments

@MatthewScholefield
Copy link

When running the CFB example in the repo with blowfish, ectx.init(key, iv) fails in template instantiation because ctx.cipher.init(unsafeAddr key[0]) doesn't exist for blowfish. Due to its variable key size, it requires an alternative init call of ctx.cipher.init(unsafeAddr key[0], keySize). This is currently provided by initBlowfish(), and init(_: var BlowfishContext, ...) but not for things like init(_: var CFB[BlowfishContext], ...). Since cipher is private in all of the bcmode objects, I don't think there's a way to properly initialize them.

@MatthewScholefield MatthewScholefield changed the title blowfish doesn't have proper init method for bcmode objects Blowfish doesn't have proper init method for bcmode objects Nov 30, 2019
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