pq_compat.h File Reference

#include "opensslconf.h"
#include <openssl/bn.h>

Go to the source code of this file.

Defines

#define PQ_64BIT_IS_INTEGER   1
#define PQ_64BIT_IS_BIGNUM   0
#define PQ_64BIT_CTX   void
#define pq_64bit_init(x)
#define pq_64bit_free(x)
#define pq_64bit_ctx_new(ctx)   (ctx)
#define pq_64bit_ctx_free(x)
#define pq_64bit_assign(x, y)   (*(x) = *(y))
#define pq_64bit_assign_word(x, y)   (*(x) = y)
#define pq_64bit_gt(x, y)   (*(x) > *(y))
#define pq_64bit_eq(x, y)   (*(x) == *(y))
#define pq_64bit_add_word(x, w)   (*(x) = (*(x) + (w)))
#define pq_64bit_sub(r, x, y)   (*(r) = (*(x) - *(y)))
#define pq_64bit_sub_word(x, w)   (*(x) = (*(x) - (w)))
#define pq_64bit_mod(r, x, n, ctx)
#define pq_64bit_bin2num(num, bytes, len)   bytes_to_long_long(bytes, num)
#define pq_64bit_num2bin(num, bytes)   long_long_to_bytes(num, bytes)
#define pq_64bit_get_word(x)   *(x)
#define pq_64bit_lshift(r, x, shift)   (*(r) = (*(x) << (shift)))
#define pq_64bit_set_bit(x, num)


Define Documentation

#define pq_64bit_add_word ( x,
 )     (*(x) = (*(x) + (w)))

Definition at line 133 of file pq_compat.h.

#define pq_64bit_assign ( x,
 )     (*(x) = *(y))

Definition at line 129 of file pq_compat.h.

#define pq_64bit_assign_word ( x,
 )     (*(x) = y)

Definition at line 130 of file pq_compat.h.

#define pq_64bit_bin2num ( num,
bytes,
len   )     bytes_to_long_long(bytes, num)

Definition at line 138 of file pq_compat.h.

#define PQ_64BIT_CTX   void

Definition at line 122 of file pq_compat.h.

#define pq_64bit_ctx_free (  ) 

Definition at line 127 of file pq_compat.h.

#define pq_64bit_ctx_new ( ctx   )     (ctx)

Definition at line 126 of file pq_compat.h.

#define pq_64bit_eq ( x,
 )     (*(x) == *(y))

Definition at line 132 of file pq_compat.h.

#define pq_64bit_free (  ) 

Definition at line 125 of file pq_compat.h.

#define pq_64bit_get_word (  )     *(x)

Definition at line 140 of file pq_compat.h.

#define pq_64bit_gt ( x,
 )     (*(x) > *(y))

Definition at line 131 of file pq_compat.h.

#define pq_64bit_init (  ) 

Definition at line 124 of file pq_compat.h.

#define PQ_64BIT_IS_BIGNUM   0

Definition at line 109 of file pq_compat.h.

#define PQ_64BIT_IS_INTEGER   1

Definition at line 108 of file pq_compat.h.

#define pq_64bit_lshift ( r,
x,
shift   )     (*(r) = (*(x) << (shift)))

Definition at line 141 of file pq_compat.h.

#define pq_64bit_mod ( r,
x,
n,
ctx   ) 

Definition at line 136 of file pq_compat.h.

#define pq_64bit_num2bin ( num,
bytes   )     long_long_to_bytes(num, bytes)

Definition at line 139 of file pq_compat.h.

#define pq_64bit_set_bit ( x,
num   ) 

Value:

do { \
                                              PQ_64BIT mask = 1; \
                                              mask = mask << (num); \
                                              *(x) |= mask; \
                                          } while(0)

Definition at line 142 of file pq_compat.h.

#define pq_64bit_sub ( r,
x,
 )     (*(r) = (*(x) - *(y)))

Definition at line 134 of file pq_compat.h.

#define pq_64bit_sub_word ( x,
 )     (*(x) = (*(x) - (w)))

Definition at line 135 of file pq_compat.h.


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6