/titanic_44/usr/src/common/mpi/ |
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 k, mp_int *c); [all …]
|
H A D | mplogic.c | 126 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value) in mpl_set_bit() 128 mp_size ix; in mpl_set_bit() 156 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum) in mpl_get_bit() 158 mp_size bit, ix; in mpl_get_bit() 181 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits) in mpl_get_bits() 183 mp_size rshift = (lsbNum % MP_DIGIT_BIT); in mpl_get_bits() 184 mp_size lsWndx = (lsbNum / MP_DIGIT_BIT); in mpl_get_bits()
|
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.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.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 len); [all …]
|
H A D | mpi.c | 103 static mp_size s_mp_defprec = MP_DEFPREC; 105 mp_size mp_get_prec(void) in mp_get_prec() 111 void mp_set_prec(mp_size prec) in mp_set_prec() 150 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag) in mp_init_size() 828 mp_size ib; in mp_mul() 829 mp_size useda, usedb; in mp_mul() 925 mp_size ix; in mp_sqr() 1329 mp_size used; in mp_sqrt() 1795 mp_size k = 0; in mp_gcd() 1971 mp_size nx = mp_trailing_zeros(&xc); in mp_xgcd() [all …]
|
H A D | mpmontg.c | 100 mp_size i; in s_mp_redc() 136 mp_size ib; in s_mp_mul_mont() 137 mp_size useda, usedb; in s_mp_mul_mont()
|
H A D | mp_gf2m.c | 213 mp_size ix; in mp_badd() 214 mp_size used_pa, used_pb; in mp_badd() 258 s_bmul_d(const mp_digit *a, mp_size a_len, mp_digit b, mp_digit *d) in s_bmul_d() 272 s_bmul_d_add(const mp_digit *a, mp_size a_len, mp_digit b, mp_digit *d) in s_bmul_d_add() 292 mp_size ib, a_used, b_used; in mp_bmul() 358 mp_size used; in mp_bmod() 454 mp_size ia, a_used; in mp_bsqrmod()
|
H A D | mpprime.c | 112 mp_err mpp_random_size(mp_int *a, mp_size prec) in mpp_random_size()
|
/titanic_44/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) ); in ec_points_mul() 164 CHECK_MPI_OK( mp_read_unsigned_octets(&Py, pointP->data + 1 + len, (mp_size) len) ); in ec_points_mul() 176 (mp_size) len) ); in ec_points_mul() 178 (mp_size) len) ); in ec_points_mul() 208 (mp_size) len) ); in ec_points_mul() 210 (mp_size) len) ); in ec_points_mul() 332 (mp_size) len) ); in ec_NewKey() 497 CHECK_MPI_OK( mp_read_unsigned_octets(&Px, publicValue->data + 1, (mp_size) len) ); in EC_ValidatePublicKey() 498 CHECK_MPI_OK( mp_read_unsigned_octets(&Py, publicValue->data + 1 + len, (mp_size) len) ); in EC_ValidatePublicKey() 586 (mp_size) privateValue->len) ); in ECDH_Derive() [all …]
|
H A D | ecp_224.c | 64 mp_size a_used = MP_USED(a); in ec_GFp_nistp224_mod()
|
H A D | ecp_192.c | 64 mp_size a_used = MP_USED(a); in ec_GFp_nistp192_mod()
|
H A D | ecp_256.c | 62 mp_size a_used = MP_USED(a); in ec_GFp_nistp256_mod()
|
/titanic_44/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_open.c | 52 cachesize = dbenv == NULL ? 0 : dbenv->mp_size;
|
/titanic_44/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 1733 size_t mp_size; in str_notify_allowed_ips() local 1739 mp_size = sizeof (mac_protect_t) + sizeof (dl_notify_ind_t); in str_notify_allowed_ips() 1740 if ((mp = mexchange(dsp->ds_wq, NULL, mp_size, M_PROTO, 0)) == NULL) in str_notify_allowed_ips() 1744 bzero(mp->b_rptr, mp_size); in str_notify_allowed_ips()
|
/titanic_44/usr/src/stand/lib/tcp/ |
H A D | tcp.c | 5114 int mp_size; in tcp_wput_data() local 5122 mp_size = mp->b_wptr - mp->b_rptr; in tcp_wput_data() 5123 bcopy(mp->b_rptr, new_mp->b_wptr, mp_size); in tcp_wput_data() 5124 new_mp->b_wptr += mp_size; in tcp_wput_data() 6043 int mp_size; in tcp_xmit_mp() local 6052 mp_size = mp1->b_wptr - mp1->b_rptr; in tcp_xmit_mp() 6053 bcopy(mp1->b_rptr, new_mp->b_wptr, mp_size); in tcp_xmit_mp() 6054 new_mp->b_wptr += mp_size; in tcp_xmit_mp()
|
/titanic_44/usr/src/cmd/sendmail/db/db/ |
H A D | db.c | 542 envp->mp_size = cachesize;
|
/titanic_44/usr/src/cmd/sendmail/db/ |
H A D | db.h | 248 size_t mp_size; /* Bytes in the mpool cache. */ member
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_ndp.c | 1323 size_t mp_size; in ipif_do_recovery() local 1326 mp_size = sizeof (ipif->ipif_v6lcl_addr); in ipif_do_recovery() 1328 mp_size = sizeof (ipif->ipif_lcl_addr); in ipif_do_recovery() 1329 mp = allocb(mp_size, BPRI_MED); in ipif_do_recovery()
|