Wed, 07 Jul 2004 01:49:39 +0000
[gaim-migrate @ 10291]
(21:36:44) datallah: anyway... i added "Send File" to the prpl core
committer: Luke Schierer <lschiere@pidgin.im>
| 8907 | 1 | /* |
| 2 | * The contents of this file are subject to the Mozilla Public | |
| 3 | * License Version 1.1 (the "License"); you may not use this file | |
| 4 | * except in compliance with the License. You may obtain a copy of | |
| 5 | * the License at http://www.mozilla.org/MPL/ | |
| 6 | * | |
| 7 | * Software distributed under the License is distributed on an "AS | |
| 8 | * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | |
| 9 | * implied. See the License for the specific language governing | |
| 10 | * rights and limitations under the License. | |
| 11 | * | |
| 12 | * The Original Code is SHA 180-1 Reference Implementation (Compact version) | |
| 13 | * | |
| 14 | * The Initial Developer of the Original Code is Paul Kocher of | |
| 15 | * Cryptography Research. Portions created by Paul Kocher are | |
| 16 | * Copyright (C) 1995-9 by Cryptography Research, Inc. All | |
| 17 | * Rights Reserved. | |
| 18 | * | |
| 19 | * Contributor(s): | |
| 20 | * | |
| 21 | */ | |
| 22 | #ifndef _SHA_H_ | |
| 23 | #define _SHA_H_ | |
| 24 | ||
| 25 | #include <glib.h> | |
| 26 | ||
| 27 | typedef struct { | |
| 28 | guint32 H[5]; | |
| 29 | guint32 W[80]; | |
| 30 | int lenW; | |
| 31 | guint32 sizeHi; | |
| 32 | guint32 sizeLo; | |
| 33 | } SHA_CTX; | |
| 34 | ||
| 6987 | 35 | int strprintsha(char *dest, int *hashval); |
| 36 | void shaInit(SHA_CTX *ctx); | |
| 37 | void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len); | |
| 38 | void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]); | |
| 39 | void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]); | |
| 8907 | 40 | |
| 41 | #endif |