Home
last modified time | relevance | path

Searched refs:modulus (Results 1 – 25 of 212) sorted by relevance

123456789

/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/
H A Dint128.d454 Cent modulus; in udiv() local
455 return udivmod(c1, c2, modulus); in udiv()
468 Cent udivmod(Cent c1, Cent c2, out Cent modulus) in udivmod() argument
476 static U udivmod128_64(Cent c1, U c2, out U modulus) in udivmod()
486 modulus = 0UL; in udivmod()
527 modulus = (rem * base + num0 - q0 * c2) >> shift; in udivmod()
535 modulus = Zero; in udivmod()
536 return com(modulus); in udivmod()
542 modulus = rem; in udivmod()
549 modulus = c1; in udivmod()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_anonymityrevocation/
H A Dcsencryption_result.c105 bi_ptr modulus = daa_key->modulus; in internal_compute_encryption_proof() local
117 if( bi_cmp( msg, modulus) >= 0) { in internal_compute_encryption_proof()
126 bi_mod_exp( c1, gamma, randomness, modulus); in internal_compute_encryption_proof()
127 bi_mod_exp( c2, key->eta, randomness, modulus); in internal_compute_encryption_proof()
129 bi_mul( c3, msg, bi_mod_exp( bi_tmp, key->lambda3, randomness, modulus)); in internal_compute_encryption_proof()
130 bi_mod( c3, c3, modulus); // c3 = c3 % modulus in internal_compute_encryption_proof()
159 bi_mod_exp( bi_tmp, key->lambda1, randomness, modulus); in internal_compute_encryption_proof()
161 bi_mod_exp( bi_tmp1, key->lambda2, exp, modulus); in internal_compute_encryption_proof()
166 bi_mod( c4, c4, modulus); in internal_compute_encryption_proof()
/netbsd-src/lib/libtelnet/
H A Dpk.c138 BIGNUM *modulus = BN_new(); in common_key() local
141 (void)BN_hex2bn(&modulus, HEXMODULUS); in common_key()
146 BN_mod_exp(common, public, secret, modulus, ctx); in common_key()
155 BN_free(modulus); in common_key()
186 BIGNUM *modulus = BN_new(); in genkeys() local
196 (void)BN_hex2bn(&modulus, HEXMODULUS); in genkeys()
207 BN_div(tmp, sk, sk, modulus, ctx); in genkeys()
208 BN_mod_exp(pk, root, sk, modulus, ctx); in genkeys()
221 BN_free(modulus); in genkeys()
/netbsd-src/sys/lib/libkern/arch/m68k/
H A Dmodsi3.S62 | the modulus in %d1:
73 negl %d1 | negate modulus
74 .Lret: movl %d1, %d0 | move modulus into %d0
H A Dumodsi3.S62 | register, and that it returns the modulus in %d1:
65 movel %d1, %d0 | move the modulus into %d0
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/
H A Dtsp_daa.c35 Trspi_LoadBlob(offset, pk->modulusLength, blob, pk->modulus); in Trspi_LoadBlob_DAA_PK()
78 if ((pk->modulus = malloc(pk->modulusLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
81 Trspi_UnloadBlob(offset, pk->modulusLength, blob, pk->modulus); in Trspi_UnloadBlob_DAA_PK()
83 pk->modulus = NULL; in Trspi_UnloadBlob_DAA_PK()
188 free(pk->modulus); in Trspi_UnloadBlob_DAA_PK()
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DRSA_size.pod5 RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
19 RSA_size() returns the RSA modulus size in bytes. It can be used to
32 RSA_size() returns the size of modulus in bytes.
H A DBN_mod_mul_montgomery.pod33 using the same modulus.
37 BN_MONT_CTX_set() sets up the I<mont> structure from the modulus I<m>
52 Note that I<a> must be nonnegative and smaller than the modulus.
H A DRSA_generate_key.pod35 The modulus size will be of length B<bits>, the number of primes to form the
36 modulus will be B<primes>, and the public exponent will be B<e>. Key sizes
41 B<primes> depends on modulus bit length:
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/
H A Ddaa_structs.c433 bi_mod_exp(pk_internal->capitalSprime, pk_internal->capitalS, bi_tmp, pk_internal->modulus); in compute_capitalSprime()
442 create_DAA_PK(const bi_ptr modulus, in create_DAA_PK() argument
459 pk_internal->modulus = modulus; in create_DAA_PK()
491 BI_SAVE( pk_internal->modulus, file);
520 pk_internal->modulus = bi_new_ptr();
521 BI_LOAD( pk_internal->modulus, file);
556 DUMP_BI( pk_internal->modulus); in dump_DAA_PK_internal()
598 bi_2_byte_array( &result[index], length, pk->modulus); in encoded_DAA_PK_internal()
672 STORE_DAA_PK_BI( modulus, daa_alloc, param_alloc); in i_2_e_TSS_DAA_PK()
731 pk_internal->modulus = get_bi(pk->modulusLength, pk->modulus); in e_2_i_TSS_DAA_PK()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DRSA_size.pod5 RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
31 RSA_size() returns the RSA modulus size in bytes. It can be used to
42 RSA_size() returns the size of modulus in bytes.
H A DEVP_PKEY_is_a.pod82 BIGNUM *modulus = NULL;
83 if (EVP_PKEY_get_bn_param(pkey, "n", &modulus))
84 /* do whatever with the modulus */
85 BN_free(modulus);
H A DRSA_generate_key.pod31 EVP_RSA_gen() generates a new RSA key pair with modulus size I<bits>.
46 The modulus size will be of length I<bits>, the number of primes to form the
47 modulus will be I<primes>, and the public exponent will be I<e>. Key sizes
52 I<primes> depends on modulus bit length:
H A DBN_mod_mul_montgomery.pod33 using the same modulus.
37 BN_MONT_CTX_set() sets up the I<mont> structure from the modulus I<m>
52 Note that I<a> must be nonnegative and smaller than the modulus.
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_platform/
H A Dplatform.c379 bi_2_nbin1( &length1, buffer1, pk_internal->modulus);
472 BYTE *modulus, stage, *buf; in Tspi_TPM_DAA_JoinInit_internal() local
532 if ((result = obj_rsakey_get_modulus(issuerAuthPKs[i], &modulus_length, &modulus))) in Tspi_TPM_DAA_JoinInit_internal()
538 modulus_length, modulus, 0, NULL, in Tspi_TPM_DAA_JoinInit_internal()
543 modulus_length, modulus, in Tspi_TPM_DAA_JoinInit_internal()
551 free_tspi(tspContext, modulus); in Tspi_TPM_DAA_JoinInit_internal()
569 if ((result = obj_daaissuerkey_get_modulus(hIssuerKey, &modulus_length, &modulus))) { in Tspi_TPM_DAA_JoinInit_internal()
579 free_tspi(tspContext, modulus); in Tspi_TPM_DAA_JoinInit_internal()
598 bi_2_nbin1( &length1, buffer1, pk_internal->modulus); in Tspi_TPM_DAA_JoinInit_internal()
604 modulus_length, modulus, &ownerAuth, in Tspi_TPM_DAA_JoinInit_internal()
[all …]
H A Dtest_join.c104 BYTE *modulus; in init_key_chain() local
133 modulus = (BYTE *)malloc( DAA_PARAM_KEY_SIZE / 8); in init_key_chain()
137 LogDebug("modulus=%s\n", dump_byte_array(256, modulus)); in init_key_chain()
141 bi_2_byte_array( modulus, DAA_PARAM_KEY_SIZE / 8, bi); in init_key_chain()
145 EVP_DigestUpdate(ctx, modulus, DAA_PARAM_KEY_SIZE / 8); in init_key_chain()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Ddh.c313 dh_new_group_asc(const char *gen, const char *modulus) in dh_new_group_asc() argument
320 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc()
338 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group() argument
344 if (!DH_set0_pqg(dh, modulus, NULL, gen)) { in dh_new_group()
/netbsd-src/external/bsd/unbound/dist/sldns/
H A Dkeyraw.c421 BIGNUM* modulus = NULL; in sldns_key_buf2rsa_raw() local
424 if(!sldns_key_rsa_buf_bignum(key, len, &modulus, &exponent)) in sldns_key_buf2rsa_raw()
429 BN_free(modulus); in sldns_key_buf2rsa_raw()
435 rsa->n = modulus; in sldns_key_buf2rsa_raw()
440 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in sldns_key_buf2rsa_raw()
442 BN_free(modulus); in sldns_key_buf2rsa_raw()
/netbsd-src/crypto/external/bsd/openssl.old/dist/apps/
H A Ddsa.c69 int i, modulus = 0, pubin = 0, pubout = 0, ret = 1; in dsa_main() local
125 modulus = 1; in dsa_main()
185 if (modulus) { in dsa_main()
H A Drsa.c73 int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1; in rsa_main() local
140 modulus = 1; in rsa_main()
208 if (modulus) { in rsa_main()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Ddsa.c87 int modulus = 0, pubin = 0, pubout = 0, ret = 1; in dsa_main() local
145 modulus = 1; in dsa_main()
211 if (modulus) { in dsa_main()
H A Drsa.c133 int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1; in rsa_main() local
201 modulus = 1; in rsa_main()
279 if (modulus) { in rsa_main()
/netbsd-src/common/lib/libc/arch/vax/gen/
H A Durem.S52 divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
74 divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dpkcs11rsa_link.c1301 CK_BYTE *exponent = NULL, *modulus = NULL; in pkcs11rsa_todns() local
1316 modulus = (CK_BYTE *)attr->pValue; in pkcs11rsa_todns()
1321 REQUIRE((exponent != NULL) && (modulus != NULL)); in pkcs11rsa_todns()
1346 memmove(r.base, modulus, mod_bytes); in pkcs11rsa_todns()
1358 CK_BYTE *exponent = NULL, *modulus = NULL; in pkcs11rsa_fromdns() local
1392 modulus = r.base; in pkcs11rsa_fromdns()
1395 ret = pk11_numbits(modulus, mod_bytes, &bits); in pkcs11rsa_fromdns()
1409 memmove(attr[0].pValue, modulus, mod_bytes); in pkcs11rsa_fromdns()
1430 CK_ATTRIBUTE *modulus = NULL, *exponent = NULL; in pkcs11rsa_tofile() local
1453 modulus = attr; in pkcs11rsa_tofile()
[all …]
/netbsd-src/external/bsd/wpa/dist/src/crypto/
H A Dcrypto_internal-modexp.c91 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
108 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()

123456789