class axl::cry::BigNum

#include <axl_cry_BigNum.h>

class BigNum: public axl::sl::Handle
{
public:
    // construction

    BigNum();
    BigNum(BIGNUM* h);

    // methods

    bool
    create();

    bool
    createCopy(BIGNUM* src);

    bool
    copy(BIGNUM* src);

    size_t
    getBitCount();

    size_t
    getSize();

    size_t
    getData(
        void* p,
        size_t size
        );

    bool
    getData(sl::Array<char>* data);

    sl::Array<char>
    getData();

    bool
    setData(
        const void* p,
        size_t size
        );

    bool
    getDecString(sl::String* string);

    sl::String
    getDecString();

    bool
    setDecString(const sl::StringRef& string);

    bool
    getHexString(sl::String* string);

    sl::String
    getHexString();

    bool
    setHexString(const sl::StringRef& string);

    BN_ULONG
    getWord();

    bool
    setWord(BN_ULONG word);

    bool
    rand(int bitCount);

    bool
    pseudoRand(int bitCount);
};

Inherited Members

public:
    // typedefs

    typedef T H;

    // methods

    operator T() const;

    T
    operator->() const;

    const Handle&
    operator=(T h);

    bool
    isOpen() const;

    void
    close();

    void
    attach(T h);

    T
    detach();

    T*
    p();

    static
    T
    getInvalidHandle();