/illumos-gate/usr/src/common/mpi/ |
H A D | mpprime.h | 65 mp_err mpp_random_size(mp_int *a, mp_size prec); 71 mp_err mpp_fermat_list(mp_int *a, const mp_digit *primes, mp_size nPrimes); 73 mp_err mpp_sieve(mp_int *trial, const mp_digit *primes, mp_size nPrimes, 74 unsigned char *sieve, mp_size nSieve); 75 mp_err mpp_make_prime(mp_int *start, mp_size nBits, mp_size strong,
|
H A D | mplogic.c | 126 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value) 128 mp_size ix; 156 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum) 158 mp_size bit, ix; 181 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits) 183 mp_size rshift = (lsbNum % MP_DIGIT_BIT); 184 mp_size lsWndx = (lsbNum / MP_DIGIT_BIT);
|
H A D | mplogic.h | 89 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value); 90 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum); 91 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits);
|
H A D | mpi-priv.h | 157 void s_mp_setz(mp_digit *dp, mp_size count); /* zero digits */ 158 void s_mp_copy(const mp_digit *sp, mp_digit *dp, mp_size count); /* copy */ 160 void s_mp_free(void *ptr, mp_size); /* general free function */ 187 mp_err s_mp_grow(mp_int *mp, mp_size min); /* increase allocated size */ 188 mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */ 194 { mp_size used = MP_USED(mp); \ 202 mp_err s_mp_lshd(mp_int *mp, mp_size p); /* left-shift by p digits */ 203 void s_mp_rshd(mp_int *mp, mp_size p); /* right-shift by p digits */ 222 mp_err s_mp_add_offset(mp_int *a, mp_int *b, mp_size offset); 243 mp_err s_mp_invmod_2d( const mp_int *a, mp_size [all...] |
H A D | mpprime.c | 112 mp_err mpp_random_size(mp_int *a, mp_size prec)
|
H A D | mpi.h | 130 typedef unsigned int mp_size; typedef 243 mp_size alloc; /* how many digits allocated */ 244 mp_size used; /* how many digits used */ 249 mp_size mp_get_prec(void); 250 void mp_set_prec(mp_size prec); 254 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag); 351 mp_err mp_read_unsigned_octets(mp_int *mp, const unsigned char *str, mp_size len); 353 mp_err mp_to_unsigned_octets(const mp_int *mp, unsigned char *str, mp_size maxlen); 354 mp_err mp_to_signed_octets(const mp_int *mp, unsigned char *str, mp_size maxlen); 355 mp_err mp_to_fixlen_octets(const mp_int *mp, unsigned char *str, mp_size le [all...] |
H A D | mpmontg.c | 100 mp_size i; 136 mp_size ib; 137 mp_size useda, usedb;
|
H A D | mpi.c | 103 static mp_size s_mp_defprec = MP_DEFPREC; 105 mp_size mp_get_prec(void) 111 void mp_set_prec(mp_size prec) 150 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag) 828 mp_size ib; 829 mp_size useda, usedb; 925 mp_size ix; 1329 mp_size used; 1795 mp_size k = 0; 1971 mp_size n [all...] |
H A D | mp_gf2m.c | 213 mp_size ix; 214 mp_size used_pa, used_pb; 258 s_bmul_d(const mp_digit *a, mp_size a_len, mp_digit b, mp_digit *d) 272 s_bmul_d_add(const mp_digit *a, mp_size a_len, mp_digit b, mp_digit *d) 292 mp_size ib, a_used, b_used; 358 mp_size used; 454 mp_size ia, a_used;
|
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ec.c | 163 CHECK_MPI_OK( mp_read_unsigned_octets(&Px, pointP->data + 1, (mp_size) len) ); 164 CHECK_MPI_OK( mp_read_unsigned_octets(&Py, pointP->data + 1 + len, (mp_size) len) ); 176 (mp_size) len) ); 178 (mp_size) len) ); 208 (mp_size) len) ); 210 (mp_size) len) ); 332 (mp_size) len) ); 497 CHECK_MPI_OK( mp_read_unsigned_octets(&Px, publicValue->data + 1, (mp_size) len) ); 498 CHECK_MPI_OK( mp_read_unsigned_octets(&Py, publicValue->data + 1 + len, (mp_size) len) ); 586 (mp_size) privateValu [all...] |
H A D | ecp_192.c | 64 mp_size a_used = MP_USED(a);
|
H A D | ecp_224.c | 64 mp_size a_used = MP_USED(a);
|
H A D | ecp_256.c | 62 mp_size a_used = MP_USED(a);
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_open.c | 52 cachesize = dbenv == NULL ? 0 : dbenv->mp_size;
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 1733 size_t mp_size; local 1739 mp_size = sizeof (mac_protect_t) + sizeof (dl_notify_ind_t); 1740 if ((mp = mexchange(dsp->ds_wq, NULL, mp_size, M_PROTO, 0)) == NULL) 1744 bzero(mp->b_rptr, mp_size);
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db.c | 542 envp->mp_size = cachesize;
|
/illumos-gate/usr/src/stand/lib/tcp/ |
H A D | tcp.c | 5114 int mp_size; local 5122 mp_size = mp->b_wptr - mp->b_rptr; 5123 bcopy(mp->b_rptr, new_mp->b_wptr, mp_size); 5124 new_mp->b_wptr += mp_size; 6043 int mp_size; local 6052 mp_size = mp1->b_wptr - mp1->b_rptr; 6053 bcopy(mp1->b_rptr, new_mp->b_wptr, mp_size); 6054 new_mp->b_wptr += mp_size;
|
/illumos-gate/usr/src/cmd/sendmail/db/ |
H A D | db.h | 248 size_t mp_size; /* Bytes in the mpool cache. */ member in struct:__db_env
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_ndp.c | 1325 size_t mp_size; local 1328 mp_size = sizeof (ipif->ipif_v6lcl_addr); 1330 mp_size = sizeof (ipif->ipif_lcl_addr); 1331 mp = allocb(mp_size, BPRI_MED);
|