• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::Botan::BigInt

QCA::Botan::BigInt Class Reference

#include <bigint.h>

List of all members.

Classes

struct  DivideByZero

Public Types

enum  Base { Octal = 8, Decimal = 10, Hexadecimal = 16, Binary = 256 }
enum  NumberType { Random, Power2 }
enum  Sign { Negative = 0, Positive = 1 }

Public Member Functions

 BigInt (NumberType, u32bit)
 BigInt (Sign, u32bit)
 BigInt (const byte[], u32bit, Base=Binary)
 BigInt (const std::string &)
 BigInt (const BigInt &)
 BigInt (u64bit)
 BigInt ()
BigInt abs () const
void binary_decode (const byte[], u32bit)
void binary_encode (byte[]) const
u32bit bits () const
byte byte_at (u32bit) const
u32bit bytes () const
void clear ()
void clear_bit (u32bit)
s32bit cmp (const BigInt &, bool=true) const
const word * data () const
u32bit encoded_size (Base=Binary) const
void flip_sign ()
bool get_bit (u32bit) const
SecureVector< word > & get_reg ()
u32bit get_substring (u32bit, u32bit) const
void grow_reg (u32bit) const
bool is_even () const
bool is_negative () const
bool is_nonzero () const
bool is_odd () const
bool is_positive () const
bool is_zero () const
void mask_bits (u32bit)
bool operator! () const
word operator%= (word)
BigInt & operator%= (const BigInt &)
BigInt & operator*= (const BigInt &)
BigInt operator++ (int)
BigInt & operator++ ()
BigInt & operator+= (const BigInt &)
BigInt operator- () const
BigInt operator-- (int)
BigInt & operator-- ()
BigInt & operator-= (const BigInt &)
BigInt & operator/= (const BigInt &)
BigInt & operator<<= (u32bit)
BigInt & operator>>= (u32bit)
word operator[] (u32bit index) const
word & operator[] (u32bit index)
void randomize (u32bit=0)
Sign reverse_sign () const
void set_bit (u32bit)
void set_sign (Sign)
u32bit sig_words () const
Sign sign () const
u32bit size () const
void swap (BigInt &)
u32bit to_u32bit () const
word word_at (u32bit n) const

Static Public Member Functions

static BigInt decode (const MemoryRegion< byte > &, Base=Binary)
static BigInt decode (const byte[], u32bit, Base=Binary)
static void encode (byte[], const BigInt &, Base=Binary)
static SecureVector< byte > encode (const BigInt &, Base=Binary)
static SecureVector< byte > encode_1363 (const BigInt &, u32bit)

Detailed Description

Definition at line 61 of file bigint.h.


Member Enumeration Documentation

enum QCA::Botan::BigInt::Base
Enumerator:
Octal 
Decimal 
Hexadecimal 
Binary 

Definition at line 64 of file bigint.h.

enum QCA::Botan::BigInt::NumberType
Enumerator:
Random 
Power2 

Definition at line 66 of file bigint.h.

enum QCA::Botan::BigInt::Sign
Enumerator:
Negative 
Positive 

Definition at line 65 of file bigint.h.


Constructor & Destructor Documentation

QCA::Botan::BigInt::BigInt (  )  [inline]

Definition at line 144 of file bigint.h.

QCA::Botan::BigInt::BigInt ( u64bit  n  ) 

Definition at line 54 of file big_base.cpp.

QCA::Botan::BigInt::BigInt ( const BigInt &  b  ) 

Definition at line 80 of file big_base.cpp.

QCA::Botan::BigInt::BigInt ( const std::string &  str  ) 

Definition at line 100 of file big_base.cpp.

QCA::Botan::BigInt::BigInt ( const byte  input[],
u32bit  length,
Base  base = Binary 
)

Definition at line 123 of file big_base.cpp.

QCA::Botan::BigInt::BigInt ( Sign  s,
u32bit  size 
)

Definition at line 71 of file big_base.cpp.

QCA::Botan::BigInt::BigInt ( NumberType  ,
u32bit   
)

Member Function Documentation

BigInt QCA::Botan::BigInt::abs (  )  const

Definition at line 380 of file big_base.cpp.

void QCA::Botan::BigInt::binary_decode ( const byte  buf[],
u32bit  length 
)

Definition at line 400 of file big_base.cpp.

void QCA::Botan::BigInt::binary_encode ( byte  output[]  )  const

Definition at line 390 of file big_base.cpp.

u32bit QCA::Botan::BigInt::bits (  )  const

Definition at line 295 of file big_base.cpp.

byte QCA::Botan::BigInt::byte_at ( u32bit  n  )  const

Definition at line 189 of file big_base.cpp.

u32bit QCA::Botan::BigInt::bytes (  )  const

Definition at line 287 of file big_base.cpp.

void QCA::Botan::BigInt::clear (  )  [inline]

Definition at line 126 of file bigint.h.

void QCA::Botan::BigInt::clear_bit ( u32bit  n  ) 

Definition at line 239 of file big_base.cpp.

s32bit QCA::Botan::BigInt::cmp ( const BigInt &  n,
bool  check_signs = true 
) const

Definition at line 158 of file big_base.cpp.

const word* QCA::Botan::BigInt::data (  )  const [inline]

Definition at line 120 of file bigint.h.

BigInt QCA::Botan::BigInt::decode ( const MemoryRegion< byte > &  buf,
Base  base = Binary 
) [static]

Definition at line 136 of file big_code.cpp.

BigInt QCA::Botan::BigInt::decode ( const byte  buf[],
u32bit  length,
Base  base = Binary 
) [static]

Definition at line 144 of file big_code.cpp.

void QCA::Botan::BigInt::encode ( byte  output[],
const BigInt &  n,
Base  base = Binary 
) [static]

Definition at line 53 of file big_code.cpp.

SecureVector< byte > QCA::Botan::BigInt::encode ( const BigInt &  n,
Base  base = Binary 
) [static]

Definition at line 106 of file big_code.cpp.

SecureVector< byte > QCA::Botan::BigInt::encode_1363 ( const BigInt &  n,
u32bit  bytes 
) [static]

Definition at line 120 of file big_code.cpp.

u32bit QCA::Botan::BigInt::encoded_size ( Base  base = Binary  )  const

Definition at line 312 of file big_base.cpp.

void QCA::Botan::BigInt::flip_sign (  ) 

Definition at line 352 of file big_base.cpp.

bool QCA::Botan::BigInt::get_bit ( u32bit  n  )  const

Definition at line 202 of file big_base.cpp.

SecureVector<word>& QCA::Botan::BigInt::get_reg (  )  [inline]

Definition at line 121 of file bigint.h.

u32bit QCA::Botan::BigInt::get_substring ( u32bit  offset,
u32bit  length 
) const

Definition at line 210 of file big_base.cpp.

void QCA::Botan::BigInt::grow_reg ( u32bit  n  )  const

Definition at line 141 of file big_base.cpp.

bool QCA::Botan::BigInt::is_even (  )  const [inline]

Definition at line 90 of file bigint.h.

bool QCA::Botan::BigInt::is_negative (  )  const [inline]

Definition at line 107 of file bigint.h.

bool QCA::Botan::BigInt::is_nonzero (  )  const [inline]

Definition at line 92 of file bigint.h.

bool QCA::Botan::BigInt::is_odd (  )  const [inline]

Definition at line 91 of file bigint.h.

bool QCA::Botan::BigInt::is_positive (  )  const [inline]

Definition at line 108 of file bigint.h.

bool QCA::Botan::BigInt::is_zero (  )  const

Definition at line 331 of file big_base.cpp.

void QCA::Botan::BigInt::mask_bits ( u32bit  n  ) 

Definition at line 250 of file big_base.cpp.

bool QCA::Botan::BigInt::operator! (  )  const [inline]

Definition at line 87 of file bigint.h.

word QCA::Botan::BigInt::operator%= ( word  mod  ) 

Definition at line 204 of file big_ops2.cpp.

BigInt & QCA::Botan::BigInt::operator%= ( const BigInt &  mod  ) 

Definition at line 196 of file big_ops2.cpp.

BigInt & QCA::Botan::BigInt::operator*= ( const BigInt &  y  ) 

Definition at line 146 of file big_ops2.cpp.

BigInt QCA::Botan::BigInt::operator++ ( int   )  [inline]

Definition at line 83 of file bigint.h.

BigInt& QCA::Botan::BigInt::operator++ (  )  [inline]

Definition at line 81 of file bigint.h.

BigInt & QCA::Botan::BigInt::operator+= ( const BigInt &  y  ) 

Definition at line 57 of file big_ops2.cpp.

BigInt QCA::Botan::BigInt::operator- (  )  const

Definition at line 370 of file big_base.cpp.

BigInt QCA::Botan::BigInt::operator-- ( int   )  [inline]

Definition at line 84 of file bigint.h.

BigInt& QCA::Botan::BigInt::operator-- (  )  [inline]

Definition at line 82 of file bigint.h.

BigInt & QCA::Botan::BigInt::operator-= ( const BigInt &  y  ) 

Definition at line 96 of file big_ops2.cpp.

BigInt & QCA::Botan::BigInt::operator/= ( const BigInt &  y  ) 

Definition at line 184 of file big_ops2.cpp.

BigInt & QCA::Botan::BigInt::operator<<= ( u32bit  shift  ) 

Definition at line 237 of file big_ops2.cpp.

BigInt & QCA::Botan::BigInt::operator>>= ( u32bit  shift  ) 

Definition at line 255 of file big_ops2.cpp.

word QCA::Botan::BigInt::operator[] ( u32bit  index  )  const [inline]

Definition at line 125 of file bigint.h.

word& QCA::Botan::BigInt::operator[] ( u32bit  index  )  [inline]

Definition at line 124 of file bigint.h.

void QCA::Botan::BigInt::randomize ( u32bit  = 0  ) 
BigInt::Sign QCA::Botan::BigInt::reverse_sign (  )  const

Definition at line 360 of file big_base.cpp.

void QCA::Botan::BigInt::set_bit ( u32bit  n  ) 

Definition at line 228 of file big_base.cpp.

void QCA::Botan::BigInt::set_sign ( Sign  s  ) 

Definition at line 341 of file big_base.cpp.

u32bit QCA::Botan::BigInt::sig_words (  )  const

Definition at line 268 of file big_base.cpp.

Sign QCA::Botan::BigInt::sign (  )  const [inline]

Definition at line 109 of file bigint.h.

u32bit QCA::Botan::BigInt::size (  )  const [inline]

Definition at line 115 of file bigint.h.

void QCA::Botan::BigInt::swap ( BigInt &  other  ) 

Definition at line 132 of file big_base.cpp.

u32bit QCA::Botan::BigInt::to_u32bit (  )  const

Definition at line 173 of file big_base.cpp.

word QCA::Botan::BigInt::word_at ( u32bit  n  )  const [inline]

Definition at line 102 of file bigint.h.


The documentation for this class was generated from the following files:
  • bigint.h
  • big_base.cpp
  • big_code.cpp
  • big_ops2.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal