pq_compat.h File Reference

API published in:
API deprecated in:


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

Value:

do { \
                                              PQ_64BIT mask = 1; \
                                              mask = mask << (num); \
                                              *(x) |= mask; \
                                          } while(0)
#define pq_64bit_sub r,
x,
 )     (*(r) = (*(x) - *(y)))
 
#define pq_64bit_sub_word x,
 )     (*(x) = (*(x) - (w)))
 

Copyright © Nokia Corporation 2001-2008
Back to top