Skip to content

请教,为何 salsa20 是从 dst[8:] 开始? #1

Description

@jannson

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

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

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions