C language AES algorithm implementation (based on Mbedtls)
In recent projects, AES algorithm needs to be implemented by C language. Here I implement it by Mbedtls library.
1. Download Mbedtls
First, we put the Mbedtls code into the project, and the related transmission gates are as follows:
Official download address of Mbedtls
The official website is slo ...
Posted by kiosklim on Tue, 21 Jan 2020 15:48:54 +0100
C + + strings (string)
C + + strings (string)
Constructors
Syntax:
string();
string( size_type length, char ch );
string( const char *str );
string( const char *str, size_type length );
string( string &str, size_type index, size_type length );
string( input_iterator start, input_iterator end );
T ...
Posted by dclamp on Tue, 21 Jan 2020 11:49:20 +0100
6. iOS underlying analysis - message sending (objc \ msgesend) analysis
Debugging analysis
How are methods in OC called? Before checking the data, we know that the method call of OC is in the form of message sending, so let's explore the source code
LGPerson *person = [[LGPerson alloc] init];
Class pClass = [LGPerson class];
[person sayNB];
Assembly vi ...
Posted by MissiCoola on Mon, 20 Jan 2020 15:13:10 +0100
Data Structure-Cyclic Queue
Data Structure-Cyclic Queue (C Language)
To learn circular queues, first understand the queues.A queue is a first-in-first-out linear table that allows insertion only at one segment of the table and deletion of elements at the other end.The end allowed to insert in the queue is the end of the queue, ...
Posted by halojoy on Sun, 19 Jan 2020 02:49:38 +0100
C Language Review In-depth Study: Arrays and Pointers
C Array
Arrays are sequential collections that store a series of variables of the same type.All arrays consist of contiguous memory locations.
Declare Array
You need to specify the type and number of elements
type arrayName [ arraySize ];
Initialize Array
//The number of values between braces { ...
Posted by axiom82 on Sat, 18 Jan 2020 02:40:05 +0100
Two week self-made scripting language - day 5 design of parser
Day 5 design parser
5.1 syntax of stone
Listing 5.1 syntax definition of stone
primary : "(" expr ")" | NUMBER | IDENTIFIER | STRING
factor : "-" primary | primary
expr : factor { OP factor }
block : "{" [ statement ] { (";" | EOL) [ statement ] } "}"
...
Posted by bostonmacosx on Fri, 17 Jan 2020 15:44:27 +0100
C language uses macro to realize static polymorphism
Overview
Polymorphism is an important feature of object-oriented programming.
In C + + language, polymorphism means that functions with different functions can use the same function name, and can call functions with different contents with one function name.
There are two kinds of polymorphism in C + +:
1. Static polymorphi ...
Posted by n9ne on Fri, 10 Jan 2020 19:46:05 +0100
C foundation takes you to write redis ae event driven model
Introduction - overall understanding
The event driven model of redis ae has a lot of chatting on the Internet. However, after you carefully read one article after another, it may be very comfortable for you to read, but for
Why does the author write like this, starting point, advantages, disadvantages... Maybe it's still vague, isn't it?
We ...
Posted by jarvishr on Wed, 08 Jan 2020 16:43:53 +0100
Using C language to realize small game -- 2048
I finished the little game without interface and the game of computer in my blog, Using C language to realize small game - three chess
And a little game full of memories of the same year Using C language to realize small game - minesweeping
Next, let's write another simple, interface free, small game, computer-operated game 2 ...
Posted by mattnoble on Tue, 07 Jan 2020 18:08:47 +0100
The shortest path problem: Dijkstra algorithm
Definition
The so-called shortest path problem refers to: if there may be more than one path from one vertex (source point) to another vertex (end point) in the graph, how to find a path to minimize the sum of weights (called path length) along each side of the path.
Next, we introduce two commonly used shortest path algorithms:
Dijkstra algori ...
Posted by horseatingweeds on Fri, 03 Jan 2020 15:32:21 +0100