Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/openssl
File: seed.h
/*
[0] Fix | Delete
* Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
[1] Fix | Delete
*
[2] Fix | Delete
* Licensed under the OpenSSL license (the "License"). You may not use
[3] Fix | Delete
* this file except in compliance with the License. You can obtain a copy
[4] Fix | Delete
* in the file LICENSE in the source distribution or at
[5] Fix | Delete
* https://www.openssl.org/source/license.html
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/*
[9] Fix | Delete
* Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved.
[10] Fix | Delete
*
[11] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[12] Fix | Delete
* modification, are permitted provided that the following conditions
[13] Fix | Delete
* are met:
[14] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[15] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[16] Fix | Delete
* 2. Neither the name of author nor the names of its contributors may
[17] Fix | Delete
* be used to endorse or promote products derived from this software
[18] Fix | Delete
* without specific prior written permission.
[19] Fix | Delete
*
[20] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
[21] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[22] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[23] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
[24] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[25] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[26] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[27] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[28] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[29] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[30] Fix | Delete
* SUCH DAMAGE.
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
#ifndef HEADER_SEED_H
[34] Fix | Delete
# define HEADER_SEED_H
[35] Fix | Delete
[36] Fix | Delete
# include <openssl/opensslconf.h>
[37] Fix | Delete
[38] Fix | Delete
# ifndef OPENSSL_NO_SEED
[39] Fix | Delete
# include <openssl/e_os2.h>
[40] Fix | Delete
# include <openssl/crypto.h>
[41] Fix | Delete
[42] Fix | Delete
#ifdef __cplusplus
[43] Fix | Delete
extern "C" {
[44] Fix | Delete
#endif
[45] Fix | Delete
[46] Fix | Delete
/* look whether we need 'long' to get 32 bits */
[47] Fix | Delete
# ifdef AES_LONG
[48] Fix | Delete
# ifndef SEED_LONG
[49] Fix | Delete
# define SEED_LONG 1
[50] Fix | Delete
# endif
[51] Fix | Delete
# endif
[52] Fix | Delete
[53] Fix | Delete
# include <sys/types.h>
[54] Fix | Delete
[55] Fix | Delete
# define SEED_BLOCK_SIZE 16
[56] Fix | Delete
# define SEED_KEY_LENGTH 16
[57] Fix | Delete
[58] Fix | Delete
typedef struct seed_key_st {
[59] Fix | Delete
# ifdef SEED_LONG
[60] Fix | Delete
unsigned long data[32];
[61] Fix | Delete
# else
[62] Fix | Delete
unsigned int data[32];
[63] Fix | Delete
# endif
[64] Fix | Delete
} SEED_KEY_SCHEDULE;
[65] Fix | Delete
[66] Fix | Delete
void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH],
[67] Fix | Delete
SEED_KEY_SCHEDULE *ks);
[68] Fix | Delete
[69] Fix | Delete
void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE],
[70] Fix | Delete
unsigned char d[SEED_BLOCK_SIZE],
[71] Fix | Delete
const SEED_KEY_SCHEDULE *ks);
[72] Fix | Delete
void SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE],
[73] Fix | Delete
unsigned char d[SEED_BLOCK_SIZE],
[74] Fix | Delete
const SEED_KEY_SCHEDULE *ks);
[75] Fix | Delete
[76] Fix | Delete
void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out,
[77] Fix | Delete
const SEED_KEY_SCHEDULE *ks, int enc);
[78] Fix | Delete
void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len,
[79] Fix | Delete
const SEED_KEY_SCHEDULE *ks,
[80] Fix | Delete
unsigned char ivec[SEED_BLOCK_SIZE], int enc);
[81] Fix | Delete
void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,
[82] Fix | Delete
size_t len, const SEED_KEY_SCHEDULE *ks,
[83] Fix | Delete
unsigned char ivec[SEED_BLOCK_SIZE], int *num,
[84] Fix | Delete
int enc);
[85] Fix | Delete
void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,
[86] Fix | Delete
size_t len, const SEED_KEY_SCHEDULE *ks,
[87] Fix | Delete
unsigned char ivec[SEED_BLOCK_SIZE], int *num);
[88] Fix | Delete
[89] Fix | Delete
# ifdef __cplusplus
[90] Fix | Delete
}
[91] Fix | Delete
# endif
[92] Fix | Delete
# endif
[93] Fix | Delete
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function