Hi:

2009/5/22 Victor B. Wagner <vi...@cryptocom.ru>:
> On 2009.05.22 at 15:02:59 +0800, sofian sindhi wrote:
>
>> Hi openssl friendsl:
>> I can see BN operations from http://linux.die.net/man/3/bn_add
>> but I cannot find any operation about XOR, OR and AND.
>> And I cannot find any related functions defined in bn.h.
>> Does that mean BN doesn't have these operations or I find the wrong place?
>> Sincerely Yours,
>
> These operations do not involve carry bits. So you can perform them
> byte-wise or word-wise. No need to write highly optimized assembly
> routine.

By your suggestion, if I have BN a,1024bits, and b, 2048 bits,  the
only way I can do OR is using char *BN_bn2hex(const BIGNUM *a) to
transform each one as 2 char*.
Then do the OR byte by byte?
appreciate your help,
sofian
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to