AAers/vagrant/work/received-2019/to-be-uploaded/2021-
ECS 150 – Project 2 Prof. Joël Porquet-Lupine UC Davis – 2020/2021 Copyright © 2017-2021 Joël Porquet-Lupine – CC BY-NC-SA 4.0 International License / 1…
#include #include int main(void) { int fd[2]; char send[7] = “Hello!”; char recv[7]; pipe(fd); printf(“fd[0] = %d ”, fd[0]); printf(“fd[1] = %d ”, fd[1]); write(fd[1],…
Cryptography Basics – Public Key Cryptography ECEN 4133 FEB 4, 2021 Shared key limitations Suppose Alice publishes data to lots of people, and they all…
#include #include #include int main(void) { write(STDOUT_FILENO, “Hello “, 6); write(1, “Hello “, 6); fprintf(stdout, “Hello “); printf(“Hello ”); write(STDERR_FILENO, “World “, 6); write(2, “World…
/* * Example of using the getcontext()/swapcontext() API. This API, provided by * ucontext.h, is not part of POSIX anymore because of portability issues. *…
#include #include #include int main(void) { int fd; char c; fd = open(“file_101.c”, O_RDONLY); read(fd, &c, 1); printf(“%c ”, c); read(fd, &c, 1); printf(“%c ”,…
ECS 150: Project #1 – Simple Shell Prof. Joël Porquet-Lupine UC Davis, Winter Quarter 2021 Changelog General information Objectives of the project Program description Introduction Constraints…
#include int main(void) { printf(“Hello! ”); /* Try deactivating * hardware interrupts */ asm (“cli” ::: “memory”); while (1) printf(“I win? ”); return 0; }
Public-Key Crypto Review: Integrity Problem: Sending a message over an untrusted channel without being changed Provably-secure solution: Random function Practical solution: m, v := fk(m)…