Skip to content

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

Description

@MatthewScholefield

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions