Home
last modified time | relevance | path

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

12345

/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_anonymityrevocation/
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/
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/
Dmodsi3.S62 | the modulus in %d1:
73 negl %d1 | negate modulus
74 .Lret: movl %d1, %d0 | move modulus into %d0
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/
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/cpl/trousers/dist/src/tspi/daa/
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 …]
Ddaa_debug.c38 BI_SAVE( pk_internal->modulus, file); in save_DAA_PK_internal()
67 pk_internal->modulus = bi_new_ptr(); in load_DAA_PK_internal()
68 BI_LOAD( pk_internal->modulus, file); in load_DAA_PK_internal()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_platform/
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 …]
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/
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/crypto/external/bsd/openssl/dist/apps/
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()
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()
Dx509.c280 int x509toreq = 0, modulus = 0, print_pubkey = 0, pprint = 0; in x509_main() local
479 modulus = ++num; in x509_main()
847 if ((print_pubkey != 0 || modulus != 0) && pkey == NULL) { in x509_main()
965 } else if (i == modulus) { in x509_main()
/netbsd/src/common/lib/libc/arch/vax/gen/
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/bsd/wpa/dist/src/crypto/
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()
Dcrypto_nettle.c377 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
387 mpz_import(bn_modulus, modulus_len, 1, 1, 1, 0, modulus); in crypto_mod_exp()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
Drsa.c563 k->n = _hc_integer_to_BN(&data.modulus, NULL); in d2i_RSAPrivateKey()
597 ret = _hc_BN_to_integer(rsa->n, &data.modulus); in i2d_RSAPrivateKey()
642 if (_hc_BN_to_integer(rsa->n, &data.modulus) || in i2d_RSAPublicKey()
694 k->n = _hc_integer_to_BN(&data.modulus, NULL); in d2i_RSAPublicKey()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_issuer/
Dkey_correctness_proof.c107 fprintf(stderr, "modulus=%s\n", bi_2_hex_char( pk->modulus)); in generateMessageDigest()
109 toByteArray( array, length, pk->modulus, in generateMessageDigest()
169 bi_ptr n = public_key->modulus; in is_pk_correct()
415 bi_ptr n = public_key->modulus; in generate_proof()
/netbsd/src/crypto/external/bsd/netpgp/dist/ref/
Drfc2437.txt187 k length in octets of the modulus
201 n modulus
205 p,q prime factors of the modulus
246 n, the modulus, a nonnegative integer
249 In a valid RSA public key, the modulus n is a product of two odd
264 n, the modulus, a nonnegative integer
276 In a valid RSA private key with the first representation, the modulus
295 factors p and q are the prime factors of the modulus n, the exponents
689 modulus. Assuming that the hash function in EME-OAEP has appropriate
721 modulus n and hLen is the length in octets of the hash
[all …]
/netbsd/src/external/bsd/ntp/dist/util/
Dinvoke-ntp-keygen.texi619 @item @code{-b} @code{--imbits}= @kbd{modulus}
620 Set the number of bits in the identity modulus for generating identity keys to
621 @kbd{modulus}
623 The number of bits in the identity modulus defaults to 256, but can be set to
724 @item @code{-m} @code{--modulus}= @kbd{bits}
725 Set the number of bits in the prime modulus for generating files to
727 The modulus defaults to 512, but can be set from 256 to 2048 (32 to 256 octets).
1026 * ntp-keygen modulus:: modulus option (-m)
1062 -b Num imbits identity modulus bits
1077 -m Num modulus prime modulus
[all …]
Dntp-keygen.c182 u_int modulus = PLEN; /* prime modulus size (bits) */ variable
426 modulus = OPT_VALUE_MODULUS; in main()
1019 fprintf(stderr, "Generating RSA keys (%d bits)...\n", modulus); in gen_rsa()
1020 rsa = genRsaKeyPair(modulus, _UC("RSA")); in gen_rsa()
1076 "Generating DSA parameters (%d bits)...\n", modulus); in gen_dsa()
1077 dsa = genDsaParams(modulus, _UC("DSA")); in gen_dsa()
1088 fprintf(stderr, "Generating DSA keys (%d bits)...\n", modulus); in gen_dsa()
Dntp-keygen-opts.def23 descrip = "identity modulus bits";
25 The number of bits in the identity modulus. The default is 512.
143 name = modulus;
145 arg-name = modulus;
148 descrip = "prime modulus";
150 The number of bits in the prime modulus. The default is 512.
885 .It Fl b Fl -imbits Ns = Ar modulus
886 Set the number of bits in the identity modulus for generating identity keys to
887 .Ar modulus
889 The number of bits in the identity modulus defaults to 256, but can be set to
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/lm32/
Dlm32.opt28 Enable divide and modulus instructions.
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/hx509/
Dsoftp11.c373 CK_BYTE *modulus = NULL; in add_pubkey_info() local
392 modulus = malloc(modulus_len); in add_pubkey_info()
393 BN_bn2bin(num, modulus); in add_pubkey_info()
396 add_object_attribute(o, 0, CKA_MODULUS, modulus, modulus_len); in add_pubkey_info()
400 free(modulus); in add_pubkey_info()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
Dbitmap_allocator.h711 modulus = _BSize % _AlignSize, in _GLIBCXX_VISIBILITY()
712 value = _BSize + (modulus ? _AlignSize - (modulus) : 0) in _GLIBCXX_VISIBILITY()

12345