Skip to content

optimise produceHashedIteratedS2k #27

Description

@tomholub
    // this could be further optimised. Takes about 150ms per key
    // there tend to be two keys to decrypt in an armored key, so that makes is 300 ms
    // I suspect it could be optimised to 50ms per pass, or 100ms total
    func produceHashedIteratedS2k(_ algo: String, _ prefix: [UInt8], _ salt: [UInt8], _ passphrase: [UInt8], _ count: Int) -> [UInt8] {

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions