Skip to content

[sha3] Impl SyncStreamCipher for Sha3XofReader #181

Closed

Description

@niluxv

Since the Shake variants are considered secure PRFs (stream ciphers), it would be nice if sha3::Sha3XofReader would implement stream_cipher::SyncStreamCipher. (Or if there would be a different way to get a stream cipher out of shake.)

Activity

  1. changed the title [-]Impl `SyncStreamCipher` for `Sha3XofReader`[/-] [+][sha3] Impl `SyncStreamCipher` for `Sha3XofReader`[/+] on Jul 10, 2020
  2. newpavlov commented on Jan 13, 2021

    @newpavlov
    Member

    I think we will do it on the trait crate level, i.e. we will have a blanket (feature-gated) impl of the stream cipher traits for XOFs.

  3. niluxv commented on Jan 21, 2021

    @niluxv
    Author

    Yes, that would be a lot nicer from an API perspective!
    Why does it need to be feature-gated? It wouldn't be backwards incompatible, right?

  4. tarcieri commented on Jan 21, 2021

    @tarcieri
    Member

    @niluxv it would introduce a dependency on the cipher crate in the digest crate. Presently there is no such dependency.

    Making the cipher dependency optional means it'd only be used when needed, and other users of digest would not see an additional dependency.

    Edit: made a note of this in RustCrypto/traits#478

  5. niluxv commented on Jan 23, 2021

    @niluxv
    Author

    it would introduce a dependency on the cipher crate in the digest crate.

    Ah, yes, that makes sense. I should have known that. Thanks for answering!

  6. newpavlov commented on Jan 30, 2021

    @newpavlov
    Member

    Going to close it in favor of RustCrypto/traits#510.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions