Lines Matching refs:cipher_ctx

91     mbedtls_cipher_context_t cipher_ctx;  in main()  local
102 mbedtls_cipher_init( &cipher_ctx ); in main()
175 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info) ) != 0 ) in main()
308 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
314 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
319 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
330 for( offset = 0; offset < filesize; offset += mbedtls_cipher_get_block_size( &cipher_ctx ) ) in main()
332 … ilen = ( (unsigned int) filesize - offset > mbedtls_cipher_get_block_size( &cipher_ctx ) ) ? in main()
333 mbedtls_cipher_get_block_size( &cipher_ctx ) : (unsigned int) ( filesize - offset ); in main()
341 if( mbedtls_cipher_update( &cipher_ctx, buffer, ilen, output, &olen ) != 0 ) in main()
356 if( mbedtls_cipher_finish( &cipher_ctx, output, &olen ) != 0 ) in main()
398 if( mbedtls_cipher_get_block_size( &cipher_ctx ) == 0 ) in main()
409 mbedtls_cipher_get_block_size( &cipher_ctx ) ) != 0 ) in main()
412 mbedtls_cipher_get_block_size( &cipher_ctx )); in main()
449 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
456 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
462 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
473 for( offset = 0; offset < filesize; offset += mbedtls_cipher_get_block_size( &cipher_ctx ) ) in main()
475 … ilen = ( (unsigned int) filesize - offset > mbedtls_cipher_get_block_size( &cipher_ctx ) ) ? in main()
476 mbedtls_cipher_get_block_size( &cipher_ctx ) : (unsigned int) ( filesize - offset ); in main()
481 mbedtls_cipher_get_block_size( &cipher_ctx ) ); in main()
486 if( mbedtls_cipher_update( &cipher_ctx, buffer, ilen, output, in main()
526 mbedtls_cipher_finish( &cipher_ctx, output, &olen ); in main()
546 mbedtls_cipher_free( &cipher_ctx ); in main()