• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/Crypt-OpenSSL-Bignum-0.04/

Lines Matching refs:ok

28 ok( $bn );
29 ok( $bn->to_decimal() eq $decimal_string );
33 ok( $bn );
34 ok( $bn->to_hex() eq uc( $hex_string ) );
35 ok( $bn->to_decimal() eq '127' );
39 ok( $bn );
40 ok( $bn->to_bin() eq $bin_string );
41 ok( $bn->to_decimal() eq '512' );
46 ok( $bn23->cmp($ bn25 ) == -1 );
47 ok( $bn25->cmp( $bn23 ) == 1 );
48 ok( $bn23->cmp( $bn23 ) == 0 );
49 ok( $bn23->equals( $bn23 ) );
52 ok( $bn_copy ne $bn );
53 ok( $bn->equals( $bn_copy ) );
56 ok( ! ref $ptr );
57 ok( $bn + 0 != $ptr );
59 ok( $bn->equals( $from_ptr ) );
65 ok( $one->is_one() );
66 ok( !$zero->is_one() );
68 ok( $zero->is_zero() );
69 ok( !$one->is_zero() );
71 ok( !$zero->is_odd() );
72 ok( $one->is_odd() );
75 ok( _new_bn($word)->get_word() == $word );
79 ok( $bn2 );
80 ok( $bn2->to_bin() eq $bn->to_bin() );
82 ok( '48' eq $bn23->add( $bn25 )->to_decimal() );
85 ok( 19 == $bn->get_word() );
87 ok( '-2' eq $bn23->sub( $bn25 )->to_decimal() );
90 ok( 17 == $bn->get_word() );
94 ok( $ctx );
95 ok( 575 == $bn23->mul( $bn25, $ctx )->get_word() );
96 ok( 575 == $bn23->mul( $bn25, $ctx, $bn )->get_word() );
97 ok( 575 == $bn->get_word() );
99 ok( 2 == $bn25->mod( $bn23, $ctx )->get_word() );
100 ok( 2 == $bn25->mod( $bn23, $ctx, $bn )->get_word() );
101 ok( 2 == $bn->get_word() );
107 ok( $quotient->is_one );
108 ok( 2 == $remainder->get_word() );
111 ok( $quotient2 == $quotient );
112 ok( $remainder2 == $remainder );
113 ok( 4 == $quotient->get_word() );
114 ok( $remainder->is_one );
117 ok( $quotient3 == $quotient );
118 ok( 4 == $quotient->get_word() );
119 ok( $remainder3->is_one() );
121 ok( 6 == _new_bn( 18 )->gcd( _new_bn( 42 ), $ctx )->get_word() );
122 ok( 5 == $bn23->mod_mul( $bn25, $bn6, $ctx )->get_word() );
123 ok( 729 == $bn3->exp( $bn6, $ctx )->get_word() );
124 ok( 4 == $bn3->mod_exp( $bn6, $bn25, $ctx )->get_word() );
125 ok( 36 == $bn6->sqr( $ctx )->get_word() );
126 ok( 12 == $bn23->mod_inverse( $bn25, $ctx )->get_word() );