Searched refs:bn (Results 1 - 25 of 293) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_bmap.c106 ufs_bmaparray(vp, bn, bnp, nbp, runp, runb)
108 ufs2_daddr_t bn;
141 error = ufs_getlbns(vp, bn, ap, nump);
147 if (bn >= 0 && bn < NDADDR) {
148 *bnp = blkptrtodb(ump, DIP(ip, i_db[bn]));
149 } else if (bn < 0 && bn >= -NXADDR) {
150 *bnp = blkptrtodb(ump, ip->i_din2->di_extb[-1 - bn]);
168 if ((ip->i_flags & SF_SNAPSHOT) && DIP(ip, i_db[bn]) >
[all...]
/freebsd-11-stable/usr.sbin/makefs/ffs/
H A Dufs_bmap.c69 ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump) argument
81 realbn = bn;
82 if ((long)bn < 0)
83 bn = -(long)bn;
85 assert (bn >= NDADDR);
94 bn -= NDADDR;
95 for (lbc = 0, i = NIADDR;; i--, bn -= blockcnt) {
102 if (bn < blockcnt)
108 metalbn = -(realbn - bn
[all...]
/freebsd-11-stable/crypto/openssl/apps/
H A Dprime.c53 #include <openssl/bn.h>
67 BIGNUM *bn = NULL; local
125 bn = BN_new();
126 BN_generate_prime_ex(bn, bits, safe, NULL, NULL, NULL);
127 s = hex ? BN_bn2hex(bn) : BN_bn2dec(bn);
134 r = BN_hex2bn(&bn, argv[0]);
136 r = BN_dec2bn(&bn, argv[0]);
143 BN_print(bio_out, bn);
145 BN_is_prime_ex(bn, check
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_bmap.c93 ext4_bmapext(struct vnode *vp, int32_t bn, int64_t *bnp, int *runp, int *runb) argument
104 lbn = bn;
160 ext2_bmaparray(struct vnode *vp, daddr_t bn, daddr_t *bnp, int *runp, int *runb) argument
189 error = ext2_getlbns(vp, bn, ap, nump);
195 *bnp = blkptrtodb(ump, ip->i_db[bn]);
199 daddr_t bnb = bn;
201 for (++bn; bn < NDADDR && *runp < maxrun &&
202 is_sequential(ump, ip->i_db[bn - 1], ip->i_db[bn]);
312 ext2_getlbns(struct vnode *vp, daddr_t bn, struct indir *ap, int *nump) argument
[all...]
/freebsd-11-stable/contrib/less/
H A Dch.c51 #define bufnode_buf(bn) ((struct buf *) bn)
87 #define FOR_BUFS(bn) \
88 for (bn = ch_bufhead; bn != END_OF_CHAIN; bn = bn->next)
90 #define BUF_RM(bn) \
91 (bn)->next->prev = (bn)
150 struct bufnode *bn; local
418 struct bufnode *bn; local
456 struct bufnode *bn; local
543 struct bufnode *bn; local
570 struct bufnode *bn; local
693 struct bufnode *bn; local
761 struct bufnode *bn; local
800 struct bufnode *bn; local
[all...]
/freebsd-11-stable/crypto/openssh/regress/unittests/bitmap/
H A Dtests.c19 #include <openssl/bn.h>
31 BIGNUM *bn; local
40 bn = BN_new();
41 ASSERT_PTR_NE(bn, NULL);
49 BN_clear(bn);
55 ASSERT_INT_EQ(BN_set_bit(bn, i), 1);
59 ASSERT_INT_EQ(BN_set_bit(bn, j), 1);
63 ASSERT_INT_EQ(BN_set_bit(bn, k), 1);
66 /* Check perfect match between bitmap and bn */
69 ASSERT_INT_EQ(BN_is_bit_set(bn,
[all...]
/freebsd-11-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_crypto.c19 #include <openssl/bn.h>
35 BIGNUM *bn, *bn2; local
81 MKBN(hexbn1, bn);
84 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0);
86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn));
88 BN_free(bn);
93 MKBN(hexbn1, bn);
97 r = sshbuf_put_bignum1(p1, bn);
100 BN_free(bn);
105 MKBN(hexbn2, bn);
[all...]
H A Dtest_sshbuf_getput_fuzz.c19 #include <openssl/bn.h>
35 BIGNUM *bn; local
57 bn = BN_new();
58 sshbuf_get_bignum1(p1, bn);
59 BN_clear_free(bn);
60 bn = BN_new();
61 sshbuf_get_bignum2(p1, bn);
62 BN_clear_free(bn);
/freebsd-11-stable/crypto/openssh/
H A Drsa.h19 #include <openssl/bn.h>
/freebsd-11-stable/kerberos5/include/
H A Dcrypto-headers.h22 #define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
23 #define BN_is_negative(bn) ((bn)->neg != 0)
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Dx_bignum.c63 #include <openssl/bn.h>
125 BIGNUM *bn; local
129 bn = (BIGNUM *)*pval;
131 if (BN_num_bits(bn) & 0x7)
138 BN_bn2bin(bn, cont);
140 return pad + BN_num_bytes(bn);
146 BIGNUM *bn; local
150 bn = (BIGNUM *)*pval;
151 if (!BN_bin2bn(cont, len, bn)) {
H A Da_enum.c62 #include <openssl/bn.h>
136 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument
149 if (BN_is_negative(bn))
153 j = BN_num_bits(bn);
164 ret->length = BN_bn2bin(bn, ret->data);
172 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument
176 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
H A Di2d_pu.c61 #include <openssl/bn.h>
/freebsd-11-stable/lib/libmp/
H A Dmpasbn.c132 mp->bn = BN_new();
133 if (mp->bn == NULL)
135 BN_ERRCHECK(msg, BN_dec2bn(&mp->bn, s));
152 BN_ERRCHECK("gcd", BN_gcd(&b, mp1->bn, mp2->bn, c));
191 BN_ERRCHECK(msg, BN_add(&b, mp1->bn, mp2->bn));
210 return (BN_cmp(mp1->bn, mp2->bn));
220 return (BN_ucmp(mp1->bn, mp
[all...]
H A Dmp.h7 #include <openssl/bn.h>
11 BIGNUM *bn; member in struct:_mint
/freebsd-11-stable/secure/usr.bin/bdes/
H A Dbdes.c495 int bn; /* block number */ local
498 for (bn = 0; (n = READ(msgbuf, 8)) == 8; bn++) {
509 bn++;
525 int bn; /* block number */ local
528 for (bn = 1; (n = READ(msgbuf, 8)) == 8; bn++) {
540 bn);
547 warnx("decryption failed (incomplete block) at %d", bn);
557 int bn; /* bloc local
594 int bn; /* block number */ local
675 int bn; /* block number */ local
718 int bn; /* block number */ local
764 int bn; /* block number */ local
810 int bn; /* block number */ local
858 int bn; /* block number */ local
904 int bn; /* block number */ local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/bn/
H A Dbn_print.c1 /* crypto/bn/bn_print.c */
177 int BN_hex2bn(BIGNUM **bn, const char *a) argument
199 if (bn == NULL)
203 if (*bn == NULL) {
207 ret = *bn;
243 *bn = ret;
250 if (*bn == NULL)
255 int BN_dec2bn(BIGNUM **bn, const char *a) argument
276 if (bn == NULL)
283 if (*bn
324 BN_asc2bn(BIGNUM **bn, const char *a) argument
[all...]
H A Drsaz_exp.h52 # include <openssl/bn.h>
H A Dbn_ctx.c1 /* crypto/bn/bn_ctx.c */
373 BIGNUM *bn = p->head->vals; local
375 if (bn->d)
376 BN_clear_free(bn);
377 bn++;
391 BIGNUM *bn = item->vals; local
393 if (bn->d)
394 BN_clear(bn);
395 bn++;
407 BIGNUM *bn; local
[all...]
/freebsd-11-stable/crypto/heimdal/include/
H A Dcrypto-headers.h29 #define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
30 #define BN_is_negative(bn) ((bn)->neg != 0)
/freebsd-11-stable/crypto/openssl/util/
H A Dspeed.sh21 /bin/rm -f crypto/rc4/*.o crypto/bn/bn*.o crypto/md2/md2_dgst.o
31 /bin/rm -f crypto/idea/i_*.o crypto/rc4/*.o crypto/des/ecb_enc.o crypto/bn/bn*.o
/freebsd-11-stable/crypto/openssl/crypto/dh/
H A Ddh_depr.c60 #include <openssl/bn.h>
/freebsd-11-stable/crypto/openssl/engines/
H A De_gmp.c95 #include <openssl/bn.h>
268 static int bn2gmp(const BIGNUM *bn, mpz_t g) argument
270 bn_check_top(bn);
271 if (((sizeof(bn->d[0]) * 8) == GMP_NUMB_BITS) &&
274 if (!_mpz_realloc(g, bn->top))
276 memcpy(&g->_mp_d[0], &bn->d[0], bn->top * sizeof(bn->d[0]));
277 g->_mp_size = bn->top;
278 if (bn
292 gmp2bn(mpz_t g, BIGNUM *bn) argument
[all...]
/freebsd-11-stable/usr.sbin/uathload/
H A Duathload.c89 char *bn, *dn; local
94 bn = basename(devname);
95 if (bn == NULL || strncmp(bn, "ugen", 4))
97 bn += 4;
100 snprintf(msgdev, 256, "%s/usb/%s.1", dn, bn);
101 snprintf(datadev, 256, "%s/usb/%s.2", dn, bn);
/freebsd-11-stable/crypto/openssl/crypto/rsa/
H A Drsa_none.c61 #include <openssl/bn.h>

Completed in 179 milliseconds

1234567891011>>