code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
/* crypto/bn/bn_ctx.c */
/* Written by Ulf Moeller for the OpenSSL project. */
/* ====================================================================
* Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_ctx.c | C | gpl2 | 11,809 |
/* crypto/bn/bn_print.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_print.c | C | gpl2 | 8,857 |
/* unused */
#include <stdio.h>
#include <openssl/tmdiff.h>
#include "bn_lcl.h"
#define SIZE 256
#define NUM (8*8*8)
#define MOD (8*8*8*8*8)
main(argc,argv)
int argc;
char *argv[];
{
BN_CTX ctx;
BIGNUM a,b,c,r,rr,t,l;
int j,i,size=SIZE,num=NUM,mod=MOD;
char *start,*end;
BN_MONT_CTX mont;
double d,md;
BN_MON... | zx08uestc-openvpn | main/openssl/crypto/bn/exp.c | C | gpl2 | 1,105 |
/* crypto/bn/bn_depr.c */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_depr.c | C | gpl2 | 4,031 |
/* crypto/bn/bn_mul.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_mul.c | C | gpl2 | 25,370 |
/* crypto/bn/bn_mpi.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_mpi.c | C | gpl2 | 4,364 |
/* crypto/bn/bn_err.c */
/* ====================================================================
* Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_err.c | C | gpl2 | 6,713 |
/* crypto/bn/bn_shift.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_shift.c | C | gpl2 | 5,648 |
/* crypto/bn/bn_div.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_div.c | C | gpl2 | 12,606 |
/* crypto/bn/bn_mont.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_mont.c | C | gpl2 | 15,137 |
#include <openssl/bn.h>
#include <openssl/rand.h>
static int Rand(n)
{
unsigned char x[2];
RAND_pseudo_bytes(x,2);
return (x[0] + 2*x[1]);
}
static void bug(char *m, BIGNUM *a, BIGNUM *b)
{
printf("%s!\na=",m);
BN_print_fp(stdout, a);
printf("\nb=");
BN_print_fp(stdout, b);
printf("\n"... | zx08uestc-openvpn | main/openssl/crypto/bn/divtest.c | C | gpl2 | 873 |
/* crypto/bn/bn.h */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-comme... | zx08uestc-openvpn | main/openssl/crypto/bn/bn.h | C | gpl2 | 36,798 |
/* crypto/bn/bn_asm.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_asm.c | C | gpl2 | 23,202 |
/* crypto/bn/exptest.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/bn/exptest.c | C | gpl2 | 6,435 |
/* crypto/bn/knownprimes.c */
/* Insert boilerplate */
#include "bn.h"
/* "First Oakley Default Group" from RFC2409, section 6.1.
*
* The prime is: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 }
*
* RFC2409 specifies a generator of 2.
* RFC2412 specifies a generator of of 22.
*/
BIGNUM *get_rfc2409_prime_... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_const.c | C | gpl2 | 20,624 |
/* crypto/bn/bn_exp.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_exp.c | C | gpl2 | 29,573 |
/* crypto/bn/bntest.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bntest.c | C | gpl2 | 39,879 |
/* crypto/bn/bn_recp.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_recp.c | C | gpl2 | 6,772 |
/* crypto/bn/bn_rand.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_rand.c | C | gpl2 | 11,705 |
/* crypto/bn/bn_word.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_word.c | C | gpl2 | 6,005 |
#!/usr/local/bin/perl
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC,"${dir}","${dir}../../perlasm");
require "x86asm.pl";
&asm_init($ARGV[0],$0);
$sse2=0;
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&external_label("OPENSSL_ia32cap_P") if ($sse2);
&bn_mul_add_words("bn_mul_add_words");
&bn_mul_words("bn... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/bn-586.pl | Raku | gpl2 | 16,420 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project.
#
# Rights for redistribution and usage in source and binary forms are
# granted according to the OpenSSL license. Warranty of any kind is
# disclaime... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/mips.pl | Raku | gpl2 | 50,278 |
#!/usr/local/bin/perl
push(@INC,"perlasm","../../perlasm");
require "x86asm.pl";
require("x86/mul_add.pl");
require("x86/mul.pl");
require("x86/sqr.pl");
require("x86/div.pl");
require("x86/add.pl");
require("x86/sub.pl");
require("x86/comba.pl");
&asm_init($ARGV[0],$0);
&bn_mul_add_words("bn_mul_add_words");
&bn_m... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86.pl | Perl | gpl2 | 623 |
;
; PA-RISC 2.0 implementation of bn_asm code, based on the
; 64-bit version of the code. This code is effectively the
; same as the 64-bit version except the register model is
; slightly different given all values must be 32-bit between
; function calls. Thus the 64-bit return values are returned
; in %ret0 and %ret... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/pa-risc2.S | Motorola 68K Assembly | gpl2 | 48,599 |
.file "crypto/bn/asm/x86-mont.s"
.text
.globl bn_mul_mont
.type bn_mul_mont,@function
.align 16
bn_mul_mont:
.L_bn_mul_mont_begin:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
xorl %eax,%eax
movl 40(%esp),%edi
cmpl $4,%edi
jl .L000just_leave
leal 20(%esp),%esi
leal 24(%esp),%edx
movl %esp,%ebp
addl $2,%edi
... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86-mont.S | Unix Assembly | gpl2 | 8,447 |
.text
.type _mul_1x1,@function
.align 16
_mul_1x1:
subq $128+8,%rsp
movq $-1,%r9
leaq (%rax,%rax,1),%rsi
shrq $3,%r9
leaq (,%rax,4),%rdi
andq %rax,%r9
leaq (,%rax,8),%r12
sarq $63,%rax
leaq (%r9,%r9,1),%r10
sarq $63,%rsi
leaq (,%r9,4),%r11
andq %rbp,%rax
sarq $63,%rdi
movq %rax,%rdx
shlq $63,%rax
andq... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-gf2m.S | Unix Assembly | gpl2 | 5,151 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.o... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/ia64-mont.pl | Raku | gpl2 | 26,021 |
#include "arm_arch.h"
.text
.code 32
#if __ARM_ARCH__>=7
.fpu neon
#endif
.type mul_1x1_ialu,%function
.align 5
mul_1x1_ialu:
mov r4,#0
bic r5,r1,#3<<30 @ a1=a&0x3fffffff
str r4,[sp,#0] @ tab[0]=0
add r6,r5,r5 @ a2=a1<<1
str r5,[sp,#4] @ tab[1]=a1
eor r7,r5,r6 @ a1^a2
str r6,[sp,#8] @ tab[2]=a2
mov r8,r... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/armv4-gf2m.S | Unix Assembly | gpl2 | 4,414 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86-mont.pl | Raku | gpl2 | 16,468 |
#include "arm_arch.h"
.text
.code 32
#if __ARM_ARCH__>=7
.align 5
.LOPENSSL_armcap:
.word OPENSSL_armcap_P-bn_mul_mont
#endif
.global bn_mul_mont
.type bn_mul_mont,%function
.align 5
bn_mul_mont:
ldr ip,[sp,#4] @ load num
stmdb sp!,{r0,r2} @ sp points at argument block
#if __ARM_ARCH__>=7
tst ip,#7
bne .Lialu... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/armv4-mont.S | Unix Assembly | gpl2 | 11,786 |
.ident "s390x.S, version 1.1"
// ====================================================================
// Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
// project.
//
// Rights for redistribution and usage in source and binary forms are
// granted according to the OpenSSL license. Warranty of any kind ... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/s390x.S | Unix Assembly | gpl2 | 12,636 |
.set mips2
.rdata
.asciiz "mips3.s, Version 1.2"
.asciiz "MIPS II/III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
.text
.set noat
.align 5
.globl bn_mul_add_words
.ent bn_mul_add_words
bn_mul_add_words:
.set noreorder
bgtz $6,bn_mul_add_words_internal
move $2,$0
jr $31
move $4,$2
.end bn_mul_add_word... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/bn-mips.S | Motorola 68K Assembly | gpl2 | 34,120 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.opens... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-mont.pl | Perl | gpl2 | 36,986 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/s390x-mont.pl | Raku | gpl2 | 6,679 |
.ident "sparcv8.s, Version 1.4"
.ident "SPARC v8 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
/*
* ====================================================================
* Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
* project.
*
* Rights for redistribution and usage in source and binary ... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/sparcv8.S | Unix Assembly | gpl2 | 28,245 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.o... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/alpha-mont.pl | Raku | gpl2 | 5,588 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.opens... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/armv4-mont.pl | Prolog | gpl2 | 17,992 |
#include "../bn_lcl.h"
#if !(defined(__GNUC__) && __GNUC__>=2)
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
#else
/*
* x86_64 BIGNUM accelerator version 0.1, December 2002.
*
* Implemented by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
* project.
*
* Rights for redistribution and usage... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-gcc.c | C | gpl2 | 13,536 |
.file "crypto/bn/asm/x86-gf2m.s"
.text
.type _mul_1x1_mmx,@function
.align 16
_mul_1x1_mmx:
subl $36,%esp
movl %eax,%ecx
leal (%eax,%eax,1),%edx
andl $1073741823,%ecx
leal (%edx,%edx,1),%ebp
movl $0,(%esp)
andl $2147483647,%edx
movd %eax,%mm2
movd %ebx,%mm3
movl %ecx,4(%esp)
xorl %edx,%ecx
pxor %mm5,%mm5
p... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86-gf2m.S | Unix Assembly | gpl2 | 6,153 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-gf2m.pl | Perl | gpl2 | 8,587 |
.text
.type MULADD_128x512,@function
.align 16
MULADD_128x512:
movq 0(%rsi),%rax
mulq %rbp
addq %rax,%r8
adcq $0,%rdx
movq %r8,0(%rcx)
movq %rdx,%rbx
movq 8(%rsi),%rax
mulq %rbp
addq %rax,%r9
adcq $0,%rdx
addq %rbx,%r9
adcq $0,%rdx
movq %rdx,%rbx
movq 16(%rsi),%rax
mulq %rbp
addq %rax,%r10
adcq $0,... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/modexp512-x86_64.S | Unix Assembly | gpl2 | 24,095 |
.text
.set noat
.set noreorder
.align 5
.globl bn_mul_mont
.ent bn_mul_mont
bn_mul_mont:
lw $8,16($29)
lw $9,20($29)
slt $1,$9,4
bnez $1,1f
li $2,0
slt $1,$9,17 # on in-order CPU
bnez $1,bn_mul_mont_internal
nop
1: jr $31
li $4,0
.end bn_mul_mont
.align 5
.ent bn_mul_mont_internal
bn_mul_mont_internal:
.fr... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/mips-mont.S | Motorola 68K Assembly | gpl2 | 3,915 |
#!/usr/bin/env perl
#
# Implemented as a Perl wrapper as we want to support several different
# architectures with single file. We pick up the target based on the
# file name we are asked to generate.
#
# It should be noted though that this perl code is nothing like
# <openssl>/crypto/perlasm/x86*. In this case perl is... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/ppc.pl | Raku | gpl2 | 44,972 |
;
; PA-RISC 64-bit implementation of bn_asm code
;
; This code is approximately 2x faster than the C version
; for RSA/DSA.
;
; See http://devresource.hp.com/ for more details on the PA-RISC
; architecture. Also see the book "PA-RISC 2.0 Architecture"
; by Gerry Kane for information on the instruction set architectur... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/pa-risc2W.S | Motorola 68K Assembly | gpl2 | 46,674 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/ppc64-mont.pl | Raku | gpl2 | 26,444 |
.file "crypto/bn/asm/bn-586.s"
.text
.globl bn_mul_add_words
.type bn_mul_add_words,@function
.align 16
bn_mul_add_words:
.L_bn_mul_add_words_begin:
call .L000PIC_me_up
.L000PIC_me_up:
popl %eax
leal _GLOBAL_OFFSET_TABLE_+[.-.L000PIC_me_up](%eax),%eax
movl OPENSSL_ia32cap_P@GOT(%eax),%eax
btl $26,(%eax)
jnc .L001... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/bn-586.S | Unix Assembly | gpl2 | 23,505 |
#!/usr/bin/env perl
#
# Copyright (c) 2010-2011 Intel Corp.
# Author: Vinodh.Gopal@intel.com
# Jim Guilford
# Erdinc.Ozturk@intel.com
# Maxim.Perminov@intel.com
#
# More information about algorithm used can be found at:
# http://www.cse.buffalo.edu/srds2009/escs2009_submission_Gopal.pd... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/modexp512-x86_64.pl | Perl | gpl2 | 34,519 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/armv4-gf2m.pl | Prolog | gpl2 | 7,252 |
#!/usr/local/bin/perl
# x86 assember
| zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/f | Perl | gpl2 | 38 |
#!/usr/local/bin/perl
# x86 assember
sub bn_add_words
{
local($name)=@_;
&function_begin($name,"");
&comment("");
$a="esi";
$b="edi";
$c="eax";
$r="ebx";
$tmp1="ecx";
$tmp2="edx";
$num="ebp";
&mov($r,&wparam(0)); # get r
&mov($a,&wparam(1)); # get a
&mov($b,&wparam(2)); # get b
&mov($num,&wparam(3)... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/add.pl | Raku | gpl2 | 1,339 |
#!/usr/local/bin/perl
# x86 assember
sub bn_mul_words
{
local($name)=@_;
&function_begin($name,"");
&comment("");
$Low="eax";
$High="edx";
$a="ebx";
$w="ecx";
$r="edi";
$c="esi";
$num="ebp";
&xor($c,$c); # clear carry
&mov($r,&wparam(0)); #
&mov($a,&wparam(1)); #
&mov($num,&wparam(2)); #
&mov($w,&w... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/mul.pl | Raku | gpl2 | 1,384 |
#!/usr/local/bin/perl
# x86 assember
sub mul_add_c
{
local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
# pos == -1 if eax and edx are pre-loaded, 0 to load from next
# words, and 1 if load return value
&comment("mul a[$ai]*b[$bi]");
# "eax" and "edx" will always be pre-loaded.
# &mov("eax",&DWP($ai*4,$a,"... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/comba.pl | Raku | gpl2 | 5,377 |
#!/usr/local/bin/perl
# x86 assember
sub bn_sub_words
{
local($name)=@_;
&function_begin($name,"");
&comment("");
$a="esi";
$b="edi";
$c="eax";
$r="ebx";
$tmp1="ecx";
$tmp2="edx";
$num="ebp";
&mov($r,&wparam(0)); # get r
&mov($a,&wparam(1)); # get a
&mov($b,&wparam(2)); # get b
&mov($num,&wparam(3)... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/sub.pl | Raku | gpl2 | 1,339 |
#!/usr/local/bin/perl
# x86 assember
sub bn_mul_add_words
{
local($name)=@_;
&function_begin($name,"");
&comment("");
$Low="eax";
$High="edx";
$a="ebx";
$w="ebp";
$r="edi";
$c="esi";
&xor($c,$c); # clear carry
&mov($r,&wparam(0)); #
&mov("ecx",&wparam(2)); #
&mov($a,&wparam(1)); #
&and("ecx",0xfff... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/mul_add.pl | Raku | gpl2 | 1,716 |
#!/usr/local/bin/perl
# x86 assember
sub bn_div_words
{
local($name)=@_;
&function_begin($name,"");
&mov("edx",&wparam(0)); #
&mov("eax",&wparam(1)); #
&mov("ebx",&wparam(2)); #
&div("ebx");
&function_end($name);
}
1;
| zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/div.pl | Perl | gpl2 | 229 |
#!/usr/local/bin/perl
# x86 assember
sub bn_sqr_words
{
local($name)=@_;
&function_begin($name,"");
&comment("");
$r="esi";
$a="edi";
$num="ebx";
&mov($r,&wparam(0)); #
&mov($a,&wparam(1)); #
&mov($num,&wparam(2)); #
&and($num,0xfffffff8); # num / 8
&jz(&label("sw_finish"));
&set_label("sw_loop",0);
... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86/sqr.pl | Raku | gpl2 | 1,049 |
#!/usr/local/bin/perl
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC,"${dir}","${dir}../../perlasm");
require "x86asm.pl";
&asm_init($ARGV[0],$0);
&bn_mul_comba("bn_mul_comba8",8);
&bn_mul_comba("bn_mul_comba4",4);
&bn_sqr_comba("bn_sqr_comba8",8);
&bn_sqr_comba("bn_sqr_comba4",4);
&asm_finish();
sub mul_add_c
... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/co-586.pl | Raku | gpl2 | 5,640 |
.text
.globl bn_mul_mont_gather5
.type bn_mul_mont_gather5,@function
.align 64
bn_mul_mont_gather5:
testl $3,%r9d
jnz .Lmul_enter
cmpl $8,%r9d
jb .Lmul_enter
jmp .Lmul4x_enter
.align 16
.Lmul_enter:
movl %r9d,%r9d
movl 8(%rsp),%r10d
pushq %rbx
pushq %rbp
pushq %r12
pushq %r13
pushq %r14
pushq %r15
movq... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-mont5.S | Unix Assembly | gpl2 | 12,855 |
.ident "sparcv8plus.s, Version 1.4"
.ident "SPARC v9 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
/*
* ====================================================================
* Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
* project.
*
* Rights for redistribution and usage in source and bin... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/sparcv8plus.S | Unix Assembly | gpl2 | 33,130 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/parisc-mont.pl | Raku | gpl2 | 27,025 |
.text
.globl bn_mul_mont
.type bn_mul_mont,@function
.align 16
bn_mul_mont:
testl $3,%r9d
jnz .Lmul_enter
cmpl $8,%r9d
jb .Lmul_enter
cmpq %rsi,%rdx
jne .Lmul4x_enter
jmp .Lsqr4x_enter
.align 16
.Lmul_enter:
pushq %rbx
pushq %rbp
pushq %r12
pushq %r13
pushq %r14
pushq %r15
movl %r9d,%r9d
leaq 2(%r9),... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-mont.S | Unix Assembly | gpl2 | 21,837 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.o... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/mips3-mont.pl | Raku | gpl2 | 5,362 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86-gf2m.pl | Raku | gpl2 | 7,723 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/s390x-gf2m.pl | Raku | gpl2 | 5,142 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/mips-mont.pl | Raku | gpl2 | 8,877 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/sparcv9-mont.pl | Raku | gpl2 | 13,711 |
.explicit
.text
.ident "ia64.S, Version 2.1"
.ident "IA-64 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
//
// ====================================================================
// Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
// project.
//
// Rights for redistribution and usage in source a... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/ia64.S | Motorola 68K Assembly | gpl2 | 45,315 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.opens... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/x86_64-mont5.pl | Perl | gpl2 | 22,488 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/sparcv9a-mont.pl | Raku | gpl2 | 20,723 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.o... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/via-mont.pl | Raku | gpl2 | 8,990 |
.file "crypto/bn/asm/co-586.s"
.text
.globl bn_mul_comba8
.type bn_mul_comba8,@function
.align 16
bn_mul_comba8:
.L_bn_mul_comba8_begin:
pushl %esi
movl 12(%esp),%esi
pushl %edi
movl 20(%esp),%edi
pushl %ebp
pushl %ebx
xorl %ebx,%ebx
movl (%esi),%eax
xorl %ecx,%ecx
movl (%edi),%edx
xorl %ebp,%ebp
mull %ed... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/co-586.S | Unix Assembly | gpl2 | 16,999 |
.rdata
.asciiz "mips3.s, Version 1.1"
.asciiz "MIPS III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>"
/*
* ====================================================================
* Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
* project.
*
* Rights for redistribution and usage in source a... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/mips3.S | Motorola 68K Assembly | gpl2 | 37,614 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | zx08uestc-openvpn | main/openssl/crypto/bn/asm/ppc-mont.pl | Raku | gpl2 | 7,591 |
/* crypto/bn/bn_gcd.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_gcd.c | C | gpl2 | 17,485 |
/* crypto/bn/bn_prime.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | zx08uestc-openvpn | main/openssl/crypto/bn/bn_prime.c | C | gpl2 | 14,208 |
/* crypto/pkcs7/sign.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/sign.c | C | gpl2 | 5,107 |
/* pk7_smime.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_smime.c | C | gpl2 | 15,373 |
/* pk7_mime.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_mime.c | C | gpl2 | 3,632 |
/* crypto/pkcs7/pkcs7.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pkcs7.h | C | gpl2 | 18,111 |
/* crypto/pkcs7/pk7_doit.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and ... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_doit.c | C | gpl2 | 30,871 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/pkcs7.h>
#include <openssl/asn1_mac.h>
#include <openssl/x509.h>
int add_signed_time(PKCS7_SIGNER_INFO *si)
{
ASN1_UTCTIME *sign_time;
/* The last parameter is the amount to add/subtract from the current
* time (in seconds) */
sign_tim... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/example.c | C | gpl2 | 8,177 |
/* crypto/pkcs7/enc.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/enc.c | C | gpl2 | 5,667 |
/* crypto/pkcs7/pkcs7err.c */
/* ====================================================================
* Copyright (c) 1999-2014 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pkcs7err.c | C | gpl2 | 9,844 |
/* crypto/pkcs7/verify.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and no... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/dec.c | C | gpl2 | 7,657 |
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of ... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/example.h | C | gpl2 | 2,804 |
/* crypto/pkcs7/pk7_enc.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and n... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_enc.c | C | gpl2 | 3,616 |
/* pk7_attr.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
/* ====================================================================
* Copyright (c) 2001-2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or witho... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_attr.c | C | gpl2 | 5,597 |
/* crypto/pkcs7/pk7_dgst.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and ... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_dgst.c | C | gpl2 | 3,375 |
/* crypto/evp/bio_ber.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/bio_ber.c | C | gpl2 | 10,843 |
/* crypto/pkcs7/pk7_lib.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and n... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_lib.c | C | gpl2 | 16,066 |
/* pk7_asn.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
/* ====================================================================
* Copyright (c) 2000 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/pk7_asn1.c | C | gpl2 | 9,354 |
/* crypto/pkcs7/verify.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and no... | zx08uestc-openvpn | main/openssl/crypto/pkcs7/verify.c | C | gpl2 | 7,793 |
/* $LP: LPlib/source/LPdir_win.c,v 1.10 2004/08/26 13:36:05 _cvs_levitte Exp $ */
/*
* Copyright (c) 2004, Richard Levitte <richard@levitte.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... | zx08uestc-openvpn | main/openssl/crypto/LPdir_win.c | C | gpl2 | 4,311 |
/* crypto/aes/aes_ctr.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_ctr.c | C | gpl2 | 2,880 |
/* crypto/aes/aes_misc.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_misc.c | C | gpl2 | 3,291 |
/* crypto/aes/aes_ecb.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_ecb.c | C | gpl2 | 2,949 |
/* crypto/aes/aes_cbc.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_cbc.c | C | gpl2 | 2,885 |
/* crypto/aes/aes_cfb.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 2002-2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_cfb.c | C | gpl2 | 3,588 |
/* crypto/aes/aes_wrap.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or with... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_wrap.c | C | gpl2 | 7,677 |
/* crypto/aes/aes_ofb.c -*- mode:C; c-file-style: "eay" -*- */
/* ====================================================================
* Copyright (c) 2002-2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | zx08uestc-openvpn | main/openssl/crypto/aes/aes_ofb.c | C | gpl2 | 2,793 |