Lines Matching refs:i
314 int i; in mbedtls_des_key_set_parity() local
316 for (i = 0; i < MBEDTLS_DES_KEY_SIZE; i++) { in mbedtls_des_key_set_parity()
317 key[i] = odd_parity_table[key[i] / 2]; in mbedtls_des_key_set_parity()
326 int i; in mbedtls_des_key_check_key_parity() local
328 for (i = 0; i < MBEDTLS_DES_KEY_SIZE; i++) { in mbedtls_des_key_check_key_parity()
329 if (key[i] != odd_parity_table[key[i] / 2]) { in mbedtls_des_key_check_key_parity()
383 int i; in mbedtls_des_key_check_weak() local
385 for (i = 0; i < WEAK_KEY_COUNT; i++) { in mbedtls_des_key_check_weak()
386 if (memcmp(weak_key_table[i], key, MBEDTLS_DES_KEY_SIZE) == 0) { in mbedtls_des_key_check_weak()
397 int i; in mbedtls_des_setkey() local
425 for (i = 0; i < 16; i++) { in mbedtls_des_setkey()
426 if (i < 2 || i == 8 || i == 15) { in mbedtls_des_setkey()
476 int i; in mbedtls_des_setkey_dec() local
480 for (i = 0; i < 16; i += 2) { in mbedtls_des_setkey_dec()
481 SWAP(ctx->sk[i], ctx->sk[30 - i]); in mbedtls_des_setkey_dec()
482 SWAP(ctx->sk[i + 1], ctx->sk[31 - i]); in mbedtls_des_setkey_dec()
492 int i; in des3_set2key() local
497 for (i = 0; i < 32; i += 2) { in des3_set2key()
498 dsk[i] = esk[30 - i]; in des3_set2key()
499 dsk[i + 1] = esk[31 - i]; in des3_set2key()
501 esk[i + 32] = dsk[62 - i]; in des3_set2key()
502 esk[i + 33] = dsk[63 - i]; in des3_set2key()
504 esk[i + 64] = esk[i]; in des3_set2key()
505 esk[i + 65] = esk[i + 1]; in des3_set2key()
507 dsk[i + 64] = dsk[i]; in des3_set2key()
508 dsk[i + 65] = dsk[i + 1]; in des3_set2key()
544 int i; in des3_set3key() local
550 for (i = 0; i < 32; i += 2) { in des3_set3key()
551 dsk[i] = esk[94 - i]; in des3_set3key()
552 dsk[i + 1] = esk[95 - i]; in des3_set3key()
554 esk[i + 32] = dsk[62 - i]; in des3_set3key()
555 esk[i + 33] = dsk[63 - i]; in des3_set3key()
557 dsk[i + 64] = esk[30 - i]; in des3_set3key()
558 dsk[i + 65] = esk[31 - i]; in des3_set3key()
598 int i; in mbedtls_des_crypt_ecb() local
608 for (i = 0; i < 8; i++) { in mbedtls_des_crypt_ecb()
686 int i; in mbedtls_des3_crypt_ecb() local
696 for (i = 0; i < 8; i++) { in mbedtls_des3_crypt_ecb()
701 for (i = 0; i < 8; i++) { in mbedtls_des3_crypt_ecb()
706 for (i = 0; i < 8; i++) { in mbedtls_des3_crypt_ecb()
836 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local
850 for (i = 0; i < 6; i++) { in mbedtls_des_self_test()
851 u = i >> 1; in mbedtls_des_self_test()
852 v = i & 1; in mbedtls_des_self_test()
862 switch (i) { in mbedtls_des_self_test()
930 for (i = 0; i < 6; i++) { in mbedtls_des_self_test()
931 u = i >> 1; in mbedtls_des_self_test()
932 v = i & 1; in mbedtls_des_self_test()
944 switch (i) { in mbedtls_des_self_test()