Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 173) sorted by relevance

1234567

/optee_os-3.20.0/core/crypto/
A Daes-cts.c37 TEE_OperationMode mode; member
57 c->mode = mode; in cts_init()
106 mode, last_block, data, len, dst); in cbc_cts_update()
116 if (mode == TEE_MODE_ENCRYPT) { in cbc_cts_update()
125 mode, 0, data, in cbc_cts_update()
135 mode, 0, tmp_block, block_size, in cbc_cts_update()
142 mode, 0, in cbc_cts_update()
160 TEE_ALG_AES_CBC_NOPAD, mode, in cbc_cts_update()
169 mode, 0, tmp_block, block_size, in cbc_cts_update()
176 mode, 0, data + in cbc_cts_update()
[all …]
/optee_os-3.20.0/core/pta/tests/
A Daes_perf.c98 res = crypto_cipher_init(*ctx, mode, aes_key, key_len, key2, in init_ctx()
102 res = crypto_authenc_init(*ctx, mode, aes_key, key_len, aes_iv, in init_ctx()
116 static TEE_Result update_ae(void *ctx, TEE_OperationMode mode, in update_ae() argument
127 return crypto_cipher_update(ctx, mode, false, src, len, dst); in update_cipher()
134 TEE_Result (*update_func)(void *ctx, TEE_OperationMode mode, in do_update()
148 res = update_func(ctx, mode, in + m * unit_size, in do_update()
154 res = update_func(ctx, mode, in + m * unit_size, in do_update()
169 TEE_OperationMode mode = 0; in core_aes_perf_tests() local
200 mode = TEE_MODE_DECRYPT; in core_aes_perf_tests()
202 mode = TEE_MODE_ENCRYPT; in core_aes_perf_tests()
[all …]
/optee_os-3.20.0/core/drivers/pm/sam/
A Dat91_pm.c52 unsigned int mode = args->a1; in at91_pm_set_suspend_mode() local
63 if (mode > AT91_PM_BACKUP) { in at91_pm_set_suspend_mode()
70 soc_pm.mode = mode; in at91_pm_set_suspend_mode()
77 args->a1 = soc_pm.mode; in at91_pm_get_suspend_mode()
117 *mode |= val & AT91_SHDW_WKUPEN_MASK; in at91_sama5d2_config_shdwc_ws()
169 unsigned int mode = 0; in at91_pm_config_ws_ulp1() local
197 mode |= wsi->pmc_fsmr_bit; in at91_pm_config_ws_ulp1()
207 if (!mode) { in at91_pm_config_ws_ulp1()
304 if (soc_pm.mode >= AT91_PM_ULP0) { in atmel_pm_suspend()
309 if (soc_pm.mode == AT91_PM_ULP1) in atmel_pm_suspend()
[all …]
/optee_os-3.20.0/core/lib/zlib/
A Dinflate.c115 state->mode < HEAD || state->mode > SYNC)
131 state->mode = HEAD;
652 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
658 switch (state->mode) {
735 state->mode = OS;
1060 state->mode = LEN;
1217 state->mode = LEN;
1296 (state->mode == LEN_ || state->mode == COPY_ ? 256 : 0);
1366 state->mode = MEM;
1441 state->mode = SYNC;
[all …]
A Dzutil.h116 # define F_OPEN(name, mode) \ argument
117 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
148 # define fdopen(fd,mode) NULL /* No fdopen() */ argument
175 # define fdopen(fd,mode) NULL /* No fdopen() */ argument
180 # define fdopen(fd,mode) NULL /* No fdopen() */ argument
206 # define F_OPEN(name, mode) fopen((name), (mode)) argument
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Drsa.h629 int mode, size_t ilen,
715 int mode,
768 int mode, size_t *olen,
872 int mode,
932 int mode,
980 int mode,
1099 int mode,
1152 int mode,
1198 int mode,
1254 int mode,
[all …]
A Dpkcs11.h138 int mode, size_t *olen,
163 int mode,
176 int mode, size_t *olen, in mbedtls_ssl_pkcs11_decrypt() argument
180 return mbedtls_pkcs11_decrypt( (mbedtls_pkcs11_context *) ctx, mode, olen, input, output, in mbedtls_ssl_pkcs11_decrypt()
212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument
217 return mbedtls_pkcs11_sign( (mbedtls_pkcs11_context *) ctx, mode, md_alg, in mbedtls_ssl_pkcs11_sign()
A Dcipher_internal.h52 int (*ecb_func)( void *ctx, mbedtls_operation_t mode,
57 int (*cbc_func)( void *ctx, mbedtls_operation_t mode, size_t length,
64 int (*cfb_func)( void *ctx, mbedtls_operation_t mode, size_t length, size_t *iv_off,
86 int (*xts_func)( void *ctx, mbedtls_operation_t mode, size_t length,
A Daes.h270 int mode,
318 int mode,
363 int mode,
412 int mode,
457 int mode,
A Dcamellia.h140 int mode,
174 int mode,
220 int mode,
A Dblowfish.h129 int mode,
163 int mode,
203 int mode,
A Dgcm.h76 int mode; /*!< The operation to perform: member
172 int mode,
245 int mode,
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/base64/
A Dbase64_encode.c24 enum mode { enum
35 const char *codes, unsigned int mode) in s_base64_encode_internal() argument
42 linelen = (mode & ssh) ? 72 : 64; in s_base64_encode_internal()
46 if ((mode & crlf) == lf) { in s_base64_encode_internal()
48 } else if ((mode & crlf) == crlf) { in s_base64_encode_internal()
72 if (mode & cr) *p++ = '\r'; in s_base64_encode_internal()
73 if (mode & lf) *p++ = '\n'; in s_base64_encode_internal()
83 if (mode & pad) { in s_base64_encode_internal()
A Dbase64_decode.c80 const unsigned char *map, int mode) in s_base64_decode_internal() argument
92 if ((in[x] == 0) && (x == (inlen - 1)) && (mode != strict)) { in s_base64_decode_internal()
101 if (mode == strict) { in s_base64_decode_internal()
107 if (mode == insane) { in s_base64_decode_internal()
112 if ((g > 0) && (mode != insane)) { in s_base64_decode_internal()
130 if (((y + g) != 4) && (mode == strict) && (map != map_base64url)) return CRYPT_INVALID_PACKET; in s_base64_decode_internal()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_pad.c14 static int s_padding_padded_length(unsigned long *length, unsigned long mode) in s_padding_padded_length() argument
21 block_length = mode & 0xff; in s_padding_padded_length()
22 padding = mode & LTC_PAD_MASK; in s_padding_padded_length()
80 …ng_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned long mode) in padding_pad() argument
91 if ((err = s_padding_padded_length(&l, mode)) != CRYPT_OK) { in padding_pad()
95 type = mode & LTC_PAD_MASK; in padding_pad()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dblowfish.c211 int mode, in mbedtls_blowfish_crypt_ecb() argument
217 BLOWFISH_VALIDATE_RET( mode == MBEDTLS_BLOWFISH_ENCRYPT || in mbedtls_blowfish_crypt_ecb()
218 mode == MBEDTLS_BLOWFISH_DECRYPT ); in mbedtls_blowfish_crypt_ecb()
225 if( mode == MBEDTLS_BLOWFISH_DECRYPT ) in mbedtls_blowfish_crypt_ecb()
245 int mode, in mbedtls_blowfish_crypt_cbc() argument
254 BLOWFISH_VALIDATE_RET( mode == MBEDTLS_BLOWFISH_ENCRYPT || in mbedtls_blowfish_crypt_cbc()
255 mode == MBEDTLS_BLOWFISH_DECRYPT ); in mbedtls_blowfish_crypt_cbc()
263 if( mode == MBEDTLS_BLOWFISH_DECRYPT ) in mbedtls_blowfish_crypt_cbc()
305 int mode, in mbedtls_blowfish_crypt_cfb64() argument
316 BLOWFISH_VALIDATE_RET( mode == MBEDTLS_BLOWFISH_ENCRYPT || in mbedtls_blowfish_crypt_cfb64()
[all …]
A Dcipher.c131 const mbedtls_cipher_mode_t mode ) in mbedtls_cipher_info_from_values() argument
138 def->info->mode == mode ) in mbedtls_cipher_info_from_values()
377 MBEDTLS_MODE_CTR == ctx->cipher_info->mode ) in mbedtls_cipher_setkey()
497 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_update_ad()
508 mbedtls_chachapoly_mode_t mode; in mbedtls_cipher_update_ad() local
510 mode = ( ctx->operation == MBEDTLS_ENCRYPT ) in mbedtls_cipher_update_ad()
559 if( ctx->cipher_info->mode == MBEDTLS_MODE_ECB ) in mbedtls_cipher_update()
1063 if( mode != MBEDTLS_PADDING_NONE ) in mbedtls_cipher_set_padding_mode()
1070 switch( mode ) in mbedtls_cipher_set_padding_mode()
1590 mbedtls_nist_kw_mode_t mode = ( MBEDTLS_MODE_KW == ctx->cipher_info->mode ) ? in mbedtls_cipher_auth_encrypt_ext() local
[all …]
A Dpadlock.c75 int mode, in mbedtls_padlock_xcryptecb() argument
90 *ctrl = 0x80 | ctx->nr | ( ( ctx->nr + ( mode^1 ) - 10 ) << 9 ); in mbedtls_padlock_xcryptecb()
115 int mode, in mbedtls_padlock_xcryptcbc() argument
137 *ctrl = 0x80 | ctx->nr | ( ( ctx->nr + ( mode ^ 1 ) - 10 ) << 9 ); in mbedtls_padlock_xcryptcbc()
A Drsa.c1147 int mode, in mbedtls_rsa_rsaes_oaep_encrypt() argument
1262 if( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1344 int mode, in mbedtls_rsa_rsaes_oaep_decrypt() argument
1521 ret = ( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
1580 int mode, in rsa_rsassa_pss_sign() argument
1738 int mode, in mbedtls_rsa_rsassa_pss_sign() argument
1890 int mode, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1922 if( mode == MBEDTLS_RSA_PUBLIC ) in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1974 int mode, in mbedtls_rsa_pkcs1_sign() argument
2164 int mode, in mbedtls_rsa_rsassa_pss_verify() argument
[all …]
A Dxtea.c71 int mbedtls_xtea_crypt_ecb( mbedtls_xtea_context *ctx, int mode, in mbedtls_xtea_crypt_ecb() argument
81 if( mode == MBEDTLS_XTEA_ENCRYPT ) in mbedtls_xtea_crypt_ecb()
114 int mbedtls_xtea_crypt_cbc( mbedtls_xtea_context *ctx, int mode, size_t length, in mbedtls_xtea_crypt_cbc() argument
124 if( mode == MBEDTLS_XTEA_DECRYPT ) in mbedtls_xtea_crypt_cbc()
129 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc()
148 mbedtls_xtea_crypt_ecb( ctx, mode, output, output ); in mbedtls_xtea_crypt_cbc()
/optee_os-3.20.0/core/drivers/
A Dstm32_gpio.c104 cfg->mode << (pin << 1)); in set_gpio_cfg()
233 uint32_t mode = 0; in get_pinctrl_from_fdt() local
246 switch (mode) { in get_pinctrl_from_fdt()
248 mode = GPIO_MODE_INPUT; in get_pinctrl_from_fdt()
266 alternate = mode - 1U; in get_pinctrl_from_fdt()
267 mode = GPIO_MODE_ALTERNATE; in get_pinctrl_from_fdt()
270 mode = GPIO_MODE_ANALOG; in get_pinctrl_from_fdt()
273 mode = GPIO_MODE_OUTPUT; in get_pinctrl_from_fdt()
288 ref->active_cfg.mode = mode; in get_pinctrl_from_fdt()
386 return mode == GPIO_MODE_INPUT; in valid_gpio_config()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/omac/
A Domac_done.c21 int err, mode; in omac_done() local
45 mode = 1; in omac_done()
47 mode = 0; in omac_done()
52 omac->block[x] ^= omac->prev[x] ^ omac->Lu[mode][x]; in omac_done()
/optee_os-3.20.0/core/drivers/crypto/se050/glue/
A Di2c.c17 static int i2c_transfer(uint8_t *buffer, int len, enum rpc_i2c_mode mode) in i2c_transfer() argument
22 .mode = mode, in i2c_transfer()
/optee_os-3.20.0/core/arch/arm/kernel/
A Drpc_io_i2c.c37 if (req->mode == RPC_I2C_MODE_WRITE) in rpc_io_i2c_transfer()
40 p[0] = THREAD_PARAM_VALUE(IN, req->mode, req->bus, req->chip); in rpc_io_i2c_transfer()
58 if (req->mode == RPC_I2C_MODE_READ) in rpc_io_i2c_transfer()
/optee_os-3.20.0/core/include/dt-bindings/pinctrl/
A Dstm32-pinfunc.h34 #define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode)) argument

Completed in 33 milliseconds

1234567