Lines Matching refs:d
14 int BN_bn2mpi(const BIGNUM *a, unsigned char *d) in BN_bn2mpi() argument
26 if (d == NULL) in BN_bn2mpi()
30 d[0] = (unsigned char)(l >> 24) & 0xff; in BN_bn2mpi()
31 d[1] = (unsigned char)(l >> 16) & 0xff; in BN_bn2mpi()
32 d[2] = (unsigned char)(l >> 8) & 0xff; in BN_bn2mpi()
33 d[3] = (unsigned char)(l) & 0xff; in BN_bn2mpi()
35 d[4] = 0; in BN_bn2mpi()
36 num = BN_bn2bin(a, &(d[4 + ext])); in BN_bn2mpi()
38 d[4] |= 0x80; in BN_bn2mpi()
42 BIGNUM *BN_mpi2bn(const unsigned char *d, int n, BIGNUM *ain) in BN_mpi2bn() argument
48 if (n < 4 || (d[0] & 0x80) != 0) { in BN_mpi2bn()
52 len = ((long)d[0] << 24) | ((long)d[1] << 16) | ((int)d[2] << 8) | (int) in BN_mpi2bn()
53 d[3]; in BN_mpi2bn()
72 d += 4; in BN_mpi2bn()
73 if ((*d) & 0x80) in BN_mpi2bn()
75 if (BN_bin2bn(d, (int)len, a) == NULL) { in BN_mpi2bn()