2019-2020-1 20,175,307 2,017,530,820,175,319 Experiment 5 protocol design

2019-2020-1 20,175,307 2,017,530,820,175,319 Experiment 5 protocol design

team member

Gao Chun 20,175,307
20,175,308 Yang
20,175,319 river wild

Experimental Procedure

1

  • Experimental requirements
    to complete in Ubuntu install and use Linux, the OpenSSL job in
    submitting run results screenshot
  • Experimental Procedure
    • Download OpenSSL installation package
    • First, extract the source code:
      tar xzvf openssl-1.0.2t.tar.gz
      and enter the source directory:
      cd openssl-1.0.2t
      Then use the following command to compile and install:

      ./configure
      make
      sudo make install
    • Write a test codetest_openssl.c
    • Compile:
      gcc -o to test_openssl.c -I /usr/local/ssl/inlcude -L /usr/local/ssl/lib -ldl -lpthread
    • carried out
    ./to
    echo $?
    • Display test_openssl.cfile contents
      cat test_openssl.c

2

  • Experimental requirements
    to achieve the second experiment of "wc server" are protected by a hybrid cryptosystem in Ubuntu
    submit test shots.
  • Experimental Procedure
    • Write code
      client client.c
      server server.c
    • Compile:
      gcc -o server server.c -I /usr/local/ssl/include -L/usr/local/ssl/lib -lssl -lcrypto -ldl -lpthread
      gcc -o client client.c -I /usr/local/ssl/include -L/usr/local/ssl/lib -lssl -lcrypto -ldl -lpthread
    • Production private key and certificate
      openssl genrsa -out privkey.pem 1024
      openssl req -new -x509 -key privkey.pem -out CAcert.pem -days 1095
    • Run the program
      ./client 127.0.0.1 7838
      ./server 7838 1 CAcert.pem privkey.pem

3

  • Experimental requirements
    to run a test chamber, ARM calls Z32 test algorithm, the author experiments Screenshot
    2 Z32 with a state secret algorithm rewrite the "wc server" hybrid password protection, submit run shot
  • Experimental Procedure
    • The pin (Z32 & A8) A8 left upper plate portions are connected with the sub-short circuit, open Serial port interface icons under Linux
    • The experimental set serial property
      • Port selection ttyO1, corresponding to the UART1 A8
      • 115200 baud rate selection
      • Select 8 data bits
      • Parity Bit Select N
      • 1 stop bit selection
      • Selection hardware flow control off
    • After setting, click the button to open the serial port, you can test, close the serial port to exit when testing is complete.

Guess you like

Origin www.cnblogs.com/killer-queen/p/11979811.html