You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
When running the CFB example in the repo with blowfish,
ectx.init(key, iv)
fails in template instantiation becausectx.cipher.init(unsafeAddr key[0])
doesn't exist for blowfish. Due to its variable key size, it requires an alternative init call ofctx.cipher.init(unsafeAddr key[0], keySize)
. This is currently provided byinitBlowfish()
, andinit(_: var BlowfishContext, ...)
but not for things likeinit(_: var CFB[BlowfishContext], ...)
. Sincecipher
is private in all of thebcmode
objects, I don't think there's a way to properly initialize them.The text was updated successfully, but these errors were encountered: