Created
May 9, 2016 20:16
-
-
Save sparre/13021e656c42f2c2efc34cce8427c55a to your computer and use it in GitHub Desktop.
Demonstrating how <https://github.com/cforler/Ada-Crypto-Library/blob/master/src/crypto-types-base64.ads> is broken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Ada.Text_IO; | |
with Crypto.Types.Base64; | |
procedure Experiment is | |
package Boolean64 is new Crypto.Types.Base64 (Boolean); | |
Some_Data : constant Crypto.Types.Bytes := (0, 12, 24, 48, 96, 192, 65, 65, 65); | |
use Ada.Text_IO; | |
begin | |
for Element of Boolean64.Encode_Base64 (Some_Data) loop | |
Put_Line (Boolean'Image (Element)); | |
end loop; | |
end Experiment; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drop the file in the same directory as
crypto-types-base64.ads
, compile withgnatmake -O3 experiment
, and run./experiment
...