search for: bignum

Displaying 20 results from an estimated 159 matches for "bignum".

2007 Aug 14
1
[LLVMdev] Static functions for APInt
This adds a bunch of static functions that implement unsigned two's complement bignum arithmetic. They could be used to implement much of APInt, but the idea is they are enough to implement APFloat as well, which the current APInt interface is not suited for. Neil. -------------- next part -------------- Index: include/llvm/ADT/APInt.h =============================================...
2013 Nov 02
3
[PATCH] curve25519-sha256@libssh.org key exchange proposal
...>> 3) Matthew's public domain reference implementation. >> >> i'd vote for #3 > > Yes, me too. > > One thing: this patch will be incompatible with Aris' since we calculate > the hash over the DH values encoded as strings rather than (as he does) > bignums. > > IMO they should be strings because they aren't ever sent as bignums on > the wire, but if the Curve25519 support is widely deployed then it might > be too late to change. I don't think the encoding makes any appreciable > difference to security - the bignum encoding is...
2012 May 16
2
where is the struct RSA defined??
In the source code of openssh(my source code is 6.0 for Openbsd?? The content below is Rsa.h #ifndef RSA_H #define RSA_H #include <openssl/bn.h> #include <openssl/rsa.h> void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *); void rsa_generate_additional_parameters(RSA *); #endif /* RSA_H */ Question: Where is the file openssl/rsa.h? So where is the struct RSA defined??
2010 Jun 11
4
[LLVMdev] Bignum development
Hi all, After searching for a decent compiler backend for ages (google sometimes isn't helpful), I recently stumbled upon LLVM. Woot!! I work on bignum arithmetic (I'm a professional mathematician) and have recently decided to switch from developing GPL'd bignum code to BSD licensed code. (See http://www.mpir.org/ which I contributed to for a while - a fork of GMP). Please bear with me if these are stupid questions (I am a mathematician a...
2010 Jun 12
0
[LLVMdev] Bignum development
...ot especially efficient, >>> though. >> >> OK, I only tried multiplication last night when I first had a decent >> fiddle (been marking exams, so haven't had much time to really get >> dirty hands, sorry). >> >> Of course efficiency is imperative for bignum stuff as it underpins >> absolutely behemoth projects like Sage (http://www.sagemath.org). >> Every cycle counts, so to speak. One cycle per limb difference in >> multiplication makes a nearly 40% difference in absolutely everything >> for literally many thousands of develop...
2007 May 03
1
[ win32utils-Bugs-10555 ] wait call in while loop generate "bignum too big to convert into long" error
...visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=10555&group_id=85 Category: win32-changejournal Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Dong Zhang (dzhang) Assigned to: Park Heesob (phasis68) Summary: wait call in while loop generate "bignum too big to convert into long" error Initial Comment: I put the following in a test.rb file. This code comes with the source of Changejournal. ************************************************** require "win32/changejournal" include Win32 # Indefinitely wait for a change in '...
2009 May 27
2
problem with centos upgrade
...h file from package perl-Math-BigRat-0.19-1 file /usr/share/man/man3/Math::BigRat.3pm.gz from install of perl-5.8.8-18.el5_3.1 conflicts with file from package perl-Math-BigRat-0.19-1 file /usr/lib/perl5/5.8.8/bigint.pm from install of perl-5.8.8-18.el5_3.1 conflicts with file from package perl-bignum-0.21-1 file /usr/lib/perl5/5.8.8/bignum.pm from install of perl-5.8.8-18.el5_3.1 conflicts with file from package perl-bignum-0.21-1 file /usr/lib/perl5/5.8.8/bigrat.pm from install of perl-5.8.8-18.el5_3.1 conflicts with file from package perl-bignum-0.21-1 file /usr/share/man/man3/bigint.3p...
2007 Sep 10
1
[ win32utils-Bugs-13825 ] /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at'': bignum too big to convert into `long'' (RangeError)
...: http://rubyforge.org/tracker/?func=detail&atid=411&aid=13825&group_id=85 Category: win32-file-stat Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at'': bignum too big to convert into `long'' (RangeError) Initial Comment: When File.stat is called on a file that doesn''t have a Created or Modified time (pointing to a Linux Samba share from WinXP in my case) it fails with; c:/ruby/lib/ruby/gems/1.8/gems/win32-file-stat-1.2.5/lib/win32/file...
2010 Jun 11
3
[LLVMdev] Bignum development
...h; the result is generally not especially efficient, >> though. > > OK, I only tried multiplication last night when I first had a decent > fiddle (been marking exams, so haven't had much time to really get > dirty hands, sorry). > > Of course efficiency is imperative for bignum stuff as it underpins > absolutely behemoth projects like Sage (http://www.sagemath.org). > Every cycle counts, so to speak. One cycle per limb difference in > multiplication makes a nearly 40% difference in absolutely everything > for literally many thousands of developers! Right; imp...
2007 Aug 14
0
[ win32utils-Bugs-10555 ] wait call in while loop generate "bignum too big to convert into long" error
...ting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=10555&group_id=85 Category: win32-changejournal Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Dong Zhang (dzhang) Assigned to: Park Heesob (phasis68) >Summary: wait call in while loop generate "bignum too big to convert into long" error Initial Comment: I put the following in a test.rb file. This code comes with the source of Changejournal. ************************************************** require "win32/changejournal" include Win32 # Indefinitely wait for a change in '...
2001 Feb 08
1
ssh1 keyexchange problem ?
Hi, Has anybody produced diffs for openssh-2.3.0p1 for the rsa keyexchange problem that Core-SDI described ? ( I noticed that fix is already in openbsd tree ). -Jarno -- Jarno Huuskonen - System Administrator | Jarno.Huuskonen at uku.fi University of Kuopio - Computer Center | Work: +358 17 162822 PO BOX 1627, 70211 Kuopio, Finland | Mobile: +358 40 5388169
2009 Aug 17
2
passenger - bignum too big to convert into `long'
...e for weeks when I decided to update Apache. I might also have messed with the users on this machine (OS X 10.5) Now when I start it, Apache starts up fine, loads passenger, and everything looks good. Then, after a while ( and I don''t know how long), when I just refresh any page, I get: bignum too big to convert into `long'' No entry in either log. Research this a little, I found that a bug in ruby doesn''t handle switching users well - a negative UID is read as a big number, which then throws this error. Looking into my user list, I can find only one negative UID - ...
2006 Oct 17
0
TypeError (can't convert Bignum into Hash):
This error has been driving me nuts. It happens with no regularity or pattern and causes a 500 App error. Refreshing will always display as normal (http 200) The back trace always starts with TypeError (can''t convert Bignum into Hash): /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:342:in `update'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:342:in `select'' /usr/lib/ruby/gems/1.8/gem...
2010 Jun 12
0
[LLVMdev] Bignum development
...ailable at this point. If anyone has any comments on that, it would be great to know what the plans are, if any, for this. By the way, is it generally helpful if I post relevant C or IR sequences here which do not optimise as one would hope/expect? I think I have found some, but need to check.... Bignum stuff historically explores interesting corners of compiler technology :-) Bill.
2015 Feb 19
3
[PATCH] Unbreak compilation with --without-ssh1
Hi, Patch attached for $SUBJECT. ismail
2008 Oct 08
0
RangeError (bignum too big to convert into `long'
...the user) img = Magick::Image.read(path).first #reads the image specfied by the user path img = img.scale(640,480) #scales image to 640x480 img.write"/home/anmol/image.jpg" #scales image to 640x480 img.crop(SouthEastGravity,picwidth,heightchanged).write(cropfile) end ERROR : RangeError (bignum too big to convert into `long''): /app/controllers/crop_controller.rb:98:in `crop'' /app/controllers/crop_controller.rb:98:in `topcrop'' /app/controllers/crop_controller.rb:233:in `updownevent'' /app/controllers/application.rb:74:in `up'' /usr/local/lib/ruby/...
2010 Jun 12
3
[LLVMdev] Bignum development
...'d welcome any >> improvements. > > Sure. I'm mainly thinking of LLVM's stated aim of "offering support > for other non-C languages", which is (a paraphrase of) what you have > somewhere, listed in the open projects on the LLVM site. It occurs to > me that bignum support is one thing that many languages require, but > currently have to use GMP for. If your language is BSD licensed > though, that is out of the question, hence some pretty poor bignum > implementations out there (I mean relatively speaking > performance-wise). > > There are o...
2011 Mar 30
1
[LLVMdev] Bignums
Hello all! I'm working on a library with bignum support, and I wanted to try LLVM as an apparently simpler and more portable system to my current design (a Haskell script which spits out mixed C and assembly). Porting the script to use the LLVM bindings instead of the current hack was pretty easy. But I have a few remaining questions: (1)...
2008 Sep 08
0
[LLVMdev] Integer questions
...;t fit in the > registers designated for returning values on those targets. I am mostly just interested in x86 (32-bit and 64-bit) based systems, so it would choke? And how would it choke (exception thrown, some getlasterror style message passing, or what?). To ask bluntly, I would need to do bignum arithmetic in my side, rather then letting LLVM do it (since the backend would most likely not do it)? Has anyone thought about putting bignum's inside LLVM itself, LLVM would be able to generate the best things possible for a given system, and I do not mean bignum like some arbitrary sized nu...
2008 Sep 08
2
[LLVMdev] Integer questions
On Sep 5, 2008, at 3:07 PM, Duncan Sands wrote: > The current maximum the code generators support is i256. If you try > to > use bigger integers it will work fine in the bitcode, but if you try > to do code generation the compiler will crash. FYI, there is one other issue here, PR2660. While codegen in general can handle types like i256, individual targets don't always have