comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: compiler problems with libadacrypt-dev-0.1.3
Date: Sun, 30 Mar 2014 15:43:52 +0100
Date: 2014-03-30T15:43:52+01:00	[thread overview]
Message-ID: <ly38hzrbkn.fsf@pushface.org> (raw)
In-Reply-To: a927f44e-444a-4d18-9c9a-1f817e9ae21a@googlegroups.com

batoubrioche@googlemail.com writes:

> For a project I need to use some of the libadacrypt library's
> facilities. I downloaded the most recent version of
> libadacrypt-dev-0.1.3 here at sourceforge
>
> http://sourceforge.net/projects/libadacrypt-dev/
>
> First of all, I programmed some small test units with the library's
> big number support.
>
> But I get these error messages while compiling the crypto-types.ads source:
>
> Compiling ...
> crypto-types.ads:108:34: first argument for shift must have size 8. 16, 32 or 64
> crypto-types.ads:109:34: first argument for shift must have size 8. 16, 32 or 64
> crypto-types.ads:291:30: incorrect intrinsic subprogram, see spec
> crypto-types.ads:292:30: incorrect intrinsic subprogram, see spec
> Done--error detected.
>
> I have no clue what is wrong here. Could someone tell me what is wrong
> with this source from the libadacrypt library?

I've tried this with GCC 4.8.1 ... and get the same.

The problem is that, for the first error, the code says

   function Shift_Left  (Value : Natural; Amount : Natural) return Natural;

and Natural'Size (on this machine, x86_64-apple-darwin12) is 31, not
32. Likewise for the second error.

Having "corrected" this by using Integer for Value and the result, the
next problem is with crypto-symmetric-algorithm-tripledes.ads:103 to
:106; this is less tractable, since the code is trying to implement
intrinsic shifts for a 6-bit type. It is in a section of code marked
obsolete, though!

I posted bugs to https://sourceforge.net/p/libadacrypt-dev/bugs/.


  reply	other threads:[~2014-03-30 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30 12:54 compiler problems with libadacrypt-dev-0.1.3 batoubrioche
2014-03-30 14:43 ` Simon Wright [this message]
2014-03-30 17:39   ` batoubrioche
2014-03-30 19:00     ` Simon Wright
2014-04-02  8:54 ` Christian Forler
2014-04-02 12:53   ` Simon Wright
2014-04-02 13:22     ` Christian Forler
2014-04-08 15:57   ` batoubrioche
2014-04-10  7:27     ` Christian Forler
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox