📄 java_crypt_des_class.c
字号:
/* * This library includes software developed by Eric Young (eay@mincom.oz.au) * * Other parts are Copyright (C) 1995, 1996 Systemics Ltd * (http://www.systemics.com/). All rights reserved. * */#include "des.h"#include "java_crypt_DES.h"void java_crypt_DES_set_ks( struct Hjava_crypt_DES * this, HArrayOfByte * userKey ){ des_expand_key( (u_int8_t *)( unhand( userKey )->body ), (u_int32_t *)( unhand( unhand( this )->ks )->body ) );}void java_crypt_DES_do_des( struct Hjava_crypt_DES * this, HArrayOfByte * in, long in_offset, HArrayOfByte * out, long out_offset, long encrypt ){ char * inPtr = unhand( in )->body + in_offset; char * outPtr = unhand( out )->body + out_offset; des_crypt( (u_int32_t *)inPtr, (u_int32_t *)outPtr, (u_int32_t *)( unhand( unhand( this )->ks )->body ), !!encrypt );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -