HomeSort by: relevance | last modified time | path
    Searched refs:bignum (Results 1 - 25 of 40) sorted by relevancy

1 2

  /src/external/bsd/wpa/dist/src/tls/
bignum.h 12 struct bignum;
14 struct bignum * bignum_init(void);
15 void bignum_deinit(struct bignum *n);
16 size_t bignum_get_unsigned_bin_len(struct bignum *n);
17 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len);
18 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len);
19 int bignum_cmp(const struct bignum *a, const struct bignum *b);
20 int bignum_cmp_d(const struct bignum *a, unsigned long b);
21 int bignum_add(const struct bignum *a, const struct bignum *b
    [all...]
bignum.c 12 #include "bignum.h"
23 * struct bignum is just typecast to mp_int.
27 * bignum_init - Allocate memory for bignum
28 * Returns: Pointer to allocated bignum or %NULL on failure
30 struct bignum * bignum_init(void)
32 struct bignum *n = os_zalloc(sizeof(mp_int));
44 * bignum_deinit - Free bignum
45 * @n: Bignum from bignum_init()
47 void bignum_deinit(struct bignum *n)
57 * bignum_get_unsigned_bin - Get length of bignum as an unsigned binary buffe
    [all...]
Makefile 8 bignum.o \
rsa.c 13 #include "bignum.h"
19 struct bignum *n; /* modulus (p * q) */
20 struct bignum *e; /* public exponent */
22 struct bignum *d; /* private exponent */
23 struct bignum *p; /* prime p (factor of n) */
24 struct bignum *q; /* prime q (factor of n) */
25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
26 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
32 struct bignum *num
    [all...]
pkcs8.c 13 #include "bignum.h"
23 struct bignum *zero;
  /src/lib/libutil/
strpct.c 115 } bignum; typedef in typeref:struct:__anon568
117 static bignum
118 bignum_plus(bignum x, bignum y)
127 static bignum
128 bignum_minus_u(bignum x, uintmax_t y)
136 static bignum
137 bignum_times_10(bignum x)
139 bignum x2 = bignum_plus(x, x);
140 bignum x4 = bignum_plus(x2, x2)
    [all...]
  /src/crypto/external/bsd/netpgp/dist/src/libbn/
Makefile 2 SRCS= bignum.c digest.c misc.c rand.c
  /src/sbin/nvmectl/
Makefile 16 SRCS+= bignum.c
  /src/external/bsd/wpa/dist/src/crypto/
crypto_internal-modexp.c 12 #include "tls/bignum.h"
48 struct bignum *pub;
62 struct bignum *p, *q, *tmp;
94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result;
crypto_nettle.c 18 #include <nettle/bignum.h>
  /src/crypto/external/bsd/netpgp/lib/verify/
Makefile 5 SRCS+=bignum.c
  /src/crypto/external/bsd/netpgp/dist/src/lib/
ssh2pgp.c 145 /* get a bignum from the buffer gap */
146 static BIGNUM *
150 BIGNUM *bignum; local
156 bignum = BN_bin2bn((const uint8_t *)buf, (int)len, NULL);
161 return bignum;
166 putbignum(bufgap_t *bg, BIGNUM *bignum)
170 len = BN_num_bytes(bignum);
173 bignum = BN_bin2bn((const uint8_t *)buf, (int)len, NULL)
    [all...]
misc.c 447 /* hash a bignum, possibly padded - first length, then string itself */
449 hash_bignum(pgp_hash_t *hash, BIGNUM *bignum)
455 if (BN_is_zero(bignum)) {
459 if ((len = (size_t) BN_num_bytes(bignum)) < 1) {
467 BN_bn2bin(bignum, bn + 1);
  /src/crypto/external/bsd/netpgp/bin/netpgpverify/
Makefile 6 SRCS= b64.c bignum.c bufgap.c digest.c
  /src/crypto/external/bsd/netpgp/dist/src/libverify/
Makefile 6 SRCS+=bignum.c misc.c
  /src/external/gpl3/binutils/dist/gas/
read.c 4149 as_bad (_("bignum invalid"));
4628 /* Handle a negative bignum. */
4639 /* Negate the bignum: one's complement each digit and add 1. */
4725 pass to md_number_to_chars, handle it as a bignum. */
4808 as_warn (ngettext ("bignum truncated to %d byte",
4809 "bignum truncated to %d bytes",
5046 hex constant, but if we get a bignum it's a pain to sort it into
5321 output_big_sleb128 (char *p, LITTLENUM_TYPE *bignum, unsigned int size)
5328 /* Strip leading sign extensions off the bignum. */
5330 && bignum[size - 1] == LITTLENUM_MAS
    [all...]
  /src/external/gpl3/binutils.old/dist/gas/
read.c 4138 as_bad (_("bignum invalid"));
4617 /* Handle a negative bignum. */
4628 /* Negate the bignum: one's complement each digit and add 1. */
4714 pass to md_number_to_chars, handle it as a bignum. */
4797 as_warn (ngettext ("bignum truncated to %d byte",
4798 "bignum truncated to %d bytes",
5035 hex constant, but if we get a bignum it's a pain to sort it into
5310 output_big_sleb128 (char *p, LITTLENUM_TYPE *bignum, unsigned int size)
5317 /* Strip leading sign extensions off the bignum. */
5319 && bignum[size - 1] == LITTLENUM_MAS
    [all...]
  /src/external/gpl3/binutils/dist/gas/config/
tc-s390.c 1015 LITTLENUM_TYPE bignum[4]; /* used if X_op == O_big && X_add_number > 0 */ member in struct:s390_lpe
1141 if (memcmp (generic_bignum, lpe->bignum,
1177 memcpy (lpe->bignum, generic_bignum,
2135 memcpy (generic_bignum, lpe->bignum,
tc-aarch64.c 592 /* If exp.op == O_big then this bignum holds a copy of the global bignum value. */ member in struct:literal_expression
593 LITTLENUM_TYPE * bignum;
2074 pool->literals[entry].bignum = XNEWVEC (LITTLENUM_TYPE,
2076 memcpy (pool->literals[entry].bignum, generic_bignum,
2080 pool->literals[entry].bignum = NULL;
2179 /* PR 16688: Restore the global bignum value. */
2180 gas_assert (pool->literals[entry].bignum != NULL);
2181 memcpy (generic_bignum, pool->literals[entry].bignum,
2190 free (pool->literals[entry].bignum);
    [all...]
tc-csky.c 304 LITTLENUM_TYPE bignum[SIZE_OF_LARGE_NUMBER + 6]; member in struct:literal
2064 memcpy (generic_bignum, p->bignum, sizeof (p->bignum));
2142 || (memcmp (generic_bignum, p->bignum,
2165 memcpy (p->bignum, generic_bignum, sizeof (p->bignum));
  /src/external/gpl3/binutils.old/dist/gas/config/
tc-s390.c 1015 LITTLENUM_TYPE bignum[4]; /* used if X_op == O_big && X_add_number > 0 */ member in struct:s390_lpe
1141 if (memcmp (generic_bignum, lpe->bignum,
1177 memcpy (lpe->bignum, generic_bignum,
2135 memcpy (generic_bignum, lpe->bignum,
tc-aarch64.c 587 /* If exp.op == O_big then this bignum holds a copy of the global bignum value. */ member in struct:literal_expression
588 LITTLENUM_TYPE * bignum;
2073 pool->literals[entry].bignum = XNEWVEC (LITTLENUM_TYPE,
2075 memcpy (pool->literals[entry].bignum, generic_bignum,
2079 pool->literals[entry].bignum = NULL;
2178 /* PR 16688: Restore the global bignum value. */
2179 gas_assert (pool->literals[entry].bignum != NULL);
2180 memcpy (generic_bignum, pool->literals[entry].bignum,
2189 free (pool->literals[entry].bignum);
    [all...]
tc-csky.c 304 LITTLENUM_TYPE bignum[SIZE_OF_LARGE_NUMBER + 6]; member in struct:literal
2064 memcpy (generic_bignum, p->bignum, sizeof (p->bignum));
2142 || (memcmp (generic_bignum, p->bignum,
2165 memcpy (p->bignum, generic_bignum, sizeof (p->bignum));
  /src/crypto/external/bsd/netpgp/dist/src/netpgpverify/
libverify.c 64 /* bignum structure */
2579 /* get a bignum from the buffer gap */
2581 getbignum(pgpv_bignum_t *bignum, bufgap_t *bg, char *buf, const char *header)
2590 bignum->bn = PGPV_BN_bin2bn((const uint8_t *)buf, (int)len, NULL);
2591 bignum->bits = PGPV_BN_num_bits(bignum->bn);
  /src/external/bsd/wpa/dist/hostapd/
Android.mk 760 OBJS += src/tls/bignum.c

Completed in 73 milliseconds

1 2