| /lib/zlib/ |
| A D | inflate.c | 19 state->mode = HEAD; in inflateReset() 353 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ in inflate() 359 switch (state->mode) { in inflate() 422 state->mode = TIME; in inflate() 430 state->mode = OS; in inflate() 477 state->mode = NAME; in inflate() 520 state->mode = HCRC; in inflate() 537 state->mode = TYPE; in inflate() 735 state->mode = LEN; in inflate() 867 state->mode = LEN; in inflate() [all …]
|
| /lib/mbedtls/external/mbedtls/library/ |
| A D | cipher.c | 120 const mbedtls_cipher_mode_t mode) in mbedtls_cipher_info_from_values() argument 127 def->info->mode == mode) { in mbedtls_cipher_info_from_values() 178 mbedtls_cipher_mode_t mode, size_t taglen) in mbedtls_psa_translate_cipher_mode() argument 180 switch (mode) { in mbedtls_psa_translate_cipher_mode() 557 mbedtls_chachapoly_mode_t mode; in mbedtls_cipher_update_ad() local 559 mode = (ctx->operation == MBEDTLS_ENCRYPT) in mbedtls_cipher_update_ad() 565 mode); in mbedtls_cipher_update_ad() 1132 if (mode != MBEDTLS_PADDING_NONE) { in mbedtls_cipher_set_padding_mode() 1140 switch (mode) { in mbedtls_cipher_set_padding_mode() 1596 mbedtls_nist_kw_mode_t mode = in mbedtls_cipher_auth_encrypt_ext() local [all …]
|
| A D | psa_crypto_cipher.c | 130 mbedtls_cipher_mode_t *mode, in mbedtls_cipher_values_from_psa() argument 152 *mode = MBEDTLS_MODE_CTR; in mbedtls_cipher_values_from_psa() 157 *mode = MBEDTLS_MODE_CFB; in mbedtls_cipher_values_from_psa() 162 *mode = MBEDTLS_MODE_OFB; in mbedtls_cipher_values_from_psa() 167 *mode = MBEDTLS_MODE_ECB; in mbedtls_cipher_values_from_psa() 172 *mode = MBEDTLS_MODE_CBC; in mbedtls_cipher_values_from_psa() 177 *mode = MBEDTLS_MODE_CBC; in mbedtls_cipher_values_from_psa() 187 *mode = MBEDTLS_MODE_CCM; in mbedtls_cipher_values_from_psa() 192 *mode = MBEDTLS_MODE_GCM; in mbedtls_cipher_values_from_psa() 204 *mode = MBEDTLS_MODE_ECB; in mbedtls_cipher_values_from_psa() [all …]
|
| A D | aes.c | 1029 if (mode != MBEDTLS_AES_ENCRYPT && mode != MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_ecb() 1082 if (mode != MBEDTLS_AES_ENCRYPT && mode != MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_cbc() 1203 if (mode != MBEDTLS_AES_ENCRYPT && mode != MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_xts() 1304 if (mode != MBEDTLS_AES_ENCRYPT && mode != MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_cfb128() 1365 if (mode != MBEDTLS_AES_ENCRYPT && mode != MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_cfb8() 1891 mode = i & 1; in mbedtls_aes_self_test() 1964 mode = i & 1; in mbedtls_aes_self_test() 2038 mode = i & 1; in mbedtls_aes_self_test() 2102 mode = i & 1; in mbedtls_aes_self_test() 2165 mode = i & 1; in mbedtls_aes_self_test() [all …]
|
| A D | camellia.c | 454 int mode, in mbedtls_camellia_crypt_ecb() argument 460 if (mode != MBEDTLS_CAMELLIA_ENCRYPT && mode != MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_crypt_ecb() 464 ((void) mode); in mbedtls_camellia_crypt_ecb() 520 int mode, in mbedtls_camellia_crypt_cbc() argument 527 if (mode != MBEDTLS_CAMELLIA_ENCRYPT && mode != MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_crypt_cbc() 535 if (mode == MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_crypt_cbc() 538 mbedtls_camellia_crypt_ecb(ctx, mode, input, output); in mbedtls_camellia_crypt_cbc() 552 mbedtls_camellia_crypt_ecb(ctx, mode, output, output); in mbedtls_camellia_crypt_cbc() 570 int mode, in mbedtls_camellia_crypt_cfb128() argument 579 if (mode != MBEDTLS_CAMELLIA_ENCRYPT && mode != MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_crypt_cfb128() [all …]
|
| A D | chachapoly.c | 77 ctx->mode = MBEDTLS_CHACHAPOLY_ENCRYPT; in mbedtls_chachapoly_init() 91 ctx->mode = MBEDTLS_CHACHAPOLY_ENCRYPT; in mbedtls_chachapoly_free() 106 mbedtls_chachapoly_mode_t mode) in mbedtls_chachapoly_starts() argument 135 ctx->mode = mode; in mbedtls_chachapoly_starts() 179 if (ctx->mode == MBEDTLS_CHACHAPOLY_ENCRYPT) { in mbedtls_chachapoly_update() 245 mbedtls_chachapoly_mode_t mode, in chachapoly_crypt_and_tag() argument 256 ret = mbedtls_chachapoly_starts(ctx, nonce, mode); in chachapoly_crypt_and_tag()
|
| A D | padlock.c | 58 int mode, in mbedtls_padlock_xcryptecb() argument 78 *ctrl = 0x80 | ctx->nr | ((ctx->nr + (mode^1) - 10) << 9); in mbedtls_padlock_xcryptecb() 104 int mode, in mbedtls_padlock_xcryptcbc() argument 129 *ctrl = 0x80 | ctx->nr | ((ctx->nr + (mode ^ 1) - 10) << 9); in mbedtls_padlock_xcryptcbc()
|
| A D | ccm.c | 176 if (ctx->mode == MBEDTLS_CCM_STAR_ENCRYPT || ctx->mode == MBEDTLS_CCM_STAR_DECRYPT) { in ccm_calculate_first_block_if_ready() 223 int mode, in mbedtls_ccm_starts() argument 232 ctx->mode = mode; in mbedtls_ccm_starts() 401 if (ctx->mode == MBEDTLS_CCM_ENCRYPT || \ in mbedtls_ccm_update() 402 ctx->mode == MBEDTLS_CCM_STAR_ENCRYPT) { in mbedtls_ccm_update() 423 if (ctx->mode == MBEDTLS_CCM_DECRYPT || \ in mbedtls_ccm_update() 424 ctx->mode == MBEDTLS_CCM_STAR_DECRYPT) { in mbedtls_ccm_update() 512 static int ccm_auth_crypt(mbedtls_ccm_context *ctx, int mode, size_t length, in ccm_auth_crypt() argument 521 if ((ret = mbedtls_ccm_starts(ctx, mode, iv, iv_len)) != 0) { in ccm_auth_crypt() 585 static int ccm_auth_decrypt(mbedtls_ccm_context *ctx, int mode, size_t length, in ccm_auth_decrypt() argument [all …]
|
| A D | pkcs12.c | 123 int mbedtls_pkcs12_pbe_ext(mbedtls_asn1_buf *pbe_params, int mode, 132 int mbedtls_pkcs12_pbe(mbedtls_asn1_buf *pbe_params, int mode, in mbedtls_pkcs12_pbe() argument 144 return mbedtls_pkcs12_pbe_ext(pbe_params, mode, cipher_type, md_type, in mbedtls_pkcs12_pbe() 150 int mbedtls_pkcs12_pbe_ext(mbedtls_asn1_buf *pbe_params, int mode, in mbedtls_pkcs12_pbe_ext() argument 177 if (mode == MBEDTLS_PKCS12_PBE_DECRYPT) { in mbedtls_pkcs12_pbe_ext() 183 if (mode == MBEDTLS_PKCS12_PBE_ENCRYPT) { in mbedtls_pkcs12_pbe_ext() 204 (mbedtls_operation_t) mode)) != 0) { in mbedtls_pkcs12_pbe_ext() 218 if (mode == MBEDTLS_PKCS12_PBE_DECRYPT) { in mbedtls_pkcs12_pbe_ext()
|
| A D | pkcs5.c | 105 int mbedtls_pkcs5_pbes2_ext(const mbedtls_asn1_buf *pbe_params, int mode, 113 int mbedtls_pkcs5_pbes2(const mbedtls_asn1_buf *pbe_params, int mode, in mbedtls_pkcs5_pbes2() argument 124 return mbedtls_pkcs5_pbes2_ext(pbe_params, mode, pwd, pwdlen, data, in mbedtls_pkcs5_pbes2() 129 int mbedtls_pkcs5_pbes2_ext(const mbedtls_asn1_buf *pbe_params, int mode, in mbedtls_pkcs5_pbes2_ext() argument 202 if (mode == MBEDTLS_PKCS5_DECRYPT) { in mbedtls_pkcs5_pbes2_ext() 208 if (mode == MBEDTLS_PKCS5_ENCRYPT) { in mbedtls_pkcs5_pbes2_ext() 230 (mbedtls_operation_t) mode)) != 0) { in mbedtls_pkcs5_pbes2_ext() 247 if (mode == MBEDTLS_DECRYPT) { in mbedtls_pkcs5_pbes2_ext()
|
| A D | cipher_wrap.h | 79 int (*ecb_func)(void *ctx, mbedtls_operation_t mode, 84 int (*cbc_func)(void *ctx, mbedtls_operation_t mode, size_t length, 91 int (*cfb_func)(void *ctx, mbedtls_operation_t mode, size_t length, size_t *iv_off, 113 int (*xts_func)(void *ctx, mbedtls_operation_t mode, size_t length,
|
| /lib/lwip/lwip/src/apps/tftp/ |
| A D | tftp.c | 86 enum tftp_transfer_mode mode; member 122 tftp_req.mode = 0; in clear_req() 169 size_t mode_length = strlen(mode)+1; in send_request() 380 char mode[TFTP_MAX_MODE_LEN + 1]; in tftp_recv() local 617 if (mode == LWIP_TFTP_MODE_SERVER) { in tftp_init_common() 631 tftp_state.tftp_mode = mode; in tftp_init_common() 682 mode_to_string(enum tftp_transfer_mode mode) in mode_to_string() argument 684 if (mode == TFTP_MODE_OCTET) { in mode_to_string() 687 if (mode == TFTP_MODE_NETASCII) { in mode_to_string() 690 if (mode == TFTP_MODE_BINARY) { in mode_to_string() [all …]
|
| /lib/lwip/lwip/contrib/apps/LwipMibCompiler/Mibs/IANA/ |
| A D | IANA-MAU-MIB | 359 -- duplex mode 361 -- duplex mode 495 DESCRIPTION "UTP MAU, half duplex mode" 501 DESCRIPTION "UTP MAU, full duplex mode" 507 DESCRIPTION "async fiber MAU, half duplex mode" 577 mode" 584 mode" 591 duplex mode" 598 duplex mode" 605 duplex mode" [all …]
|
| /lib/efi_selftest/ |
| A D | efi_selftest_snp.c | 141 &net->mode->current_address, ARP_HLEN); in send_dhcp_discover() 215 if (!net->mode) { in setup() 219 if (net->mode->hwaddr_size != ARP_HLEN) { in setup() 221 net->mode->hwaddr_size, ARP_HLEN); in setup() 231 if (net->mode->state == EFI_NETWORK_INITIALIZED) { in setup() 241 if (net->mode->state == EFI_NETWORK_STARTED) { in setup() 259 if (net->mode->state != EFI_NETWORK_STARTED) { in setup() 317 if (net->mode && net->mode->media_present_supported && in execute() 318 !net->mode->media_present) { in execute() 458 if (net->mode->state != EFI_NETWORK_STARTED) { in teardown() [all …]
|
| A D | efi_selftest_textoutput.c | 95 col = con_out->mode->cursor_column; in execute() 101 if (con_out->mode->cursor_column != col) { in execute() 110 if (con_out->mode->cursor_column) { in execute() 119 if (con_out->mode->cursor_column != 3) { in execute() 128 if (con_out->mode->cursor_column != 2) { in execute() 137 if (con_out->mode->cursor_column) { in execute() 146 if (con_out->mode->cursor_column) { in execute() 153 } else if (con_out->mode->cursor_column != 2) { in execute()
|
| /lib/efi_loader/ |
| A D | efi_var_common.c | 266 mode); in efi_transfer_secure_state() 268 if (mode == EFI_MODE_DEPLOYED) { in efi_transfer_secure_state() 272 } else if (mode == EFI_MODE_AUDIT) { in efi_transfer_secure_state() 283 } else if (mode == EFI_MODE_USER) { in efi_transfer_secure_state() 287 } else if (mode == EFI_MODE_SETUP) { in efi_transfer_secure_state() 295 efi_secure_mode = mode; in efi_transfer_secure_state() 307 enum efi_secure_mode mode; in efi_init_secure_state() local 334 mode = EFI_MODE_DEPLOYED; in efi_init_secure_state() 336 mode = EFI_MODE_AUDIT; in efi_init_secure_state() 338 mode = EFI_MODE_SETUP; in efi_init_secure_state() [all …]
|
| A D | efi_console.c | 84 .mode = 0, 177 struct cout_mode *mode = &efi_cout_modes[con->mode]; in efi_cout_output_string() local 231 if (con->cursor_column >= mode->columns) { in efi_cout_output_string() 239 if (con->cursor_row >= mode->rows && con->cursor_row) in efi_cout_output_string() 280 if (!mode->present) in cout_mode_matches() 283 return (mode->rows == rows) && (mode->columns == cols); in cout_mode_matches() 397 efi_con_mode.mode = EFI_COUT_MODE_2; in efi_setup_console_size() 553 efi_con_mode.mode = mode_number; in efi_cout_set_mode() 603 struct cout_mode *mode = &efi_cout_modes[con->mode]; in efi_cout_set_cursor_position() local 612 if (row >= mode->rows || column >= mode->columns) { in efi_cout_set_cursor_position() [all …]
|
| /lib/efi_client/ |
| A D | efi_stub.c | 308 struct efi_entry_gopmode mode; in efi_main() local 338 mode.fb_base = gop->mode->fb_base; in efi_main() 339 mode.fb_size = gop->mode->fb_size; in efi_main() 340 mode.info_size = gop->mode->info_size; in efi_main() 341 add_entry_addr(priv, EFIET_GOP_MODE, &mode, sizeof(mode), in efi_main() 342 gop->mode->info, in efi_main()
|
| /lib/mbedtls/external/mbedtls/programs/psa/ |
| A D | key_ladder_demo.c | 524 static psa_status_t run(enum program_mode mode, in run() argument 538 if (mode == MODE_GENERATE) { in run() 552 switch (mode) { in run() 615 enum program_mode mode; in main() local 655 mode = MODE_GENERATE; in main() 657 mode = MODE_SAVE; in main() 659 mode = MODE_UNWRAP; in main() 661 mode = MODE_WRAP; in main() 668 (mode == MODE_WRAP || mode == MODE_UNWRAP)) { in main() 673 (mode == MODE_SAVE || mode == MODE_WRAP || mode == MODE_UNWRAP)) { in main() [all …]
|
| /lib/mbedtls/external/mbedtls/include/mbedtls/ |
| A D | aes.h | 248 int mode, 296 int mode, 341 int mode, 390 int mode, 435 int mode,
|
| /lib/ |
| A D | semihosting.c | 62 long smh_open(const char *fname, enum smh_open_mode mode) in smh_open() argument 67 unsigned long mode; in smh_open() member 71 debug("%s: file \'%s\', mode \'%u\'\n", __func__, fname, mode); in smh_open() 75 open.mode = mode; in smh_open()
|
| /lib/mbedtls/external/mbedtls/tests/suites/ |
| A D | test_suite_ccm.function | 8 int mode, 27 TEST_EQUAL(0, mbedtls_ccm_starts(ctx, mode, iv->x, iv->len)); 505 void mbedtls_ccm_skip_ad(int cipher_id, int mode, 545 void mbedtls_ccm_skip_update(int cipher_id, int mode, 575 void mbedtls_ccm_overflow_ad(int cipher_id, int mode, 598 void mbedtls_ccm_unexpected_ad(int cipher_id, int mode, 620 void mbedtls_ccm_unexpected_text(int cipher_id, int mode, 650 void mbedtls_ccm_incomplete_ad(int cipher_id, int mode, 733 void mbedtls_ccm_overflow_update(int cipher_id, int mode, 763 void mbedtls_ccm_incomplete_update(int cipher_id, int mode, [all …]
|
| A D | test_suite_nist_kw.function | 146 void nist_kw_plaintext_lengths(int in_len, int out_len, int mode, int res) 171 TEST_ASSERT(mbedtls_nist_kw_wrap(&ctx, mode, plaintext, in_len, 175 if (mode == MBEDTLS_KW_MODE_KWP) { 193 void nist_kw_ciphertext_lengths(int in_len, int out_len, int mode, int res) 217 unwrap_ret = mbedtls_nist_kw_unwrap(&ctx, mode, ciphertext, in_len, 237 void mbedtls_nist_kw_wrap(int cipher_id, int mode, data_t *key, data_t *msg, 252 TEST_ASSERT(mbedtls_nist_kw_wrap(&ctx, mode, msg->x, msg->len, 271 void mbedtls_nist_kw_unwrap(int cipher_id, int mode, data_t *key, data_t *msg, 286 TEST_ASSERT(mbedtls_nist_kw_unwrap(&ctx, mode, msg->x, msg->len,
|
| /lib/mbedtls/external/mbedtls/tests/data_files/ |
| A D | test_certs.h.jinja2 | 11 {% for mode, name, value in macros %} 12 {% if mode == 'string' %} 23 {% if mode == 'binary' %} 38 {% if mode == 'password' %}
|
| /lib/mbedtls/external/mbedtls/programs/pkey/ |
| A D | key_app_writer.c | 85 int mode; /* the mode to run the application in */ member 292 opt.mode = DFL_MODE; in main() 307 opt.mode = MODE_PRIVATE; in main() 309 opt.mode = MODE_PUBLIC; in main() 341 if (opt.mode == MODE_NONE && opt.output_mode != OUTPUT_MODE_NONE) { in main() 346 if (opt.mode == MODE_PUBLIC && opt.output_mode == OUTPUT_MODE_PRIVATE) { in main() 351 if (opt.mode == MODE_PRIVATE) { in main() 411 } else if (opt.mode == MODE_PUBLIC) { in main()
|