repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
hping | hping-master/adbuf.c | /* adbuf.c - dynamic buffers support
*
* Copyright(C) 2001-2003 Salvatore Sanfilippo <antirez@invece.org>
* All rights reserved.
*
* -----------------------------------------------------------------------------
* Design principles:
*
* - This library is little and probably not so flexible nor
* full-featured... | 9,874 | 25.263298 | 80 | c |
hping | hping-master/datahandler.c | /*
* $smu-mark$
* $name: datahandler.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:47 MET 1999$
* $rev: 8$
*/
/* $Id: datahandler.c,v 1.2 2003/09/... | 941 | 21.428571 | 64 | c |
hping | hping-master/strlcpy.c | /*
* $smu-mark$
* $name: strLcpy.c$
* $author: Nicolas Jombart <ecureuil@hsc.fr>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* *copyright: (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>$
* $license: This software is under GPL version 2 of license$
* $date: Wed Feb 13 17:02:32 CET 2002$ ... | 3,154 | 37.012048 | 79 | c |
hping | hping-master/send.c | /*
* $smu-mark$
* $name: sendudp.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:49 MET 1999$
* $rev: 8$
*/
/* $Id: send.c,v 1.1.1.1 2003/08/31 17:2... | 2,330 | 23.536842 | 72 | c |
hping | hping-master/listen.c | /*
* $smu-mark$
* $name: listen.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 8$
*/
/* $Id: listen.c,v 1.2 2003/09/01 00:22:0... | 1,794 | 21.160494 | 71 | c |
hping | hping-master/rapd.c | /* rapd.c -- Reverse APD, from ARS packet to APD string description.
* Copyright (C) 2003 Salvatore Sanfilippo
* All rights reserved. */
/* $Id: rapd.c,v 1.7 2004/04/10 00:45:11 antirez Exp $ */
#include <sys/types.h>
#include <netinet/in.h>
#include <ctype.h>
#include "ars.h"
void trimlastchar(char *s)
{
int le... | 12,951 | 28.369615 | 77 | c |
hping | hping-master/memlockall.c | /*
* $smu-mark$
* $name: memlockall.c$
* $other_author: Alfonso De Gregorio <dira@speedcom.it>
* $other_copyright: Copyright (C) 1999 by Alfonso De Gregorio
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 2$
*/
/* $Id: memlockall.c,v 1.2 2003/09/01 00... | 579 | 21.307692 | 63 | c |
hping | hping-master/sendicmp.c | /*
* $smu-mark$
* $name: sendicmp.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:49 MET 1999$
* $rev: 8$
*/
/* $Id: sendicmp.c,v 1.1.1.1 2003/08/31... | 7,489 | 25.560284 | 111 | c |
hping | hping-master/sendip.c | /*
* $smu-mark$
* $name: sendip.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:49 MET 1999$
* $rev: 8$
*/
/* $Id: sendip.c,v 1.2 2004/04/09 23:38:5... | 3,188 | 23.914063 | 99 | c |
hping | hping-master/hstring.c | /* hstring.c - Random string-related functions for hping.
* Copyright(C) 2003 Salvatore Sanfilippo
* All rights reserved */
/* $Id: hstring.c,v 1.2 2003/09/01 00:22:06 antirez Exp $ */
#include <sys/types.h>
#include <string.h>
#include <ctype.h>
/* return 1 if the string looks like an integer number
* otherwise ... | 1,925 | 22.204819 | 78 | c |
hping | hping-master/interface.h | #ifndef __HPING_INTERFACE_H
#define __HPING_INTERFACE_H
#ifndef _LINUX_MII_H
#define _LINUX_MII_H
/* network interface ioctl's for MII commands */
#ifndef SIOCGMIIPHY
#define SIOCGMIIPHY (SIOCDEVPRIVATE) /* Read from current PHY */
#define SIOCGMIIREG (SIOCDEVPRIVATE+1) /* Read any PHY register */
#define SIOCSMIIRE... | 2,992 | 28.058252 | 73 | h |
hping | hping-master/memunlockall.c | /*
* $smu-mark$
* $name: memunlockall.c$
* $other_author: Alfonso De Gregorio <dira@speedcom.it>
* $other_copyright: Copyright (C) 1999 by Alfonso De Gregorio
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 2$
*/
/* $Id: memunlockall.c,v 1.2 2003/09/0... | 564 | 20.730769 | 65 | c |
hping | hping-master/hping2.h | /*
* $smu-mark$
* $name: hping2.h$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 9$
*/
/* $Id: hping2.h,v 1.4 2004/06/04 07:22:3... | 13,824 | 30.781609 | 80 | h |
hping | hping-master/parseoptions.c | /* parseoptions.c -- options handling
* Copyright(C) 1999-2001 Salvatore Sanfilippo
* Under GPL, see the COPYING file for more information about
* the license. */
/* $Id: parseoptions.c,v 1.2 2004/06/18 09:53:11 antirez Exp $ */
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#includ... | 20,204 | 28.155844 | 84 | c |
hping | hping-master/hex.c | /* hex.c -- hex to binary convertion (and vice versa).
* Copyright (C) 2003 Salvatore Sanfilippo
* All rights reserved.
* $Id: hex.c,v 1.2 2003/09/01 00:22:06 antirez Exp $
*/
#include <string.h>
static char hval[256] = {
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 2... | 3,481 | 29.278261 | 82 | c |
hping | hping-master/split.c | /* Copyright (C) 2003 Salvatore Sanfilippo
* All rights reserved
* $Id: split.c,v 1.4 2003/09/07 11:21:18 antirez Exp $ */
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include "ars.h"
int ars_seems_ip(struct ars_iphdr *ip, size_t size)
{
if (ip->versio... | 12,606 | 23.527237 | 96 | c |
hping | hping-master/libpcap_stuff.c | /*
* $smu-mark$
* $name: libpcap_stuff.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 8$
*/
/* $Id: libpcap_stuff.c,v 1.3 2004/04/09 23... | 1,612 | 20.506667 | 66 | c |
hping | hping-master/usage.c | /*
* $smu-mark$
* $name: usage.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:50 MET 1999$
* $rev: 8$
*/
/* $Id: usage.c,v 1.2 2004/06/18 09:53:11 ... | 6,946 | 43.248408 | 82 | c |
hping | hping-master/datafiller.c | /*
* $smu-mark$
* $name: datafiller.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:47 MET 1999$
* $rev: 8$
*/
/* $Id: datafiller.c,v 1.2 2003/09/01... | 1,781 | 22.142857 | 63 | c |
hping | hping-master/sendhcmp.c | /*
* $smu-mark$
* $name: sendhcmp.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:49 MET 1999$
* $rev: 4$
*/
/* $Id: sendhcmp.c,v 1.2 2003/09/01 00:... | 1,150 | 21.134615 | 65 | c |
hping | hping-master/getifname.c | /* getifname.c -- network interface handling
* Copyright(C) 1999,2000,2001 Salvatore Sanfilippo <antirez@invece.org>
* Copyright(C) 2001 by Nicolas Jombart <Nicolas.Jombart@hsc.fr>
* This code is under the GPL license */
/* BSD support thanks to Nicolas Jombart <Nicolas.Jombart@hsc.fr> */
/* $Id: getifname.c,v 1.3... | 9,353 | 25.275281 | 79 | c |
hping | hping-master/random.c | /* rc4-based pseudo-random number generator for hping.
* Copyright (C) 2003 Salvatore Sanfilippo
* This software is released under the GPL license
* All rights reserved */
/* $Id: random.c,v 1.3 2004/06/04 07:22:38 antirez Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>... | 1,973 | 22.223529 | 71 | c |
hping | hping-master/if_promisc.c | /*
* $smu-mark$
* $name: if_promisc.c$
* $author: Salvatore Sanfilippo <antirez@invece.org>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:48 MET 1999$
* $rev: 2$
*/
/* $Id: if_promisc.c,v 1.2 2003/09/01... | 1,344 | 20.349206 | 63 | c |
hping | hping-master/display_ipopt.c | /*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Mike Muuss.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | 3,841 | 26.640288 | 77 | c |
hping | hping-master/interface.c | /* interfaces.c -- that's getifname.c redone with a decent API.
* This fils is for now used for the TCL bindings but it
* should replace getifname.c at some time.
*
* Note that most of the code comes from getifname.c, so the
* old copyright still apply:
*
* Copyright(C) 1999,2000,2001 Salvatore Sanfilippo <antir... | 9,261 | 27.58642 | 80 | c |
hping | hping-master/sbignum.h | /* Sbignum.h -- antirez's arbitrary precision integer math library header file.
* Copyright(C) 2002-2003 Salvatore Sanfilippo.
* All rights reserved.
*
* $Id: sbignum.h,v 1.4 2004/06/04 07:22:38 antirez Exp $
*/
#ifndef _SBIGNUM_H
#define _SBIGNUM_H
#include <sys/types.h>
#include "fixtypes.h"
#define ATOMBYTES... | 5,135 | 31.506329 | 80 | h |
katydid | katydid-master/Source/Executables/Validation/guiviewer.h | // @(#)root/test:$Id: guiviewer.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Brett Viren 04/15/2001
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
class TList;
class TCanvas;
class TRootEmbeddedCanvas;
class TGaxis;
class TGDoubleSlider;
class Viewer : public TGMainFrame {
private:
TList *fCl... | 787 | 22.176471 | 72 | h |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/dnn_base.c | #section support_code
static cudnnHandle_t _handle = NULL;
static int
c_set_tensorNd(CudaNdarray *var, cudnnTensorDescriptor_t desc) {
int dim = CudaNdarray_NDIM(var);
int *strides = (int *)malloc(dim * sizeof(int));
int default_str = 1;
int return_value = 0;
if (strides != NULL) {
for (int i = dim-... | 2,101 | 24.325301 | 79 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/dnn_gi.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_gi)(CudaNdarray *kerns, CudaNdarray *output,
CudaNdarray *im, cudnnConvolutionDescriptor_t desc,
float alpha, float beta, CudaNdarray **input) {
cudnnStatus_t err = CUDNN_STATUS_SUCCESS;
if (CudaNdarray_HOST_DIMS(... | 10,052 | 37.814672 | 108 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/dnn_conv_base.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
cudnnFilterDescriptor_t APPLY_SPECIFIC(kerns);
/* Keep track, from one execution to another, of the dimension of the data
and the algorithms, if any, that were selected according to these dimensi... | 2,653 | 39.212121 | 107 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/cnmem.h | /* **********************************************************************
* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of s... | 11,482 | 42.496212 | 99 | h |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/cudnn_helper.h | #ifndef CUDNN_HELPER_H
#define CUDNN_HELPER_H
#include <cudnn.h>
// If needed, define element of the V4 interface in terms of elements of
// previous versions
#if defined(CUDNN_VERSION) && CUDNN_VERSION < 4000
#define CUDNN_CONVOLUTION_FWD_ALGO_FFT_TILING 5
#define CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING 3
#endi... | 9,309 | 30.137124 | 115 | h |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/dnn_gw.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_gw)(CudaNdarray *input, CudaNdarray *output,
CudaNdarray *km, cudnnConvolutionDescriptor_t desc,
float alpha, float beta, CudaNdarray **kerns) {
cudnnStatus_t err = CUDNN_STATUS_SUCCESS;
if (CudaNdarray_HOST_DIMS(... | 9,526 | 38.045082 | 112 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/cuda/dnn_fwd.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_fwd)(CudaNdarray *input, CudaNdarray *kerns,
CudaNdarray *om, cudnnConvolutionDescriptor_t desc,
float alpha, float beta, CudaNdarray **output) {
cudnnStatus_t err = CUDNN_STATUS_SUCCESS;
if (CudaNdarray_HOST_DI... | 9,707 | 37.070588 | 98 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_base.c | #section support_code
static int
c_set_tensorNd(PyGpuArrayObject *var, cudnnTensorDescriptor_t desc) {
cudnnDataType_t dt;
size_t ds;
switch (var->ga.typecode) {
case GA_FLOAT:
dt = CUDNN_DATA_FLOAT;
break;
case GA_DOUBLE:
dt = CUDNN_DATA_DOUBLE;
break;
#if CUDNN_VERSION > 3000
case GA_HALF... | 3,408 | 23.35 | 85 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/gpuarray_helper.h | #ifndef THEANO_GPUARRAY_HELPER
#define THEANO_GPUARRAY_HELPER
#include <string.h>
#include <gpuarray_api.h>
#include <numpy_compat.h>
#include <gpuarray/util.h>
static int theano_size_check(PyGpuArrayObject *a, unsigned int nd,
const size_t *dims, int typecode) {
return (a->ga.nd == nd... | 1,737 | 28.965517 | 76 | h |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/conv_desc.c | #section support_code_apply
int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
cudnnConvolutionDescriptor_t *desc) {
cudnnStatus_t err;
int pad[3] = {PAD_0, PAD_1, PAD_2};
int strides[3] = {SUB_0, SUB_1, SUB_2};
int upscale[3] = {1, 1, 1};
#if BORDER_MODE == 0
pad[0] = *(np... | 1,387 | 32.047619 | 75 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/gemm16.c | #section init_code_struct
/* Why do we need this? */
size_t dim = 2048 * 32;
rand_buf = pygpu_empty(1, &dim, GA_UINT, GA_C_ORDER, PARAMS,
Py_None);
if (rand_buf == NULL) {
FAIL;
}
#section support_code_struct
PyGpuArrayObject *rand_buf;
int gemm16(PyGpuArrayObject *C, float alpha,
... | 5,502 | 22.219409 | 71 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_gi.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_gi)(PyGpuArrayObject *kerns, PyGpuArrayObject *output,
PyGpuArrayObject *im,
cudnnConvolutionDescriptor_t desc,
double alpha, double beta, PyGpuArrayObject **input,
PyGpu... | 7,014 | 29.367965 | 85 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_conv_base.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
cudnnFilterDescriptor_t APPLY_SPECIFIC(kerns);
#section init_code_struct
cudnnStatus_t APPLY_SPECIFIC(err);
APPLY_SPECIFIC(input) = NULL;
APPLY_SPECIFIC(output) = NULL;
APPLY_SPECIFIC(kerns) = N... | 1,393 | 37.722222 | 107 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_pool.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
#section init_code_struct
cudnnStatus_t APPLY_SPECIFIC(err);
APPLY_SPECIFIC(input) = NULL;
APPLY_SPECIFIC(output) = NULL;
if ((APPLY_SPECIFIC(err) = cudnnCreateTensorDescriptor(&APPLY_SPECIFIC... | 3,542 | 28.525 | 107 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_softmax.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
#section init_code_struct
APPLY_SPECIFIC(input) = NULL;
APPLY_SPECIFIC(output) = NULL;
{
cudnnStatus_t err;
err = cudnnCreateTensorDescriptor(&APPLY_SPECIFIC(input));
if (err != CUDNN_ST... | 2,641 | 24.403846 | 79 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_softmax_grad.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(dy);
cudnnTensorDescriptor_t APPLY_SPECIFIC(sm);
cudnnTensorDescriptor_t APPLY_SPECIFIC(dx);
#section init_code_struct
APPLY_SPECIFIC(dy) = NULL;
APPLY_SPECIFIC(sm) = NULL;
APPLY_SPECIFIC(dx) = NULL;
{
cudnnStatus_t err;
err = cudnnCreateTensor... | 3,295 | 26.239669 | 79 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_pool_grad.c | #section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(input_grad);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output_grad);
#section init_code_struct
APPLY_SPECIFIC(input) = NULL;
APPLY_SPECIFIC(input_grad) = NUL... | 4,782 | 31.986207 | 103 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_gw.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_gw)(PyGpuArrayObject *input, PyGpuArrayObject *output,
PyGpuArrayObject *km,
cudnnConvolutionDescriptor_t desc,
double alpha, double beta, PyGpuArrayObject **kerns,
PyGpu... | 6,643 | 29.477064 | 83 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/sandbox/gpuarray/dnn_fwd.c | #section support_code_struct
int
APPLY_SPECIFIC(conv_fwd)(PyGpuArrayObject *input, PyGpuArrayObject *kerns,
PyGpuArrayObject *om,
cudnnConvolutionDescriptor_t desc,
double alpha, double beta,
PyGpuArrayObject **output,
... | 7,966 | 30.995984 | 87 | c |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/gof/theano_mod_helper.h | #ifndef THEANO_MOD_HELPER
#define THEANO_MOD_HELPER
#include <Python.h>
#ifndef _WIN32
#define MOD_PUBLIC __attribute__((visibility ("default")))
#else
/* MOD_PUBLIC is only used in PyMODINIT_FUNC, which is declared
* and implemented in mod.cu/cpp, not in headers, so dllexport
* is always correct. */
#define MOD_PU... | 706 | 21.09375 | 72 | h |
attention-lvcsr | attention-lvcsr-master/libs/Theano/theano/tensor/nnet/corr_gemm.c | // This uses a lot of code from Caffe (http://caffe.berkeleyvision.org/);
// sources are clearly marked. Below we reproduce the original license of
// the Caffe software.
/*
Copyright (c) 2014, The Regents of the University of California (Regents)
All rights reserved.
Redistribution and use in source and binary forms,... | 15,925 | 43.116343 | 107 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/ring_ops.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*
*/
#include <assert.h>
#include "cleanup.... | 4,344 | 24.115607 | 110 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/sampling_portable.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#include <assert.h>
#include "s... | 1,553 | 28.884615 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/defs.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#define USE_OPENSSL
#define PORTABLE
#define USE_NIST_RAND 1
#define LEVEL 1
////////////... | 4,200 | 31.315385 | 80 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/sampling.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#include "defs.h"
#if defined(USE_NIST_RAND)
#include "randombytes.h"
#else
# include <std... | 1,281 | 26.869565 | 72 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/bike_defs.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "defs.h"
... | 2,541 | 25.757895 | 69 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gf2x_ksqr_portable.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* The k-squaring algorithm in this file is based on:
* [1] Nir Drucker, Shay Gueron, and Dusan Kostic. 202... | 1,717 | 34.061224 | 79 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gf2x_internal.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
// For size_t
#include <stdlib.h>
#include "types.h"
// The size in quadwords of the opera... | 1,063 | 27.756757 | 80 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/utilities.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#include <inttypes.h>
#include "utilities.h"
#define BITS_IN_QWORD 64ULL
#define BITS_IN_BYTE 8ULL
uin... | 3,530 | 23.020408 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/sha.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*/
#pragma once
#include "cleanup.h"
#includ... | 1,752 | 21.766234 | 81 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gft_mul_vi.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _GFT_MUL_VI_H_
#define _GFT_MUL_VI_H_
#include "encode.h"
void gft_mul_v17( sto_t * out , const sto_t * in );
void gft_mul_v18( sto_t * out , const sto_t * in );
void gft_mul_v19( sto_t * out , const sto_t * in );
void gft_mul_v... | 751 | 29.08 | 63 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/utilities.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
// For memset
#inc... | 6,036 | 30.279793 | 86 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/btfy_ffft.c | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#include "btfy_ffft.h"
//#include "cantor_to_gftower.h"
#include "btfy_consts_gft.h"
#include "gfv_tower.h"
#include "gft_mul_vi.h"
static
void (* gft_mul_vi [12]) (uint32_t * x, const uint32_t * y);
static
void btfy_layer( ui... | 19,160 | 22.861768 | 76 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/rotr_cshift_12323.c | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#include <stdint.h>
#define r 12323
#include "run_config.h"
static inline uint32_t bit_mask(uint32_t s,int i) { return -((s>>i)&1); }
#if defined(_M4_ASM_)
void cshift(uint32_t *array, int s) { cshift_asm(array,s); }
#else
void cshi... | 16,719 | 22.885714 | 106 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gf2x.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#include "types.h"
// c = a+b mod (x^r - 1)
_INLINE_ void
gf2x_mod_add(OUT pad_r_t *c, IN c... | 876 | 24.794118 | 76 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/ring_ops.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _RING_OPS_H_
#define _RING_OPS_H_
#include "types.h"
// c = a+b mod (x^r - 1)
_INLINE_ void
ring_add(OUT pad_r_t *c, IN const pad_r_t *a, IN const pad_r_t *b)
{
#if 1
const uint64_t *a_qwords = (const uint64_t *)a;
const ui... | 1,573 | 20.861111 | 85 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/aes_ctr_prf.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "bike_aes... | 1,160 | 23.702128 | 82 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/crypto_kem.h |
#ifndef _CRYPTO_KEM_H_
#define _CRYPTO_KEM_H_
////////////////////////////////////////////////////////////////
//Below three APIs (keygen, encaps, decaps) are defined by NIST:
////////////////////////////////////////////////////////////////
//Keygenerate - pk is the public key,
// sk is the private ke... | 894 | 27.870968 | 64 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/decode.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "types.h"... | 1,422 | 32.880952 | 82 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/kem.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron, and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#include "crypto_kem.h"
#inclu... | 9,548 | 30.724252 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/cleanup.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "utilitie... | 2,461 | 29.02439 | 77 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gfv_tower.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _GFV_TOWER_H_
#define _GFV_TOWER_H_
#include <stdint.h>
typedef uint32_t sto_t;
#include "run_config.h"
#if defined(_M4_ASM_)
#include "gfv_tower_asm.h"
static inline void gf4v_mul_2( sto_t *c, const sto_t *a ) { gf4v_mul_2... | 8,915 | 26.775701 | 125 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gfv_tower_asm.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef GFV_TOWER_ASM_H_
#define GFV_TOWER_ASM_H_
#include <stdint.h>
typedef uint32_t sto_t;
void gf4v_mul_2_asm( sto_t *c, const sto_t *a );
void gf4v_mul_asm( sto_t *c, const sto_t *a , const sto_t *b);
void gf4v_mulscalar_asm( sto_... | 1,578 | 39.487179 | 77 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/gf2x_inv.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*
* The inversion algorithm in this file is b... | 7,475 | 32.524664 | 86 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/error.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#define SUCCESS 0
... | 824 | 21.297297 | 69 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/bmul2.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _BMUL_2_H_
#define _BMUL_2_H_
#include "stdint.h"
//
// ffft based mulitplication for bit-polynomials
// Use Froebinus FFT
//
// input transform for the multiplication.
// sizeof( a_out ) = 2*sizeof( a_in ) = 4096 bytes
void ... | 1,347 | 28.955556 | 83 | h |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/sampling.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#include <assert.h>
#include "sampling.h"
void get_seeds(OUT seeds_t *seeds)
{
#if defined(USE_NIST_RAND... | 4,592 | 25.245714 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/aes_ctr_prf.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#include "aes_ctr_prf.h"
#include "utilities.h"
ret_t init_aes_ctr_prf_state(OUT aes_ctr_prf_state_t *s,
... | 2,582 | 25.357143 | 81 | c |
pqm4 | pqm4-master/crypto_kem/bikel1/m4f/bike_aes.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*
*/
#pragma once
#include "defs.h"
#if def... | 2,550 | 21.575221 | 90 | h |
pqm4 | pqm4-master/crypto_kem/kyber1024/m4fspeed/api.h | #ifndef API_H
#define API_H
#include "params.h"
#define CRYPTO_SECRETKEYBYTES KYBER_SECRETKEYBYTES
#define CRYPTO_PUBLICKEYBYTES KYBER_PUBLICKEYBYTES
#define CRYPTO_CIPHERTEXTBYTES KYBER_CIPHERTEXTBYTES
#define CRYPTO_BYTES KYBER_SSBYTES
#define CRYPTO_ALGNAME "Kyber1024"
int crypto_kem_keypair(unsigned... | 534 | 24.47619 | 88 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/ring_ops.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*/
#include <assert.h>
#include "cleanup.h"
... | 6,842 | 25.835294 | 124 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/sampling_portable.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#include <assert.h>
#include "s... | 1,553 | 28.884615 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/defs.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#define USE_OPENSSL
#define PORTABLE
#define USE_NIST_RAND 1
#define LEVEL 3
////////////... | 4,200 | 31.315385 | 80 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/sampling.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#include "defs.h"
#if defined(USE_NIST_RAND)
#include "randombytes.h"
#else
# include <std... | 1,281 | 26.869565 | 72 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/bike_defs.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "defs.h"
... | 2,541 | 25.757895 | 69 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gf2x_ksqr_portable.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* The k-squaring algorithm in this file is based on:
* [1] Nir Drucker, Shay Gueron, and Dusan Kostic. 202... | 1,717 | 34.061224 | 79 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gf2x_internal.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
// For size_t
#include <stdlib.h>
#include "types.h"
// The size in quadwords of the opera... | 1,063 | 27.756757 | 80 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/bmul2.c | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#include "string.h"
#include "bmul2.h"
#include "bc_2.h"
#include "btfy_ffft.h"
#include "encode.h"
#include "gfv_tower.h"
void bmul2_2048_to_4096_prepare_ebuff( uint32_t * a_out, const uint8_t * a_in , uint32_t *a0 )
{
memcpy( a0 , ... | 2,971 | 20.536232 | 103 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/rotr_cshift_24659.c | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#include <stdint.h>
#define r 24659
#include "run_config.h"
static inline uint32_t bit_mask(uint32_t s,int i) { return -((s>>i)&1); }
#if defined(_M4_ASM_)
void cshift(uint32_t *array, int s) { cshift_asm(array,s); }
#else
void cshi... | 18,734 | 23.019231 | 106 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/utilities.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#include <inttypes.h>
#include "utilities.h"
#define BITS_IN_QWORD 64ULL
#define BITS_IN_BYTE 8ULL
uin... | 3,530 | 23.020408 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/sha.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modified by Ming-Shing Chen, Tung Chou and Markus Krausz.
*/
#pragma once
#include "cleanup.h"
#includ... | 1,752 | 21.766234 | 81 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gft_mul_vi.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _GFT_MUL_VI_H_
#define _GFT_MUL_VI_H_
#include "encode.h"
void gft_mul_v17( sto_t * out , const sto_t * in );
void gft_mul_v18( sto_t * out , const sto_t * in );
void gft_mul_v19( sto_t * out , const sto_t * in );
void gft_mul_v... | 751 | 29.08 | 63 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/utilities.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
// For memset
#inc... | 6,036 | 30.279793 | 86 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/btfy_ffft.c | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#include "btfy_ffft.h"
//#include "cantor_to_gftower.h"
#include "btfy_consts_gft.h"
#include "gfv_tower.h"
#include "gft_mul_vi.h"
static
void (* gft_mul_vi [12]) (uint32_t * x, const uint32_t * y);
static
void btfy_layer( ui... | 19,160 | 22.861768 | 76 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gf2x.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#pragma once
#include "types.h"
// c = a+b mod (x^r - 1)
_INLINE_ void
gf2x_mod_add(OUT pad_r_t *c, IN c... | 876 | 24.794118 | 76 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/ring_ops.h | #ifndef _RING_OPS_H_
#define _RING_OPS_H_
#include "types.h"
// c = a+b mod (x^r - 1)
_INLINE_ void
ring_add(OUT r_t *c, IN const r_t *a, IN const r_t *b)
{
#if 1
const uint64_t *a_qwords = (const uint64_t *)a;
const uint64_t *b_qwords = (const uint64_t *)b;
uint64_t * c_qwords = (uint64_t *)c;
for(size... | 1,709 | 21.5 | 85 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/aes_ctr_prf.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "bike_aes... | 1,160 | 23.702128 | 82 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/crypto_kem.h |
#ifndef _CRYPTO_KEM_H_
#define _CRYPTO_KEM_H_
////////////////////////////////////////////////////////////////
//Below three APIs (keygen, encaps, decaps) are defined by NIST:
////////////////////////////////////////////////////////////////
//Keygenerate - pk is the public key,
// sk is the private ke... | 894 | 27.870968 | 64 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/decode.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "types.h"... | 1,422 | 32.880952 | 82 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/kem.c | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron, and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#include "crypto_kem.h"
#inclu... | 9,631 | 30.788779 | 82 | c |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/cleanup.h | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*
* Modification: 2021 Ming-Shing Chen, Tung Chou, and Markus Krausz
*
*/
#pragma once
#include "utilitie... | 2,461 | 29.02439 | 77 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gfv_tower.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef _GFV_TOWER_H_
#define _GFV_TOWER_H_
#include <stdint.h>
typedef uint32_t sto_t;
#include "run_config.h"
#if defined(_M4_ASM_)
#include "gfv_tower_asm.h"
static inline void gf4v_mul_2( sto_t *c, const sto_t *a ) { gf4v_mul_2... | 8,915 | 26.775701 | 125 | h |
pqm4 | pqm4-master/crypto_kem/bikel3/m4f/gfv_tower_asm.h | // Implemented by Ming-Shing Chen, Tung Chou and Markus Krausz.
// public domain
#ifndef GFV_TOWER_ASM_H_
#define GFV_TOWER_ASM_H_
#include <stdint.h>
typedef uint32_t sto_t;
void gf4v_mul_2_asm( sto_t *c, const sto_t *a );
void gf4v_mul_asm( sto_t *c, const sto_t *a , const sto_t *b);
void gf4v_mulscalar_asm( sto_... | 1,578 | 39.487179 | 77 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.