X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=userapps%2Fopensource%2Fopenssl%2Fdoc%2Fcrypto%2FBN_set_bit.pod;fp=userapps%2Fopensource%2Fopenssl%2Fdoc%2Fcrypto%2FBN_set_bit.pod;h=b7c47b9b01583e2fd33a4a2e503c6e9f8e1d4cba;hb=59e02c1be2c9b373846b0789fbd5b7ef46f0927f;hp=0000000000000000000000000000000000000000;hpb=3f05a9da74f56df22d185b66ee663a6fd8053cb3;p=bcm963xx.git diff --git a/userapps/opensource/openssl/doc/crypto/BN_set_bit.pod b/userapps/opensource/openssl/doc/crypto/BN_set_bit.pod new file mode 100755 index 00000000..b7c47b9b --- /dev/null +++ b/userapps/opensource/openssl/doc/crypto/BN_set_bit.pod @@ -0,0 +1,66 @@ +=pod + +=head1 NAME + +BN_set_bit, BN_clear_bit, BN_is_bit_set, BN_mask_bits, BN_lshift, +BN_lshift1, BN_rshift, BN_rshift1 - bit operations on BIGNUMs + +=head1 SYNOPSIS + + #include + + int BN_set_bit(BIGNUM *a, int n); + int BN_clear_bit(BIGNUM *a, int n); + + int BN_is_bit_set(const BIGNUM *a, int n); + + int BN_mask_bits(BIGNUM *a, int n); + + int BN_lshift(BIGNUM *r, const BIGNUM *a, int n); + int BN_lshift1(BIGNUM *r, BIGNUM *a); + + int BN_rshift(BIGNUM *r, BIGNUM *a, int n); + int BN_rshift1(BIGNUM *r, BIGNUM *a); + +=head1 DESCRIPTION + +BN_set_bit() sets bit B in B to 1 (CEn)>). The +number is expanded if necessary. + +BN_clear_bit() sets bit B in B to 0 (CEn)>). An +error occurs if B is shorter than B bits. + +BN_is_bit_set() tests if bit B in B is set. + +BN_mask_bits() truncates B to an B bit number +(CEn)>). An error occurs if B already is +shorter than B bits. + +BN_lshift() shifts B left by B bits and places the result in +B (C). BN_lshift1() shifts B left by one and places +the result in B (C). + +BN_rshift() shifts B right by B bits and places the result in +B (C). BN_rshift1() shifts B right by one and places +the result in B (C). + +For the shift functions, B and B may be the same variable. + +=head1 RETURN VALUES + +BN_is_bit_set() returns 1 if the bit is set, 0 otherwise. + +All other functions return 1 for success, 0 on error. The error codes +can be obtained by L. + +=head1 SEE ALSO + +L, L, L + +=head1 HISTORY + +BN_set_bit(), BN_clear_bit(), BN_is_bit_set(), BN_mask_bits(), +BN_lshift(), BN_lshift1(), BN_rshift(), and BN_rshift1() are available +in all versions of SSLeay and OpenSSL. + +=cut