1024
© SEED vector creation
=====================
This page documents the code that was used to generate the SEED CFB and OFB
test vectors as well as the code used to verify them against another
implementation. The vectors were generated using OpenSSL and verified
with `Botan`_.
Creation
--------
``cryptography`` was modified to support SEED in CFB and OFB modes. Then
the following python script was run to generate the vector files.
.. literalinclude:: /development/custom-vectors/seed/generate_seed.py
Download link: :download:`generate_seed.py
`
Verification
------------
The following Python code was used to verify the vectors using the `Botan`_
project's Python bindings.
.. literalinclude:: /development/custom-vectors/seed/verify_seed.py
Download link: :download:`verify_seed.py
`
.. _`Botan`: https://botan.randombit.net
¼
Index of /FSS-OZR/root/sys/bus/cpu/drivers/processor/cpu0/node0/memory61/subsystem
Index of /FSS-OZR/root/sys/bus/cpu/drivers/processor/cpu0/node0/memory61/subsystem
ë /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _LINUX_SEM_H
#define _LINUX_SEM_H
#include
/* semop flags */
#define SEM_UNDO 0x1000 /* undo the operation on exit */
/* semctl Command Definitions. */
#define GETPID 11 /* get sempid */
#define GETVAL 12 /* get semval */
#define GETALL 13 /* get all semval's */
#define GETNCNT 14 /* get semncnt */
#define GETZCNT 15 /* get semzcnt */
#define SETVAL 16 /* set semval */
#define SETALL 17 /* set all semval's */
/* ipcs ctl cmds */
#define SEM_STAT 18
#define SEM_INFO 19
#define SEM_STAT_ANY 20
/* Obsolete, used only for backwards compatibility and libc5 compiles */
struct semid_ds {
struct ipc_perm sem_perm; /* permissions .. see ipc.h */
__kernel_old_time_t sem_otime; /* last semop time */
__kernel_old_time_t sem_ctime; /* create/last semctl() time */
struct sem *sem_base; /* ptr to first semaphore in array */
struct sem_queue *sem_pending; /* pending operations to be processed */
struct sem_queue **sem_pending_last; /* last pending operation */
struct sem_undo *undo; /* undo requests on this array */
unsigned short sem_nsems; /* no. of semaphores in array */
};
/* Include the definition of semid64_ds */
#include
/* semop system calls takes an array of these. */
struct sembuf {
unsigned short sem_num; /*