sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
des.h
Go to the documentation of this file.
1
35
40#include "netif/ppp/ppp_opts.h"
41#if LWIP_INCLUDED_POLARSSL_DES
42
43#ifndef LWIP_INCLUDED_POLARSSL_DES_H
44#define LWIP_INCLUDED_POLARSSL_DES_H
45
46#define DES_ENCRYPT 1
47#define DES_DECRYPT 0
48
52typedef struct
53{
54 int mode;
55 unsigned long sk[32];
56}
57des_context;
58
59#ifdef __cplusplus
60extern "C" {
61#endif
62
69void des_setkey_enc( des_context *ctx, unsigned char key[8] );
70
77void des_setkey_dec( des_context *ctx, unsigned char key[8] );
78
86void des_crypt_ecb( des_context *ctx,
87 const unsigned char input[8],
88 unsigned char output[8] );
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* LWIP_INCLUDED_POLARSSL_DES_H */
95
96#endif /* LWIP_INCLUDED_POLARSSL_DES */