Experimental report on basic experiment of information Security system Design (group)

Source: Internet
Author: User

Group members: 20135310 Chen Chaojan 20135305 Liao

I. Purpose of the experiment

    • Mastering the method of writing the program
    • Achieve the solidification of common algorithms in cryptography

Two. Experimental content

Select a common grouping algorithm or an asymmetric algorithm implementation, and debug in the arm development environment, burn write:

    • Read this experiment program source code (PTHREAD.C), learning the use of terminal I/O functions, learning to apply multithreading programming to the reception and transmission of the serial port program
    • Enter the/arm2410cl/exp/basic/02_pthread directory, run make generate Pthread program, use NFS to connect to the development host to run the experiment

Three. Read the code and compile

    1. Set up the experimental platform, the step with the experiment one (after the experimental platform is built, continue to use)
    2. Compiling the code in the virtual machine, generating the executable file
    3. Copy the experiment code to a shared folder
    4. Run in the HyperTerminal window./pthread
    5. Compiling multithreaded code in a virtual machine

      To the HyperTerminal window, enter the 03_tty directory and run the term

      Error/dev/ttys0:no such file or directory

      Workaround:

      [/mnt/yaffs]cd/dev

      [/dev] ln–sf/dev/tts/0 ttyS0 (note letter case, number 0 or 1)

      Run results

Four. The problems encountered in the experiment and the solving methods

    • Problems when compiling multithreaded code (forget it)

    • Solve:

      Check discovery: Add a space after the TTY in [/dev] ln–sf/dev/tts/0 ttyS0, after modification: [/dev]rm ttys0 [/dev] ln–s tty0 ttyS0, you can continue to execute

Five. Experimental experience

This experiment understand the basic principle of multi-thread program design, learn the use of Pthread library function, understand the basic method of serial programming in Linux environment, master the main properties and setting method of terminal, familiar with the use of terminal I/O function, learn to use multithreading to complete the processing of serial port. Learned a lot of new concepts of knowledge, but also increased the need to learn a lot of unknown things. Experimental platform to build directly follow the platform of experimental one, there is no problem what difficult problem

Experimental report on basic experiment of information Security system Design (group)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.