Documentation ¶
Overview ¶
* Copyright (c) 2017 AlexRuzin (stan.ruzin@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE.
Index ¶
- Constants
- Variables
- func AES128CBC_Decrypt(data []byte, input_key *[]byte) ([]byte, int)
- func AES128CBC_Encrypt(data []byte, input_key *[]byte) ([]byte, int)
- func GenerateRSAKeyPair(bitsize int) (public []byte, private *rsa.PrivateKey, err error)
- func RC4_Decrypt(data []byte, input_key *[]byte) ([]byte, error)
- func RC4_Encrypt(data []byte, input_key *[]byte) ([]byte, error)
- func RC4_PrepareKey(key []byte) *[]byte
Constants ¶
const AES_KEY_SEED string = "b1ec0efec8bf032e586ffd4071b79757"
const RC4_IV_LEN uint = 16
The default initialization vector length for a new RC4 stream
const STATUS_FAIL int = -1
const STATUS_OK int = 0
Variables ¶
var RC4_CONSTANT_VALUE = [4]byte{0x40, 0xad, 0x4f, 0x22}
Functions ¶
func AES128CBC_Decrypt ¶
FIXME -- The AES functions are not complete
func AES128CBC_Encrypt ¶
FIXME -- The AES functions are not complete
func GenerateRSAKeyPair ¶
func GenerateRSAKeyPair(bitsize int) (public []byte, private *rsa.PrivateKey, err error)
func RC4_PrepareKey ¶
Types ¶
This section is empty.