diff options
Diffstat (limited to 'set2')
| -rw-r--r-- | set2/Makefile | 10 | ||||
| -rw-r--r-- | set2/task9.c | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/set2/Makefile b/set2/Makefile new file mode 100644 index 0000000..abbacc0 --- /dev/null +++ b/set2/Makefile @@ -0,0 +1,10 @@ +LIB=../lib/lib2.c +CC=gcc +CFLAGS := -g -Wall $(CFLAGS) + +all: task9 + +task9: + $(CC) $(CFLAGS) task9.c $(LIB) -o task9 +clean: + rm task9 diff --git a/set2/task9.c b/set2/task9.c new file mode 100644 index 0000000..9b91174 --- /dev/null +++ b/set2/task9.c @@ -0,0 +1,14 @@ +#include "../lib/lib2.h" +#include <stdio.h> + +int main(int argc, char **argv) +{ + // implemten PKCS#7 padding + char *result = NULL; + + result = pkcs7_padding("YELLOW SUBMARINE", 16, 10); + printf("%s\n", result); + + free(result); + return 0; +} |
