Home
last modified time | relevance | path

Searched refs:DES_cblock (Results 1 – 25 of 42) sorted by relevance

12

/external/openssl/crypto/des/
Ddes.h78 typedef unsigned char DES_cblock[8]; typedef
87 DES_cblock cblock;
104 #define DES_KEY_SZ (sizeof(DES_cblock))
131 void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
134 DES_LONG DES_cbc_cksum(const unsigned char *input,DES_cblock *output,
139 long length,DES_key_schedule *schedule,DES_cblock *ivec,
142 long length,DES_key_schedule *schedule,DES_cblock *ivec,
145 long length,DES_key_schedule *schedule,DES_cblock *ivec,
148 long length,DES_key_schedule *schedule,DES_cblock *ivec,
150 void DES_ecb_encrypt(const_DES_cblock *input,DES_cblock *output,
[all …]
Dcbc3_enc.c62 void DES_3cbc_encrypt(DES_cblock *input, DES_cblock *output, long length, in DES_3cbc_encrypt()
63 DES_key_schedule ks1, DES_key_schedule ks2, DES_cblock *iv1, in DES_3cbc_encrypt()
64 DES_cblock *iv2, int enc) in DES_3cbc_encrypt()
68 DES_cblock niv1,niv2; in DES_3cbc_encrypt()
74 if (length >= sizeof(DES_cblock)) in DES_3cbc_encrypt()
75 memcpy(niv1,output[off],sizeof(DES_cblock)); in DES_3cbc_encrypt()
80 if (length >= sizeof(DES_cblock)) in DES_3cbc_encrypt()
81 memcpy(niv2,output[off],sizeof(DES_cblock)); in DES_3cbc_encrypt()
85 if (length >= sizeof(DES_cblock)) in DES_3cbc_encrypt()
86 memcpy(niv2,input[off],sizeof(DES_cblock)); in DES_3cbc_encrypt()
[all …]
Ddes.c100 void DES_3cbc_encrypt(DES_cblock *input,DES_cblock *output,long length,
102 DES_cblock *ivec1,DES_cblock *ivec2,int enc);
123 DES_cblock cksum={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
368 DES_cblock iv,iv2; in doencryption()
371 DES_cblock kk,k2; in doencryption()
510 (DES_cblock *)&(buf[i]), in doencryption()
511 (DES_cblock *)&(obuf[i]), in doencryption()
516 (DES_cblock *)&(buf[i]), in doencryption()
517 (DES_cblock *)&(obuf[i]), in doencryption()
526 (DES_cblock *)buf,(DES_cblock *)obuf, in doencryption()
[all …]
Dread2pwd.c117 int DES_read_password(DES_cblock *key, const char *prompt, int verify) in DES_read_password()
129 int DES_read_2passwords(DES_cblock *key1, DES_cblock *key2, const char *prompt, in DES_read_2passwords()
Dofb64ede.c68 DES_key_schedule *k3, DES_cblock *ivec, in DES_ede3_ofb64_encrypt()
74 DES_cblock d; in DES_ede3_ofb64_encrypt()
121 DES_key_schedule k2, DES_cblock (*ivec), int *num) in DES_ede2_ofb64_encrypt()
Ddes_old2.c79 void _ossl_096_des_random_seed(DES_cblock *key) in _ossl_096_des_random_seed()
81 RAND_seed(key, sizeof(DES_cblock)); in _ossl_096_des_random_seed()
Drand_key.c59 int DES_random_key(DES_cblock *ret) in DES_random_key()
63 if (RAND_bytes((unsigned char *)ret, sizeof(DES_cblock)) != 1) in DES_random_key()
Dstr2key.c62 void DES_string_to_key(const char *str, DES_cblock *key) in DES_string_to_key()
102 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys()
Dset_key.c90 void DES_set_odd_parity(DES_cblock *key) in DES_set_odd_parity()
120 static const DES_cblock weak_keys[NUM_WEAK_KEY]={
151 if (memcmp(weak_keys[i],key,sizeof(DES_cblock)) == 0) return(1); in DES_is_weak_key()
Dofb64enc.c67 DES_key_schedule *schedule, DES_cblock *ivec, int *num) in DES_ofb64_encrypt()
72 DES_cblock d; in DES_ofb64_encrypt()
Dqud_cksm.c76 DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], in DES_quad_cksum()
77 long length, int out_count, DES_cblock *seed) in DES_quad_cksum()
Dcfb64ede.c70 DES_cblock *ivec, int *num, int enc) in DES_ede3_cfb64_encrypt()
138 DES_key_schedule ks1, DES_key_schedule ks2, DES_cblock (*ivec), in DES_ede2_cfb64_encrypt()
152 DES_cblock *ivec,int enc) in DES_ede3_cfb_encrypt()
Dspeed.c183 static DES_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}; in main()
184 static DES_cblock key2={0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12}; in main()
185 static DES_cblock key3={0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12,0x34}; in main()
Dncbc_enc.c68 DES_key_schedule *_schedule, DES_cblock *ivec, int enc) in DES_cbc_encrypt()
71 DES_key_schedule *_schedule, DES_cblock *ivec, int enc) in DES_cbc_encrypt()
Dede_cbcm_enc.c78 DES_key_schedule *ks3, DES_cblock *ivec1, DES_cblock *ivec2, in DES_ede3_cbcm_encrypt()
Dxcbc_enc.c84 DES_cblock *out_white)
114 DES_cblock *ivec, const_DES_cblock *inw, in DES_xcbc_encrypt()
Drpw.c64 DES_cblock k,k1; in main()
Decb3_enc.c61 void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, in DES_ecb3_encrypt()
Drpc_enc.c74 (DES_cblock *)desp->UDES.UDES_buf,&ks, in _des_crypt()
/external/openssl/include/openssl/
Ddes.h78 typedef unsigned char DES_cblock[8]; typedef
87 DES_cblock cblock;
104 #define DES_KEY_SZ (sizeof(DES_cblock))
131 void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
134 DES_LONG DES_cbc_cksum(const unsigned char *input,DES_cblock *output,
139 long length,DES_key_schedule *schedule,DES_cblock *ivec,
142 long length,DES_key_schedule *schedule,DES_cblock *ivec,
145 long length,DES_key_schedule *schedule,DES_cblock *ivec,
148 long length,DES_key_schedule *schedule,DES_cblock *ivec,
150 void DES_ecb_encrypt(const_DES_cblock *input,DES_cblock *output,
[all …]
/external/openssl/crypto/evp/
De_des.c78 DES_ecb_encrypt((DES_cblock *)(in + i), (DES_cblock *)(out + i), ctx->cipher_data, ctx->encrypt); in des_ecb_cipher()
88 (DES_cblock *)ctx->iv, &ctx->num); in des_ofb_cipher()
95 (DES_cblock *)ctx->iv, &ctx->num); in des_ofb_cipher()
105 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cbc_cipher()
112 (DES_cblock *)ctx->iv, ctx->encrypt); in des_cbc_cipher()
122 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_cfb64_cipher()
129 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_cfb64_cipher()
148 DES_cfb_encrypt(c,d,1,1,ctx->cipher_data,(DES_cblock *)ctx->iv, in des_cfb1_cipher()
168 (DES_cblock *)ctx->iv,ctx->encrypt); in des_cfb8_cipher()
175 (DES_cblock *)ctx->iv,ctx->encrypt); in des_cfb8_cipher()
[all …]
De_des3.c94 (DES_cblock *)(out + i), in des_ede_ecb_cipher()
108 (DES_cblock *)ctx->iv, &ctx->num); in des_ede_ofb_cipher()
116 (DES_cblock *)ctx->iv, &ctx->num); in des_ede_ofb_cipher()
139 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede_cbc_cipher()
147 (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede_cbc_cipher()
158 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_ede_cfb64_cipher()
166 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt); in des_ede_cfb64_cipher()
183 (DES_cblock *)ctx->iv,ctx->encrypt); in des_ede3_cfb1_cipher()
198 (DES_cblock *)ctx->iv,ctx->encrypt); in des_ede3_cfb8_cipher()
206 (DES_cblock *)ctx->iv,ctx->encrypt); in des_ede3_cfb8_cipher()
[all …]
De_xcbc_d.c78 DES_cblock inw;
79 DES_cblock outw;
107 DES_cblock *deskey = (DES_cblock *)key; in desx_cbc_init_key()
122 (DES_cblock *)&(ctx->iv[0]), in desx_cbc_cipher()
132 (DES_cblock *)&(ctx->iv[0]), in desx_cbc_cipher()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_openssl.c30 #define DES_cblock des_cblock macro
65 DES_ecb_encrypt((DES_cblock *) clear, (DES_cblock *) cypher, &ks, in des_encrypt()
/external/openssl/crypto/mdc2/
Dmdc2.h79 DES_cblock h,hh;

12