Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 35) sorted by relevance

12

/openssl/crypto/bn/
H A Dbn_blind.c20 BIGNUM *mod; /* just a reference */ member
34 bn_check_top(mod); in BN_BLINDING_new()
59 if ((ret->mod = BN_dup(mod)) == NULL) in BN_BLINDING_new()
62 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_BLINDING_new()
63 BN_set_flags(ret->mod, BN_FLG_CONSTTIME); in BN_BLINDING_new()
86 BN_free(r->mod); in BN_BLINDING_free()
114 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx) in BN_BLINDING_update()
115 || !BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update()
155 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert_ex()
195 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
[all …]
H A Dbn_mont.c261 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) in BN_MONT_CTX_set() argument
266 if (BN_is_zero(mod)) in BN_MONT_CTX_set()
273 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set()
275 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_MONT_CTX_set()
289 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_MONT_CTX_set()
292 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2; in BN_MONT_CTX_set()
307 if ((buf[0] = mod->d[0])) in BN_MONT_CTX_set()
309 if ((buf[1] = mod->top > 1 ? mod->d[1] : 0)) in BN_MONT_CTX_set()
343 buf[0] = mod->d[0]; /* tmod = N mod word size */ in BN_MONT_CTX_set()
427 const BIGNUM *mod, BN_CTX *ctx) in BN_MONT_CTX_set_locked() argument
[all …]
H A Dbn_prime.c306 BN_ULONG mod = BN_mod_word(w, primes[i]); in bn_is_prime_int() local
307 if (mod == (BN_ULONG)-1) in bn_is_prime_int()
309 if (mod == 0) in bn_is_prime_int()
503 BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); in probable_prime() local
504 if (mod == (BN_ULONG)-1) in probable_prime()
506 mods[i] = (prime_t) mod; in probable_prime()
588 BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); in probable_prime_dh() local
589 if (mod == (BN_ULONG)-1) in probable_prime_dh()
591 mods[i] = (prime_t) mod; in probable_prime_dh()
/openssl/crypto/modes/asm/
H A Dghash-parisc.pl640 my ($mod,$args) = @_;
641 my $orig = "ldd$mod\t$args";
658 my ($mod,$args) = @_;
659 my $orig = "std$mod\t$args";
669 my ($mod,$args) = @_;
670 my $orig = "extrd$mod\t$args";
691 my ($mod,$args) = @_;
708 my ($mod,$args) = @_;
709 my $orig = "depd$mod\t$args";
724 my ($mnemonic,$mod,$args)=@_;
[all …]
/openssl/crypto/bn/asm/
H A Dparisc-mont.pl902 my ($mod,$args) = @_;
903 my $orig = "ldd$mod\t$args";
920 my ($mod,$args) = @_;
921 my $orig = "std$mod\t$args";
934 my ($mod,$args) = @_;
935 my $orig = "extrd$mod\t$args";
956 my ($mod,$args) = @_;
969 my ($mod,$args) = @_;
970 my $orig = "sub$mod\t$args";
983 my ($mnemonic,$mod,$args)=@_;
[all …]
H A Drsaz-x86_64.pl833 movq $mod, %xmm1
1211 mov $mod, 128+16(%rsp)
1417 movq $mod, %xmm1
1793 movq 0($mod), %r8
1794 movq 8($mod), %r9
1798 movq 16($mod), %r10
1801 movq 24($mod), %r11
1804 movq 32($mod), %r12
1807 movq 40($mod), %r13
1810 movq 48($mod), %r14
[all …]
/openssl/test/testutil/
H A Drandom.c31 const unsigned int mod = (1u << 31) - 1; in test_random_seed() local
36 test_random_state[i] = (uint32_t)((16807 * (int64_t)s) % mod); in test_random_seed()
/openssl/crypto/sha/asm/
H A Dsha512-parisc.pl704 my ($mod,$args) = @_;
705 my $orig = "ldd$mod\t$args";
709 $opcode|=(1<<3) if ($mod =~ /^,m/);
717 my ($mod,$args) = @_;
718 my $orig = "std$mod\t$args";
728 my ($mod,$args) = @_;
729 my $orig = "extrd$mod\t$args";
750 my ($mod,$args) = @_;
751 my $orig = "shrpd$mod\t$args";
767 my ($mnemonic,$mod,$args)=@_;
[all …]
/openssl/crypto/objects/
H A Dobjects.txt256 id-smime-mod 1 : id-smime-mod-cms
257 id-smime-mod 2 : id-smime-mod-ess
258 id-smime-mod 3 : id-smime-mod-oid
501 id-pkix-mod 5 : id-mod-crmf
502 id-pkix-mod 6 : id-mod-cmc
505 id-pkix-mod 9 : id-mod-cmp
510 id-pkix-mod 14 : id-mod-ocsp
511 id-pkix-mod 15 : id-mod-dvcs
512 id-pkix-mod 16 : id-mod-cmp2000
513 id-pkix-mod 50 : id-mod-cmp2000-02
[all …]
/openssl/crypto/
H A Dcryptlib.c51 HANDLE mod = GetModuleHandle(NULL); in OPENSSL_isservice() local
54 if (mod != NULL) in OPENSSL_isservice()
55 f = GetProcAddress(mod, "_OPENSSL_isservice"); in OPENSSL_isservice()
/openssl/ms/
H A Dapplink.c91 static int app_fsetmod(FILE *fp, char mod) in app_fsetmod() argument
93 return _setmode(_fileno(fp), mod == 'b' ? _O_BINARY : _O_TEXT); in app_fsetmod()
/openssl/crypto/ec/asm/
H A Decp_sm2p256-armv8.pl29 my $mod = shift;
45 adr x2,$mod
75 my $mod = shift;
91 adr x2,$mod
121 my $mod = shift;
137 adr x2,$mod
/openssl/doc/man3/
H A DBN_add.pod83 remainder respective to modulus I<m> (C<r=(a*b) mod m>). I<r> may be
93 C<in^2 = a (mod p)>. The modulus I<p> must be a
H A DRSA_set_method.pod109 /* compute r0 = r0 ^ I mod rsa->n (May be NULL for some implementations) */
112 /* compute r = a ^ p mod m (May be NULL for some implementations) */
H A DDSA_meth_new.pod147 rr = a1^p1 * a2^p2 mod m
156 r = a ^ p mod m
H A DRSA_check_key.pod31 It also checks that B<d*e = 1 mod (p-1*q-1)>,
H A DEC_GROUP_new.pod84 y^2 mod p = x^3 +ax + b mod p
H A DBN_BLINDING_new.pod16 BIGNUM *mod);
/openssl/include/openssl/
H A Dbn.h416 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);
419 const BIGNUM *mod, BN_CTX *ctx);
425 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);
/openssl/test/
H A Dec_internal_test.c488 static int check_bn_mont_ctx(BN_MONT_CTX *mont, BIGNUM *mod, BN_CTX *ctx) in check_bn_mont_ctx() argument
498 if (!TEST_true(BN_MONT_CTX_set(regenerated, mod, ctx))) in check_bn_mont_ctx()
/openssl/crypto/ec/
H A Decp_nistz256.c641 BIGNUM *mod; in ecp_nistz256_windowed_mul() local
643 if ((mod = BN_CTX_get(ctx)) == NULL) in ecp_nistz256_windowed_mul()
645 if (!BN_nnmod(mod, scalar[i], group->order, ctx)) { in ecp_nistz256_windowed_mul()
649 scalars[i] = mod; in ecp_nistz256_windowed_mul()
H A Decp_sm2p256.c140 #define BN_MOD_INV(out, in, mod_div, mod_sub, mod) \ argument
150 memcpy(v, mod, 32); \
/openssl/doc/man7/
H A DEVP_PKEY-EC.pod50 For Fp: y^2 mod p = x^3 +ax + b mod p OR
/openssl/test/recipes/10-test_bn_data/
H A Dbnmod.txt8 # These test vectors satisfy A * B = ModMul (mod M) and 0 <= ModMul < M.
2014 # These test vectors satisfy A ^ E = ModExp (mod M) and 0 <= ModExp < M.
2543 # These test vectors satisfy (ModSqrt * ModSqrt) mod P = A mod P with P a prime.
/openssl/
H A DConfigure2099 my $mod = $+{MOD};
2106 if (defined $mod) {
2107 if ($mod =~ /^${variable_subst_re}$/) {

Completed in 113 milliseconds

12