Lines Matching refs:operation

256     dst->operation = src->operation;  in mbedtls_cipher_clone()
345 const mbedtls_operation_t operation) in mbedtls_cipher_setkey() argument
347 if (operation != MBEDTLS_ENCRYPT && operation != MBEDTLS_DECRYPT) { in mbedtls_cipher_setkey()
355 MBEDTLS_DECRYPT == operation) { in mbedtls_cipher_setkey()
413 ctx->operation = operation; in mbedtls_cipher_setkey()
424 ctx->operation = operation; in mbedtls_cipher_setkey()
430 if (MBEDTLS_ENCRYPT == operation || in mbedtls_cipher_setkey()
438 if (MBEDTLS_DECRYPT == operation) { in mbedtls_cipher_setkey()
443 if (operation == MBEDTLS_ENCRYPT || operation == MBEDTLS_DECRYPT) { in mbedtls_cipher_setkey()
512 ctx->operation, in mbedtls_cipher_set_iv()
529 if (ctx->operation == MBEDTLS_DECRYPT) { in mbedtls_cipher_set_iv()
531 } else if (ctx->operation == MBEDTLS_ENCRYPT) { in mbedtls_cipher_set_iv()
599 mode = (ctx->operation == MBEDTLS_ENCRYPT) in mbedtls_cipher_update_ad()
652 ctx->operation, input, in mbedtls_cipher_update()
696 if ((ctx->operation == MBEDTLS_DECRYPT && NULL != ctx->add_padding && in mbedtls_cipher_update()
698 (ctx->operation == MBEDTLS_DECRYPT && NULL == ctx->add_padding && in mbedtls_cipher_update()
700 (ctx->operation == MBEDTLS_ENCRYPT && in mbedtls_cipher_update()
719 ctx->operation, in mbedtls_cipher_update()
745 ctx->operation == MBEDTLS_DECRYPT && in mbedtls_cipher_update()
762 ctx->operation, in mbedtls_cipher_update()
779 ctx->operation, ilen, in mbedtls_cipher_update()
833 ctx->operation, in mbedtls_cipher_update()
1114 if (MBEDTLS_ENCRYPT == ctx->operation) { in mbedtls_cipher_finish()
1140 ctx->operation, in mbedtls_cipher_finish()
1150 if (MBEDTLS_DECRYPT == ctx->operation) { in mbedtls_cipher_finish()
1234 if (MBEDTLS_ENCRYPT != ctx->operation) { in mbedtls_cipher_write_tag()
1283 if (MBEDTLS_DECRYPT != ctx->operation) { in mbedtls_cipher_check_tag()
1376 if (ctx->operation == MBEDTLS_DECRYPT) { in mbedtls_cipher_crypt()
1380 } else if (ctx->operation == MBEDTLS_ENCRYPT) { in mbedtls_cipher_crypt()