8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
请教,为何 salsa20 是从 dst[8:] 开始? #1
Open
@jannson

Description

@jannson

func (c *salsa20BlockCrypt) Encrypt(dst, src []byte) []byte {
salsa20.XORKeyStream(dst[8:], src[8:], src[:8], &c.key)

最开始的 8 个字节不用加密了?

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

      0