Botan  1.11.15
Classes | Typedefs | Functions
Botan::gf2m_small_m Namespace Reference

Classes

class  Gf2m_Field

Typedefs

typedef u16bit gf2m

Functions

gf2m decode_gf2m (const byte *mem)
u32bit encode_gf2m (gf2m to_enc, byte *mem)

Typedef Documentation

Definition at line 22 of file gf2m_small_m.h.


Function Documentation

gf2m Botan::gf2m_small_m::decode_gf2m ( const byte *  mem)

Definition at line 52 of file gf2m_small_m.cpp.

Referenced by Botan::polyn_gf2m::polyn_gf2m().

   {
   gf2m result;
   result = mem[0] << 8;
   result |= mem[1];
   return result;
   }
u32bit Botan::gf2m_small_m::encode_gf2m ( gf2m  to_enc,
byte *  mem 
)

Definition at line 45 of file gf2m_small_m.cpp.

   {
   mem[0] = to_enc >> 8;
   mem[1] = to_enc & 0xFF;
   return sizeof(to_enc);
   }