MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / DES_ecb_encrypt

Function DES_ecb_encrypt

extra/yassl/src/ssl.cpp:1176–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174
1175
1176void DES_ecb_encrypt(DES_cblock* input, DES_cblock* output,
1177 DES_key_schedule* key, int enc)
1178{
1179 DES des;
1180
1181 if (enc) {
1182 des.set_encryptKey(*key, 0);
1183 des.encrypt(*output, *input, DES_BLOCK);
1184 }
1185 else {
1186 des.set_decryptKey(*key, 0);
1187 des.decrypt(*output, *input, DES_BLOCK);
1188 }
1189}
1190
1191
1192void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX* ctx, void* userdata)

Callers

nothing calls this directly

Calls 4

set_encryptKeyMethod · 0.45
encryptMethod · 0.45
set_decryptKeyMethod · 0.45
decryptMethod · 0.45

Tested by

no test coverage detected