Skip to content

Commit a90c71b

Browse files
author
python36
authored
Add files via upload
1 parent 3c5af21 commit a90c71b

File tree

4 files changed

+2
-29
lines changed

4 files changed

+2
-29
lines changed

byte_package.adb

-18
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,4 @@ package body byte_package is
2828
begin
2929
e := e + 1;
3030
end increment;
31-
32-
33-
34-
35-
function byte_shift_right (value : byte; amount : integer := 1) return byte is
36-
begin
37-
return byte(Interfaces.Shift_Right(
38-
Value => Interfaces.Unsigned_8(value), Amount => amount));
39-
end;
40-
41-
procedure byte_print (b : byte) is
42-
type byte_chars_t is array (byte(0)..byte(15)) of character;
43-
byte_chars : byte_chars_t := (
44-
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
45-
begin
46-
ada.text_io.put(byte_chars(byte_shift_right(b, 4)));
47-
ada.text_io.put(byte_chars(b and 16#0f#));
48-
end byte_print;
4931
end byte_package;

byte_package.ads

-9
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,4 @@ package byte_package is
1414
procedure increment (e : in out earth);
1515

1616
package byte_io is new Ada.Sequential_IO(byte);
17-
18-
19-
20-
21-
22-
function byte_shift_right (value : byte; amount : integer := 1) return byte;
23-
procedure byte_print (b : byte);
24-
25-
2617
end byte_package;

file_crypter.adb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package body file_crypter is
44
raiden.init_key(key);
55
end init_key;
66

7-
procedure file_crypt(in_file : byte_io.File_Type; out_file : out byte_io.File_Type; mode_crypt : mode) is
7+
procedure file_crypt(in_file : byte_io.File_Type; out_file : out byte_io.File_Type; mode_crypt : mode) is
88
type raiden_access is access procedure (x : in byte_array_8; y : out byte_array_8);
99
raiden_operation : raiden_access;
1010
t_b : byte;

vibecrypt.adb

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ begin
113113
exception
114114
when Error: others =>
115115
Ada.Text_IO.Put_Line("Error: " & Ada.Exceptions.Exception_Message(Error));
116-
end vibecrypt;
116+
end vibecrypt;

0 commit comments

Comments
 (0)