Skip to content

Use openssl for sha256 instead of sha2. #24

Open

Description

@thomcc

Activity

  1. jrconlin commented on Apr 23, 2019

    @jrconlin
    Contributor

    It's kind of required by the hkdf function., and was probably included as part of the example cargo.

    The pedigree for the hkdf and sha2 crates look to be fairly good.

    I can investigate using openssl only to reduce the amount of dependencies.

  2. self-assigned this
    on Apr 23, 2019
  3. jrconlin commented on Apr 23, 2019

    @jrconlin
    Contributor

    Hrm. openssl::sha::Sha256 doesn't implement a fair number of traits the HKDF library wants. (Notably digest::Input and digest::FixedOutput) I could probably create a wrapper class for openssl that includes those traits, but not really sure that's the best solution rather than just use the pure rust libraries, since that would be less hacky.

  4. thomcc commented on Apr 23, 2019

    @thomcc
    Author

    Honestly you should probably not be using HKDF either. Stuff from the rust-crypto project hasn't gotten any security auditing IIUC.

    But I guess rust-openssl doesn't expose openssl's hkdf functions, dang.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions