From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/go/crypto%2Frc4%2Findex.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 devdocs/go/crypto%2Frc4%2Findex.html (limited to 'devdocs/go/crypto%2Frc4%2Findex.html') diff --git a/devdocs/go/crypto%2Frc4%2Findex.html b/devdocs/go/crypto%2Frc4%2Findex.html new file mode 100644 index 00000000..51f33835 --- /dev/null +++ b/devdocs/go/crypto%2Frc4%2Findex.html @@ -0,0 +1,30 @@ +

Package rc4

Overview

Package rc4 implements RC4 encryption, as defined in Bruce Schneier's Applied Cryptography.

+

RC4 is cryptographically broken and should not be used for secure applications.

Index

Package files

rc4.go

type Cipher

A Cipher is an instance of RC4 using a particular key.

+
type Cipher struct {
+    // contains filtered or unexported fields
+}
+

func NewCipher

func NewCipher(key []byte) (*Cipher, error)

NewCipher creates and returns a new Cipher. The key argument should be the RC4 key, at least 1 byte and at most 256 bytes.

+

func (*Cipher) Reset

func (c *Cipher) Reset()

Reset zeros the key data and makes the Cipher unusable.

+

Deprecated: Reset can't guarantee that the key will be entirely removed from the process's memory.

+

func (*Cipher) XORKeyStream

func (c *Cipher) XORKeyStream(dst, src []byte)

XORKeyStream sets dst to the result of XORing src with the key stream. Dst and src must overlap entirely or not at all.

+

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string
+

+ © Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
+ http://golang.org/pkg/crypto/rc4/ +

+
-- cgit v1.2.3