003 File Manager
Current Path:
/usr/src/crypto/openssl/crypto/bn
usr
/
src
/
crypto
/
openssl
/
crypto
/
bn
/
📁
..
📄
README.pod
(9.35 KB)
📁
asm
📄
bn_add.c
(3.34 KB)
📄
bn_asm.c
(26.9 KB)
📄
bn_blind.c
(7.94 KB)
📄
bn_const.c
(26.29 KB)
📄
bn_ctx.c
(9.57 KB)
📄
bn_depr.c
(1.89 KB)
📄
bn_dh.c
(28.75 KB)
📄
bn_div.c
(13.66 KB)
📄
bn_err.c
(5.7 KB)
📄
bn_exp.c
(44.31 KB)
📄
bn_exp2.c
(5.8 KB)
📄
bn_gcd.c
(18.56 KB)
📄
bn_gf2m.c
(28.99 KB)
📄
bn_intern.c
(5.47 KB)
📄
bn_kron.c
(3.22 KB)
📄
bn_lib.c
(22.66 KB)
📄
bn_local.h
(24.59 KB)
📄
bn_mod.c
(7.73 KB)
📄
bn_mont.c
(12.13 KB)
📄
bn_mpi.c
(1.89 KB)
📄
bn_mul.c
(18.69 KB)
📄
bn_nist.c
(37.28 KB)
📄
bn_prime.c
(10.85 KB)
📄
bn_prime.h
(15.49 KB)
📄
bn_prime.pl
(1.38 KB)
📄
bn_print.c
(7.77 KB)
📄
bn_rand.c
(7.31 KB)
📄
bn_recp.c
(4.51 KB)
📄
bn_shift.c
(4.71 KB)
📄
bn_sqr.c
(5.37 KB)
📄
bn_sqrt.c
(9.28 KB)
📄
bn_srp.c
(21.37 KB)
📄
bn_word.c
(4.4 KB)
📄
bn_x931p.c
(5.73 KB)
📄
build.info
(2.6 KB)
📄
rsaz_exp.c
(10.76 KB)
📄
rsaz_exp.h
(1.38 KB)
Editing: bn_depr.c
/* * Copyright 2002-2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ /* * Support for deprecated functions goes here - static linkage will only * slurp this code if applications are using them directly. */ #include <openssl/opensslconf.h> #if OPENSSL_API_COMPAT >= 0x00908000L NON_EMPTY_TRANSLATION_UNIT #else # include <stdio.h> # include <time.h> # include "internal/cryptlib.h" # include "bn_local.h" BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, void (*callback) (int, int, void *), void *cb_arg) { BN_GENCB cb; BIGNUM *rnd = NULL; BN_GENCB_set_old(&cb, callback, cb_arg); if (ret == NULL) { if ((rnd = BN_new()) == NULL) goto err; } else rnd = ret; if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) goto err; /* we have a prime :-) */ return rnd; err: BN_free(rnd); return NULL; } int BN_is_prime(const BIGNUM *a, int checks, void (*callback) (int, int, void *), BN_CTX *ctx_passed, void *cb_arg) { BN_GENCB cb; BN_GENCB_set_old(&cb, callback, cb_arg); return BN_is_prime_ex(a, checks, ctx_passed, &cb); } int BN_is_prime_fasttest(const BIGNUM *a, int checks, void (*callback) (int, int, void *), BN_CTX *ctx_passed, void *cb_arg, int do_trial_division) { BN_GENCB cb; BN_GENCB_set_old(&cb, callback, cb_arg); return BN_is_prime_fasttest_ex(a, checks, ctx_passed, do_trial_division, &cb); } #endif
Upload File
Create Folder