Skip to content

Replace Yawning/chacha20 PRNG #36

@renzhexigua

Description

@renzhexigua

In the latest commit: Yawning/chacha20@644b09a, the author did some non backward-compatible changes. One of them is:

NewCipher -> New

We should fix this piece here:

utls/u_prng.go

Lines 119 to 120 in 7c97cdb

p.randomStream, err = chacha20.NewCipher(
p.randomStreamSeed[:], randomKeyNonce[:])

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