Home
last modified time | relevance | path

Searched refs:MBEDTLS_DES_KEY_SIZE (Results 1 – 3 of 3) sorted by relevance

/third_party/mbedtls/include/mbedtls/
Ddes.h43 #define MBEDTLS_DES_KEY_SIZE 8 macro
137 void mbedtls_des_key_set_parity(unsigned char key[MBEDTLS_DES_KEY_SIZE]);
154 int mbedtls_des_key_check_key_parity(const unsigned char key[MBEDTLS_DES_KEY_SIZE]);
168 int mbedtls_des_key_check_weak(const unsigned char key[MBEDTLS_DES_KEY_SIZE]);
183 int mbedtls_des_setkey_enc(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]);
198 int mbedtls_des_setkey_dec(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]);
214 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2]);
230 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2]);
246 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3]);
262 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3]);
[all …]
/third_party/mbedtls/library/
Ddes.c324 void mbedtls_des_key_set_parity(unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_key_set_parity() argument
328 for (i = 0; i < MBEDTLS_DES_KEY_SIZE; i++) { in mbedtls_des_key_set_parity()
336 int mbedtls_des_key_check_key_parity(const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_key_check_key_parity() argument
340 for (i = 0; i < MBEDTLS_DES_KEY_SIZE; i++) { in mbedtls_des_key_check_key_parity()
372 static const unsigned char weak_key_table[WEAK_KEY_COUNT][MBEDTLS_DES_KEY_SIZE] =
393 int mbedtls_des_key_check_weak(const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_key_check_weak() argument
398 if (memcmp(weak_key_table[i], key, MBEDTLS_DES_KEY_SIZE) == 0) { in mbedtls_des_key_check_weak()
407 void mbedtls_des_setkey(uint32_t SK[32], const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_setkey() argument
476 int mbedtls_des_setkey_enc(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_setkey_enc() argument
486 int mbedtls_des_setkey_dec(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_setkey_dec() argument
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_des.function236 unsigned char key[MBEDTLS_DES_KEY_SIZE];
239 memset(key, 0, MBEDTLS_DES_KEY_SIZE);