📄 desfake.c
字号:
/* $Header: /usr/cvsroot/target/src/wrn/wm/common/desfake/desfake.c,v 1.3 2003/01/16 18:18:52 josh Exp $ *//* * Copyright (C) 1999-2005 Wind River Systems, Inc. * All rights reserved. Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//**************************************************************************** * Copyright 1997 Epilogue Technology Corporation. * Copyright 1998 Integrated Systems Inc. * All rights reserved. ****************************************************************************//* * $Log: desfake.c,v $ * Revision 1.3 2003/01/16 18:18:52 josh * directory structure shifting * * Revision 1.2 2001/11/06 21:52:00 tneale * Fixed for newest file layout * * Revision 1.1.1.1 2001/11/05 17:48:38 tneale * Tornado shuffle * * Revision 1.3 2001/01/19 22:21:25 paul * Update copyright. * * Revision 1.2 2000/03/17 00:16:16 meister * Update copyright message * * Revision 1.1 1998/06/23 21:17:09 josh * Building a fake DES library. All the cool entry points, no nasty * export-controlled code. * *//* [clearcase]modification history-------------------01a,20apr05,job update copyright notices*/#include <wrn/wm/common/des.h>int Asmversion = 0;/* Encrypt or decrypt a block of data in ECB mode */void des (DES_KS ks, bits8_t *block, bits8_t *out){ /* Do nothing...just a dummy routine. */}/* Encrypt or decrypt a block of data in ECB mode */void des3(DES3_KS ks, bits8_t *block, bits8_t *out){ /* Do nothing...just a dummy routine. */}void deskey (DES_KS k, bits8_t *key, int decrypt){ /* Do nothing...just a dummy routine. */}#if INSTALL_COMMON_3DESvoid des3key (DES3_KS k, bits8_t *key, int decrypt){ /* Do nothing...just a dummy routine. */}#endif /* INSTALL_COMMON_3DES */void desecb_block_encrypt (DES_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} void descbc_block_encrypt (DES_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} void descbc_block_decrypt (DES_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} #if INSTALL_COMMON_ESP_3DESvoid des3ecb_block_encrypt (DES3_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} void des3cbc_block_encrypt (DES3_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} void des3cbc_block_decrypt (DES3_CTX *ctx, bits8_t *in, bits8_t *out){ /* Do nothing...just a dummy routine. */} #endif /* INSTALL_COMMON_ESP_3DES *//* algtable context glue */void descbc_init_context (void *ctx, bits8_t *key, int decrypt){ /* Do nothing...just a dummy routine. */}void descbc_iv_context (void *ctx, bits8_t *iv){ /* Do nothing...just a dummy routine. */}void descbc_crypt (void *ctx, bits8_t *in, bits8_t *out, bits32_t n){ /* Do nothing...just a dummy routine. */}#if INSTALL_COMMON_ESP_3DESvoid des3cbc_init_context (void *ctx, bits8_t *key, int decrypt){ /* Do nothing...just a dummy routine. */}void des3cbc_iv_context (void *ctx, bits8_t *iv){ /* Do nothing...just a dummy routine. */}void des3cbc_crypt (void *ctx, bits8_t *in, bits8_t *out, bits32_t n){ /* Do nothing...just a dummy routine. */}#endif /* INSTALL_COMMON_ESP_3DES *//* A function to determine whether we're actually getting DES-style * encryption instead of just dummy routines. * Returns: 1 if real DES, 0 if dummy DES. */int des_is_real(){ return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -