This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/x509.h> | |
#include <openssl/evp.h> | |
#include <openssl/hmac.h> | |
int main(int argc, char *argv[]) | |
{ | |
char pass[1024]; // passphrase read from stdin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(GP)GPU (General-purpose) Graphic Processing Unit | |
AHB Advanced High-performance Bus | |
ALAP As Late As Possible | |
AMAT Average Memory Access Time | |
AMBA Advanced Microcontroller Bus Architecture | |
APB Advanced Peripherial Bus | |
APU Application Processing Unit | |
ARM {Acorns,Advanced} RISC Machines | |
ASAP As Soon AS Possible | |
ASIC Application Specific Integrated Circuit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Compile: gcc fd.c -o fd_copy | |
* Usage: fd_copy 3< input_file 4> output_file | |
* Result: Copies contents of input_file to output_file | |
*/ | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; NASM quick reference | |
;; Format der Instruktionen NASM | |
label: opcode dest, src | |
; vgl GNU Assembler | |
label: opcode src, dest | |
;; NASM Pseudoinstruktionen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @brief Sign extending a integer */ | |
size_t sign_extend(ssize_t addr, int bits) | |
{ | |
return (addr << -bits) >> -bits; // sign bit is maintained during arithmetic right shift | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @brief Jump back to user code | |
* | |
* This function runs the user code after stopping it just as if | |
* it was a return from a procedure. | |
* | |
* @return 0 in any case | |
*/ | |
static inline int jump_to_user_code(size_t ep, size_t stack) | |
{ | |
#ifdef CONFIG_X86_64 |
NewerOlder