Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: openssl/crypto/rc2/rc2.h

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/rc2/Makefile ('k') | openssl/crypto/rc2/rc2_skey.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* crypto/rc2/rc2.h */ 1 /* crypto/rc2/rc2.h */
2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This package is an SSL implementation written 5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com). 6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL. 7 * The implementation was written so as to conform with Netscapes SSL.
8 * 8 *
9 * This library is free for commercial and non-commercial use as long as 9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions 10 * the following conditions are aheared to. The following conditions
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 #ifdef __cplusplus 73 #ifdef __cplusplus
74 extern "C" { 74 extern "C" {
75 #endif 75 #endif
76 76
77 typedef struct rc2_key_st 77 typedef struct rc2_key_st
78 { 78 {
79 RC2_INT data[64]; 79 RC2_INT data[64];
80 } RC2_KEY; 80 } RC2_KEY;
81 81
82 #ifdef OPENSSL_FIPS 82
83 void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bi ts);
84 #endif
85 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits); 83 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits);
86 void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key, 84 void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key,
87 int enc); 85 int enc);
88 void RC2_encrypt(unsigned long *data,RC2_KEY *key); 86 void RC2_encrypt(unsigned long *data,RC2_KEY *key);
89 void RC2_decrypt(unsigned long *data,RC2_KEY *key); 87 void RC2_decrypt(unsigned long *data,RC2_KEY *key);
90 void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, 88 void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
91 RC2_KEY *ks, unsigned char *iv, int enc); 89 RC2_KEY *ks, unsigned char *iv, int enc);
92 void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, 90 void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,
93 long length, RC2_KEY *schedule, unsigned char *ivec, 91 long length, RC2_KEY *schedule, unsigned char *ivec,
94 int *num, int enc); 92 int *num, int enc);
95 void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, 93 void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,
96 long length, RC2_KEY *schedule, unsigned char *ivec, 94 long length, RC2_KEY *schedule, unsigned char *ivec,
97 int *num); 95 int *num);
98 96
99 #ifdef __cplusplus 97 #ifdef __cplusplus
100 } 98 }
101 #endif 99 #endif
102 100
103 #endif 101 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/rc2/Makefile ('k') | openssl/crypto/rc2/rc2_skey.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698