CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- Factory for UML module. ------------------------------------------------------------------------------ package AMF.Internals.Factories.UML_Module_Factory is type UML_Module_Factory is limited new AMF.Internals.Factories.Abstract_Module_Factory with null record; ------------------------------ -- AMF_Factory's operations -- ------------------------------ overriding procedure Connect_Extent (Self : not null access constant UML_Module_Factory; Element : AMF.Internals.AMF_Element; Extent : AMF.Internals.AMF_Extent); overriding procedure Connect_Link_End (Self : not null access constant UML_Module_Factory; Element : AMF.Internals.AMF_Element; Property : AMF.Internals.CMOF_Element; Link : AMF.Internals.AMF_Link; Other : AMF.Internals.AMF_Element); overriding procedure Synchronize_Link_Set (Self : not null access constant UML_Module_Factory; Element : AMF.Internals.AMF_Element; Property : AMF.Internals.CMOF_Element; Link : AMF.Internals.AMF_Link); overriding function To_Element (Self : not null access constant UML_Module_Factory; Element : AMF.Internals.AMF_Element) return AMF.Elements.Element_Access; end AMF.Internals.Factories.UML_Module_Factory;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- A U N I T . T E S T _ S U I T E S -- -- -- -- S p e c -- -- -- -- -- -- Copyright (C) 2000-2011, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT is maintained by AdaCore (http://www.adacore.com) -- -- -- ------------------------------------------------------------------------------ -- A collection of test cases. with Ada_Containers; with Ada_Containers.AUnit_Lists; with AUnit.Options; use AUnit.Options; with AUnit.Simple_Test_Cases; use AUnit.Simple_Test_Cases; with AUnit.Tests; with AUnit.Test_Results; use AUnit.Test_Results; package AUnit.Test_Suites is type Test_Suite is new AUnit.Tests.Test with private; type Access_Test_Suite is access all Test_Suite'Class; procedure Add_Test (S : access Test_Suite'Class; T : access Test_Suite'Class); procedure Add_Test (S : access Test_Suite'Class; T : access Test_Case'Class); -- Add a test case or suite to this suite procedure Run (Suite : access Test_Suite; Options : AUnit_Options; R : in out Result'Class; Outcome : out Status); -- Run all tests collected into this suite function New_Suite return Access_Test_Suite; -- Create a new test suite private type Test_Suite_Elt_Kind is (TC_Elt, TS_Elt); type Test_Suite_Element (Kind : Test_Suite_Elt_Kind := TC_Elt) is record case Kind is when TC_Elt => TC : Test_Case_Access; when TS_Elt => TS : Access_Test_Suite; end case; end record; use Ada_Containers; package Test_Lists is new Ada_Containers.AUnit_Lists (Test_Suite_Element); use Test_Lists; -- Containers for test cases and sub-suites type Test_Suite is new AUnit.Tests.Test with record Tests : aliased Test_Lists.List; end record; end AUnit.Test_Suites;
-- Copyright 2008-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Do_Nothing (Val : in out Integer) is begin null; end Do_Nothing; end Pck;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.STRINGS.BOUNDED.LESS_CASE_INSENSITIVE -- -- -- -- S p e c -- -- -- -- Copyright (C) 2011, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ generic with package Bounded is new Ada.Strings.Bounded.Generic_Bounded_Length (<>); function Ada.Strings.Bounded.Less_Case_Insensitive (Left, Right : Bounded.Bounded_String) return Boolean; pragma Preelaborate (Ada.Strings.Bounded.Less_Case_Insensitive);
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . P A R A M E T E R S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid -- -- Copyright (C) 2003-2005 The European Space Agency -- -- Copyright (C) 2003-2017, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package defines basic parameters used by the low level tasking system with System.STM32; with System.BB.Board_Parameters; with System.BB.MCU_Parameters; package System.BB.Parameters is pragma No_Elaboration_Code_All; pragma Preelaborate (System.BB.Parameters); Clock_Frequency : constant := Board_Parameters.Main_Clock_Frequency; pragma Compile_Time_Error (Clock_Frequency not in System.STM32.SYSCLK_Range, "bad Clock_Frequency value"); Ticks_Per_Second : constant := Clock_Frequency; -- Set the requested SYSCLK frequency. Setup_Pll will try to set configure -- PLL to match this value when possible or reset the board. ---------------- -- Prescalers -- ---------------- AHB1_PRE : constant System.STM32.AHB_Prescaler := (Enabled => False, Value => System.STM32.DIV2); -- AHB1_PRE corresponds to D1CPRE Prescaler AHB2_PRE : constant System.STM32.AHB_Prescaler := (Enabled => True, Value => System.STM32.DIV2); -- AHB2_PRE corresponds to HPRE Prescaler APB1_PRE : constant System.STM32.APB_Prescaler := (Enabled => True, Value => System.STM32.DIV2); -- APB1_PRE corresponds to D2PPRE1 APB2_PRE : constant System.STM32.APB_Prescaler := (Enabled => True, Value => System.STM32.DIV2); -- APB2_PRE corresponds to D2PPRE2 APB3_PRE : constant System.STM32.APB_Prescaler := (Enabled => True, Value => System.STM32.DIV2); -- APB3_PRE corresponds to D1PPRE APB4_PRE : constant System.STM32.APB_Prescaler := (Enabled => True, Value => System.STM32.DIV2); -- APB4_PRE corresponds to D3PPRE -------------------- -- External Clock -- -------------------- -- The external clock can be specific for each board. We provide here -- a value for the most common STM32 boards. -- Change the value based on the external clock used on your specific -- hardware. HSE_Clock : constant := Board_Parameters.HSE_Clock_Frequency; LSE_Clock : constant := Board_Parameters.LSE_Clock_Frequency; HSI_Clock : constant := Board_Parameters.HSI_Clock_Frequency; HSI48_Clock : constant := Board_Parameters.HSI48_Clock_Frequency; CSI_Clock : constant := Board_Parameters.CSI_Clock_Frequency; LSI_Clock : constant := Board_Parameters.LSI_Clock_Frequency; Has_FPU : constant Boolean := True; -- Set to true if core has a FPU Has_VTOR : constant Boolean := True; -- Set to true if core has a Vector Table Offset Register (VTOR). -- VTOR is implemented in Cortex-M0+, Cortex-M4 and above. Has_OS_Extensions : constant Boolean := True; -- Set to true if core has armv6-m OS extensions (PendSV, MSP, PSP, -- etc...). The OS extensions are optional for the Cortex-M1. Is_ARMv6m : constant Boolean := False; -- Set to true if core is an armv6-m (Cortex-M0, Cortex-M0+, Cortex-M1) ---------------- -- Interrupts -- ---------------- -- These definitions are in this package in order to isolate target -- dependencies. subtype Interrupt_Range is Integer range -1 .. MCU_Parameters.Number_Of_Interrupts; -- Number of interrupts for the interrupt controller Trap_Vectors : constant := 17; -- While on this target there is little difference between interrupts -- and traps, we consider the following traps: -- -- Name Nr -- -- Reset_Vector 1 -- NMI_Vector 2 -- Hard_Fault_Vector 3 -- Mem_Manage_Vector 4 -- Bus_Fault_Vector 5 -- Usage_Fault_Vector 6 -- SVC_Vector 11 -- Debug_Mon_Vector 12 -- Pend_SV_Vector 14 -- Sys_Tick_Vector 15 -- Interrupt_Request_Vector 16 -- -- These trap vectors correspond to different low-level trap handlers in -- the run time. Note that as all interrupt requests (IRQs) will use the -- same interrupt wrapper, there is no benefit to consider using separate -- vectors for each. Context_Buffer_Capacity : constant := 10; -- The context buffer contains registers r4 .. r11 and the SP_process -- (PSP). The size is rounded up to an even number for alignment ------------ -- Stacks -- ------------ Interrupt_Stack_Size : constant := 2 * 1024; -- Size of each of the interrupt stacks in bytes. While there nominally is -- an interrupt stack per interrupt priority, the entire space is used as a -- single stack. Interrupt_Sec_Stack_Size : constant := 128; -- Size of the secondary stack for interrupt handlers ---------- -- CPUS -- ---------- Max_Number_Of_CPUs : constant := 1; -- Maximum number of CPUs Multiprocessor : constant Boolean := Max_Number_Of_CPUs /= 1; -- Are we on a multiprocessor board? end System.BB.Parameters;
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.Standard_Allocators; with System.Storage_Elements; with System.Zero_Terminated_Strings; with C.errno; with C.fnmatch; with C.stdint; package body System.Native_Directories.Searching is use Ada.Exception_Identification.From_Here; use type Storage_Elements.Storage_Offset; use type C.char; use type C.signed_int; use type C.dirent.DIR_ptr; use type C.bits.dirent.struct_dirent_ptr; use type C.size_t; use type C.sys.types.mode_t; package char_ptr_Conv is new Address_To_Named_Access_Conversions (C.char, C.char_ptr); package dirent_ptr_Conv is new Address_To_Named_Access_Conversions ( C.dirent.struct_dirent, C.bits.dirent.struct_dirent_ptr); function strlen (s : not null access constant C.char) return C.size_t with Import, Convention => Intrinsic, External_Name => "__builtin_strlen"; procedure memcpy ( dst : not null C.bits.dirent.struct_dirent_ptr; src : not null C.bits.dirent.struct_dirent_ptr; n : Storage_Elements.Storage_Count) with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy"; procedure Get_Information ( Directory : String; Directory_Entry : not null Directory_Entry_Access; Information : aliased out C.sys.stat.struct_stat; errno : out C.signed_int); procedure Get_Information ( Directory : String; Directory_Entry : not null Directory_Entry_Access; Information : aliased out C.sys.stat.struct_stat; errno : out C.signed_int) is S_Length : constant C.size_t := strlen (Directory_Entry.d_name (0)'Access); Full_Name : C.char_array ( 0 .. Directory'Length * Zero_Terminated_Strings.Expanding + 1 -- '/' + S_Length); Full_Name_Length : C.size_t; begin -- compose Zero_Terminated_Strings.To_C ( Directory, Full_Name (0)'Access, Full_Name_Length); Full_Name (Full_Name_Length) := '/'; Full_Name_Length := Full_Name_Length + 1; Full_Name (Full_Name_Length .. Full_Name_Length + S_Length - 1) := Directory_Entry.d_name (0 .. S_Length - 1); Full_Name_Length := Full_Name_Length + S_Length; Full_Name (Full_Name_Length) := C.char'Val (0); -- stat if C.sys.stat.lstat (Full_Name (0)'Access, Information'Access) < 0 then errno := C.errno.errno; else errno := 0; end if; end Get_Information; -- implementation function New_Directory_Entry (Source : not null Directory_Entry_Access) return not null Directory_Entry_Access is Result : Directory_Entry_Access; begin Result := dirent_ptr_Conv.To_Pointer ( Standard_Allocators.Allocate ( Storage_Elements.Storage_Offset (Source.d_reclen))); memcpy ( Result, Source, Storage_Elements.Storage_Offset (Source.d_reclen)); return Result; end New_Directory_Entry; procedure Free (X : in out Directory_Entry_Access) is begin Standard_Allocators.Free (dirent_ptr_Conv.To_Address (X)); X := null; end Free; procedure Start_Search ( Search : aliased in out Search_Type; Directory : String; Pattern : String; Filter : Filter_Type; Directory_Entry : out Directory_Entry_Access; Has_Next_Entry : out Boolean) is begin if Directory'Length = 0 then -- reject Raise_Exception (Name_Error'Identity); end if; declare C_Directory : C.char_array ( 0 .. Directory'Length * Zero_Terminated_Strings.Expanding); Handle : C.dirent.DIR_ptr; begin Zero_Terminated_Strings.To_C ( Directory, C_Directory (0)'Access); Handle := C.dirent.opendir (C_Directory (0)'Access); if Handle = null then Raise_Exception (Named_IO_Exception_Id (C.errno.errno)); end if; Search.Handle := Handle; end; Search.Filter := Filter; Search.Pattern := char_ptr_Conv.To_Pointer ( Standard_Allocators.Allocate ( Storage_Elements.Storage_Offset (Pattern'Length) * Zero_Terminated_Strings.Expanding + 1)); -- NUL Zero_Terminated_Strings.To_C (Pattern, Search.Pattern); Get_Next_Entry (Search, Directory_Entry, Has_Next_Entry); end Start_Search; procedure End_Search ( Search : aliased in out Search_Type; Raise_On_Error : Boolean) is Handle : constant C.dirent.DIR_ptr := Search.Handle; begin Search.Handle := null; Standard_Allocators.Free ( char_ptr_Conv.To_Address (Search.Pattern)); Search.Pattern := null; if C.dirent.closedir (Handle) < 0 and then Raise_On_Error then Raise_Exception (IO_Exception_Id (C.errno.errno)); end if; end End_Search; procedure Get_Next_Entry ( Search : aliased in out Search_Type; Directory_Entry : out Directory_Entry_Access; Has_Next_Entry : out Boolean) is begin loop C.errno.errno_location.all := 0; Directory_Entry := C.dirent.readdir (Search.Handle); declare errno : constant C.signed_int := C.errno.errno; begin if errno /= 0 then Raise_Exception (IO_Exception_Id (errno)); elsif Directory_Entry = null then Has_Next_Entry := False; -- end exit; end if; end; if Search.Filter (Kind (Directory_Entry)) and then C.fnmatch.fnmatch ( Search.Pattern, Directory_Entry.d_name (0)'Access, 0) = 0 and then ( Directory_Entry.d_name (0) /= '.' or else ( Directory_Entry.d_name (1) /= C.char'Val (0) and then ( Directory_Entry.d_name (1) /= '.' or else Directory_Entry.d_name (2) /= C.char'Val (0)))) then Has_Next_Entry := True; exit; -- found end if; end loop; end Get_Next_Entry; procedure Get_Entry ( Directory : String; Name : String; Directory_Entry : aliased out Directory_Entry_Access; Additional : aliased in out Directory_Entry_Additional_Type) is Dummy_dirent : C.bits.dirent.struct_dirent; -- to use 'Position Record_Length : constant Storage_Elements.Storage_Count := Storage_Elements.Storage_Offset'Max ( C.bits.dirent.struct_dirent'Size / Standard'Storage_Unit, Dummy_dirent.d_name'Position + Storage_Elements.Storage_Offset (Name'Length + 1)); errno : C.signed_int; begin -- allocation Directory_Entry := dirent_ptr_Conv.To_Pointer ( Standard_Allocators.Allocate (Record_Length)); -- filling components Directory_Entry.d_off := 0; -- ? Directory_Entry.d_reclen := C.stdint.uint16_t (Record_Length); Zero_Terminated_Strings.To_C (Name, Directory_Entry.d_name (0)'Access); Get_Information (Directory, Directory_Entry, Additional.Information, errno => errno); if errno /= 0 then Raise_Exception (Named_IO_Exception_Id (errno)); end if; Directory_Entry.d_ino := Additional.Information.st_ino; Directory_Entry.d_type := C.stdint.uint8_t ( C.Shift_Right (Additional.Information.st_mode, 12)); Additional.Filled := True; end Get_Entry; function Simple_Name (Directory_Entry : not null Directory_Entry_Access) return String is begin return Zero_Terminated_Strings.Value ( Directory_Entry.d_name (0)'Access); end Simple_Name; function Kind (Directory_Entry : not null Directory_Entry_Access) return File_Kind is begin -- DTTOIF return Kind ( C.Shift_Left (C.sys.types.mode_t (Directory_Entry.d_type), 12)); end Kind; function Size ( Directory : String; Directory_Entry : not null Directory_Entry_Access; Additional : aliased in out Directory_Entry_Additional_Type) return Ada.Streams.Stream_Element_Count is begin if not Additional.Filled then Get_Information (Directory, Directory_Entry, Additional.Information); Additional.Filled := True; end if; return Ada.Streams.Stream_Element_Offset ( Additional.Information.st_size); end Size; function Modification_Time ( Directory : String; Directory_Entry : not null Directory_Entry_Access; Additional : aliased in out Directory_Entry_Additional_Type) return Native_Calendar.Native_Time is begin if not Additional.Filled then Get_Information (Directory, Directory_Entry, Additional.Information); Additional.Filled := True; end if; return Additional.Information.st_mtim; end Modification_Time; procedure Get_Information ( Directory : String; Directory_Entry : not null Directory_Entry_Access; Information : aliased out C.sys.stat.struct_stat) is errno : C.signed_int; begin Get_Information (Directory, Directory_Entry, Information, errno => errno); if errno /= 0 then Raise_Exception (IO_Exception_Id (errno)); end if; end Get_Information; end System.Native_Directories.Searching;
----------------------------------------------------------------------- -- AWA.Blogs.Models -- AWA.Blogs.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095 ----------------------------------------------------------------------- -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- pragma Warnings (Off); with ADO.Sessions; with ADO.Objects; with ADO.Statements; with ADO.SQL; with ADO.Schemas; with ADO.Queries; with ADO.Queries.Loaders; with Ada.Calendar; with Ada.Containers.Vectors; with Ada.Strings.Unbounded; with Util.Beans.Objects; with Util.Beans.Objects.Enums; with Util.Beans.Basic.Lists; with ADO.Audits; with AWA.Comments.Models; with AWA.Events; with AWA.Images.Models; with AWA.Storages.Models; with AWA.Users.Models; with AWA.Workspaces.Models; with Util.Beans.Methods; pragma Warnings (On); package AWA.Blogs.Models is pragma Style_Checks ("-mr"); type Format_Type is (FORMAT_DOTCLEAR, FORMAT_HTML, FORMAT_MARKDOWN, FORMAT_MEDIAWIKI, FORMAT_CREOLE); for Format_Type use (FORMAT_DOTCLEAR => 0, FORMAT_HTML => 1, FORMAT_MARKDOWN => 2, FORMAT_MEDIAWIKI => 3, FORMAT_CREOLE => 4); package Format_Type_Objects is new Util.Beans.Objects.Enums (Format_Type); type Nullable_Format_Type is record Is_Null : Boolean := True; Value : Format_Type; end record; type Post_Status_Type is (POST_DRAFT, POST_PUBLISHED, POST_SCHEDULED); for Post_Status_Type use (POST_DRAFT => 0, POST_PUBLISHED => 1, POST_SCHEDULED => 2); package Post_Status_Type_Objects is new Util.Beans.Objects.Enums (Post_Status_Type); type Nullable_Post_Status_Type is record Is_Null : Boolean := True; Value : Post_Status_Type; end record; type Blog_Ref is new ADO.Objects.Object_Ref with null record; type Post_Ref is new ADO.Objects.Object_Ref with null record; -- Create an object key for Blog. function Blog_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Blog from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Blog_Key (Id : in String) return ADO.Objects.Object_Key; Null_Blog : constant Blog_Ref; function "=" (Left, Right : Blog_Ref'Class) return Boolean; -- Set the blog identifier procedure Set_Id (Object : in out Blog_Ref; Value : in ADO.Identifier); -- Get the blog identifier function Get_Id (Object : in Blog_Ref) return ADO.Identifier; -- Set the blog name procedure Set_Name (Object : in out Blog_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Name (Object : in out Blog_Ref; Value : in String); -- Get the blog name function Get_Name (Object : in Blog_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Name (Object : in Blog_Ref) return String; -- Get the version function Get_Version (Object : in Blog_Ref) return Integer; -- Set the blog uuid procedure Set_Uid (Object : in out Blog_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Uid (Object : in out Blog_Ref; Value : in String); -- Get the blog uuid function Get_Uid (Object : in Blog_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Uid (Object : in Blog_Ref) return String; -- Set the blog creation date procedure Set_Create_Date (Object : in out Blog_Ref; Value : in Ada.Calendar.Time); -- Get the blog creation date function Get_Create_Date (Object : in Blog_Ref) return Ada.Calendar.Time; -- Set the date when the blog was updated procedure Set_Update_Date (Object : in out Blog_Ref; Value : in Ada.Calendar.Time); -- Get the date when the blog was updated function Get_Update_Date (Object : in Blog_Ref) return Ada.Calendar.Time; -- Set The blog base URL. procedure Set_Url (Object : in out Blog_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Url (Object : in out Blog_Ref; Value : in String); -- Get The blog base URL. function Get_Url (Object : in Blog_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Url (Object : in Blog_Ref) return String; -- Set the default post format. procedure Set_Format (Object : in out Blog_Ref; Value : in AWA.Blogs.Models.Format_Type); -- Get the default post format. function Get_Format (Object : in Blog_Ref) return AWA.Blogs.Models.Format_Type; -- Set the default image URL to be used procedure Set_Default_Image_Url (Object : in out Blog_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Default_Image_Url (Object : in out Blog_Ref; Value : in String); -- Get the default image URL to be used function Get_Default_Image_Url (Object : in Blog_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Default_Image_Url (Object : in Blog_Ref) return String; -- Set the workspace that this blog belongs to procedure Set_Workspace (Object : in out Blog_Ref; Value : in AWA.Workspaces.Models.Workspace_Ref'Class); -- Get the workspace that this blog belongs to function Get_Workspace (Object : in Blog_Ref) return AWA.Workspaces.Models.Workspace_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Blog_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier); -- Load the entity identified by 'Id'. -- Returns True in <b>Found</b> if the object was found and False if it does not exist. procedure Load (Object : in out Blog_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean); -- Find and load the entity. overriding procedure Find (Object : in out Blog_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); -- Save the entity. If the entity does not have an identifier, an identifier is allocated -- and it is inserted in the table. Otherwise, only data fields which have been changed -- are updated. overriding procedure Save (Object : in out Blog_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Blog_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Blog_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition BLOG_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Blog_Ref); -- Copy of the object. procedure Copy (Object : in Blog_Ref; Into : in out Blog_Ref); package Blog_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Blog_Ref, "=" => "="); subtype Blog_Vector is Blog_Vectors.Vector; procedure List (Object : in out Blog_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); -- Create an object key for Post. function Post_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Post from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Post_Key (Id : in String) return ADO.Objects.Object_Key; Null_Post : constant Post_Ref; function "=" (Left, Right : Post_Ref'Class) return Boolean; -- Set the post identifier procedure Set_Id (Object : in out Post_Ref; Value : in ADO.Identifier); -- Get the post identifier function Get_Id (Object : in Post_Ref) return ADO.Identifier; -- Set the post title procedure Set_Title (Object : in out Post_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Title (Object : in out Post_Ref; Value : in String); -- Get the post title function Get_Title (Object : in Post_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Title (Object : in Post_Ref) return String; -- Set the post text content procedure Set_Text (Object : in out Post_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Text (Object : in out Post_Ref; Value : in String); -- Get the post text content function Get_Text (Object : in Post_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Text (Object : in Post_Ref) return String; -- Set the post creation date procedure Set_Create_Date (Object : in out Post_Ref; Value : in Ada.Calendar.Time); -- Get the post creation date function Get_Create_Date (Object : in Post_Ref) return Ada.Calendar.Time; -- Set the post URI procedure Set_Uri (Object : in out Post_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Uri (Object : in out Post_Ref; Value : in String); -- Get the post URI function Get_Uri (Object : in Post_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Uri (Object : in Post_Ref) return String; -- function Get_Version (Object : in Post_Ref) return Integer; -- Set the post publication date procedure Set_Publish_Date (Object : in out Post_Ref; Value : in ADO.Nullable_Time); -- Get the post publication date function Get_Publish_Date (Object : in Post_Ref) return ADO.Nullable_Time; -- Set the post status procedure Set_Status (Object : in out Post_Ref; Value : in AWA.Blogs.Models.Post_Status_Type); -- Get the post status function Get_Status (Object : in Post_Ref) return AWA.Blogs.Models.Post_Status_Type; -- procedure Set_Allow_Comments (Object : in out Post_Ref; Value : in Boolean); -- function Get_Allow_Comments (Object : in Post_Ref) return Boolean; -- Set the number of times the post was read. procedure Set_Read_Count (Object : in out Post_Ref; Value : in Integer); -- Get the number of times the post was read. function Get_Read_Count (Object : in Post_Ref) return Integer; -- Set the post summary. procedure Set_Summary (Object : in out Post_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Summary (Object : in out Post_Ref; Value : in String); -- Get the post summary. function Get_Summary (Object : in Post_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Summary (Object : in Post_Ref) return String; -- Set the blog post format. procedure Set_Format (Object : in out Post_Ref; Value : in AWA.Blogs.Models.Format_Type); -- Get the blog post format. function Get_Format (Object : in Post_Ref) return AWA.Blogs.Models.Format_Type; -- procedure Set_Author (Object : in out Post_Ref; Value : in AWA.Users.Models.User_Ref'Class); -- function Get_Author (Object : in Post_Ref) return AWA.Users.Models.User_Ref'Class; -- procedure Set_Blog (Object : in out Post_Ref; Value : in AWA.Blogs.Models.Blog_Ref'Class); -- function Get_Blog (Object : in Post_Ref) return AWA.Blogs.Models.Blog_Ref'Class; -- procedure Set_Image (Object : in out Post_Ref; Value : in AWA.Images.Models.Image_Ref'Class); -- function Get_Image (Object : in Post_Ref) return AWA.Images.Models.Image_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Post_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier); -- Load the entity identified by 'Id'. -- Returns True in <b>Found</b> if the object was found and False if it does not exist. procedure Load (Object : in out Post_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean); -- Find and load the entity. overriding procedure Find (Object : in out Post_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); -- Save the entity. If the entity does not have an identifier, an identifier is allocated -- and it is inserted in the table. Otherwise, only data fields which have been changed -- are updated. overriding procedure Save (Object : in out Post_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Post_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Post_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition POST_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Post_Ref); -- Copy of the object. procedure Copy (Object : in Post_Ref; Into : in out Post_Ref); Query_Blog_Image_Get_Data : constant ADO.Queries.Query_Definition_Access; Query_Blog_Image_Width_Get_Data : constant ADO.Queries.Query_Definition_Access; Query_Blog_Image_Height_Get_Data : constant ADO.Queries.Query_Definition_Access; Query_Blog_Tag_Cloud : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The Admin_Post_Info describes a post in the administration interface. -- -------------------- type Admin_Post_Info is new Util.Beans.Basic.Bean with record -- the post identifier. Id : ADO.Identifier; -- the post title. Title : Ada.Strings.Unbounded.Unbounded_String; -- the post uri. Uri : Ada.Strings.Unbounded.Unbounded_String; -- the post publish date. Date : Ada.Calendar.Time; -- the post status. Status : AWA.Blogs.Models.Post_Status_Type; -- the number of times the post was read. Read_Count : Natural; -- the user name. Username : Ada.Strings.Unbounded.Unbounded_String; -- the number of comments for this post. Comment_Count : Natural; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Admin_Post_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Admin_Post_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Admin_Post_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Admin_Post_Info); package Admin_Post_Info_Vectors renames Admin_Post_Info_Beans.Vectors; subtype Admin_Post_Info_List_Bean is Admin_Post_Info_Beans.List_Bean; type Admin_Post_Info_List_Bean_Access is access all Admin_Post_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Admin_Post_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Admin_Post_Info_Vector is Admin_Post_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Admin_Post_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Blog_Admin_Post_List : constant ADO.Queries.Query_Definition_Access; Query_Blog_Admin_Post_List_Date : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The list of blogs. -- -------------------- type Blog_Info is new Util.Beans.Basic.Bean with record -- the blog identifier. Id : ADO.Identifier; -- the blog title. Title : Ada.Strings.Unbounded.Unbounded_String; -- the blog uuid. Uid : Ada.Strings.Unbounded.Unbounded_String; -- the blog creation date. Create_Date : Ada.Calendar.Time; -- the number of posts published. Post_Count : Integer; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Blog_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Blog_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Blog_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Blog_Info); package Blog_Info_Vectors renames Blog_Info_Beans.Vectors; subtype Blog_Info_List_Bean is Blog_Info_Beans.List_Bean; type Blog_Info_List_Bean_Access is access all Blog_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Blog_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Blog_Info_Vector is Blog_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Blog_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Blog_List : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The comment information. -- -------------------- type Comment_Info is new Util.Beans.Basic.Bean with record -- the comment identifier. Id : ADO.Identifier; -- the post identifier. Post_Id : ADO.Identifier; -- the post title. Title : Ada.Strings.Unbounded.Unbounded_String; -- the comment author's name. Author : Ada.Strings.Unbounded.Unbounded_String; -- the comment author's email. Email : Ada.Strings.Unbounded.Unbounded_String; -- the comment date. Date : Ada.Calendar.Time; -- the comment status. Status : AWA.Comments.Models.Status_Type; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Comment_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Comment_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Comment_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Comment_Info); package Comment_Info_Vectors renames Comment_Info_Beans.Vectors; subtype Comment_Info_List_Bean is Comment_Info_Beans.List_Bean; type Comment_Info_List_Bean_Access is access all Comment_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Comment_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Comment_Info_Vector is Comment_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Comment_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Comment_List : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The information about an image used in a wiki page. -- -------------------- type Image_Info is new Util.Beans.Basic.Bean with record -- the image folder identifier. Folder_Id : ADO.Identifier; -- the image file identifier. Id : ADO.Identifier; -- the file creation date. Create_Date : Ada.Calendar.Time; -- the file storage URI. Uri : Ada.Strings.Unbounded.Unbounded_String; -- the file storage URI. Storage : AWA.Storages.Models.Storage_Type; -- the file mime type. Mime_Type : Ada.Strings.Unbounded.Unbounded_String; -- the file size. File_Size : Integer; -- the image width. Width : Integer; -- the image height. Height : Integer; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Image_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Image_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Image_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Image_Info); package Image_Info_Vectors renames Image_Info_Beans.Vectors; subtype Image_Info_List_Bean is Image_Info_Beans.List_Bean; type Image_Info_List_Bean_Access is access all Image_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Image_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Image_Info_Vector is Image_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Image_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Blog_Image : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The month statistics. -- -------------------- type Month_Stat_Info is new Util.Beans.Basic.Bean with record -- the post identifier. Year : Natural; -- the post title. Month : Natural; -- the post uri. Count : Natural; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Month_Stat_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Month_Stat_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Month_Stat_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Month_Stat_Info); package Month_Stat_Info_Vectors renames Month_Stat_Info_Beans.Vectors; subtype Month_Stat_Info_List_Bean is Month_Stat_Info_Beans.List_Bean; type Month_Stat_Info_List_Bean_Access is access all Month_Stat_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Month_Stat_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Month_Stat_Info_Vector is Month_Stat_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Month_Stat_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Post_Publish_Stats : constant ADO.Queries.Query_Definition_Access; Query_Post_Access_Stats : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- The Post_Info describes a post to be displayed in the blog page -- -------------------- type Post_Info is new Util.Beans.Basic.Bean with record -- the post identifier. Id : ADO.Identifier; -- the post title. Title : Ada.Strings.Unbounded.Unbounded_String; -- the post uri. Uri : Ada.Strings.Unbounded.Unbounded_String; -- the post publish date. Date : Ada.Calendar.Time; -- the user name. Username : Ada.Strings.Unbounded.Unbounded_String; -- the post page format. Format : AWA.Blogs.Models.Format_Type; -- the post summary. Summary : Ada.Strings.Unbounded.Unbounded_String; -- the post text. Text : Ada.Strings.Unbounded.Unbounded_String; -- the post allows to add comments. Allow_Comments : Boolean; -- the number of comments for this post. Comment_Count : Natural; end record; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Post_Info; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Post_Info; Name : in String; Value : in Util.Beans.Objects.Object); package Post_Info_Beans is new Util.Beans.Basic.Lists (Element_Type => Post_Info); package Post_Info_Vectors renames Post_Info_Beans.Vectors; subtype Post_Info_List_Bean is Post_Info_Beans.List_Bean; type Post_Info_List_Bean_Access is access all Post_Info_List_Bean; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Post_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); subtype Post_Info_Vector is Post_Info_Vectors.Vector; -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. procedure List (Object : in out Post_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class); Query_Blog_Post_List : constant ADO.Queries.Query_Definition_Access; Query_Blog_Post_Tag_List : constant ADO.Queries.Query_Definition_Access; -- -------------------- -- load the blog instance. -- -------------------- type Blog_Bean is abstract new AWA.Blogs.Models.Blog_Ref and Util.Beans.Basic.Bean and Util.Beans.Methods.Method_Bean with null record; -- This bean provides some methods that can be used in a Method_Expression. overriding function Get_Method_Bindings (From : in Blog_Bean) return Util.Beans.Methods.Method_Binding_Array_Access; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Blog_Bean; Name : in String; Value : in Util.Beans.Objects.Object); procedure Create (Bean : in out Blog_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; procedure Create_Default (Bean : in out Blog_Bean; Event : in AWA.Events.Module_Event'Class) is abstract; procedure Load (Bean : in out Blog_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; -- -------------------- -- load the post for the administrator -- -------------------- type Post_Bean is abstract new AWA.Blogs.Models.Post_Ref and Util.Beans.Basic.Bean and Util.Beans.Methods.Method_Bean with null record; -- This bean provides some methods that can be used in a Method_Expression. overriding function Get_Method_Bindings (From : in Post_Bean) return Util.Beans.Methods.Method_Binding_Array_Access; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Post_Bean; Name : in String; Value : in Util.Beans.Objects.Object); procedure Save (Bean : in out Post_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; procedure Delete (Bean : in out Post_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; procedure Load (Bean : in out Post_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; procedure Load_Admin (Bean : in out Post_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; procedure Setup (Bean : in out Post_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; type Post_List_Bean is abstract limited new Util.Beans.Basic.Bean and Util.Beans.Methods.Method_Bean with record Tag : Ada.Strings.Unbounded.Unbounded_String; Page : Integer; Count : Integer; Page_Size : Integer; end record; -- This bean provides some methods that can be used in a Method_Expression. overriding function Get_Method_Bindings (From : in Post_List_Bean) return Util.Beans.Methods.Method_Binding_Array_Access; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Post_List_Bean; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Post_List_Bean; Name : in String; Value : in Util.Beans.Objects.Object); procedure Load (Bean : in out Post_List_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; -- -------------------- -- Statistics about the blog or a post. -- -------------------- type Stat_List_Bean is abstract limited new Util.Beans.Basic.Bean and Util.Beans.Methods.Method_Bean with record -- the blog identifier. Blog_Id : ADO.Identifier; -- the post identifier. Post_Id : ADO.Identifier; end record; -- This bean provides some methods that can be used in a Method_Expression. overriding function Get_Method_Bindings (From : in Stat_List_Bean) return Util.Beans.Methods.Method_Binding_Array_Access; -- Get the bean attribute identified by the name. overriding function Get_Value (From : in Stat_List_Bean; Name : in String) return Util.Beans.Objects.Object; -- Set the bean attribute identified by the name. overriding procedure Set_Value (Item : in out Stat_List_Bean; Name : in String; Value : in Util.Beans.Objects.Object); procedure Load (Bean : in out Stat_List_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is abstract; private BLOG_NAME : aliased constant String := "awa_blog"; COL_0_1_NAME : aliased constant String := "id"; COL_1_1_NAME : aliased constant String := "name"; COL_2_1_NAME : aliased constant String := "version"; COL_3_1_NAME : aliased constant String := "uid"; COL_4_1_NAME : aliased constant String := "create_date"; COL_5_1_NAME : aliased constant String := "update_date"; COL_6_1_NAME : aliased constant String := "url"; COL_7_1_NAME : aliased constant String := "format"; COL_8_1_NAME : aliased constant String := "default_image_url"; COL_9_1_NAME : aliased constant String := "workspace_id"; BLOG_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 10, Table => BLOG_NAME'Access, Members => ( 1 => COL_0_1_NAME'Access, 2 => COL_1_1_NAME'Access, 3 => COL_2_1_NAME'Access, 4 => COL_3_1_NAME'Access, 5 => COL_4_1_NAME'Access, 6 => COL_5_1_NAME'Access, 7 => COL_6_1_NAME'Access, 8 => COL_7_1_NAME'Access, 9 => COL_8_1_NAME'Access, 10 => COL_9_1_NAME'Access) ); BLOG_TABLE : constant ADO.Schemas.Class_Mapping_Access := BLOG_DEF'Access; BLOG_AUDIT_DEF : aliased constant ADO.Audits.Auditable_Mapping := (Count => 5, Of_Class => BLOG_DEF'Access, Members => ( 1 => 1, 2 => 3, 3 => 6, 4 => 7, 5 => 8) ); BLOG_AUDIT_TABLE : constant ADO.Audits.Auditable_Mapping_Access := BLOG_AUDIT_DEF'Access; Null_Blog : constant Blog_Ref := Blog_Ref'(ADO.Objects.Object_Ref with null record); type Blog_Impl is new ADO.Audits.Auditable_Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => BLOG_DEF'Access, With_Audit => BLOG_AUDIT_DEF'Access) with record Name : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Uid : Ada.Strings.Unbounded.Unbounded_String; Create_Date : Ada.Calendar.Time; Update_Date : Ada.Calendar.Time; Url : Ada.Strings.Unbounded.Unbounded_String; Format : AWA.Blogs.Models.Format_Type; Default_Image_Url : Ada.Strings.Unbounded.Unbounded_String; Workspace : AWA.Workspaces.Models.Workspace_Ref; end record; type Blog_Access is access all Blog_Impl; overriding procedure Destroy (Object : access Blog_Impl); overriding procedure Find (Object : in out Blog_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Blog_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Blog_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Blog_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Blog_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Blog_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Blog_Ref'Class; Impl : out Blog_Access); POST_NAME : aliased constant String := "awa_post"; COL_0_2_NAME : aliased constant String := "id"; COL_1_2_NAME : aliased constant String := "title"; COL_2_2_NAME : aliased constant String := "text"; COL_3_2_NAME : aliased constant String := "create_date"; COL_4_2_NAME : aliased constant String := "uri"; COL_5_2_NAME : aliased constant String := "version"; COL_6_2_NAME : aliased constant String := "publish_date"; COL_7_2_NAME : aliased constant String := "status"; COL_8_2_NAME : aliased constant String := "allow_comments"; COL_9_2_NAME : aliased constant String := "read_count"; COL_10_2_NAME : aliased constant String := "summary"; COL_11_2_NAME : aliased constant String := "format"; COL_12_2_NAME : aliased constant String := "author_id"; COL_13_2_NAME : aliased constant String := "blog_id"; COL_14_2_NAME : aliased constant String := "image_id"; POST_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 15, Table => POST_NAME'Access, Members => ( 1 => COL_0_2_NAME'Access, 2 => COL_1_2_NAME'Access, 3 => COL_2_2_NAME'Access, 4 => COL_3_2_NAME'Access, 5 => COL_4_2_NAME'Access, 6 => COL_5_2_NAME'Access, 7 => COL_6_2_NAME'Access, 8 => COL_7_2_NAME'Access, 9 => COL_8_2_NAME'Access, 10 => COL_9_2_NAME'Access, 11 => COL_10_2_NAME'Access, 12 => COL_11_2_NAME'Access, 13 => COL_12_2_NAME'Access, 14 => COL_13_2_NAME'Access, 15 => COL_14_2_NAME'Access) ); POST_TABLE : constant ADO.Schemas.Class_Mapping_Access := POST_DEF'Access; POST_AUDIT_DEF : aliased constant ADO.Audits.Auditable_Mapping := (Count => 7, Of_Class => POST_DEF'Access, Members => ( 1 => 1, 2 => 4, 3 => 6, 4 => 7, 5 => 8, 6 => 10, 7 => 11) ); POST_AUDIT_TABLE : constant ADO.Audits.Auditable_Mapping_Access := POST_AUDIT_DEF'Access; Null_Post : constant Post_Ref := Post_Ref'(ADO.Objects.Object_Ref with null record); type Post_Impl is new ADO.Audits.Auditable_Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => POST_DEF'Access, With_Audit => POST_AUDIT_DEF'Access) with record Title : Ada.Strings.Unbounded.Unbounded_String; Text : Ada.Strings.Unbounded.Unbounded_String; Create_Date : Ada.Calendar.Time; Uri : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Publish_Date : ADO.Nullable_Time; Status : AWA.Blogs.Models.Post_Status_Type; Allow_Comments : Boolean; Read_Count : Integer; Summary : Ada.Strings.Unbounded.Unbounded_String; Format : AWA.Blogs.Models.Format_Type; Author : AWA.Users.Models.User_Ref; Blog : AWA.Blogs.Models.Blog_Ref; Image : AWA.Images.Models.Image_Ref; end record; type Post_Access is access all Post_Impl; overriding procedure Destroy (Object : access Post_Impl); overriding procedure Find (Object : in out Post_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Post_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Post_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Post_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Post_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Post_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Post_Ref'Class; Impl : out Post_Access); package File_1 is new ADO.Queries.Loaders.File (Path => "blog-images.xml", Sha1 => "9B2B599473F75F92CB5AB5045675E4CCEF926543"); package Def_Blog_Image_Get_Data is new ADO.Queries.Loaders.Query (Name => "blog-image-get-data", File => File_1.File'Access); Query_Blog_Image_Get_Data : constant ADO.Queries.Query_Definition_Access := Def_Blog_Image_Get_Data.Query'Access; package Def_Blog_Image_Width_Get_Data is new ADO.Queries.Loaders.Query (Name => "blog-image-width-get-data", File => File_1.File'Access); Query_Blog_Image_Width_Get_Data : constant ADO.Queries.Query_Definition_Access := Def_Blog_Image_Width_Get_Data.Query'Access; package Def_Blog_Image_Height_Get_Data is new ADO.Queries.Loaders.Query (Name => "blog-image-height-get-data", File => File_1.File'Access); Query_Blog_Image_Height_Get_Data : constant ADO.Queries.Query_Definition_Access := Def_Blog_Image_Height_Get_Data.Query'Access; package File_2 is new ADO.Queries.Loaders.File (Path => "blog-tags.xml", Sha1 => "9B2B599473F75F92CB5AB5045675E4CCEF926543"); package Def_Blog_Tag_Cloud is new ADO.Queries.Loaders.Query (Name => "blog-tag-cloud", File => File_2.File'Access); Query_Blog_Tag_Cloud : constant ADO.Queries.Query_Definition_Access := Def_Blog_Tag_Cloud.Query'Access; package File_3 is new ADO.Queries.Loaders.File (Path => "blog-admin-post-list.xml", Sha1 => "05BD01CF2BA5242266B1259502A7B26EC7ACC26D"); package Def_Adminpostinfo_Blog_Admin_Post_List is new ADO.Queries.Loaders.Query (Name => "blog-admin-post-list", File => File_3.File'Access); Query_Blog_Admin_Post_List : constant ADO.Queries.Query_Definition_Access := Def_Adminpostinfo_Blog_Admin_Post_List.Query'Access; package Def_Adminpostinfo_Blog_Admin_Post_List_Date is new ADO.Queries.Loaders.Query (Name => "blog-admin-post-list-date", File => File_3.File'Access); Query_Blog_Admin_Post_List_Date : constant ADO.Queries.Query_Definition_Access := Def_Adminpostinfo_Blog_Admin_Post_List_Date.Query'Access; package File_4 is new ADO.Queries.Loaders.File (Path => "blog-list.xml", Sha1 => "BB41EBE10B232F150560185E9A955BDA9FB7F77F"); package Def_Bloginfo_Blog_List is new ADO.Queries.Loaders.Query (Name => "blog-list", File => File_4.File'Access); Query_Blog_List : constant ADO.Queries.Query_Definition_Access := Def_Bloginfo_Blog_List.Query'Access; package File_5 is new ADO.Queries.Loaders.File (Path => "blog-comment-list.xml", Sha1 => "44E136D659FBA9859F2F077995D82161C743CAF3"); package Def_Commentinfo_Comment_List is new ADO.Queries.Loaders.Query (Name => "comment-list", File => File_5.File'Access); Query_Comment_List : constant ADO.Queries.Query_Definition_Access := Def_Commentinfo_Comment_List.Query'Access; package File_6 is new ADO.Queries.Loaders.File (Path => "blog-images-info.xml", Sha1 => "D82CB845BBF166F3A4EC77BDDB3C5633D227B603"); package Def_Imageinfo_Blog_Image is new ADO.Queries.Loaders.Query (Name => "blog-image", File => File_6.File'Access); Query_Blog_Image : constant ADO.Queries.Query_Definition_Access := Def_Imageinfo_Blog_Image.Query'Access; package File_7 is new ADO.Queries.Loaders.File (Path => "blog-stat.xml", Sha1 => "933526108281E4E7755E68427D69738611F833F3"); package Def_Monthstatinfo_Post_Publish_Stats is new ADO.Queries.Loaders.Query (Name => "post-publish-stats", File => File_7.File'Access); Query_Post_Publish_Stats : constant ADO.Queries.Query_Definition_Access := Def_Monthstatinfo_Post_Publish_Stats.Query'Access; package Def_Monthstatinfo_Post_Access_Stats is new ADO.Queries.Loaders.Query (Name => "post-access-stats", File => File_7.File'Access); Query_Post_Access_Stats : constant ADO.Queries.Query_Definition_Access := Def_Monthstatinfo_Post_Access_Stats.Query'Access; package File_8 is new ADO.Queries.Loaders.File (Path => "blog-post-list.xml", Sha1 => "24E5EBFA169F82908DA31BF4FF4C7688FA714CC3"); package Def_Postinfo_Blog_Post_List is new ADO.Queries.Loaders.Query (Name => "blog-post-list", File => File_8.File'Access); Query_Blog_Post_List : constant ADO.Queries.Query_Definition_Access := Def_Postinfo_Blog_Post_List.Query'Access; package Def_Postinfo_Blog_Post_Tag_List is new ADO.Queries.Loaders.Query (Name => "blog-post-tag-list", File => File_8.File'Access); Query_Blog_Post_Tag_List : constant ADO.Queries.Query_Definition_Access := Def_Postinfo_Blog_Post_Tag_List.Query'Access; end AWA.Blogs.Models;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ T S S -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Atree; use Atree; with Einfo; use Einfo; with Elists; use Elists; with Exp_Util; use Exp_Util; with Lib; use Lib; with Sem_Util; use Sem_Util; with Sinfo; use Sinfo; with Snames; use Snames; package body Exp_Tss is -------------------- -- Base_Init_Proc -- -------------------- function Base_Init_Proc (Typ : Entity_Id) return Entity_Id is Full_Type : E; Proc : Entity_Id; begin pragma Assert (Ekind (Typ) in Type_Kind); if Is_Private_Type (Typ) then Full_Type := Underlying_Type (Base_Type (Typ)); else Full_Type := Typ; end if; if No (Full_Type) then return Empty; elsif Is_Concurrent_Type (Full_Type) and then Present (Corresponding_Record_Type (Base_Type (Full_Type))) then return Init_Proc (Corresponding_Record_Type (Base_Type (Full_Type))); else Proc := Init_Proc (Base_Type (Full_Type)); if No (Proc) and then Is_Composite_Type (Full_Type) and then Is_Derived_Type (Full_Type) then return Init_Proc (Root_Type (Full_Type)); else return Proc; end if; end if; end Base_Init_Proc; -------------- -- Copy_TSS -- -------------- -- Note: internally this routine is also used to initially set up -- a TSS entry for a new type (case of being called from Set_TSS) procedure Copy_TSS (TSS : Entity_Id; Typ : Entity_Id) is FN : Node_Id; begin Ensure_Freeze_Node (Typ); FN := Freeze_Node (Typ); if No (TSS_Elist (FN)) then Set_TSS_Elist (FN, New_Elmt_List); end if; -- We prepend here, so that a second call overrides the first, it -- is not clear that this is required, but it seems reasonable. Prepend_Elmt (TSS, TSS_Elist (FN)); end Copy_TSS; --------------------------------- -- Has_Non_Null_Base_Init_Proc -- --------------------------------- function Has_Non_Null_Base_Init_Proc (Typ : Entity_Id) return Boolean is BIP : constant Entity_Id := Base_Init_Proc (Typ); begin return Present (BIP) and then not Is_Null_Init_Proc (BIP); end Has_Non_Null_Base_Init_Proc; --------------- -- Init_Proc -- --------------- function Init_Proc (Typ : Entity_Id) return Entity_Id is begin return TSS (Typ, Name_uInit_Proc); end Init_Proc; ------------------- -- Set_Init_Proc -- ------------------- procedure Set_Init_Proc (Typ : Entity_Id; Init : Entity_Id) is begin Set_TSS (Typ, Init); end Set_Init_Proc; ------------- -- Set_TSS -- ------------- procedure Set_TSS (Typ : Entity_Id; TSS : Entity_Id) is Subprog_Body : constant Node_Id := Unit_Declaration_Node (TSS); begin -- Case of insertion location is in unit defining the type if In_Same_Code_Unit (Typ, TSS) then Append_Freeze_Action (Typ, Subprog_Body); -- Otherwise, we are using an already existing TSS in another unit else null; end if; Copy_TSS (TSS, Typ); end Set_TSS; --------- -- TSS -- --------- function TSS (Typ : Entity_Id; Nam : Name_Id) return Entity_Id is FN : constant Node_Id := Freeze_Node (Typ); Elmt : Elmt_Id; Subp : Entity_Id; begin if No (FN) then return Empty; elsif No (TSS_Elist (FN)) then return Empty; else Elmt := First_Elmt (TSS_Elist (FN)); while Present (Elmt) loop if Chars (Node (Elmt)) = Nam then Subp := Node (Elmt); -- For stream subprograms, the TSS entity may be a renaming- -- as-body of an already generated entity. Use that one rather -- the one introduced by the renaming, which is an artifact of -- current stream handling. if Nkind (Parent (Parent (Subp))) = N_Subprogram_Renaming_Declaration and then Present (Corresponding_Spec (Parent (Parent (Subp)))) then return Corresponding_Spec (Parent (Parent (Subp))); else return Subp; end if; else Next_Elmt (Elmt); end if; end loop; end if; return Empty; end TSS; end Exp_Tss;
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission is hereby freely given for any and all use of program -- and data. You can sell it as your own, but at least tell me. -- -- This version is distributed without obligation, but the developer -- would appreciate comments and suggestions. -- -- All parts of the WORDS system, source code and data files, are made freely -- available to anyone who wishes to use them, for whatever purpose. with Ada.Integer_Text_IO; separate (Latin_Utils.Inflections_Package) package body Decn_Record_IO is --------------------------------------------------------------------------- procedure Get (File : in File_Type; Item : out Decn_Record) is Spacer : Character := ' '; pragma Unreferenced (Spacer); begin Ada.Integer_Text_IO.Get (File, Item.Which); Get (File, Spacer); Ada.Integer_Text_IO.Get (File, Item.Var); end Get; --------------------------------------------------------------------------- procedure Get (Item : out Decn_Record) is Spacer : Character := ' '; pragma Unreferenced (Spacer); begin Ada.Integer_Text_IO.Get (Item.Which); Get (Spacer); Ada.Integer_Text_IO.Get (Item.Var); end Get; --------------------------------------------------------------------------- procedure Put (File : in File_Type; Item : in Decn_Record) is begin Ada.Integer_Text_IO.Put (File, Item.Which, 1); Put (File, ' '); Ada.Integer_Text_IO.Put (File, Item.Var, 1); end Put; --------------------------------------------------------------------------- procedure Put (Item : in Decn_Record) is begin Ada.Integer_Text_IO.Put (Item.Which, 1); Put (' '); Ada.Integer_Text_IO.Put (Item.Var, 1); end Put; --------------------------------------------------------------------------- procedure Get (Source : in String; Target : out Decn_Record; Last : out Integer ) is -- This variable are used for computing lower bound of substrings Low : Integer := Source'First - 1; begin Ada.Integer_Text_IO.Get (Source (Low + 1 .. Source'Last), Target.Which, Low); Low := Low + 1; Ada.Integer_Text_IO.Get (Source (Low + 1 .. Source'Last), Target.Var, Last); end Get; --------------------------------------------------------------------------- procedure Put (Target : out String; Item : in Decn_Record) is -- These variables are used for computing bounds of substrings Low : Integer := Target'First - 1; High : Integer := 0; begin -- Put Which_Type High := Low + 1; Ada.Integer_Text_IO.Put (Target (Low + 1 .. High), Item.Which); Low := High + 1; -- Put Variant_Type Target (Low) := ' '; High := Low + 1; Ada.Integer_Text_IO.Put (Target (Low + 1 .. High), Item.Var); -- Fill remainder of String Target (High + 1 .. Target'Last) := (others => ' '); end Put; --------------------------------------------------------------------------- end Decn_Record_IO;
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . L I N U X -- -- -- -- S p e c -- -- -- -- Copyright (C) 2008-2014, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- -- ------------------------------------------------------------------------------ -- This is the hppa version of this package -- This package encapsulates cpu specific differences between implementations -- of GNU/Linux, in order to share s-osinte-linux.ads. -- PLEASE DO NOT add any with-clauses to this package or remove the pragma -- Preelaborate. This package is designed to be a bottom-level (leaf) package. with Interfaces.C; package System.Linux is pragma Preelaborate; ---------- -- Time -- ---------- subtype long is Interfaces.C.long; subtype suseconds_t is Interfaces.C.long; subtype time_t is Interfaces.C.long; subtype clockid_t is Interfaces.C.int; type timespec is record tv_sec : time_t; tv_nsec : long; end record; pragma Convention (C, timespec); type timeval is record tv_sec : time_t; tv_usec : suseconds_t; end record; pragma Convention (C, timeval); ----------- -- Errno -- ----------- EAGAIN : constant := 11; EINTR : constant := 4; EINVAL : constant := 22; ENOMEM : constant := 12; EPERM : constant := 1; ETIMEDOUT : constant := 238; ------------- -- Signals -- ------------- SIGHUP : constant := 1; -- hangup SIGINT : constant := 2; -- interrupt (rubout) SIGQUIT : constant := 3; -- quit (ASCD FS) SIGILL : constant := 4; -- illegal instruction (not reset) SIGTRAP : constant := 5; -- trace trap (not reset) SIGIOT : constant := 6; -- IOT instruction SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future SIGEMT : constant := 7; -- EMT SIGFPE : constant := 8; -- floating point exception SIGKILL : constant := 9; -- kill (cannot be caught or ignored) SIGBUS : constant := 10; -- bus error SIGSEGV : constant := 11; -- segmentation violation SIGSYS : constant := 12; -- bad system call SIGPIPE : constant := 13; -- write on a pipe with no one to read it SIGALRM : constant := 14; -- alarm clock SIGTERM : constant := 15; -- software termination signal from kill SIGUSR1 : constant := 16; -- user defined signal 1 SIGUSR2 : constant := 17; -- user defined signal 2 SIGCLD : constant := 18; -- alias for SIGCHLD SIGCHLD : constant := 18; -- child status change SIGPWR : constant := 19; -- power-fail restart SIGVTALRM : constant := 20; -- virtual timer expired SIGPROF : constant := 21; -- profiling timer expired SIGPOLL : constant := 22; -- pollable event occurred SIGIO : constant := 22; -- I/O now possible (4.2 BSD) SIGWINCH : constant := 23; -- window size change SIGSTOP : constant := 24; -- stop (cannot be caught or ignored) SIGTSTP : constant := 25; -- user stop requested from tty SIGCONT : constant := 26; -- stopped process has been continued SIGTTIN : constant := 27; -- background tty read attempted SIGTTOU : constant := 28; -- background tty write attempted SIGURG : constant := 29; -- urgent condition on IO channel SIGLOST : constant := 30; -- File lock lost SIGUNUSED : constant := 31; -- unused signal (GNU/Linux) SIGXCPU : constant := 33; -- CPU time limit exceeded SIGXFSZ : constant := 34; -- filesize limit exceeded SIGSTKFLT : constant := 36; -- coprocessor stack fault (Linux) SIGLTHRRES : constant := 37; -- GNU/LinuxThreads restart signal SIGLTHRCAN : constant := 38; -- GNU/LinuxThreads cancel signal SIGLTHRDBG : constant := 39; -- GNU/LinuxThreads debugger signal -- struct_sigaction offsets sa_handler_pos : constant := 0; sa_flags_pos : constant := Standard'Address_Size / 8; sa_mask_pos : constant := sa_flags_pos * 2; SA_SIGINFO : constant := 16#10#; SA_ONSTACK : constant := 16#01#; end System.Linux;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.UML.Use_Cases.Collections is pragma Preelaborate; package UML_Use_Case_Collections is new AMF.Generic_Collections (UML_Use_Case, UML_Use_Case_Access); type Set_Of_UML_Use_Case is new UML_Use_Case_Collections.Set with null record; Empty_Set_Of_UML_Use_Case : constant Set_Of_UML_Use_Case; type Ordered_Set_Of_UML_Use_Case is new UML_Use_Case_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_UML_Use_Case : constant Ordered_Set_Of_UML_Use_Case; type Bag_Of_UML_Use_Case is new UML_Use_Case_Collections.Bag with null record; Empty_Bag_Of_UML_Use_Case : constant Bag_Of_UML_Use_Case; type Sequence_Of_UML_Use_Case is new UML_Use_Case_Collections.Sequence with null record; Empty_Sequence_Of_UML_Use_Case : constant Sequence_Of_UML_Use_Case; private Empty_Set_Of_UML_Use_Case : constant Set_Of_UML_Use_Case := (UML_Use_Case_Collections.Set with null record); Empty_Ordered_Set_Of_UML_Use_Case : constant Ordered_Set_Of_UML_Use_Case := (UML_Use_Case_Collections.Ordered_Set with null record); Empty_Bag_Of_UML_Use_Case : constant Bag_Of_UML_Use_Case := (UML_Use_Case_Collections.Bag with null record); Empty_Sequence_Of_UML_Use_Case : constant Sequence_Of_UML_Use_Case := (UML_Use_Case_Collections.Sequence with null record); end AMF.UML.Use_Cases.Collections;
-- C64109K.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT SLICES OF ARRAYS WHICH ARE COMPONENTS OF RECORDS ARE -- PASSED CORRECTLY TO SUBPROGRAMS. SPECIFICALLY, -- (E) CHECK THE CASE WHERE THE FORMAL IS UNCONSTRAINED, AND ARRAYS -- WITH DIFFERENT BOUNDS ARE PASSED AS ACTUALS. -- HISTORY: -- TBN 07/11/86 CREATED ORIGINAL TEST. -- JET 08/04/87 MODIFIED REC.A REFERENCES. WITH REPORT; USE REPORT; PROCEDURE C64109K IS BEGIN TEST ("C64109K", "CHECK THAT SLICES OF ARRAYS WHICH ARE " & "COMPONENTS OF RECORDS ARE PASSED CORRECTLY " & "TO SUBPROGRAMS - ARRAYS WITH DIFFERENT BOUNDS " & "PASSED TO UNCONSTRAINED FORMAL"); DECLARE -- (E) SUBTYPE SUBINT IS INTEGER RANGE 0..5; TYPE ARRAY_TYPE IS ARRAY (SUBINT RANGE <>) OF BOOLEAN; TYPE RECORD_TYPE IS RECORD A : ARRAY_TYPE (IDENT_INT(0)..IDENT_INT(4)); B : ARRAY_TYPE (1..5); END RECORD; REC : RECORD_TYPE := (A => (0..4 => IDENT_BOOL(TRUE)), B => (1..5 => IDENT_BOOL(FALSE))); BOOL : BOOLEAN; PROCEDURE P1 (ARR : ARRAY_TYPE; ARR2 : ARRAY_TYPE) IS BEGIN IF ARR /= (TRUE, TRUE, TRUE) THEN FAILED ("IN PARAM NOT PASSED CORRECTLY"); END IF; IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN FAILED ("WRONG IN PARAMETER BOUNDS - 1"); END IF; IF ARR2 /= (FALSE, FALSE, FALSE) THEN FAILED ("IN PARAM NOT PASSED CORRECTLY - 2"); END IF; IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN FAILED ("WRONG IN PARAMETER BOUNDS - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE P1"); END P1; FUNCTION F1 ( ARR : ARRAY_TYPE; ARR2 : ARRAY_TYPE) RETURN BOOLEAN IS BEGIN IF ARR /= (TRUE, TRUE, TRUE) THEN FAILED ("IN PARAM NOT PASSED CORRECTLY TO FN"); END IF; IF ARR'FIRST /= IDENT_INT(1) OR ARR'LAST /= 3 THEN FAILED ("WRONG IN PARAMETER BOUNDS FOR FN - 1"); END IF; IF ARR2 /= (FALSE, FALSE, FALSE) THEN FAILED ("IN PARAM NOT PASSED CORRECTLY TO FN"); END IF; IF ARR2'FIRST /= 3 OR ARR2'LAST /= IDENT_INT(5) THEN FAILED ("WRONG IN PARAMETER BOUNDS FOR FN - 2"); END IF; RETURN TRUE; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN FUNCTION F1"); END F1; PROCEDURE P2 (ARR : IN OUT ARRAY_TYPE; ARR2 : IN OUT ARRAY_TYPE) IS BEGIN IF ARR /= (TRUE, TRUE, TRUE) THEN FAILED ("IN OUT PARAM NOT PASSED CORRECTLY"); END IF; IF ARR'FIRST /= IDENT_INT(2) OR ARR'LAST /= 4 THEN FAILED ("WRONG IN OUT PARAMETER BOUNDS - 1"); END IF; IF ARR2 /= (FALSE, FALSE, FALSE) THEN FAILED ("IN OUT PARAM NOT PASSED CORRECTLY"); END IF; IF ARR2'FIRST /= 2 OR ARR2'LAST /= IDENT_INT(4) THEN FAILED ("WRONG IN OUT PARAMETER BOUNDS - 2"); END IF; ARR := (ARR'RANGE => FALSE); ARR2 := (ARR2'RANGE => TRUE); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE P2"); END P2; PROCEDURE P3 (ARR : OUT ARRAY_TYPE; ARR2 : OUT ARRAY_TYPE) IS BEGIN IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN FAILED ("WRONG OUT PARAMETER BOUNDS - 1"); END IF; IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN FAILED ("WRONG OUT PARAMETER BOUNDS - 2"); END IF; ARR := (ARR'RANGE => FALSE); ARR2 := (ARR2'RANGE => TRUE); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE P3"); END P3; BEGIN -- (E) BEGIN -- (F) P1 (REC.A (0..2), REC.B (1..3)); IF REC.A /= (TRUE, TRUE, TRUE, TRUE, TRUE) THEN FAILED ("IN PARAM CHANGED BY PROCEDURE"); END IF; IF REC.B /= (FALSE, FALSE, FALSE, FALSE, FALSE) THEN FAILED ("IN PARAM CHANGED BY PROCEDURE - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING CALL OF P1"); END; -- (F) BEGIN -- (G) BOOL := F1 (REC.A (1..3), REC.B (3..5)); IF REC.A /= (TRUE, TRUE, TRUE, TRUE, TRUE) THEN FAILED ("IN PARAM CHANGED BY FUNCTION"); END IF; IF REC.B /= (FALSE, FALSE, FALSE, FALSE, FALSE) THEN FAILED ("IN PARAM CHANGED BY FUNCTION - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING CALL OF F1"); END; -- (G) BEGIN -- (H) P2 (REC.A (2..4), REC.B (2..4)); IF REC.A /= (TRUE, TRUE, FALSE, FALSE, FALSE) THEN FAILED ("IN OUT PARAM RETURNED INCORRECTLY"); END IF; IF REC.B /= (FALSE, TRUE, TRUE, TRUE, FALSE) THEN FAILED ("IN OUT PARAM RETURNED INCORRECTLY - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING CALL OF P2"); END; -- (H) BEGIN -- (I) P3 (REC.A (0..2), REC.B (1..3)); IF REC.A /= (FALSE, FALSE, FALSE, FALSE, FALSE) THEN FAILED ("OUT PARAM RETURNED INCORRECTLY"); END IF; IF REC.B /= (TRUE, TRUE, TRUE, TRUE, FALSE) THEN FAILED ("OUT PARAM RETURNED INCORRECTLY - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING CALL OF P3"); END; -- (I) END; -- (E) RESULT; END C64109K;
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with utypes_uuint32_t_h; with renderer_gl_h; with Interfaces.C.Strings; limited with tileset_h; limited with context_h; package renderer_gl2_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contributors. -- * All rights reserved. -- * -- * Redistribution and use in source and binary forms, with or without -- * modification, are permitted provided that the following conditions are met: -- * -- * 1. Redistributions of source code must retain the above copyright notice, -- * this list of conditions and the following disclaimer. -- * -- * 2. Redistributions in binary form must reproduce the above copyright notice, -- * this list of conditions and the following disclaimer in the documentation -- * and/or other materials provided with the distribution. -- * -- * 3. Neither the name of the copyright holder nor the names of its -- * contributors may be used to endorse or promote products derived from -- * this software without specific prior written permission. -- * -- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- * POSSIBILITY OF SUCH DAMAGE. -- type anon2318_array2319 is array (0 .. 2) of aliased utypes_uuint32_t_h.uint32_t; type TCOD_RendererGL2 is record common : aliased renderer_gl_h.TCOD_RendererGLCommon; -- renderer_gl2.h:43 program : aliased utypes_uuint32_t_h.uint32_t; -- renderer_gl2.h:44 console_textures : aliased anon2318_array2319; -- renderer_gl2.h:45 console_width : aliased int; -- renderer_gl2.h:46 console_height : aliased int; -- renderer_gl2.h:47 vertex_buffer : aliased utypes_uuint32_t_h.uint32_t; -- renderer_gl2.h:48 end record with Convention => C_Pass_By_Copy; -- renderer_gl2.h:42 -- ch, fg, bg function TCOD_renderer_new_gl2 (arg1 : int; arg2 : int; arg3 : int; arg4 : int; arg5 : Interfaces.C.Strings.chars_ptr; arg6 : int; arg7 : int; arg8 : access tileset_h.TCOD_Tileset) return access context_h.TCOD_Context -- renderer_gl2.h:51 with Import => True, Convention => C, External_Name => "TCOD_renderer_new_gl2"; end renderer_gl2_h;
with System.Machine_Code; use System.Machine_Code; package body MSPGD is procedure Standby is begin Asm ("bis.b #0xD8, SR", Volatile => True); end Standby; procedure Stop is begin Asm ("bis.b #0xF8, SR", Volatile => True); end Stop; procedure Reset is begin Asm ("mov.b #0, &0x0121", Volatile => True); end Reset; end MSPGD;
----------------------------------------------------------------------- -- stemmer-tests -- Tests for stemmer -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Tests; with Stemmer.Factory; package Stemmer.Tests is procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite); type Test is new Util.Tests.Test with null record; procedure Verify (T : in out Test; L : in Stemmer.Factory.Language_Type; S : in String; R : in String); procedure Verify (T : in out Test; L : in Factory.Language_Type; Source : in String); -- Stem on French words. procedure Test_Stem_French (T : in out Test); -- Stem on English words. procedure Test_Stem_English (T : in out Test); -- Stem on Greek words. procedure Test_Stem_Greek (T : in out Test); -- Stem on Spanish words. procedure Test_Stem_Spanish (T : in out Test); -- Stem on Swedish words. procedure Test_Stem_Swedish (T : in out Test); -- Stem on Russian words. procedure Test_Stem_Russian (T : in out Test); -- Stem on Serbian words. procedure Test_Stem_Serbian (T : in out Test); -- Stem on French word using the reference file. procedure Test_Stem_French_Reference_File (T : in out Test); -- Stem on Spanish word using the reference file. procedure Test_Stem_Spanish_Reference_File (T : in out Test); -- Stem on English word using the reference file. procedure Test_Stem_English_Reference_File (T : in out Test); -- Stem on Swedish word using the reference file. procedure Test_Stem_Swedish_Reference_File (T : in out Test); -- Stem on Russian word using the reference file. procedure Test_Stem_Russian_Reference_File (T : in out Test); -- Stem on Serbian word using the reference file. procedure Test_Stem_Serbian_Reference_File (T : in out Test); -- Stem on German word using the reference file. procedure Test_Stem_German_Reference_File (T : in out Test); -- Stem on Italian word using the reference file. procedure Test_Stem_Italian_Reference_File (T : in out Test); -- Stem on Greek word using the reference file. procedure Test_Stem_Greek_Reference_File (T : in out Test); -- Stem on Danish word using the reference file. procedure Test_Stem_Danish_Reference_File (T : in out Test); -- Stem on Dutch word using the reference file. procedure Test_Stem_Dutch_Reference_File (T : in out Test); -- Stem on Basque word using the reference file. procedure Test_Stem_Basque_Reference_File (T : in out Test); -- Stem on Catalan word using the reference file. procedure Test_Stem_Catalan_Reference_File (T : in out Test); -- Stem on Finnish word using the reference file. procedure Test_Stem_Finnish_Reference_File (T : in out Test); -- Stem on Hindi word using the reference file. procedure Test_Stem_Hindi_Reference_File (T : in out Test); -- Stem on Hungaria word using the reference file. procedure Test_Stem_Hungarian_Reference_File (T : in out Test); -- Stem on Irish word using the reference file. procedure Test_Stem_Irish_Reference_File (T : in out Test); -- Stem on Indonesian word using the reference file. procedure Test_Stem_Indonesian_Reference_File (T : in out Test); -- Stem on Nepali word using the reference file. procedure Test_Stem_Nepali_Reference_File (T : in out Test); -- Stem on Norwegian word using the reference file. procedure Test_Stem_Norwegian_Reference_File (T : in out Test); -- Stem on Portuguese word using the reference file. procedure Test_Stem_Portuguese_Reference_File (T : in out Test); -- Stem on Romanian word using the reference file. procedure Test_Stem_Romanian_Reference_File (T : in out Test); -- Stem on English Porter word using the reference file. procedure Test_Stem_Porter_Reference_File (T : in out Test); -- Stem on Tamil word using the reference file. procedure Test_Stem_Tamil_Reference_File (T : in out Test); -- Stem on Turkish word using the reference file. procedure Test_Stem_Turkish_Reference_File (T : in out Test); -- Stem on Lithuanian word using the reference file. procedure Test_Stem_Lithuanian_Reference_File (T : in out Test); -- Stem on Arabic word using the reference file. procedure Test_Stem_Arabic_Reference_File (T : in out Test); end Stemmer.Tests;
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>linebuffer_2</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>in_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>in_stream.V.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>out_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>out_stream.V.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>128</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>10</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>14</item> <item>15</item> <item>16</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>11</id> <name></name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/conv2d_b2b</fileDirectory> <lineNumber>531</lineNumber> <contextFuncName>linebuffer&amp;lt;2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/conv2d_b2b</first> <second class_id="12" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="13" tracking_level="0" version="0"> <first class_id="14" tracking_level="0" version="0"> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer&amp;lt;2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, int&amp;gt;</second> </first> <second>531</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>2</type> <id>13</id> <name>linebuffer_Block_pr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:linebuffer_Block__pr&gt;</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_6"> <Obj> <type>3</type> <id>12</id> <name>linebuffer.2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>10</item> <item>11</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_7"> <id>14</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_8"> <id>15</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_9"> <id>16</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>10</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_10"> <mId>1</mId> <mTag>linebuffer.2</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>12</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>7</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_11"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_12"> <type>0</type> <name>linebuffer_Block_pr_U0</name> <ssdmobj_id>10</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_13"> <port class_id="29" tracking_level="1" version="0" object_id="_14"> <name>in_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_15"> <type>0</type> <name>linebuffer_Block_pr_U0</name> <ssdmobj_id>10</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_16"> <port class_id_reference="29" object_id="_17"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_15"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </channel_list> <net_list class_id="32" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="35" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="36" tracking_level="0" version="0"> <first>10</first> <second class_id="37" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> <item> <first>11</first> <second> <first>1</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="38" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="39" tracking_level="0" version="0"> <first>12</first> <second class_id="40" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> </bblk_ent_exit> <regions class_id="41" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="42" tracking_level="1" version="0" object_id="_18"> <region_name>linebuffer.2</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>12</item> </basic_blocks> <nodes> <count>9</count> <item_version>0</item_version> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="44" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="45" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="46" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="47" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Internals.Generic_Element_Table; with AMF.Internals.Tables.DD_Types; package AMF.Internals.Tables.DD_Element_Table is new AMF.Internals.Generic_Element_Table (AMF.Internals.Tables.DD_Types.Element_Record); pragma Preelaborate (AMF.Internals.Tables.DD_Element_Table);
-- pragma SPARK_Mode; with Wire; use Wire; with Interfaces; use Interfaces; package body Zumo_LSM303 is LM_Addr : constant := 2#0001_1101#; -- 16#1D# 10#29# LM_ID : constant := 2#0100_1001#; -- 16#49# 10#73# procedure Check_WHOAMI is ID : Byte; begin ID := Wire.Read_Byte (Addr => LM_Addr, Reg => Regs (WHO_AM_I)); if ID /= LM_ID then raise LSM303_Exception; end if; end Check_WHOAMI; procedure Init is Init_Seq : constant Byte_Array := (Regs (CTRL0), 2#0000_0000#, Regs (CTRL1), 2#0101_0111#, Regs (CTRL2), 2#0000_0000#, Regs (CTRL3), 2#0000_0000#, Regs (CTRL4), 2#0000_0000#, Regs (CTRL5), 2#1110_0100#, Regs (CTRL6), 2#0010_0000#, Regs (CTRL7), 2#0000_0000#); Status : Wire.Transmission_Status_Index; Index : Byte := Init_Seq'First; begin Check_WHOAMI; while Index <= Init_Seq'Last loop Status := Wire.Write_Byte (Addr => LM_Addr, Reg => Init_Seq (Index), Data => Init_Seq (Index + 1)); if Status /= Wire.Success then raise LSM303_Exception; end if; Index := Index + 2; end loop; Initd := True; end Init; function Read_M_Status return Byte is begin return Wire.Read_Byte (Addr => LM_Addr, Reg => Regs (STATUS_M)); end Read_M_Status; function Read_A_Status return Byte is begin return Wire.Read_Byte (Addr => LM_Addr, Reg => Regs (STATUS_A)); end Read_A_Status; procedure Read_Mag (Data : out Axis_Data) is Reg_Arr : constant array (Axises) of Reg_Index := (OUT_X_L_M, OUT_Y_L_M, OUT_Z_L_M); Arr : Byte_Array (1 .. 2); begin for I in Reg_Arr'Range loop Read_Bytes (Addr => LM_Addr, Reg => Regs (Reg_Arr (I)), Data => Arr); declare Val : Unsigned_16 with Address => Data (I)'Address; begin Val := Shift_Left (Value => Unsigned_16 (Arr (2)), Amount => 8); Val := Val or Unsigned_16 (Arr (1)); end; end loop; end Read_Mag; procedure Read_Acc (Data : out Axis_Data) is Raw_Arr : Byte_Array (1 .. Data'Length * 2) with Address => Data'Address; begin Wire.Read_Bytes (Addr => LM_Addr, Reg => Regs (OUT_X_L_A), Data => Raw_Arr); end Read_Acc; function Read_Temp return short is Arr : Byte_Array (1 .. 2) := (others => 0); Sign_Bit : constant Byte := 2#0000_1000#; Ret_Val : short with Address => Arr'Address; begin Wire.Read_Bytes (Addr => LM_Addr, Reg => Regs (TEMP_OUT_L), Data => Arr); if (Arr (Arr'Last) and Sign_Bit) > 0 then Arr (Arr'Last) := Arr (Arr'Last) or 2#1111_0000#; else Arr (Arr'Last) := Arr (Arr'Last) and 2#0000_0111#; end if; return Ret_Val; end Read_Temp; end Zumo_LSM303;
GLOBAL { -- # define yySetPosition Attribute.Position.Line := yyLineCount; \ -- Attribute.Position.Column := yyChBufferIndex - yyLineStart - TokenLength; -- Int_Io.Put (Text_Io.Standard_Output, yyOffset (TokenIndex)); -- Text_Io.New_Line (Text_Io.Standard_Output); package Int_Io is new Text_Io.Integer_IO (Integer); use Int_Io; procedure ErrorAttribute (Token: Integer; Attribute: out tScanAttribute) is begin null; end ErrorAttribute; } DEFAULT { WritePosition (Text_Io.Standard_Output, Attribute.Position); Text_Io.Put (Text_Io.Standard_Output, ": illegal character: "); yyEcho; Text_Io.New_Line (Text_Io.Standard_Output); } EOF { if yyStartState = Comment then WritePosition (Text_Io.Standard_Output, Attribute.Position); Text_Io.Put (Text_Io.Standard_Output, ": unclosed comment"); Text_Io.New_Line (Text_Io.Standard_Output); end if; } DEFINE digit = {0-9} . letter = {a-z A-Z} . CmtCh = - {*(\t\n} . START Comment RULE #STD, Comment# "(*" :- {yyPush (Comment);} #Comment# "*)" :- {yyPop;} #Comment# "(" | "*" | CmtCh + :- {} #STD# digit + , #STD# digit + / ".." : {return 1;} #STD# {0-7} + B : {return 2;} #STD# {0-7} + C : {return 3;} #STD# digit {0-9 A-F} * H : {return 4;} #STD# digit + "." digit * (E {+\-} ? digit +) ? : {return 5;} #STD# ' - {\n'} * ' | \" - {\n"} * \" : {return 6;} #STD# "#" : {return 7;} #STD# "&" : {return 8;} #STD# "(" : {return 9;} #STD# ")" : {return 10;} #STD# "*" : {return 11;} #STD# "+" : {return 12;} #STD# "," : {return 13;} #STD# "-" : {return 14;} #STD# "." : {return 15;} #STD# ".." : {return 16;} #STD# "/" : {return 17;} #STD# ":" : {return 18;} #STD# ":=" : {return 19;} #STD# ";" : {return 20;} #STD# "<" : {return 21;} #STD# "<=" : {return 22;} #STD# "<>" : {return 23;} #STD# "=" : {return 24;} #STD# ">" : {return 25;} #STD# ">=" : {return 26;} #STD# "[" : {return 27;} #STD# "]" : {return 28;} #STD# "^" : {return 29;} #STD# "{" : {return 30;} #STD# "|" : {return 31;} #STD# "}" : {return 32;} #STD# "~" : {return 33;} #STD# AND : {return 34;} #STD# ARRAY : {return 35;} #STD# BEGIN : {return 36;} #STD# BY : {return 37;} #STD# CASE : {return 38;} #STD# CONST : {return 39;} #STD# DEFINITION : {return 40;} #STD# DIV : {return 41;} #STD# DO : {return 42;} #STD# ELSE : {return 43;} #STD# ELSIF : {return 44;} #STD# END : {return 45;} #STD# EXIT : {return 46;} #STD# EXPORT : {return 47;} #STD# FOR : {return 48;} #STD# FROM : {return 49;} #STD# IF : {return 50;} #STD# IMPLEMENTATION : {return 51;} #STD# IMPORT : {return 52;} #STD# IN : {return 53;} #STD# LOOP : {return 54;} #STD# MOD : {return 55;} #STD# MODULE : {return 56;} #STD# \NOT : {return 57;} #STD# OF : {return 58;} #STD# OR : {return 59;} #STD# POINTER : {return 60;} #STD# PROCEDURE : {return 61;} #STD# QUALIFIED : {return 62;} #STD# RECORD : {return 63;} #STD# REPEAT : {return 64;} #STD# RETURN : {return 65;} #STD# SET : {return 66;} #STD# THEN : {return 67;} #STD# TO : {return 68;} #STD# TYPE : {return 69;} #STD# UNTIL : {return 70;} #STD# VAR : {return 71;} #STD# WHILE : {return 72;} #STD# WITH : {return 73;} #STD# letter (letter | digit) * : {return 74;}
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package machine_udefault_types_h is subtype uu_int8_t is signed_char; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:41 subtype uu_uint8_t is unsigned_char; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:43 subtype uu_int16_t is short; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:55 subtype uu_uint16_t is unsigned_short; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:57 subtype uu_int32_t is long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:77 subtype uu_uint32_t is unsigned_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:79 subtype uu_int64_t is Long_Long_Integer; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:103 subtype uu_uint64_t is Extensions.unsigned_long_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:105 subtype uu_int_least8_t is signed_char; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:134 subtype uu_uint_least8_t is unsigned_char; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:136 subtype uu_int_least16_t is short; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:160 subtype uu_uint_least16_t is unsigned_short; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:162 subtype uu_int_least32_t is long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:182 subtype uu_uint_least32_t is unsigned_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:184 subtype uu_int_least64_t is Long_Long_Integer; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:200 subtype uu_uint_least64_t is Extensions.unsigned_long_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:202 subtype uu_intmax_t is Long_Long_Integer; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:214 subtype uu_uintmax_t is Extensions.unsigned_long_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:222 subtype uu_intptr_t is int; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:230 subtype uu_uintptr_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_default_types.h:232 end machine_udefault_types_h;
with Simple_IO; package body Side_Effects with SPARK_Mode => On is X, Y, Z, R : Integer; function F (X : Integer) return Integer is begin Z := 0; -- Side effect return X + 1; end F; procedure Test is begin X := 10; Y := 20; Z := 10; R := Y / Z + F (X); -- possible order dependency here. -- R = 13 if L->R evaluation, -- constraint error if R->L evaluation Simple_IO.Put_Line (R); end Test; end Side_Effects;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Elements; with AMF.Internals.Element_Collections; with AMF.Internals.Helpers; with AMF.Internals.Tables.UML_Attributes; with AMF.Visitors.UML_Iterators; with AMF.Visitors.UML_Visitors; with League.Strings.Internals; with Matreshka.Internals.Strings; package body AMF.Internals.UML_Structured_Activity_Nodes is ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access constant UML_Structured_Activity_Node_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Enter_Structured_Activity_Node (AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self), Control); end if; end Enter_Element; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access constant UML_Structured_Activity_Node_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Leave_Structured_Activity_Node (AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self), Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access constant UML_Structured_Activity_Node_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then AMF.Visitors.UML_Iterators.UML_Iterator'Class (Iterator).Visit_Structured_Activity_Node (Visitor, AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self), Control); end if; end Visit_Element; ------------------ -- Get_Activity -- ------------------ overriding function Get_Activity (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activities.UML_Activity_Access is begin return AMF.UML.Activities.UML_Activity_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity (Self.Element))); end Get_Activity; ------------------ -- Set_Activity -- ------------------ overriding procedure Set_Activity (Self : not null access UML_Structured_Activity_Node_Proxy; To : AMF.UML.Activities.UML_Activity_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Activity; -------------- -- Get_Edge -- -------------- overriding function Get_Edge (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Edge (Self.Element))); end Get_Edge; ---------------------- -- Get_Must_Isolate -- ---------------------- overriding function Get_Must_Isolate (Self : not null access constant UML_Structured_Activity_Node_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Must_Isolate (Self.Element); end Get_Must_Isolate; ---------------------- -- Set_Must_Isolate -- ---------------------- overriding procedure Set_Must_Isolate (Self : not null access UML_Structured_Activity_Node_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Must_Isolate (Self.Element, To); end Set_Must_Isolate; -------------- -- Get_Node -- -------------- overriding function Get_Node (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is begin return AMF.UML.Activity_Nodes.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Node (Self.Element))); end Get_Node; ------------------------------- -- Get_Structured_Node_Input -- ------------------------------- overriding function Get_Structured_Node_Input (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Input_Pins.Collections.Set_Of_UML_Input_Pin is begin return AMF.UML.Input_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Input (Self.Element))); end Get_Structured_Node_Input; -------------------------------- -- Get_Structured_Node_Output -- -------------------------------- overriding function Get_Structured_Node_Output (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin is begin return AMF.UML.Output_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Output (Self.Element))); end Get_Structured_Node_Output; ------------------ -- Get_Variable -- ------------------ overriding function Get_Variable (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Variables.Collections.Set_Of_UML_Variable is begin return AMF.UML.Variables.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Variable (Self.Element))); end Get_Variable; ------------------------ -- Get_Element_Import -- ------------------------ overriding function Get_Element_Import (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is begin return AMF.UML.Element_Imports.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Element_Import (Self.Element))); end Get_Element_Import; ------------------------- -- Get_Imported_Member -- ------------------------- overriding function Get_Imported_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is begin return AMF.UML.Packageable_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Imported_Member (Self.Element))); end Get_Imported_Member; ---------------- -- Get_Member -- ---------------- overriding function Get_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is begin return AMF.UML.Named_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Member (Self.Element))); end Get_Member; ---------------------- -- Get_Owned_Member -- ---------------------- overriding function Get_Owned_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is begin return AMF.UML.Named_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Member (Self.Element))); end Get_Owned_Member; -------------------- -- Get_Owned_Rule -- -------------------- overriding function Get_Owned_Rule (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is begin return AMF.UML.Constraints.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Rule (Self.Element))); end Get_Owned_Rule; ------------------------ -- Get_Package_Import -- ------------------------ overriding function Get_Package_Import (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is begin return AMF.UML.Package_Imports.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Import (Self.Element))); end Get_Package_Import; --------------------------- -- Get_Client_Dependency -- --------------------------- overriding function Get_Client_Dependency (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is begin return AMF.UML.Dependencies.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency (Self.Element))); end Get_Client_Dependency; ------------------------- -- Get_Name_Expression -- ------------------------- overriding function Get_Name_Expression (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access is begin return AMF.UML.String_Expressions.UML_String_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression (Self.Element))); end Get_Name_Expression; ------------------------- -- Set_Name_Expression -- ------------------------- overriding procedure Set_Name_Expression (Self : not null access UML_Structured_Activity_Node_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Name_Expression; ------------------- -- Get_Namespace -- ------------------- overriding function Get_Namespace (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin return AMF.UML.Namespaces.UML_Namespace_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace (Self.Element))); end Get_Namespace; ------------------------ -- Get_Qualified_Name -- ------------------------ overriding function Get_Qualified_Name (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Qualified_Name; ------------------------ -- Get_Contained_Edge -- ------------------------ overriding function Get_Contained_Edge (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Edge (Self.Element))); end Get_Contained_Edge; ------------------------ -- Get_Contained_Node -- ------------------------ overriding function Get_Contained_Node (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is begin return AMF.UML.Activity_Nodes.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Node (Self.Element))); end Get_Contained_Node; --------------------- -- Get_In_Activity -- --------------------- overriding function Get_In_Activity (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activities.UML_Activity_Access is begin return AMF.UML.Activities.UML_Activity_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Activity (Self.Element))); end Get_In_Activity; --------------------- -- Set_In_Activity -- --------------------- overriding procedure Set_In_Activity (Self : not null access UML_Structured_Activity_Node_Proxy; To : AMF.UML.Activities.UML_Activity_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Activity (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_In_Activity; ------------------ -- Get_Subgroup -- ------------------ overriding function Get_Subgroup (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is begin return AMF.UML.Activity_Groups.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Subgroup (Self.Element))); end Get_Subgroup; --------------------- -- Get_Super_Group -- --------------------- overriding function Get_Super_Group (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Groups.UML_Activity_Group_Access is begin return AMF.UML.Activity_Groups.UML_Activity_Group_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Super_Group (Self.Element))); end Get_Super_Group; ----------------- -- Get_Context -- ----------------- overriding function Get_Context (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Classifiers.UML_Classifier_Access is begin return AMF.UML.Classifiers.UML_Classifier_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Context (Self.Element))); end Get_Context; --------------- -- Get_Input -- --------------- overriding function Get_Input (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is begin return AMF.UML.Input_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Input (Self.Element))); end Get_Input; ------------------------------ -- Get_Is_Locally_Reentrant -- ------------------------------ overriding function Get_Is_Locally_Reentrant (Self : not null access constant UML_Structured_Activity_Node_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant (Self.Element); end Get_Is_Locally_Reentrant; ------------------------------ -- Set_Is_Locally_Reentrant -- ------------------------------ overriding procedure Set_Is_Locally_Reentrant (Self : not null access UML_Structured_Activity_Node_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant (Self.Element, To); end Set_Is_Locally_Reentrant; ----------------------------- -- Get_Local_Postcondition -- ----------------------------- overriding function Get_Local_Postcondition (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is begin return AMF.UML.Constraints.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition (Self.Element))); end Get_Local_Postcondition; ---------------------------- -- Get_Local_Precondition -- ---------------------------- overriding function Get_Local_Precondition (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is begin return AMF.UML.Constraints.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition (Self.Element))); end Get_Local_Precondition; ---------------- -- Get_Output -- ---------------- overriding function Get_Output (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is begin return AMF.UML.Output_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Output (Self.Element))); end Get_Output; ----------------- -- Get_Handler -- ----------------- overriding function Get_Handler (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is begin return AMF.UML.Exception_Handlers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler (Self.Element))); end Get_Handler; ------------------ -- Get_In_Group -- ------------------ overriding function Get_In_Group (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is begin return AMF.UML.Activity_Groups.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group (Self.Element))); end Get_In_Group; --------------------------------- -- Get_In_Interruptible_Region -- --------------------------------- overriding function Get_In_Interruptible_Region (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is begin return AMF.UML.Interruptible_Activity_Regions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region (Self.Element))); end Get_In_Interruptible_Region; ---------------------- -- Get_In_Partition -- ---------------------- overriding function Get_In_Partition (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is begin return AMF.UML.Activity_Partitions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition (Self.Element))); end Get_In_Partition; ---------------------------- -- Get_In_Structured_Node -- ---------------------------- overriding function Get_In_Structured_Node (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is begin return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node (Self.Element))); end Get_In_Structured_Node; ---------------------------- -- Set_In_Structured_Node -- ---------------------------- overriding procedure Set_In_Structured_Node (Self : not null access UML_Structured_Activity_Node_Proxy; To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_In_Structured_Node; ------------------ -- Get_Incoming -- ------------------ overriding function Get_Incoming (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming (Self.Element))); end Get_Incoming; ------------------ -- Get_Outgoing -- ------------------ overriding function Get_Outgoing (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing (Self.Element))); end Get_Outgoing; ------------------------ -- Get_Redefined_Node -- ------------------------ overriding function Get_Redefined_Node (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is begin return AMF.UML.Activity_Nodes.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node (Self.Element))); end Get_Redefined_Node; ----------------- -- Get_Is_Leaf -- ----------------- overriding function Get_Is_Leaf (Self : not null access constant UML_Structured_Activity_Node_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf (Self.Element); end Get_Is_Leaf; ----------------- -- Set_Is_Leaf -- ----------------- overriding procedure Set_Is_Leaf (Self : not null access UML_Structured_Activity_Node_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf (Self.Element, To); end Set_Is_Leaf; --------------------------- -- Get_Redefined_Element -- --------------------------- overriding function Get_Redefined_Element (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is begin return AMF.UML.Redefinable_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element (Self.Element))); end Get_Redefined_Element; ------------------------------ -- Get_Redefinition_Context -- ------------------------------ overriding function Get_Redefinition_Context (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is begin return AMF.UML.Classifiers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context (Self.Element))); end Get_Redefinition_Context; ------------------------ -- Exclude_Collisions -- ------------------------ overriding function Exclude_Collisions (Self : not null access constant UML_Structured_Activity_Node_Proxy; Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Exclude_Collisions"; return Exclude_Collisions (Self, Imps); end Exclude_Collisions; ------------------------- -- Get_Names_Of_Member -- ------------------------- overriding function Get_Names_Of_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy; Element : AMF.UML.Named_Elements.UML_Named_Element_Access) return AMF.String_Collections.Set_Of_String is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Get_Names_Of_Member"; return Get_Names_Of_Member (Self, Element); end Get_Names_Of_Member; -------------------- -- Import_Members -- -------------------- overriding function Import_Members (Self : not null access constant UML_Structured_Activity_Node_Proxy; Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Import_Members"; return Import_Members (Self, Imps); end Import_Members; --------------------- -- Imported_Member -- --------------------- overriding function Imported_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Imported_Member"; return Imported_Member (Self); end Imported_Member; --------------------------------- -- Members_Are_Distinguishable -- --------------------------------- overriding function Members_Are_Distinguishable (Self : not null access constant UML_Structured_Activity_Node_Proxy) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Members_Are_Distinguishable"; return Members_Are_Distinguishable (Self); end Members_Are_Distinguishable; ------------------ -- Owned_Member -- ------------------ overriding function Owned_Member (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Owned_Member"; return Owned_Member (Self); end Owned_Member; ------------------------- -- All_Owning_Packages -- ------------------------- overriding function All_Owning_Packages (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.All_Owning_Packages"; return All_Owning_Packages (Self); end All_Owning_Packages; ----------------------------- -- Is_Distinguishable_From -- ----------------------------- overriding function Is_Distinguishable_From (Self : not null access constant UML_Structured_Activity_Node_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Distinguishable_From"; return Is_Distinguishable_From (Self, N, Ns); end Is_Distinguishable_From; --------------- -- Namespace -- --------------- overriding function Namespace (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Namespace"; return Namespace (Self); end Namespace; ------------- -- Context -- ------------- overriding function Context (Self : not null access constant UML_Structured_Activity_Node_Proxy) return AMF.UML.Classifiers.UML_Classifier_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Context unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Context"; return Context (Self); end Context; ------------------------ -- Is_Consistent_With -- ------------------------ overriding function Is_Consistent_With (Self : not null access constant UML_Structured_Activity_Node_Proxy; Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Consistent_With"; return Is_Consistent_With (Self, Redefinee); end Is_Consistent_With; ----------------------------------- -- Is_Redefinition_Context_Valid -- ----------------------------------- overriding function Is_Redefinition_Context_Valid (Self : not null access constant UML_Structured_Activity_Node_Proxy; Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented"); raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Redefinition_Context_Valid"; return Is_Redefinition_Context_Valid (Self, Redefined); end Is_Redefinition_Context_Valid; end AMF.Internals.UML_Structured_Activity_Nodes;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ -- Purpose: -- Classificator for any fixed width encoding. with Gela.Decoders; generic with function To_Character_Class (Code : Code_Point) return Character_Class_Buffers.Character_Class; package Gela.Classificators.Fixed_Width_8 is pragma Preelaborate; type Classificator is new Classificators.Classificator with private; procedure Initialize (Object : out Classificator; Decoder : in Decoders.Decoder'Class); procedure Read (Object : in out Classificator; Input : in out Source_Buffers.Cursor; Buffer : in out Character_Class_Buffers.Character_Class_Buffer); private type Translation is array (Source_Buffers.Code_Unit) of Character_Class_Buffers.Character_Class; type Classificator is new Classificators.Classificator with record Table : Translation; end record; end Gela.Classificators.Fixed_Width_8; ------------------------------------------------------------------------------ -- Copyright (c) 2008, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the Maxim Reznik, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- ------------------------------------------------------------------------------
package body Sinu is function Norm (Y : Dynamical_Variable) return Real is Sum : Real := +0.0; begin for i in Dyn_Index loop Sum := Sum + Abs Y(i); --Sum := Sum + Y(i) * Y(i); end loop; return Sum; end Norm; function "-" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left(I) - Right(I); end loop; return Result; end "-"; function "*" (Left : Real; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left * Right(I); end loop; return Result; end "*"; function "+" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left(I) + Right(I); end loop; return Result; end "+"; -- The differential equation is dY/dt = F (t, Y) function F (Time : Real; Y : Dynamical_Variable) return Dynamical_Variable is Deriv : Dynamical_Variable; SpringConstant : Constant Real := 1.0; --MaxForce : Constant Real := 5.0; --WellWidthInverse : Constant Real := 10.0; --WellCenter : Constant Real := 0.0; begin Deriv(0) := Y(1); Deriv(1) := -SpringConstant*Y(0); return Deriv; end F; end Sinu;
with AUnit.Simple_Test_Cases; use AUnit.Simple_Test_Cases; with Test_Minimal_Parenthesis; use Test_Minimal_Parenthesis; package body Rewriters_Lib_Suite is function Suite return Access_Test_Suite is Ret : constant Access_Test_Suite := new Test_Suite; Minimal_Parenthesis : constant Test_Case_Access := new Minimal_Parenthesis_Test_Case; begin Ret.Add_Test (Minimal_Parenthesis); return Ret; end Suite; end Rewriters_Lib_Suite;
-- Copyright 2011-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is task body Dummy_Task is begin accept Start; end Dummy_Task; end Pck;
with Ada.Finalization; with kv.avm.Registers; with kv.avm.Control; package kv.avm.Capabilities is type Capability_Interface is interface; type Capability_Access is access all Capability_Interface'CLASS; procedure Execute (Self : in out Capability_Interface; Machine : in out kv.avm.Control.Control_Interface'CLASS; Input : in kv.avm.Registers.Register_Type; Output : out kv.avm.Registers.Register_Type; Status : out kv.avm.Control.Status_Type) is abstract; type Capabilities_Type is new Ada.Finalization.Controlled with private; overriding procedure Initialize (Self : in out Capabilities_Type); overriding procedure Adjust (Self : in out Capabilities_Type); overriding procedure Finalize (Self : in out Capabilities_Type); function Has(Self : Capabilities_Type; Key : String) return Boolean; function Lookup(Self : Capabilities_Type; Key : String) return Capability_Access; procedure Add (Self : in out Capabilities_Type; Key : in String; Value : in Capability_Access); procedure Execute (Self : in Capabilities_Type; Key : in String; Machine : in out kv.avm.Control.Control_Interface'CLASS; Input : in kv.avm.Registers.Register_Type; Output : out kv.avm.Registers.Register_Type; Status : out kv.avm.Control.Status_Type); private type Capabilities_Reference_Counter_Type; type Capabilities_Reference_Counter_Access is access all Capabilities_Reference_Counter_Type; type Capabilities_Type is new Ada.Finalization.Controlled with record Ref : Capabilities_Reference_Counter_Access; end record; end kv.avm.Capabilities;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015-2018, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Asis.Declarations; package body Properties.Declarations.Private_Type is --------------- -- Alignment -- --------------- function Alignment (Engine : access Engines.Contexts.Context; Element : Asis.Definition; Name : Engines.Integer_Property) return Integer is Full : constant Asis.Declaration := Asis.Declarations.Corresponding_Type_Completion (Element); begin return Engine.Integer.Get_Property (Full, Name); end Alignment; ---------------- -- Initialize -- ---------------- function Initialize (Engine : access Engines.Contexts.Context; Element : Asis.Declaration; Name : Engines.Text_Property) return League.Strings.Universal_String is Full : constant Asis.Declaration := Asis.Declarations.Corresponding_Type_Completion (Element); begin return Engine.Text.Get_Property (Full, Name); end Initialize; -------------------- -- Is_Simple_Type -- -------------------- function Is_Simple_Type (Engine : access Engines.Contexts.Context; Element : Asis.Declaration; Name : Engines.Boolean_Property) return Boolean is Full : constant Asis.Declaration := Asis.Declarations.Corresponding_Type_Completion (Element); begin return Engine.Boolean.Get_Property (Full, Name); end Is_Simple_Type; end Properties.Declarations.Private_Type;
with Ada.Text_IO; use Ada.Text_IO; with AAA.Strings; with CLIC.User_Input; use CLIC.User_Input; with GNAT.OS_Lib; package body CLIC_Ex.Commands.User_Input is function Valid_Number (Str : String) return Boolean is (for all C of Str => C in '0' .. '9'); ------------- -- Execute -- ------------- overriding procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector) is begin if not Args.Is_Empty then Put_Line (Cmd.Name & " takes no arguments"); GNAT.OS_Lib.OS_Exit (1); end if; declare Answer : Answer_Kind; begin Answer := Query (Question => "Do you like this tool?", Valid => (others => True), Default => Yes); if Answer = No then Put_Line ("Fine then."); GNAT.OS_Lib.OS_Exit (42); end if; end; declare Languages : constant AAA.Strings.Vector := AAA.Strings.Empty_Vector .Append ("Ada") .Append ("C") .Append ("C++") .Append ("Rust") .Append ("OCAML") .Append ("Fortran") .Append ("Go"); Answer : Positive; begin Answer := Query_Multi (Question => "What is you favorite programming language?", Choices => Languages); if Answer /= 1 then Put_Line ("Wrong answer."); GNAT.OS_Lib.OS_Exit (42); end if; end; Continue_Or_Abort; declare Answer : constant String := Query_String (Question => "Enter a number please", Default => "42", Validation => Valid_Number'Access); begin Put_Line ("Thanks for your answer: '" & Answer & "'"); end; end Execute; end CLIC_Ex.Commands.User_Input;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- P R J . N M S C -- -- -- -- B o d y -- -- -- -- Copyright (C) 2000-2010, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Err_Vars; use Err_Vars; with Opt; use Opt; with Osint; use Osint; with Output; use Output; with Prj.Com; with Prj.Err; use Prj.Err; with Prj.Util; use Prj.Util; with Sinput.P; with Snames; use Snames; with Targparm; use Targparm; with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Directories; use Ada.Directories; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Maps.Constants; use Ada.Strings.Maps.Constants; with GNAT.Case_Util; use GNAT.Case_Util; with GNAT.Directory_Operations; use GNAT.Directory_Operations; with GNAT.Dynamic_HTables; with GNAT.Regexp; use GNAT.Regexp; with GNAT.Table; package body Prj.Nmsc is No_Continuation_String : aliased String := ""; Continuation_String : aliased String := "\"; -- Used in Check_Library for continuation error messages at the same -- location. type Name_Location is record Name : File_Name_Type; -- Key is duplicated, so that it is known when using functions Get_First -- and Get_Next, as these functions only return an Element. Location : Source_Ptr; Source : Source_Id := No_Source; Listed : Boolean := False; Found : Boolean := False; end record; No_Name_Location : constant Name_Location := (Name => No_File, Location => No_Location, Source => No_Source, Listed => False, Found => False); package Source_Names_Htable is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => Name_Location, No_Element => No_Name_Location, Key => File_Name_Type, Hash => Hash, Equal => "="); -- File name information found in string list attribute (Source_Files or -- Source_List_File). Except is set to True if source is a naming exception -- in the project. Used to check that all referenced files were indeed -- found on the disk. type Unit_Exception is record Name : Name_Id; -- Key is duplicated, so that it is known when using functions Get_First -- and Get_Next, as these functions only return an Element. Spec : File_Name_Type; Impl : File_Name_Type; end record; No_Unit_Exception : constant Unit_Exception := (No_Name, No_File, No_File); package Unit_Exceptions_Htable is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => Unit_Exception, No_Element => No_Unit_Exception, Key => Name_Id, Hash => Hash, Equal => "="); -- Record special naming schemes for Ada units (name of spec file and name -- of implementation file). The elements in this list come from the naming -- exceptions specified in the project files. type File_Found is record File : File_Name_Type := No_File; Found : Boolean := False; Location : Source_Ptr := No_Location; end record; No_File_Found : constant File_Found := (No_File, False, No_Location); package Excluded_Sources_Htable is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => File_Found, No_Element => No_File_Found, Key => File_Name_Type, Hash => Hash, Equal => "="); -- A hash table to store the base names of excluded files, if any package Object_File_Names_Htable is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => Source_Id, No_Element => No_Source, Key => File_Name_Type, Hash => Hash, Equal => "="); -- A hash table to store the object file names for a project, to check that -- two different sources have different object file names. type Project_Processing_Data is record Project : Project_Id; Source_Names : Source_Names_Htable.Instance; Unit_Exceptions : Unit_Exceptions_Htable.Instance; Excluded : Excluded_Sources_Htable.Instance; Source_List_File_Location : Source_Ptr; -- Location of the Source_List_File attribute, for error messages end record; -- This is similar to Tree_Processing_Data, but contains project-specific -- information which is only useful while processing the project, and can -- be discarded as soon as we have finished processing the project package Files_Htable is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => Source_Id, No_Element => No_Source, Key => File_Name_Type, Hash => Hash, Equal => "="); -- Mapping from base file names to Source_Id (containing full info about -- the source). type Tree_Processing_Data is record Tree : Project_Tree_Ref; Node_Tree : Prj.Tree.Project_Node_Tree_Ref; File_To_Source : Files_Htable.Instance; Flags : Prj.Processing_Flags; end record; -- Temporary data which is needed while parsing a project. It does not need -- to be kept in memory once a project has been fully loaded, but is -- necessary while performing consistency checks (duplicate sources,...) -- This data must be initialized before processing any project, and the -- same data is used for processing all projects in the tree. type Lib_Data is record Name : Name_Id; Proj : Project_Id; end record; package Lib_Data_Table is new GNAT.Table (Table_Component_Type => Lib_Data, Table_Index_Type => Natural, Table_Low_Bound => 1, Table_Initial => 10, Table_Increment => 100); -- A table to record library names in order to check that two library -- projects do not have the same library names. procedure Initialize (Data : out Tree_Processing_Data; Tree : Project_Tree_Ref; Node_Tree : Prj.Tree.Project_Node_Tree_Ref; Flags : Prj.Processing_Flags); -- Initialize Data procedure Free (Data : in out Tree_Processing_Data); -- Free the memory occupied by Data procedure Check (Project : Project_Id; Data : in out Tree_Processing_Data); -- Process the naming scheme for a single project procedure Initialize (Data : in out Project_Processing_Data; Project : Project_Id); procedure Free (Data : in out Project_Processing_Data); -- Initialize or free memory for a project-specific data procedure Find_Excluded_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data); -- Find the list of files that should not be considered as source files -- for this project. Sets the list in the Project.Excluded_Sources_Htable. procedure Override_Kind (Source : Source_Id; Kind : Source_Kind); -- Override the reference kind for a source file. This properly updates -- the unit data if necessary. procedure Load_Naming_Exceptions (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data); -- All source files in Data.First_Source are considered as naming -- exceptions, and copied into the Source_Names and Unit_Exceptions tables -- as appropriate. type Search_Type is (Search_Files, Search_Directories); generic with procedure Callback (Path : Path_Information; Pattern_Index : Natural); procedure Expand_Subdirectory_Pattern (Project : Project_Id; Data : in out Tree_Processing_Data; Patterns : String_List_Id; Ignore : String_List_Id; Search_For : Search_Type; Resolve_Links : Boolean); -- Search the subdirectories of Project's directory for files or -- directories that match the globbing patterns found in Patterns (for -- instance "**/*.adb"). Typically, Patterns will be the value of the -- Source_Dirs or Excluded_Source_Dirs attributes. -- Every time such a file or directory is found, the callback is called. -- Resolve_Links indicates whether we should resolve links while -- normalizing names. -- In the callback, Pattern_Index is the index within Patterns where the -- expanded pattern was found (1 for the first element of Patterns and -- all its matching directories, then 2,...). -- We use a generic and not an access-to-subprogram because in some cases -- this code is compiled with the restriction No_Implicit_Dynamic_Code procedure Add_Source (Id : out Source_Id; Data : in out Tree_Processing_Data; Project : Project_Id; Source_Dir_Rank : Natural; Lang_Id : Language_Ptr; Kind : Source_Kind; File_Name : File_Name_Type; Display_File : File_Name_Type; Naming_Exception : Boolean := False; Path : Path_Information := No_Path_Information; Alternate_Languages : Language_List := null; Unit : Name_Id := No_Name; Index : Int := 0; Locally_Removed : Boolean := False; Location : Source_Ptr := No_Location); -- Add a new source to the different lists: list of all sources in the -- project tree, list of source of a project and list of sources of a -- language. -- -- If Path is specified, the file is also added to Source_Paths_HT. -- -- Location is used for error messages function Canonical_Case_File_Name (Name : Name_Id) return File_Name_Type; -- Same as Osint.Canonical_Case_File_Name but applies to Name_Id. -- This alters Name_Buffer function Suffix_Matches (Filename : String; Suffix : File_Name_Type) return Boolean; -- True if the file name ends with the given suffix. Always returns False -- if Suffix is No_Name. procedure Replace_Into_Name_Buffer (Str : String; Pattern : String; Replacement : Character); -- Copy Str into Name_Buffer, replacing Pattern with Replacement. Str is -- converted to lower-case at the same time. procedure Check_Ada_Name (Name : String; Unit : out Name_Id); -- Check that a name is a valid Ada unit name procedure Check_Package_Naming (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check the naming scheme part of Data, and initialize the naming scheme -- data in the config of the various languages. procedure Check_Configuration (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check the configuration attributes for the project procedure Check_If_Externally_Built (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check attribute Externally_Built of project Project in project tree -- Data.Tree and modify its data Data if it has the value "true". procedure Check_Interfaces (Project : Project_Id; Data : in out Tree_Processing_Data); -- If a list of sources is specified in attribute Interfaces, set -- In_Interfaces only for the sources specified in the list. procedure Check_Library_Attributes (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check the library attributes of project Project in project tree -- and modify its data Data accordingly. procedure Check_Aggregate_Project (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check aggregate projects attributes, and find the list of aggregated -- projects. They are stored as a "project_files" language in Project. procedure Check_Abstract_Project (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check abstract projects attributes procedure Check_Programming_Languages (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check attribute Languages for the project with data Data in project -- tree Data.Tree and set the components of Data for all the programming -- languages indicated in attribute Languages, if any. procedure Check_Stand_Alone_Library (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check if project Project in project tree Data.Tree is a Stand-Alone -- Library project, and modify its data Data accordingly if it is one. function Compute_Directory_Last (Dir : String) return Natural; -- Return the index of the last significant character in Dir. This is used -- to avoid duplicate '/' (slash) characters at the end of directory names. procedure Search_Directories (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data; For_All_Sources : Boolean); -- Search the source directories to find the sources. If For_All_Sources is -- True, check each regular file name against the naming schemes of the -- various languages. Otherwise consider only the file names in hash table -- Source_Names. If Allow_Duplicate_Basenames then files with identical -- base names are permitted within a project for source-based languages -- (never for unit based languages). procedure Check_File (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data; Source_Dir_Rank : Natural; Path : Path_Name_Type; Display_Path : Path_Name_Type; File_Name : File_Name_Type; Display_File_Name : File_Name_Type; Locally_Removed : Boolean; For_All_Sources : Boolean); -- Check if file File_Name is a valid source of the project. This is used -- in multi-language mode only. When the file matches one of the naming -- schemes, it is added to various htables through Add_Source and to -- Source_Paths_Htable. -- -- File_Name is the same as Display_File_Name, but has been normalized. -- They do not include the directory information. -- -- Path and Display_Path on the other hand are the full path to the file. -- Path must have been normalized (canonical casing and possibly links -- resolved). -- -- Source_Directory is the directory in which the file was found. It is -- neither normalized nor has had links resolved, and must not end with a -- a directory separator, to avoid duplicates later on. -- -- If For_All_Sources is True, then all possible file names are analyzed -- otherwise only those currently set in the Source_Names hash table. procedure Check_File_Naming_Schemes (In_Tree : Project_Tree_Ref; Project : Project_Processing_Data; File_Name : File_Name_Type; Alternate_Languages : out Language_List; Language : out Language_Ptr; Display_Language_Name : out Name_Id; Unit : out Name_Id; Lang_Kind : out Language_Kind; Kind : out Source_Kind); -- Check if the file name File_Name conforms to one of the naming schemes -- of the project. If the file does not match one of the naming schemes, -- set Language to No_Language_Index. Filename is the name of the file -- being investigated. It has been normalized (case-folded). File_Name is -- the same value. procedure Get_Directories (Project : Project_Id; Data : in out Tree_Processing_Data); -- Get the object directory, the exec directory and the source directories -- of a project. procedure Get_Mains (Project : Project_Id; Data : in out Tree_Processing_Data); -- Get the mains of a project from attribute Main, if it exists, and put -- them in the project data. procedure Get_Sources_From_File (Path : String; Location : Source_Ptr; Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data); -- Get the list of sources from a text file and put them in hash table -- Source_Names. procedure Find_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data); -- Process the Source_Files and Source_List_File attributes, and store the -- list of source files into the Source_Names htable. When these attributes -- are not defined, find all files matching the naming schemes in the -- source directories. If Allow_Duplicate_Basenames, then files with the -- same base names are authorized within a project for source-based -- languages (never for unit based languages) procedure Compute_Unit_Name (File_Name : File_Name_Type; Naming : Lang_Naming_Data; Kind : out Source_Kind; Unit : out Name_Id; Project : Project_Processing_Data; In_Tree : Project_Tree_Ref); -- Check whether the file matches the naming scheme. If it does, -- compute its unit name. If Unit is set to No_Name on exit, none of the -- other out parameters are relevant. procedure Check_Illegal_Suffix (Project : Project_Id; Suffix : File_Name_Type; Dot_Replacement : File_Name_Type; Attribute_Name : String; Location : Source_Ptr; Data : in out Tree_Processing_Data); -- Display an error message if the given suffix is illegal for some reason. -- The name of the attribute we are testing is specified in Attribute_Name, -- which is used in the error message. Location is the location where the -- suffix is defined. procedure Locate_Directory (Project : Project_Id; Name : File_Name_Type; Path : out Path_Information; Dir_Exists : out Boolean; Data : in out Tree_Processing_Data; Create : String := ""; Location : Source_Ptr := No_Location; Must_Exist : Boolean := True; Externally_Built : Boolean := False); -- Locate a directory. Name is the directory name. Relative paths are -- resolved relative to the project's directory. If the directory does not -- exist and Setup_Projects is True and Create is a non null string, an -- attempt is made to create the directory. If the directory does not -- exist, it is either created if Setup_Projects is False (and then -- returned), or simply returned without checking for its existence (if -- Must_Exist is False) or No_Path_Information is returned. In all cases, -- Dir_Exists indicates whether the directory now exists. Create is also -- used for debugging traces to show which path we are computing. procedure Look_For_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data); -- Find all the sources of project Project in project tree Data.Tree and -- update its Data accordingly. This assumes that the special naming -- exceptions have already been processed. function Path_Name_Of (File_Name : File_Name_Type; Directory : Path_Name_Type) return String; -- Returns the path name of a (non project) file. Returns an empty string -- if file cannot be found. procedure Remove_Source (Tree : Project_Tree_Ref; Id : Source_Id; Replaced_By : Source_Id); -- Remove a file from the list of sources of a project. This might be -- because the file is replaced by another one in an extending project, -- or because a file was added as a naming exception but was not found -- in the end. procedure Report_No_Sources (Project : Project_Id; Lang_Name : String; Data : Tree_Processing_Data; Location : Source_Ptr; Continuation : Boolean := False); -- Report an error or a warning depending on the value of When_No_Sources -- when there are no sources for language Lang_Name. procedure Show_Source_Dirs (Project : Project_Id; In_Tree : Project_Tree_Ref); -- List all the source directories of a project procedure Write_Attr (Name, Value : String); -- Debug print a value for a specific property. Does nothing when not in -- debug mode procedure Error_Or_Warning (Flags : Processing_Flags; Kind : Error_Warning; Msg : String; Location : Source_Ptr; Project : Project_Id); -- Emits either an error or warning message (or nothing), depending on Kind ---------------------- -- Error_Or_Warning -- ---------------------- procedure Error_Or_Warning (Flags : Processing_Flags; Kind : Error_Warning; Msg : String; Location : Source_Ptr; Project : Project_Id) is begin case Kind is when Error => Error_Msg (Flags, Msg, Location, Project); when Warning => Error_Msg (Flags, "?" & Msg, Location, Project); when Silent => null; end case; end Error_Or_Warning; ------------------------------ -- Replace_Into_Name_Buffer -- ------------------------------ procedure Replace_Into_Name_Buffer (Str : String; Pattern : String; Replacement : Character) is Max : constant Integer := Str'Last - Pattern'Length + 1; J : Positive; begin Name_Len := 0; J := Str'First; while J <= Str'Last loop Name_Len := Name_Len + 1; if J <= Max and then Str (J .. J + Pattern'Length - 1) = Pattern then Name_Buffer (Name_Len) := Replacement; J := J + Pattern'Length; else Name_Buffer (Name_Len) := GNAT.Case_Util.To_Lower (Str (J)); J := J + 1; end if; end loop; end Replace_Into_Name_Buffer; -------------------- -- Suffix_Matches -- -------------------- function Suffix_Matches (Filename : String; Suffix : File_Name_Type) return Boolean is Min_Prefix_Length : Natural := 0; begin if Suffix = No_File or else Suffix = Empty_File then return False; end if; declare Suf : String := Get_Name_String (Suffix); begin -- On non case-sensitive systems, use proper suffix casing Canonical_Case_File_Name (Suf); -- The file name must end with the suffix (which is not an extension) -- For instance a suffix "configure.in" must match a file with the -- same name. To avoid dummy cases, though, a suffix starting with -- '.' requires a file that is at least one character longer ('.cpp' -- should not match a file with the same name) if Suf (Suf'First) = '.' then Min_Prefix_Length := 1; end if; return Filename'Length >= Suf'Length + Min_Prefix_Length and then Filename (Filename'Last - Suf'Length + 1 .. Filename'Last) = Suf; end; end Suffix_Matches; ---------------- -- Write_Attr -- ---------------- procedure Write_Attr (Name, Value : String) is begin if Current_Verbosity = High then Write_Str (" " & Name & " = """); Write_Str (Value); Write_Char ('"'); Write_Eol; end if; end Write_Attr; ---------------- -- Add_Source -- ---------------- procedure Add_Source (Id : out Source_Id; Data : in out Tree_Processing_Data; Project : Project_Id; Source_Dir_Rank : Natural; Lang_Id : Language_Ptr; Kind : Source_Kind; File_Name : File_Name_Type; Display_File : File_Name_Type; Naming_Exception : Boolean := False; Path : Path_Information := No_Path_Information; Alternate_Languages : Language_List := null; Unit : Name_Id := No_Name; Index : Int := 0; Locally_Removed : Boolean := False; Location : Source_Ptr := No_Location) is Config : constant Language_Config := Lang_Id.Config; UData : Unit_Index; Add_Src : Boolean; Source : Source_Id; Prev_Unit : Unit_Index := No_Unit_Index; Source_To_Replace : Source_Id := No_Source; begin -- Check if the same file name or unit is used in the prj tree Add_Src := True; if Unit /= No_Name then Prev_Unit := Units_Htable.Get (Data.Tree.Units_HT, Unit); end if; if Prev_Unit /= No_Unit_Index and then (Kind = Impl or else Kind = Spec) and then Prev_Unit.File_Names (Kind) /= null then -- Suspicious, we need to check later whether this is authorized Add_Src := False; Source := Prev_Unit.File_Names (Kind); else Source := Files_Htable.Get (Data.File_To_Source, File_Name); if Source /= No_Source and then Source.Index = Index then Add_Src := False; end if; end if; -- Duplication of file/unit in same project is allowed if order of -- source directories is known. if Add_Src = False then Add_Src := True; if Project = Source.Project then if Prev_Unit = No_Unit_Index then if Data.Flags.Allow_Duplicate_Basenames then Add_Src := True; elsif Source_Dir_Rank /= Source.Source_Dir_Rank then Add_Src := False; else Error_Msg_File_1 := File_Name; Error_Msg (Data.Flags, "duplicate source file name {", Location, Project); Add_Src := False; end if; else if Source_Dir_Rank /= Source.Source_Dir_Rank then Add_Src := False; -- We might be seeing the same file through a different path -- (for instance because of symbolic links). elsif Source.Path.Name /= Path.Name then if not Source.Duplicate_Unit then Error_Msg_Name_1 := Unit; Error_Msg (Data.Flags, "\duplicate unit %%", Location, Project); Source.Duplicate_Unit := True; end if; Add_Src := False; end if; end if; -- Do not allow the same unit name in different projects, except -- if one is extending the other. -- For a file based language, the same file name replaces a file -- in a project being extended, but it is allowed to have the same -- file name in unrelated projects. elsif Is_Extending (Project, Source.Project) then if not Locally_Removed then Source_To_Replace := Source; end if; elsif Prev_Unit /= No_Unit_Index and then Prev_Unit.File_Names (Kind) /= null and then not Source.Locally_Removed then -- Path is set if this is a source we found on the disk, in which -- case we can provide more explicit error message. Path is unset -- when the source is added from one of the naming exceptions in -- the project. if Path /= No_Path_Information then Error_Msg_Name_1 := Unit; Error_Msg (Data.Flags, "unit %% cannot belong to several projects", Location, Project); Error_Msg_Name_1 := Project.Name; Error_Msg_Name_2 := Name_Id (Path.Display_Name); Error_Msg (Data.Flags, "\ project %%, %%", Location, Project); Error_Msg_Name_1 := Source.Project.Name; Error_Msg_Name_2 := Name_Id (Source.Path.Display_Name); Error_Msg (Data.Flags, "\ project %%, %%", Location, Project); else Error_Msg_Name_1 := Unit; Error_Msg_Name_2 := Source.Project.Name; Error_Msg (Data.Flags, "unit %% already belongs to project %%", Location, Project); end if; Add_Src := False; elsif not Source.Locally_Removed and then not Data.Flags.Allow_Duplicate_Basenames and then Lang_Id.Config.Kind = Unit_Based and then Source.Language.Config.Kind = Unit_Based then Error_Msg_File_1 := File_Name; Error_Msg_File_2 := File_Name_Type (Source.Project.Name); Error_Msg (Data.Flags, "{ is already a source of project {", Location, Project); -- Add the file anyway, to avoid further warnings like "language -- unknown". Add_Src := True; end if; end if; if not Add_Src then return; end if; -- Add the new file Id := new Source_Data; if Current_Verbosity = High then Write_Str ("Adding source File: "); Write_Str (Get_Name_String (Display_File)); if Index /= 0 then Write_Str (" at" & Index'Img); end if; if Lang_Id.Config.Kind = Unit_Based then Write_Str (" Unit: "); -- ??? in gprclean, it seems we sometimes pass an empty Unit name -- (see test extended_projects). if Unit /= No_Name then Write_Str (Get_Name_String (Unit)); end if; Write_Str (" Kind: "); Write_Str (Source_Kind'Image (Kind)); end if; Write_Eol; end if; Id.Project := Project; Id.Location := Location; Id.Source_Dir_Rank := Source_Dir_Rank; Id.Language := Lang_Id; Id.Kind := Kind; Id.Alternate_Languages := Alternate_Languages; Id.Locally_Removed := Locally_Removed; Id.Index := Index; Id.File := File_Name; Id.Display_File := Display_File; Id.Dep_Name := Dependency_Name (File_Name, Lang_Id.Config.Dependency_Kind); Id.Naming_Exception := Naming_Exception; Id.Object := Object_Name (File_Name, Config.Object_File_Suffix); Id.Switches := Switches_Name (File_Name); -- Add the source id to the Unit_Sources_HT hash table, if the unit name -- is not null. if Unit /= No_Name then -- Note: we might be creating a dummy unit here, when we in fact have -- a separate. For instance, file file-bar.adb will initially be -- assumed to be the IMPL of unit "file.bar". Only later on (in -- Check_Object_Files) will we parse those units that only have an -- impl and no spec to make sure whether we have a Separate in fact -- (that significantly reduces the number of times we need to parse -- the files, since we are then only interested in those with no -- spec). We still need those dummy units in the table, since that's -- the name we find in the ALI file UData := Units_Htable.Get (Data.Tree.Units_HT, Unit); if UData = No_Unit_Index then UData := new Unit_Data; UData.Name := Unit; Units_Htable.Set (Data.Tree.Units_HT, Unit, UData); end if; Id.Unit := UData; -- Note that this updates Unit information as well Override_Kind (Id, Kind); end if; if Path /= No_Path_Information then Id.Path := Path; Source_Paths_Htable.Set (Data.Tree.Source_Paths_HT, Path.Name, Id); end if; Id.Next_With_File_Name := Source_Files_Htable.Get (Data.Tree.Source_Files_HT, File_Name); Source_Files_Htable.Set (Data.Tree.Source_Files_HT, File_Name, Id); if Index /= 0 then Project.Has_Multi_Unit_Sources := True; end if; -- Add the source to the language list Id.Next_In_Lang := Lang_Id.First_Source; Lang_Id.First_Source := Id; if Source_To_Replace /= No_Source then Remove_Source (Data.Tree, Source_To_Replace, Id); end if; if Data.Tree.Replaced_Source_Number > 0 and then Replaced_Source_HTable.Get (Data.Tree.Replaced_Sources, Id.File) /= No_File then Replaced_Source_HTable.Remove (Data.Tree.Replaced_Sources, Id.File); Data.Tree.Replaced_Source_Number := Data.Tree.Replaced_Source_Number - 1; end if; Files_Htable.Set (Data.File_To_Source, File_Name, Id); end Add_Source; ------------------------------ -- Canonical_Case_File_Name -- ------------------------------ function Canonical_Case_File_Name (Name : Name_Id) return File_Name_Type is begin if Osint.File_Names_Case_Sensitive then return File_Name_Type (Name); else Get_Name_String (Name); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); return Name_Find; end if; end Canonical_Case_File_Name; ----------------------------- -- Check_Aggregate_Project -- ----------------------------- procedure Check_Aggregate_Project (Project : Project_Id; Data : in out Tree_Processing_Data) is Project_Files : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Project_Files, Project.Decl.Attributes, Data.Tree); procedure Found_Project_File (Path : Path_Information; Rank : Natural); -- Comments required ??? procedure Expand_Project_Files is new Expand_Subdirectory_Pattern (Callback => Found_Project_File); -- Comments required ??? ------------------------ -- Found_Project_File -- ------------------------ procedure Found_Project_File (Path : Path_Information; Rank : Natural) is pragma Unreferenced (Rank); begin if Current_Verbosity = High then Write_Str (" Aggregates:"); Write_Line (Get_Name_String (Path.Display_Name)); end if; end Found_Project_File; -- Start of processing for Check_Aggregate_Project begin if Project_Files.Default then Error_Msg_Name_1 := Snames.Name_Project_Files; Error_Msg (Data.Flags, "Attribute %% must be specified in aggregate project", Project.Location, Project); return; end if; -- Look for aggregated projects. For similarity with source files and -- dirs, the aggregated project files are not searched for on the -- project path, and are only found through the path specified in -- the Project_Files attribute. Expand_Project_Files (Project => Project, Data => Data, Patterns => Project_Files.Values, Ignore => Nil_String, Search_For => Search_Files, Resolve_Links => Opt.Follow_Links_For_Files); end Check_Aggregate_Project; ---------------------------- -- Check_Abstract_Project -- ---------------------------- procedure Check_Abstract_Project (Project : Project_Id; Data : in out Tree_Processing_Data) is Source_Dirs : constant Variable_Value := Util.Value_Of (Name_Source_Dirs, Project.Decl.Attributes, Data.Tree); Source_Files : constant Variable_Value := Util.Value_Of (Name_Source_Files, Project.Decl.Attributes, Data.Tree); Source_List_File : constant Variable_Value := Util.Value_Of (Name_Source_List_File, Project.Decl.Attributes, Data.Tree); Languages : constant Variable_Value := Util.Value_Of (Name_Languages, Project.Decl.Attributes, Data.Tree); begin if Project.Source_Dirs /= Nil_String then if Source_Dirs.Values = Nil_String and then Source_Files.Values = Nil_String and then Languages.Values = Nil_String and then Source_List_File.Default then Project.Source_Dirs := Nil_String; else Error_Msg (Data.Flags, "at least one of Source_Files, Source_Dirs or Languages " & "must be declared empty for an abstract project", Project.Location, Project); end if; end if; end Check_Abstract_Project; ----------- -- Check -- ----------- procedure Check (Project : Project_Id; Data : in out Tree_Processing_Data) is Prj_Data : Project_Processing_Data; begin Initialize (Prj_Data, Project); Check_If_Externally_Built (Project, Data); if Project.Qualifier /= Aggregate then Get_Directories (Project, Data); Check_Programming_Languages (Project, Data); if Current_Verbosity = High then Show_Source_Dirs (Project, Data.Tree); end if; end if; case Project.Qualifier is when Aggregate => Check_Aggregate_Project (Project, Data); when Dry => Check_Abstract_Project (Project, Data); when others => null; end case; -- Check configuration. This must be done even for gnatmake (even though -- no user configuration file was provided) since the default config we -- generate indicates whether libraries are supported for instance. Check_Configuration (Project, Data); if Project.Qualifier /= Aggregate then Check_Library_Attributes (Project, Data); Check_Package_Naming (Project, Data); Look_For_Sources (Prj_Data, Data); Check_Interfaces (Project, Data); if Project.Library then Check_Stand_Alone_Library (Project, Data); end if; Get_Mains (Project, Data); end if; Free (Prj_Data); end Check; -------------------- -- Check_Ada_Name -- -------------------- procedure Check_Ada_Name (Name : String; Unit : out Name_Id) is The_Name : String := Name; Real_Name : Name_Id; Need_Letter : Boolean := True; Last_Underscore : Boolean := False; OK : Boolean := The_Name'Length > 0; First : Positive; function Is_Reserved (Name : Name_Id) return Boolean; function Is_Reserved (S : String) return Boolean; -- Check that the given name is not an Ada 95 reserved word. The reason -- for the Ada 95 here is that we do not want to exclude the case of an -- Ada 95 unit called Interface (for example). In Ada 2005, such a unit -- name would be rejected anyway by the compiler. That means there is no -- requirement that the project file parser reject this. ----------------- -- Is_Reserved -- ----------------- function Is_Reserved (S : String) return Boolean is begin Name_Len := 0; Add_Str_To_Name_Buffer (S); return Is_Reserved (Name_Find); end Is_Reserved; ----------------- -- Is_Reserved -- ----------------- function Is_Reserved (Name : Name_Id) return Boolean is begin if Get_Name_Table_Byte (Name) /= 0 and then Name /= Name_Project and then Name /= Name_Extends and then Name /= Name_External and then Name not in Ada_2005_Reserved_Words then Unit := No_Name; if Current_Verbosity = High then Write_Str (The_Name); Write_Line (" is an Ada reserved word."); end if; return True; else return False; end if; end Is_Reserved; -- Start of processing for Check_Ada_Name begin To_Lower (The_Name); Name_Len := The_Name'Length; Name_Buffer (1 .. Name_Len) := The_Name; -- Special cases of children of packages A, G, I and S on VMS if OpenVMS_On_Target and then Name_Len > 3 and then Name_Buffer (2 .. 3) = "__" and then ((Name_Buffer (1) = 'a') or else (Name_Buffer (1) = 'g') or else (Name_Buffer (1) = 'i') or else (Name_Buffer (1) = 's')) then Name_Buffer (2) := '.'; Name_Buffer (3 .. Name_Len - 1) := Name_Buffer (4 .. Name_Len); Name_Len := Name_Len - 1; end if; Real_Name := Name_Find; if Is_Reserved (Real_Name) then return; end if; First := The_Name'First; for Index in The_Name'Range loop if Need_Letter then -- We need a letter (at the beginning, and following a dot), -- but we don't have one. if Is_Letter (The_Name (Index)) then Need_Letter := False; else OK := False; if Current_Verbosity = High then Write_Int (Types.Int (Index)); Write_Str (": '"); Write_Char (The_Name (Index)); Write_Line ("' is not a letter."); end if; exit; end if; elsif Last_Underscore and then (The_Name (Index) = '_' or else The_Name (Index) = '.') then -- Two underscores are illegal, and a dot cannot follow -- an underscore. OK := False; if Current_Verbosity = High then Write_Int (Types.Int (Index)); Write_Str (": '"); Write_Char (The_Name (Index)); Write_Line ("' is illegal here."); end if; exit; elsif The_Name (Index) = '.' then -- First, check if the name before the dot is not a reserved word if Is_Reserved (The_Name (First .. Index - 1)) then return; end if; First := Index + 1; -- We need a letter after a dot Need_Letter := True; elsif The_Name (Index) = '_' then Last_Underscore := True; else -- We need an letter or a digit Last_Underscore := False; if not Is_Alphanumeric (The_Name (Index)) then OK := False; if Current_Verbosity = High then Write_Int (Types.Int (Index)); Write_Str (": '"); Write_Char (The_Name (Index)); Write_Line ("' is not alphanumeric."); end if; exit; end if; end if; end loop; -- Cannot end with an underscore or a dot OK := OK and then not Need_Letter and then not Last_Underscore; if OK then if First /= Name'First and then Is_Reserved (The_Name (First .. The_Name'Last)) then return; end if; Unit := Real_Name; else -- Signal a problem with No_Name Unit := No_Name; end if; end Check_Ada_Name; ------------------------- -- Check_Configuration -- ------------------------- procedure Check_Configuration (Project : Project_Id; Data : in out Tree_Processing_Data) is Dot_Replacement : File_Name_Type := No_File; Casing : Casing_Type := All_Lower_Case; Separate_Suffix : File_Name_Type := No_File; Lang_Index : Language_Ptr := No_Language_Index; -- The index of the language data being checked Prev_Index : Language_Ptr := No_Language_Index; -- The index of the previous language procedure Process_Project_Level_Simple_Attributes; -- Process the simple attributes at the project level procedure Process_Project_Level_Array_Attributes; -- Process the associate array attributes at the project level procedure Process_Packages; -- Read the packages of the project ---------------------- -- Process_Packages -- ---------------------- procedure Process_Packages is Packages : Package_Id; Element : Package_Element; procedure Process_Binder (Arrays : Array_Id); -- Process the associate array attributes of package Binder procedure Process_Builder (Attributes : Variable_Id); -- Process the simple attributes of package Builder procedure Process_Compiler (Arrays : Array_Id); -- Process the associate array attributes of package Compiler procedure Process_Naming (Attributes : Variable_Id); -- Process the simple attributes of package Naming procedure Process_Naming (Arrays : Array_Id); -- Process the associate array attributes of package Naming procedure Process_Linker (Attributes : Variable_Id); -- Process the simple attributes of package Linker of a -- configuration project. -------------------- -- Process_Binder -- -------------------- procedure Process_Binder (Arrays : Array_Id) is Current_Array_Id : Array_Id; Current_Array : Array_Data; Element_Id : Array_Element_Id; Element : Array_Element; begin -- Process the associative array attribute of package Binder Current_Array_Id := Arrays; while Current_Array_Id /= No_Array loop Current_Array := Data.Tree.Arrays.Table (Current_Array_Id); Element_Id := Current_Array.Value; while Element_Id /= No_Array_Element loop Element := Data.Tree.Array_Elements.Table (Element_Id); if Element.Index /= All_Other_Names then -- Get the name of the language Lang_Index := Get_Language_From_Name (Project, Get_Name_String (Element.Index)); if Lang_Index /= No_Language_Index then case Current_Array.Name is when Name_Driver => -- Attribute Driver (<language>) Lang_Index.Config.Binder_Driver := File_Name_Type (Element.Value.Value); when Name_Required_Switches => Put (Into_List => Lang_Index.Config.Binder_Required_Switches, From_List => Element.Value.Values, In_Tree => Data.Tree); when Name_Prefix => -- Attribute Prefix (<language>) Lang_Index.Config.Binder_Prefix := Element.Value.Value; when Name_Objects_Path => -- Attribute Objects_Path (<language>) Lang_Index.Config.Objects_Path := Element.Value.Value; when Name_Objects_Path_File => -- Attribute Objects_Path (<language>) Lang_Index.Config.Objects_Path_File := Element.Value.Value; when others => null; end case; end if; end if; Element_Id := Element.Next; end loop; Current_Array_Id := Current_Array.Next; end loop; end Process_Binder; --------------------- -- Process_Builder -- --------------------- procedure Process_Builder (Attributes : Variable_Id) is Attribute_Id : Variable_Id; Attribute : Variable; begin -- Process non associated array attribute from package Builder Attribute_Id := Attributes; while Attribute_Id /= No_Variable loop Attribute := Data.Tree.Variable_Elements.Table (Attribute_Id); if not Attribute.Value.Default then if Attribute.Name = Name_Executable_Suffix then -- Attribute Executable_Suffix: the suffix of the -- executables. Project.Config.Executable_Suffix := Attribute.Value.Value; end if; end if; Attribute_Id := Attribute.Next; end loop; end Process_Builder; ---------------------- -- Process_Compiler -- ---------------------- procedure Process_Compiler (Arrays : Array_Id) is Current_Array_Id : Array_Id; Current_Array : Array_Data; Element_Id : Array_Element_Id; Element : Array_Element; List : String_List_Id; begin -- Process the associative array attribute of package Compiler Current_Array_Id := Arrays; while Current_Array_Id /= No_Array loop Current_Array := Data.Tree.Arrays.Table (Current_Array_Id); Element_Id := Current_Array.Value; while Element_Id /= No_Array_Element loop Element := Data.Tree.Array_Elements.Table (Element_Id); if Element.Index /= All_Other_Names then -- Get the name of the language Lang_Index := Get_Language_From_Name (Project, Get_Name_String (Element.Index)); if Lang_Index /= No_Language_Index then case Current_Array.Name is when Name_Dependency_Switches => -- Attribute Dependency_Switches (<language>) if Lang_Index.Config.Dependency_Kind = None then Lang_Index.Config.Dependency_Kind := Makefile; end if; List := Element.Value.Values; if List /= Nil_String then Put (Into_List => Lang_Index.Config.Dependency_Option, From_List => List, In_Tree => Data.Tree); end if; when Name_Dependency_Driver => -- Attribute Dependency_Driver (<language>) if Lang_Index.Config.Dependency_Kind = None then Lang_Index.Config.Dependency_Kind := Makefile; end if; List := Element.Value.Values; if List /= Nil_String then Put (Into_List => Lang_Index.Config.Compute_Dependency, From_List => List, In_Tree => Data.Tree); end if; when Name_Include_Switches => -- Attribute Include_Switches (<language>) List := Element.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "include option cannot be null", Element.Value.Location, Project); end if; Put (Into_List => Lang_Index.Config.Include_Option, From_List => List, In_Tree => Data.Tree); when Name_Include_Path => -- Attribute Include_Path (<language>) Lang_Index.Config.Include_Path := Element.Value.Value; when Name_Include_Path_File => -- Attribute Include_Path_File (<language>) Lang_Index.Config.Include_Path_File := Element.Value.Value; when Name_Driver => -- Attribute Driver (<language>) Lang_Index.Config.Compiler_Driver := File_Name_Type (Element.Value.Value); when Name_Required_Switches | Name_Leading_Required_Switches => Put (Into_List => Lang_Index.Config. Compiler_Leading_Required_Switches, From_List => Element.Value.Values, In_Tree => Data.Tree); when Name_Trailing_Required_Switches => Put (Into_List => Lang_Index.Config. Compiler_Trailing_Required_Switches, From_List => Element.Value.Values, In_Tree => Data.Tree); when Name_Multi_Unit_Switches => Put (Into_List => Lang_Index.Config.Multi_Unit_Switches, From_List => Element.Value.Values, In_Tree => Data.Tree); when Name_Multi_Unit_Object_Separator => Get_Name_String (Element.Value.Value); if Name_Len /= 1 then Error_Msg (Data.Flags, "multi-unit object separator must have " & "a single character", Element.Value.Location, Project); elsif Name_Buffer (1) = ' ' then Error_Msg (Data.Flags, "multi-unit object separator cannot be " & "a space", Element.Value.Location, Project); else Lang_Index.Config.Multi_Unit_Object_Separator := Name_Buffer (1); end if; when Name_Path_Syntax => begin Lang_Index.Config.Path_Syntax := Path_Syntax_Kind'Value (Get_Name_String (Element.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value for Path_Syntax", Element.Value.Location, Project); end; when Name_Object_File_Suffix => if Get_Name_String (Element.Value.Value) = "" then Error_Msg (Data.Flags, "object file suffix cannot be empty", Element.Value.Location, Project); else Lang_Index.Config.Object_File_Suffix := Element.Value.Value; end if; when Name_Object_File_Switches => Put (Into_List => Lang_Index.Config.Object_File_Switches, From_List => Element.Value.Values, In_Tree => Data.Tree); when Name_Pic_Option => -- Attribute Compiler_Pic_Option (<language>) List := Element.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "compiler PIC option cannot be null", Element.Value.Location, Project); end if; Put (Into_List => Lang_Index.Config.Compilation_PIC_Option, From_List => List, In_Tree => Data.Tree); when Name_Mapping_File_Switches => -- Attribute Mapping_File_Switches (<language>) List := Element.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "mapping file switches cannot be null", Element.Value.Location, Project); end if; Put (Into_List => Lang_Index.Config.Mapping_File_Switches, From_List => List, In_Tree => Data.Tree); when Name_Mapping_Spec_Suffix => -- Attribute Mapping_Spec_Suffix (<language>) Lang_Index.Config.Mapping_Spec_Suffix := File_Name_Type (Element.Value.Value); when Name_Mapping_Body_Suffix => -- Attribute Mapping_Body_Suffix (<language>) Lang_Index.Config.Mapping_Body_Suffix := File_Name_Type (Element.Value.Value); when Name_Config_File_Switches => -- Attribute Config_File_Switches (<language>) List := Element.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "config file switches cannot be null", Element.Value.Location, Project); end if; Put (Into_List => Lang_Index.Config.Config_File_Switches, From_List => List, In_Tree => Data.Tree); when Name_Objects_Path => -- Attribute Objects_Path (<language>) Lang_Index.Config.Objects_Path := Element.Value.Value; when Name_Objects_Path_File => -- Attribute Objects_Path_File (<language>) Lang_Index.Config.Objects_Path_File := Element.Value.Value; when Name_Config_Body_File_Name => -- Attribute Config_Body_File_Name (<language>) Lang_Index.Config.Config_Body := Element.Value.Value; when Name_Config_Body_File_Name_Index => -- Attribute Config_Body_File_Name_Index -- ( < Language > ) Lang_Index.Config.Config_Body_Index := Element.Value.Value; when Name_Config_Body_File_Name_Pattern => -- Attribute Config_Body_File_Name_Pattern -- (<language>) Lang_Index.Config.Config_Body_Pattern := Element.Value.Value; when Name_Config_Spec_File_Name => -- Attribute Config_Spec_File_Name (<language>) Lang_Index.Config.Config_Spec := Element.Value.Value; when Name_Config_Spec_File_Name_Index => -- Attribute Config_Spec_File_Name_Index -- ( < Language > ) Lang_Index.Config.Config_Spec_Index := Element.Value.Value; when Name_Config_Spec_File_Name_Pattern => -- Attribute Config_Spec_File_Name_Pattern -- (<language>) Lang_Index.Config.Config_Spec_Pattern := Element.Value.Value; when Name_Config_File_Unique => -- Attribute Config_File_Unique (<language>) begin Lang_Index.Config.Config_File_Unique := Boolean'Value (Get_Name_String (Element.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "illegal value for Config_File_Unique", Element.Value.Location, Project); end; when others => null; end case; end if; end if; Element_Id := Element.Next; end loop; Current_Array_Id := Current_Array.Next; end loop; end Process_Compiler; -------------------- -- Process_Naming -- -------------------- procedure Process_Naming (Attributes : Variable_Id) is Attribute_Id : Variable_Id; Attribute : Variable; begin -- Process non associated array attribute from package Naming Attribute_Id := Attributes; while Attribute_Id /= No_Variable loop Attribute := Data.Tree.Variable_Elements.Table (Attribute_Id); if not Attribute.Value.Default then if Attribute.Name = Name_Separate_Suffix then -- Attribute Separate_Suffix Get_Name_String (Attribute.Value.Value); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Separate_Suffix := Name_Find; elsif Attribute.Name = Name_Casing then -- Attribute Casing begin Casing := Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value for Casing", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Dot_Replacement then -- Attribute Dot_Replacement Dot_Replacement := File_Name_Type (Attribute.Value.Value); end if; end if; Attribute_Id := Attribute.Next; end loop; end Process_Naming; procedure Process_Naming (Arrays : Array_Id) is Current_Array_Id : Array_Id; Current_Array : Array_Data; Element_Id : Array_Element_Id; Element : Array_Element; begin -- Process the associative array attribute of package Naming Current_Array_Id := Arrays; while Current_Array_Id /= No_Array loop Current_Array := Data.Tree.Arrays.Table (Current_Array_Id); Element_Id := Current_Array.Value; while Element_Id /= No_Array_Element loop Element := Data.Tree.Array_Elements.Table (Element_Id); -- Get the name of the language Lang_Index := Get_Language_From_Name (Project, Get_Name_String (Element.Index)); if Lang_Index /= No_Language_Index then case Current_Array.Name is when Name_Spec_Suffix | Name_Specification_Suffix => -- Attribute Spec_Suffix (<language>) Get_Name_String (Element.Value.Value); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Lang_Index.Config.Naming_Data.Spec_Suffix := Name_Find; when Name_Implementation_Suffix | Name_Body_Suffix => Get_Name_String (Element.Value.Value); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); -- Attribute Body_Suffix (<language>) Lang_Index.Config.Naming_Data.Body_Suffix := Name_Find; Lang_Index.Config.Naming_Data.Separate_Suffix := Lang_Index.Config.Naming_Data.Body_Suffix; when others => null; end case; end if; Element_Id := Element.Next; end loop; Current_Array_Id := Current_Array.Next; end loop; end Process_Naming; -------------------- -- Process_Linker -- -------------------- procedure Process_Linker (Attributes : Variable_Id) is Attribute_Id : Variable_Id; Attribute : Variable; begin -- Process non associated array attribute from package Linker Attribute_Id := Attributes; while Attribute_Id /= No_Variable loop Attribute := Data.Tree.Variable_Elements.Table (Attribute_Id); if not Attribute.Value.Default then if Attribute.Name = Name_Driver then -- Attribute Linker'Driver: the default linker to use Project.Config.Linker := Path_Name_Type (Attribute.Value.Value); -- Linker'Driver is also used to link shared libraries -- if the obsolescent attribute Library_GCC has not been -- specified. if Project.Config.Shared_Lib_Driver = No_File then Project.Config.Shared_Lib_Driver := File_Name_Type (Attribute.Value.Value); end if; elsif Attribute.Name = Name_Required_Switches then -- Attribute Required_Switches: the minimum trailing -- options to use when invoking the linker Put (Into_List => Project.Config.Trailing_Linker_Required_Switches, From_List => Attribute.Value.Values, In_Tree => Data.Tree); elsif Attribute.Name = Name_Map_File_Option then Project.Config.Map_File_Option := Attribute.Value.Value; elsif Attribute.Name = Name_Max_Command_Line_Length then begin Project.Config.Max_Command_Line_Length := Natural'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "value must be positive or equal to 0", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Response_File_Format then declare Name : Name_Id; begin Get_Name_String (Attribute.Value.Value); To_Lower (Name_Buffer (1 .. Name_Len)); Name := Name_Find; if Name = Name_None then Project.Config.Resp_File_Format := None; elsif Name = Name_Gnu then Project.Config.Resp_File_Format := GNU; elsif Name = Name_Object_List then Project.Config.Resp_File_Format := Object_List; elsif Name = Name_Option_List then Project.Config.Resp_File_Format := Option_List; elsif Name_Buffer (1 .. Name_Len) = "gcc" then Project.Config.Resp_File_Format := GCC; elsif Name_Buffer (1 .. Name_Len) = "gcc_gnu" then Project.Config.Resp_File_Format := GCC_GNU; elsif Name_Buffer (1 .. Name_Len) = "gcc_option_list" then Project.Config.Resp_File_Format := GCC_Option_List; elsif Name_Buffer (1 .. Name_Len) = "gcc_object_list" then Project.Config.Resp_File_Format := GCC_Object_List; else Error_Msg (Data.Flags, "illegal response file format", Attribute.Value.Location, Project); end if; end; elsif Attribute.Name = Name_Response_File_Switches then Put (Into_List => Project.Config.Resp_File_Options, From_List => Attribute.Value.Values, In_Tree => Data.Tree); end if; end if; Attribute_Id := Attribute.Next; end loop; end Process_Linker; -- Start of processing for Process_Packages begin Packages := Project.Decl.Packages; while Packages /= No_Package loop Element := Data.Tree.Packages.Table (Packages); case Element.Name is when Name_Binder => -- Process attributes of package Binder Process_Binder (Element.Decl.Arrays); when Name_Builder => -- Process attributes of package Builder Process_Builder (Element.Decl.Attributes); when Name_Compiler => -- Process attributes of package Compiler Process_Compiler (Element.Decl.Arrays); when Name_Linker => -- Process attributes of package Linker Process_Linker (Element.Decl.Attributes); when Name_Naming => -- Process attributes of package Naming Process_Naming (Element.Decl.Attributes); Process_Naming (Element.Decl.Arrays); when others => null; end case; Packages := Element.Next; end loop; end Process_Packages; --------------------------------------------- -- Process_Project_Level_Simple_Attributes -- --------------------------------------------- procedure Process_Project_Level_Simple_Attributes is Attribute_Id : Variable_Id; Attribute : Variable; List : String_List_Id; begin -- Process non associated array attribute at project level Attribute_Id := Project.Decl.Attributes; while Attribute_Id /= No_Variable loop Attribute := Data.Tree.Variable_Elements.Table (Attribute_Id); if not Attribute.Value.Default then if Attribute.Name = Name_Target then -- Attribute Target: the target specified Project.Config.Target := Attribute.Value.Value; elsif Attribute.Name = Name_Library_Builder then -- Attribute Library_Builder: the application to invoke -- to build libraries. Project.Config.Library_Builder := Path_Name_Type (Attribute.Value.Value); elsif Attribute.Name = Name_Archive_Builder then -- Attribute Archive_Builder: the archive builder -- (usually "ar") and its minimum options (usually "cr"). List := Attribute.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "archive builder cannot be null", Attribute.Value.Location, Project); end if; Put (Into_List => Project.Config.Archive_Builder, From_List => List, In_Tree => Data.Tree); elsif Attribute.Name = Name_Archive_Builder_Append_Option then -- Attribute Archive_Builder: the archive builder -- (usually "ar") and its minimum options (usually "cr"). List := Attribute.Value.Values; if List /= Nil_String then Put (Into_List => Project.Config.Archive_Builder_Append_Option, From_List => List, In_Tree => Data.Tree); end if; elsif Attribute.Name = Name_Archive_Indexer then -- Attribute Archive_Indexer: the optional archive -- indexer (usually "ranlib") with its minimum options -- (usually none). List := Attribute.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "archive indexer cannot be null", Attribute.Value.Location, Project); end if; Put (Into_List => Project.Config.Archive_Indexer, From_List => List, In_Tree => Data.Tree); elsif Attribute.Name = Name_Library_Partial_Linker then -- Attribute Library_Partial_Linker: the optional linker -- driver with its minimum options, to partially link -- archives. List := Attribute.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "partial linker cannot be null", Attribute.Value.Location, Project); end if; Put (Into_List => Project.Config.Lib_Partial_Linker, From_List => List, In_Tree => Data.Tree); elsif Attribute.Name = Name_Library_GCC then Project.Config.Shared_Lib_Driver := File_Name_Type (Attribute.Value.Value); Error_Msg (Data.Flags, "?Library_'G'C'C is an obsolescent attribute, " & "use Linker''Driver instead", Attribute.Value.Location, Project); elsif Attribute.Name = Name_Archive_Suffix then Project.Config.Archive_Suffix := File_Name_Type (Attribute.Value.Value); elsif Attribute.Name = Name_Linker_Executable_Option then -- Attribute Linker_Executable_Option: optional options -- to specify an executable name. Defaults to "-o". List := Attribute.Value.Values; if List = Nil_String then Error_Msg (Data.Flags, "linker executable option cannot be null", Attribute.Value.Location, Project); end if; Put (Into_List => Project.Config.Linker_Executable_Option, From_List => List, In_Tree => Data.Tree); elsif Attribute.Name = Name_Linker_Lib_Dir_Option then -- Attribute Linker_Lib_Dir_Option: optional options -- to specify a library search directory. Defaults to -- "-L". Get_Name_String (Attribute.Value.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "linker library directory option cannot be empty", Attribute.Value.Location, Project); end if; Project.Config.Linker_Lib_Dir_Option := Attribute.Value.Value; elsif Attribute.Name = Name_Linker_Lib_Name_Option then -- Attribute Linker_Lib_Name_Option: optional options -- to specify the name of a library to be linked in. -- Defaults to "-l". Get_Name_String (Attribute.Value.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "linker library name option cannot be empty", Attribute.Value.Location, Project); end if; Project.Config.Linker_Lib_Name_Option := Attribute.Value.Value; elsif Attribute.Name = Name_Run_Path_Option then -- Attribute Run_Path_Option: optional options to -- specify a path for libraries. List := Attribute.Value.Values; if List /= Nil_String then Put (Into_List => Project.Config.Run_Path_Option, From_List => List, In_Tree => Data.Tree); end if; elsif Attribute.Name = Name_Run_Path_Origin then Get_Name_String (Attribute.Value.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "run path origin cannot be empty", Attribute.Value.Location, Project); end if; Project.Config.Run_Path_Origin := Attribute.Value.Value; elsif Attribute.Name = Name_Library_Install_Name_Option then Project.Config.Library_Install_Name_Option := Attribute.Value.Value; elsif Attribute.Name = Name_Separate_Run_Path_Options then declare pragma Unsuppress (All_Checks); begin Project.Config.Separate_Run_Path_Options := Boolean'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Attribute.Value.Value) & """ for Separate_Run_Path_Options", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Library_Support then declare pragma Unsuppress (All_Checks); begin Project.Config.Lib_Support := Library_Support'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Attribute.Value.Value) & """ for Library_Support", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Shared_Library_Prefix then Project.Config.Shared_Lib_Prefix := File_Name_Type (Attribute.Value.Value); elsif Attribute.Name = Name_Shared_Library_Suffix then Project.Config.Shared_Lib_Suffix := File_Name_Type (Attribute.Value.Value); elsif Attribute.Name = Name_Symbolic_Link_Supported then declare pragma Unsuppress (All_Checks); begin Project.Config.Symbolic_Link_Supported := Boolean'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Attribute.Value.Value) & """ for Symbolic_Link_Supported", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Library_Major_Minor_Id_Supported then declare pragma Unsuppress (All_Checks); begin Project.Config.Lib_Maj_Min_Id_Supported := Boolean'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Attribute.Value.Value) & """ for Library_Major_Minor_Id_Supported", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Library_Auto_Init_Supported then declare pragma Unsuppress (All_Checks); begin Project.Config.Auto_Init_Supported := Boolean'Value (Get_Name_String (Attribute.Value.Value)); exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Attribute.Value.Value) & """ for Library_Auto_Init_Supported", Attribute.Value.Location, Project); end; elsif Attribute.Name = Name_Shared_Library_Minimum_Switches then List := Attribute.Value.Values; if List /= Nil_String then Put (Into_List => Project.Config.Shared_Lib_Min_Options, From_List => List, In_Tree => Data.Tree); end if; elsif Attribute.Name = Name_Library_Version_Switches then List := Attribute.Value.Values; if List /= Nil_String then Put (Into_List => Project.Config.Lib_Version_Options, From_List => List, In_Tree => Data.Tree); end if; end if; end if; Attribute_Id := Attribute.Next; end loop; end Process_Project_Level_Simple_Attributes; -------------------------------------------- -- Process_Project_Level_Array_Attributes -- -------------------------------------------- procedure Process_Project_Level_Array_Attributes is Current_Array_Id : Array_Id; Current_Array : Array_Data; Element_Id : Array_Element_Id; Element : Array_Element; List : String_List_Id; begin -- Process the associative array attributes at project level Current_Array_Id := Project.Decl.Arrays; while Current_Array_Id /= No_Array loop Current_Array := Data.Tree.Arrays.Table (Current_Array_Id); Element_Id := Current_Array.Value; while Element_Id /= No_Array_Element loop Element := Data.Tree.Array_Elements.Table (Element_Id); -- Get the name of the language Lang_Index := Get_Language_From_Name (Project, Get_Name_String (Element.Index)); if Lang_Index /= No_Language_Index then case Current_Array.Name is when Name_Inherit_Source_Path => List := Element.Value.Values; if List /= Nil_String then Put (Into_List => Lang_Index.Config.Include_Compatible_Languages, From_List => List, In_Tree => Data.Tree, Lower_Case => True); end if; when Name_Toolchain_Description => -- Attribute Toolchain_Description (<language>) Lang_Index.Config.Toolchain_Description := Element.Value.Value; when Name_Toolchain_Version => -- Attribute Toolchain_Version (<language>) Lang_Index.Config.Toolchain_Version := Element.Value.Value; -- For Ada, set proper checksum computation mode if Lang_Index.Name = Name_Ada then declare Vers : constant String := Get_Name_String (Element.Value.Value); pragma Assert (Vers'First = 1); begin -- Version 6.3 or earlier if Vers'Length >= 8 and then Vers (1 .. 5) = "GNAT " and then Vers (7) = '.' and then (Vers (6) < '6' or else (Vers (6) = '6' and then Vers (8) < '4')) then Checksum_GNAT_6_3 := True; -- Version 5.03 or earlier if Vers (6) < '5' or else (Vers (6) = '5' and then Vers (Vers'Last) < '4') then Checksum_GNAT_5_03 := True; -- Version 5.02 or earlier if Vers (6) /= '5' or else Vers (Vers'Last) < '3' then Checksum_Accumulate_Token_Checksum := False; end if; end if; end if; end; end if; when Name_Runtime_Library_Dir => -- Attribute Runtime_Library_Dir (<language>) Lang_Index.Config.Runtime_Library_Dir := Element.Value.Value; when Name_Runtime_Source_Dir => -- Attribute Runtime_Library_Dir (<language>) Lang_Index.Config.Runtime_Source_Dir := Element.Value.Value; when Name_Object_Generated => declare pragma Unsuppress (All_Checks); Value : Boolean; begin Value := Boolean'Value (Get_Name_String (Element.Value.Value)); Lang_Index.Config.Object_Generated := Value; -- If no object is generated, no object may be -- linked. if not Value then Lang_Index.Config.Objects_Linked := False; end if; exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Element.Value.Value) & """ for Object_Generated", Element.Value.Location, Project); end; when Name_Objects_Linked => declare pragma Unsuppress (All_Checks); Value : Boolean; begin Value := Boolean'Value (Get_Name_String (Element.Value.Value)); -- No change if Object_Generated is False, as this -- forces Objects_Linked to be False too. if Lang_Index.Config.Object_Generated then Lang_Index.Config.Objects_Linked := Value; end if; exception when Constraint_Error => Error_Msg (Data.Flags, "invalid value """ & Get_Name_String (Element.Value.Value) & """ for Objects_Linked", Element.Value.Location, Project); end; when others => null; end case; end if; Element_Id := Element.Next; end loop; Current_Array_Id := Current_Array.Next; end loop; end Process_Project_Level_Array_Attributes; -- Start of processing for Check_Configuration begin Process_Project_Level_Simple_Attributes; Process_Project_Level_Array_Attributes; Process_Packages; -- For unit based languages, set Casing, Dot_Replacement and -- Separate_Suffix in Naming_Data. Lang_Index := Project.Languages; while Lang_Index /= No_Language_Index loop if Lang_Index.Name = Name_Ada then Lang_Index.Config.Naming_Data.Casing := Casing; Lang_Index.Config.Naming_Data.Dot_Replacement := Dot_Replacement; if Separate_Suffix /= No_File then Lang_Index.Config.Naming_Data.Separate_Suffix := Separate_Suffix; end if; exit; end if; Lang_Index := Lang_Index.Next; end loop; -- Give empty names to various prefixes/suffixes, if they have not -- been specified in the configuration. if Project.Config.Archive_Suffix = No_File then Project.Config.Archive_Suffix := Empty_File; end if; if Project.Config.Shared_Lib_Prefix = No_File then Project.Config.Shared_Lib_Prefix := Empty_File; end if; if Project.Config.Shared_Lib_Suffix = No_File then Project.Config.Shared_Lib_Suffix := Empty_File; end if; Lang_Index := Project.Languages; while Lang_Index /= No_Language_Index loop -- For all languages, Compiler_Driver needs to be specified. This is -- only needed if we do intend to compile (not in GPS for instance). if Data.Flags.Compiler_Driver_Mandatory and then Lang_Index.Config.Compiler_Driver = No_File then Error_Msg_Name_1 := Lang_Index.Display_Name; Error_Msg (Data.Flags, "?no compiler specified for language %%" & ", ignoring all its sources", No_Location, Project); if Lang_Index = Project.Languages then Project.Languages := Lang_Index.Next; else Prev_Index.Next := Lang_Index.Next; end if; elsif Lang_Index.Name = Name_Ada then Prev_Index := Lang_Index; -- For unit based languages, Dot_Replacement, Spec_Suffix and -- Body_Suffix need to be specified. if Lang_Index.Config.Naming_Data.Dot_Replacement = No_File then Error_Msg (Data.Flags, "Dot_Replacement not specified for Ada", No_Location, Project); end if; if Lang_Index.Config.Naming_Data.Spec_Suffix = No_File then Error_Msg (Data.Flags, "Spec_Suffix not specified for Ada", No_Location, Project); end if; if Lang_Index.Config.Naming_Data.Body_Suffix = No_File then Error_Msg (Data.Flags, "Body_Suffix not specified for Ada", No_Location, Project); end if; else Prev_Index := Lang_Index; -- For file based languages, either Spec_Suffix or Body_Suffix -- need to be specified. if Data.Flags.Require_Sources_Other_Lang and then Lang_Index.Config.Naming_Data.Spec_Suffix = No_File and then Lang_Index.Config.Naming_Data.Body_Suffix = No_File then Error_Msg_Name_1 := Lang_Index.Display_Name; Error_Msg (Data.Flags, "no suffixes specified for %%", No_Location, Project); end if; end if; Lang_Index := Lang_Index.Next; end loop; end Check_Configuration; ------------------------------- -- Check_If_Externally_Built -- ------------------------------- procedure Check_If_Externally_Built (Project : Project_Id; Data : in out Tree_Processing_Data) is Externally_Built : constant Variable_Value := Util.Value_Of (Name_Externally_Built, Project.Decl.Attributes, Data.Tree); begin if not Externally_Built.Default then Get_Name_String (Externally_Built.Value); To_Lower (Name_Buffer (1 .. Name_Len)); if Name_Buffer (1 .. Name_Len) = "true" then Project.Externally_Built := True; elsif Name_Buffer (1 .. Name_Len) /= "false" then Error_Msg (Data.Flags, "Externally_Built may only be true or false", Externally_Built.Location, Project); end if; end if; -- A virtual project extending an externally built project is itself -- externally built. if Project.Virtual and then Project.Extends /= No_Project then Project.Externally_Built := Project.Extends.Externally_Built; end if; if Current_Verbosity = High then Write_Str ("Project is "); if not Project.Externally_Built then Write_Str ("not "); end if; Write_Line ("externally built."); end if; end Check_If_Externally_Built; ---------------------- -- Check_Interfaces -- ---------------------- procedure Check_Interfaces (Project : Project_Id; Data : in out Tree_Processing_Data) is Interfaces : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Interfaces, Project.Decl.Attributes, Data.Tree); Library_Interface : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Interface, Project.Decl.Attributes, Data.Tree); List : String_List_Id; Element : String_Element; Name : File_Name_Type; Iter : Source_Iterator; Source : Source_Id; Project_2 : Project_Id; Other : Source_Id; begin if not Interfaces.Default then -- Set In_Interfaces to False for all sources. It will be set to True -- later for the sources in the Interfaces list. Project_2 := Project; while Project_2 /= No_Project loop Iter := For_Each_Source (Data.Tree, Project_2); loop Source := Prj.Element (Iter); exit when Source = No_Source; Source.In_Interfaces := False; Next (Iter); end loop; Project_2 := Project_2.Extends; end loop; List := Interfaces.Values; while List /= Nil_String loop Element := Data.Tree.String_Elements.Table (List); Name := Canonical_Case_File_Name (Element.Value); Project_2 := Project; Big_Loop : while Project_2 /= No_Project loop Iter := For_Each_Source (Data.Tree, Project_2); loop Source := Prj.Element (Iter); exit when Source = No_Source; if Source.File = Name then if not Source.Locally_Removed then Source.In_Interfaces := True; Source.Declared_In_Interfaces := True; Other := Other_Part (Source); if Other /= No_Source then Other.In_Interfaces := True; Other.Declared_In_Interfaces := True; end if; if Current_Verbosity = High then Write_Str (" interface: "); Write_Line (Get_Name_String (Source.Path.Name)); end if; end if; exit Big_Loop; end if; Next (Iter); end loop; Project_2 := Project_2.Extends; end loop Big_Loop; if Source = No_Source then Error_Msg_File_1 := File_Name_Type (Element.Value); Error_Msg_Name_1 := Project.Name; Error_Msg (Data.Flags, "{ cannot be an interface of project %% " & "as it is not one of its sources", Element.Location, Project); end if; List := Element.Next; end loop; Project.Interfaces_Defined := True; elsif Project.Library and then not Library_Interface.Default then -- Set In_Interfaces to False for all sources. It will be set to True -- later for the sources in the Library_Interface list. Project_2 := Project; while Project_2 /= No_Project loop Iter := For_Each_Source (Data.Tree, Project_2); loop Source := Prj.Element (Iter); exit when Source = No_Source; Source.In_Interfaces := False; Next (Iter); end loop; Project_2 := Project_2.Extends; end loop; List := Library_Interface.Values; while List /= Nil_String loop Element := Data.Tree.String_Elements.Table (List); Get_Name_String (Element.Value); To_Lower (Name_Buffer (1 .. Name_Len)); Name := Name_Find; Project_2 := Project; Big_Loop_2 : while Project_2 /= No_Project loop Iter := For_Each_Source (Data.Tree, Project_2); loop Source := Prj.Element (Iter); exit when Source = No_Source; if Source.Unit /= No_Unit_Index and then Source.Unit.Name = Name_Id (Name) then if not Source.Locally_Removed then Source.In_Interfaces := True; Source.Declared_In_Interfaces := True; Other := Other_Part (Source); if Other /= No_Source then Other.In_Interfaces := True; Other.Declared_In_Interfaces := True; end if; if Current_Verbosity = High then Write_Str (" interface: "); Write_Line (Get_Name_String (Source.Path.Name)); end if; end if; exit Big_Loop_2; end if; Next (Iter); end loop; Project_2 := Project_2.Extends; end loop Big_Loop_2; List := Element.Next; end loop; Project.Interfaces_Defined := True; elsif Project.Extends /= No_Project and then Project.Extends.Interfaces_Defined then Project.Interfaces_Defined := True; Iter := For_Each_Source (Data.Tree, Project); loop Source := Prj.Element (Iter); exit when Source = No_Source; if not Source.Declared_In_Interfaces then Source.In_Interfaces := False; end if; Next (Iter); end loop; end if; end Check_Interfaces; -------------------------- -- Check_Package_Naming -- -------------------------- procedure Check_Package_Naming (Project : Project_Id; Data : in out Tree_Processing_Data) is Naming_Id : constant Package_Id := Util.Value_Of (Name_Naming, Project.Decl.Packages, Data.Tree); Naming : Package_Element; Ada_Body_Suffix_Loc : Source_Ptr := No_Location; procedure Check_Naming; -- Check the validity of the Naming package (suffixes valid, ...) procedure Check_Common (Dot_Replacement : in out File_Name_Type; Casing : in out Casing_Type; Casing_Defined : out Boolean; Separate_Suffix : in out File_Name_Type; Sep_Suffix_Loc : out Source_Ptr); -- Check attributes common procedure Process_Exceptions_File_Based (Lang_Id : Language_Ptr; Kind : Source_Kind); procedure Process_Exceptions_Unit_Based (Lang_Id : Language_Ptr; Kind : Source_Kind); -- Process the naming exceptions for the two types of languages procedure Initialize_Naming_Data; -- Initialize internal naming data for the various languages ------------------ -- Check_Common -- ------------------ procedure Check_Common (Dot_Replacement : in out File_Name_Type; Casing : in out Casing_Type; Casing_Defined : out Boolean; Separate_Suffix : in out File_Name_Type; Sep_Suffix_Loc : out Source_Ptr) is Dot_Repl : constant Variable_Value := Util.Value_Of (Name_Dot_Replacement, Naming.Decl.Attributes, Data.Tree); Casing_String : constant Variable_Value := Util.Value_Of (Name_Casing, Naming.Decl.Attributes, Data.Tree); Sep_Suffix : constant Variable_Value := Util.Value_Of (Name_Separate_Suffix, Naming.Decl.Attributes, Data.Tree); Dot_Repl_Loc : Source_Ptr; begin Sep_Suffix_Loc := No_Location; if not Dot_Repl.Default then pragma Assert (Dot_Repl.Kind = Single, "Dot_Replacement is not a string"); if Length_Of_Name (Dot_Repl.Value) = 0 then Error_Msg (Data.Flags, "Dot_Replacement cannot be empty", Dot_Repl.Location, Project); end if; Dot_Replacement := Canonical_Case_File_Name (Dot_Repl.Value); Dot_Repl_Loc := Dot_Repl.Location; declare Repl : constant String := Get_Name_String (Dot_Replacement); begin -- Dot_Replacement cannot -- - be empty -- - start or end with an alphanumeric -- - be a single '_' -- - start with an '_' followed by an alphanumeric -- - contain a '.' except if it is "." if Repl'Length = 0 or else Is_Alphanumeric (Repl (Repl'First)) or else Is_Alphanumeric (Repl (Repl'Last)) or else (Repl (Repl'First) = '_' and then (Repl'Length = 1 or else Is_Alphanumeric (Repl (Repl'First + 1)))) or else (Repl'Length > 1 and then Index (Source => Repl, Pattern => ".") /= 0) then Error_Msg (Data.Flags, '"' & Repl & """ is illegal for Dot_Replacement.", Dot_Repl_Loc, Project); end if; end; end if; if Dot_Replacement /= No_File then Write_Attr ("Dot_Replacement", Get_Name_String (Dot_Replacement)); end if; Casing_Defined := False; if not Casing_String.Default then pragma Assert (Casing_String.Kind = Single, "Casing is not a string"); declare Casing_Image : constant String := Get_Name_String (Casing_String.Value); begin if Casing_Image'Length = 0 then Error_Msg (Data.Flags, "Casing cannot be an empty string", Casing_String.Location, Project); end if; Casing := Value (Casing_Image); Casing_Defined := True; exception when Constraint_Error => Name_Len := Casing_Image'Length; Name_Buffer (1 .. Name_Len) := Casing_Image; Err_Vars.Error_Msg_Name_1 := Name_Find; Error_Msg (Data.Flags, "%% is not a correct Casing", Casing_String.Location, Project); end; end if; Write_Attr ("Casing", Image (Casing)); if not Sep_Suffix.Default then if Length_Of_Name (Sep_Suffix.Value) = 0 then Error_Msg (Data.Flags, "Separate_Suffix cannot be empty", Sep_Suffix.Location, Project); else Separate_Suffix := Canonical_Case_File_Name (Sep_Suffix.Value); Sep_Suffix_Loc := Sep_Suffix.Location; Check_Illegal_Suffix (Project, Separate_Suffix, Dot_Replacement, "Separate_Suffix", Sep_Suffix.Location, Data); end if; end if; if Separate_Suffix /= No_File then Write_Attr ("Separate_Suffix", Get_Name_String (Separate_Suffix)); end if; end Check_Common; ----------------------------------- -- Process_Exceptions_File_Based -- ----------------------------------- procedure Process_Exceptions_File_Based (Lang_Id : Language_Ptr; Kind : Source_Kind) is Lang : constant Name_Id := Lang_Id.Name; Exceptions : Array_Element_Id; Exception_List : Variable_Value; Element_Id : String_List_Id; Element : String_Element; File_Name : File_Name_Type; Source : Source_Id; begin case Kind is when Impl | Sep => Exceptions := Value_Of (Name_Implementation_Exceptions, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); when Spec => Exceptions := Value_Of (Name_Specification_Exceptions, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); end case; Exception_List := Value_Of (Index => Lang, In_Array => Exceptions, In_Tree => Data.Tree); if Exception_List /= Nil_Variable_Value then Element_Id := Exception_List.Values; while Element_Id /= Nil_String loop Element := Data.Tree.String_Elements.Table (Element_Id); File_Name := Canonical_Case_File_Name (Element.Value); Source := Source_Files_Htable.Get (Data.Tree.Source_Files_HT, File_Name); while Source /= No_Source and then Source.Project /= Project loop Source := Source.Next_With_File_Name; end loop; if Source = No_Source then Add_Source (Id => Source, Data => Data, Project => Project, Source_Dir_Rank => 0, Lang_Id => Lang_Id, Kind => Kind, File_Name => File_Name, Display_File => File_Name_Type (Element.Value), Naming_Exception => True, Location => Element.Location); else -- Check if the file name is already recorded for another -- language or another kind. if Source.Language /= Lang_Id then Error_Msg (Data.Flags, "the same file cannot be a source of two languages", Element.Location, Project); elsif Source.Kind /= Kind then Error_Msg (Data.Flags, "the same file cannot be a source and a template", Element.Location, Project); end if; -- If the file is already recorded for the same -- language and the same kind, it means that the file -- name appears several times in the *_Exceptions -- attribute; so there is nothing to do. end if; Element_Id := Element.Next; end loop; end if; end Process_Exceptions_File_Based; ----------------------------------- -- Process_Exceptions_Unit_Based -- ----------------------------------- procedure Process_Exceptions_Unit_Based (Lang_Id : Language_Ptr; Kind : Source_Kind) is Lang : constant Name_Id := Lang_Id.Name; Exceptions : Array_Element_Id; Element : Array_Element; Unit : Name_Id; Index : Int; File_Name : File_Name_Type; Source : Source_Id; begin case Kind is when Impl | Sep => Exceptions := Value_Of (Name_Body, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); if Exceptions = No_Array_Element then Exceptions := Value_Of (Name_Implementation, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); end if; when Spec => Exceptions := Value_Of (Name_Spec, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); if Exceptions = No_Array_Element then Exceptions := Value_Of (Name_Spec, In_Arrays => Naming.Decl.Arrays, In_Tree => Data.Tree); end if; end case; while Exceptions /= No_Array_Element loop Element := Data.Tree.Array_Elements.Table (Exceptions); File_Name := Canonical_Case_File_Name (Element.Value.Value); Get_Name_String (Element.Index); To_Lower (Name_Buffer (1 .. Name_Len)); Unit := Name_Find; Index := Element.Value.Index; -- For Ada, check if it is a valid unit name if Lang = Name_Ada then Get_Name_String (Element.Index); Check_Ada_Name (Name_Buffer (1 .. Name_Len), Unit); if Unit = No_Name then Err_Vars.Error_Msg_Name_1 := Element.Index; Error_Msg (Data.Flags, "%% is not a valid unit name.", Element.Value.Location, Project); end if; end if; if Unit /= No_Name then Add_Source (Id => Source, Data => Data, Project => Project, Source_Dir_Rank => 0, Lang_Id => Lang_Id, Kind => Kind, File_Name => File_Name, Display_File => File_Name_Type (Element.Value.Value), Unit => Unit, Index => Index, Location => Element.Value.Location, Naming_Exception => True); end if; Exceptions := Element.Next; end loop; end Process_Exceptions_Unit_Based; ------------------ -- Check_Naming -- ------------------ procedure Check_Naming is Dot_Replacement : File_Name_Type := File_Name_Type (First_Name_Id + Character'Pos ('-')); Separate_Suffix : File_Name_Type := No_File; Casing : Casing_Type := All_Lower_Case; Casing_Defined : Boolean; Lang_Id : Language_Ptr; Sep_Suffix_Loc : Source_Ptr; Suffix : Variable_Value; Lang : Name_Id; begin Check_Common (Dot_Replacement => Dot_Replacement, Casing => Casing, Casing_Defined => Casing_Defined, Separate_Suffix => Separate_Suffix, Sep_Suffix_Loc => Sep_Suffix_Loc); -- For all unit based languages, if any, set the specified value -- of Dot_Replacement, Casing and/or Separate_Suffix. Do not -- systematically overwrite, since the defaults come from the -- configuration file. if Dot_Replacement /= No_File or else Casing_Defined or else Separate_Suffix /= No_File then Lang_Id := Project.Languages; while Lang_Id /= No_Language_Index loop if Lang_Id.Config.Kind = Unit_Based then if Dot_Replacement /= No_File then Lang_Id.Config.Naming_Data.Dot_Replacement := Dot_Replacement; end if; if Casing_Defined then Lang_Id.Config.Naming_Data.Casing := Casing; end if; end if; Lang_Id := Lang_Id.Next; end loop; end if; -- Next, get the spec and body suffixes Lang_Id := Project.Languages; while Lang_Id /= No_Language_Index loop Lang := Lang_Id.Name; -- Spec_Suffix Suffix := Value_Of (Name => Lang, Attribute_Or_Array_Name => Name_Spec_Suffix, In_Package => Naming_Id, In_Tree => Data.Tree); if Suffix = Nil_Variable_Value then Suffix := Value_Of (Name => Lang, Attribute_Or_Array_Name => Name_Specification_Suffix, In_Package => Naming_Id, In_Tree => Data.Tree); end if; if Suffix /= Nil_Variable_Value then Lang_Id.Config.Naming_Data.Spec_Suffix := File_Name_Type (Suffix.Value); Check_Illegal_Suffix (Project, Lang_Id.Config.Naming_Data.Spec_Suffix, Lang_Id.Config.Naming_Data.Dot_Replacement, "Spec_Suffix", Suffix.Location, Data); Write_Attr ("Spec_Suffix", Get_Name_String (Lang_Id.Config.Naming_Data.Spec_Suffix)); end if; -- Body_Suffix Suffix := Value_Of (Name => Lang, Attribute_Or_Array_Name => Name_Body_Suffix, In_Package => Naming_Id, In_Tree => Data.Tree); if Suffix = Nil_Variable_Value then Suffix := Value_Of (Name => Lang, Attribute_Or_Array_Name => Name_Implementation_Suffix, In_Package => Naming_Id, In_Tree => Data.Tree); end if; if Suffix /= Nil_Variable_Value then Lang_Id.Config.Naming_Data.Body_Suffix := File_Name_Type (Suffix.Value); -- The default value of separate suffix should be the same as -- the body suffix, so we need to compute that first. if Separate_Suffix = No_File then Lang_Id.Config.Naming_Data.Separate_Suffix := Lang_Id.Config.Naming_Data.Body_Suffix; Write_Attr ("Sep_Suffix", Get_Name_String (Lang_Id.Config.Naming_Data.Separate_Suffix)); else Lang_Id.Config.Naming_Data.Separate_Suffix := Separate_Suffix; end if; Check_Illegal_Suffix (Project, Lang_Id.Config.Naming_Data.Body_Suffix, Lang_Id.Config.Naming_Data.Dot_Replacement, "Body_Suffix", Suffix.Location, Data); Write_Attr ("Body_Suffix", Get_Name_String (Lang_Id.Config.Naming_Data.Body_Suffix)); elsif Separate_Suffix /= No_File then Lang_Id.Config.Naming_Data.Separate_Suffix := Separate_Suffix; end if; -- Spec_Suffix cannot be equal to Body_Suffix or Separate_Suffix, -- since that would cause a clear ambiguity. Note that we do allow -- a Spec_Suffix to have the same termination as one of these, -- which causes a potential ambiguity, but we resolve that by -- matching the longest possible suffix. if Lang_Id.Config.Naming_Data.Spec_Suffix /= No_File and then Lang_Id.Config.Naming_Data.Spec_Suffix = Lang_Id.Config.Naming_Data.Body_Suffix then Error_Msg (Data.Flags, "Body_Suffix (""" & Get_Name_String (Lang_Id.Config.Naming_Data.Body_Suffix) & """) cannot be the same as Spec_Suffix.", Ada_Body_Suffix_Loc, Project); end if; if Lang_Id.Config.Naming_Data.Body_Suffix /= Lang_Id.Config.Naming_Data.Separate_Suffix and then Lang_Id.Config.Naming_Data.Spec_Suffix = Lang_Id.Config.Naming_Data.Separate_Suffix then Error_Msg (Data.Flags, "Separate_Suffix (""" & Get_Name_String (Lang_Id.Config.Naming_Data.Separate_Suffix) & """) cannot be the same as Spec_Suffix.", Sep_Suffix_Loc, Project); end if; Lang_Id := Lang_Id.Next; end loop; -- Get the naming exceptions for all languages for Kind in Spec_Or_Body loop Lang_Id := Project.Languages; while Lang_Id /= No_Language_Index loop case Lang_Id.Config.Kind is when File_Based => Process_Exceptions_File_Based (Lang_Id, Kind); when Unit_Based => Process_Exceptions_Unit_Based (Lang_Id, Kind); end case; Lang_Id := Lang_Id.Next; end loop; end loop; end Check_Naming; ---------------------------- -- Initialize_Naming_Data -- ---------------------------- procedure Initialize_Naming_Data is Specs : Array_Element_Id := Util.Value_Of (Name_Spec_Suffix, Naming.Decl.Arrays, Data.Tree); Impls : Array_Element_Id := Util.Value_Of (Name_Body_Suffix, Naming.Decl.Arrays, Data.Tree); Lang : Language_Ptr; Lang_Name : Name_Id; Value : Variable_Value; Extended : Project_Id; begin -- At this stage, the project already contains the default extensions -- for the various languages. We now merge those suffixes read in the -- user project, and they override the default. while Specs /= No_Array_Element loop Lang_Name := Data.Tree.Array_Elements.Table (Specs).Index; Lang := Get_Language_From_Name (Project, Name => Get_Name_String (Lang_Name)); -- An extending project inherits its parent projects' languages -- so if needed we should create entries for those languages if Lang = null then Extended := Project.Extends; while Extended /= null loop Lang := Get_Language_From_Name (Extended, Name => Get_Name_String (Lang_Name)); exit when Lang /= null; Extended := Extended.Extends; end loop; if Lang /= null then Lang := new Language_Data'(Lang.all); Lang.First_Source := null; Lang.Next := Project.Languages; Project.Languages := Lang; end if; end if; -- If language was not found in project or the projects it extends if Lang = null then if Current_Verbosity = High then Write_Line ("Ignoring spec naming data for " & Get_Name_String (Lang_Name) & " since language is not defined for this project"); end if; else Value := Data.Tree.Array_Elements.Table (Specs).Value; if Value.Kind = Single then Lang.Config.Naming_Data.Spec_Suffix := Canonical_Case_File_Name (Value.Value); end if; end if; Specs := Data.Tree.Array_Elements.Table (Specs).Next; end loop; while Impls /= No_Array_Element loop Lang_Name := Data.Tree.Array_Elements.Table (Impls).Index; Lang := Get_Language_From_Name (Project, Name => Get_Name_String (Lang_Name)); if Lang = null then if Current_Verbosity = High then Write_Line ("Ignoring impl naming data for " & Get_Name_String (Lang_Name) & " since language is not defined for this project"); end if; else Value := Data.Tree.Array_Elements.Table (Impls).Value; if Lang.Name = Name_Ada then Ada_Body_Suffix_Loc := Value.Location; end if; if Value.Kind = Single then Lang.Config.Naming_Data.Body_Suffix := Canonical_Case_File_Name (Value.Value); end if; end if; Impls := Data.Tree.Array_Elements.Table (Impls).Next; end loop; end Initialize_Naming_Data; -- Start of processing for Check_Naming_Schemes begin -- No Naming package or parsing a configuration file? nothing to do if Naming_Id /= No_Package and then Project.Qualifier /= Configuration then Naming := Data.Tree.Packages.Table (Naming_Id); if Current_Verbosity = High then Write_Line ("Checking package Naming for project " & Get_Name_String (Project.Name)); end if; Initialize_Naming_Data; Check_Naming; end if; end Check_Package_Naming; ------------------------------ -- Check_Library_Attributes -- ------------------------------ procedure Check_Library_Attributes (Project : Project_Id; Data : in out Tree_Processing_Data) is Attributes : constant Prj.Variable_Id := Project.Decl.Attributes; Lib_Dir : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Dir, Attributes, Data.Tree); Lib_Name : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Name, Attributes, Data.Tree); Lib_Version : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Version, Attributes, Data.Tree); Lib_ALI_Dir : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Ali_Dir, Attributes, Data.Tree); Lib_GCC : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_GCC, Attributes, Data.Tree); The_Lib_Kind : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Kind, Attributes, Data.Tree); Imported_Project_List : Project_List; Continuation : String_Access := No_Continuation_String'Access; Support_For_Libraries : Library_Support; Library_Directory_Present : Boolean; procedure Check_Library (Proj : Project_Id; Extends : Boolean); -- Check if an imported or extended project if also a library project ------------------- -- Check_Library -- ------------------- procedure Check_Library (Proj : Project_Id; Extends : Boolean) is Src_Id : Source_Id; Iter : Source_Iterator; begin if Proj /= No_Project then if not Proj.Library then -- The only not library projects that are OK are those that -- have no sources. However, header files from non-Ada -- languages are OK, as there is nothing to compile. Iter := For_Each_Source (Data.Tree, Proj); loop Src_Id := Prj.Element (Iter); exit when Src_Id = No_Source or else Src_Id.Language.Config.Kind /= File_Based or else Src_Id.Kind /= Spec; Next (Iter); end loop; if Src_Id /= No_Source then Error_Msg_Name_1 := Project.Name; Error_Msg_Name_2 := Proj.Name; if Extends then if Project.Library_Kind /= Static then Error_Msg (Data.Flags, Continuation.all & "shared library project %% cannot extend " & "project %% that is not a library project", Project.Location, Project); Continuation := Continuation_String'Access; end if; elsif (not Unchecked_Shared_Lib_Imports) and then Project.Library_Kind /= Static then Error_Msg (Data.Flags, Continuation.all & "shared library project %% cannot import project %% " & "that is not a shared library project", Project.Location, Project); Continuation := Continuation_String'Access; end if; end if; elsif Project.Library_Kind /= Static and then Proj.Library_Kind = Static then Error_Msg_Name_1 := Project.Name; Error_Msg_Name_2 := Proj.Name; if Extends then Error_Msg (Data.Flags, Continuation.all & "shared library project %% cannot extend static " & "library project %%", Project.Location, Project); Continuation := Continuation_String'Access; elsif not Unchecked_Shared_Lib_Imports then Error_Msg (Data.Flags, Continuation.all & "shared library project %% cannot import static " & "library project %%", Project.Location, Project); Continuation := Continuation_String'Access; end if; end if; end if; end Check_Library; Dir_Exists : Boolean; -- Start of processing for Check_Library_Attributes begin Library_Directory_Present := Lib_Dir.Value /= Empty_String; -- Special case of extending project if Project.Extends /= No_Project then -- If the project extended is a library project, we inherit the -- library name, if it is not redefined; we check that the library -- directory is specified. if Project.Extends.Library then if Project.Qualifier = Standard then Error_Msg (Data.Flags, "a standard project cannot extend a library project", Project.Location, Project); else if Lib_Name.Default then Project.Library_Name := Project.Extends.Library_Name; end if; if Lib_Dir.Default then if not Project.Virtual then Error_Msg (Data.Flags, "a project extending a library project must " & "specify an attribute Library_Dir", Project.Location, Project); else -- For a virtual project extending a library project, -- inherit library directory. Project.Library_Dir := Project.Extends.Library_Dir; Library_Directory_Present := True; end if; end if; end if; end if; end if; pragma Assert (Lib_Name.Kind = Single); if Lib_Name.Value = Empty_String then if Current_Verbosity = High and then Project.Library_Name = No_Name then Write_Line ("No library name"); end if; else -- There is no restriction on the syntax of library names Project.Library_Name := Lib_Name.Value; end if; if Project.Library_Name /= No_Name then if Current_Verbosity = High then Write_Attr ("Library name", Get_Name_String (Project.Library_Name)); end if; pragma Assert (Lib_Dir.Kind = Single); if not Library_Directory_Present then if Current_Verbosity = High then Write_Line ("No library directory"); end if; else -- Find path name (unless inherited), check that it is a directory if Project.Library_Dir = No_Path_Information then Locate_Directory (Project, File_Name_Type (Lib_Dir.Value), Path => Project.Library_Dir, Dir_Exists => Dir_Exists, Data => Data, Create => "library", Must_Exist => False, Location => Lib_Dir.Location, Externally_Built => Project.Externally_Built); else Dir_Exists := Is_Directory (Get_Name_String (Project.Library_Dir.Display_Name)); end if; if not Dir_Exists then -- Get the absolute name of the library directory that -- does not exist, to report an error. Err_Vars.Error_Msg_File_1 := File_Name_Type (Project.Library_Dir.Display_Name); Error_Msg (Data.Flags, "library directory { does not exist", Lib_Dir.Location, Project); elsif not Project.Externally_Built then -- The library directory cannot be the same as the Object -- directory. if Project.Library_Dir.Name = Project.Object_Directory.Name then Error_Msg (Data.Flags, "library directory cannot be the same " & "as object directory", Lib_Dir.Location, Project); Project.Library_Dir := No_Path_Information; else declare OK : Boolean := True; Dirs_Id : String_List_Id; Dir_Elem : String_Element; Pid : Project_List; begin -- The library directory cannot be the same as a source -- directory of the current project. Dirs_Id := Project.Source_Dirs; while Dirs_Id /= Nil_String loop Dir_Elem := Data.Tree.String_Elements.Table (Dirs_Id); Dirs_Id := Dir_Elem.Next; if Project.Library_Dir.Name = Path_Name_Type (Dir_Elem.Value) then Err_Vars.Error_Msg_File_1 := File_Name_Type (Dir_Elem.Value); Error_Msg (Data.Flags, "library directory cannot be the same " & "as source directory {", Lib_Dir.Location, Project); OK := False; exit; end if; end loop; if OK then -- The library directory cannot be the same as a -- source directory of another project either. Pid := Data.Tree.Projects; Project_Loop : loop exit Project_Loop when Pid = null; if Pid.Project /= Project then Dirs_Id := Pid.Project.Source_Dirs; Dir_Loop : while Dirs_Id /= Nil_String loop Dir_Elem := Data.Tree.String_Elements.Table (Dirs_Id); Dirs_Id := Dir_Elem.Next; if Project.Library_Dir.Name = Path_Name_Type (Dir_Elem.Value) then Err_Vars.Error_Msg_File_1 := File_Name_Type (Dir_Elem.Value); Err_Vars.Error_Msg_Name_1 := Pid.Project.Name; Error_Msg (Data.Flags, "library directory cannot be the same" & " as source directory { of project %%", Lib_Dir.Location, Project); OK := False; exit Project_Loop; end if; end loop Dir_Loop; end if; Pid := Pid.Next; end loop Project_Loop; end if; if not OK then Project.Library_Dir := No_Path_Information; elsif Current_Verbosity = High then -- Display the Library directory in high verbosity Write_Attr ("Library directory", Get_Name_String (Project.Library_Dir.Display_Name)); end if; end; end if; end if; end if; end if; Project.Library := Project.Library_Dir /= No_Path_Information and then Project.Library_Name /= No_Name; if Project.Extends = No_Project then case Project.Qualifier is when Standard => if Project.Library then Error_Msg (Data.Flags, "a standard project cannot be a library project", Lib_Name.Location, Project); end if; when Library => if not Project.Library then if Project.Library_Dir = No_Path_Information then Error_Msg (Data.Flags, "\attribute Library_Dir not declared", Project.Location, Project); end if; if Project.Library_Name = No_Name then Error_Msg (Data.Flags, "\attribute Library_Name not declared", Project.Location, Project); end if; end if; when others => null; end case; end if; if Project.Library then Support_For_Libraries := Prj.Full; -- Project.Config.Lib_Support; if Support_For_Libraries = Prj.None then Error_Msg (Data.Flags, "?libraries are not supported on this platform", Lib_Name.Location, Project); Project.Library := False; else if Lib_ALI_Dir.Value = Empty_String then if Current_Verbosity = High then Write_Line ("No library ALI directory specified"); end if; Project.Library_ALI_Dir := Project.Library_Dir; else -- Find path name, check that it is a directory Locate_Directory (Project, File_Name_Type (Lib_ALI_Dir.Value), Path => Project.Library_ALI_Dir, Create => "library ALI", Dir_Exists => Dir_Exists, Data => Data, Must_Exist => False, Location => Lib_ALI_Dir.Location, Externally_Built => Project.Externally_Built); if not Dir_Exists then -- Get the absolute name of the library ALI directory that -- does not exist, to report an error. Err_Vars.Error_Msg_File_1 := File_Name_Type (Project.Library_ALI_Dir.Display_Name); Error_Msg (Data.Flags, "library 'A'L'I directory { does not exist", Lib_ALI_Dir.Location, Project); end if; if (not Project.Externally_Built) and then Project.Library_ALI_Dir /= Project.Library_Dir then -- The library ALI directory cannot be the same as the -- Object directory. if Project.Library_ALI_Dir = Project.Object_Directory then Error_Msg (Data.Flags, "library 'A'L'I directory cannot be the same " & "as object directory", Lib_ALI_Dir.Location, Project); Project.Library_ALI_Dir := No_Path_Information; else declare OK : Boolean := True; Dirs_Id : String_List_Id; Dir_Elem : String_Element; Pid : Project_List; begin -- The library ALI directory cannot be the same as -- a source directory of the current project. Dirs_Id := Project.Source_Dirs; while Dirs_Id /= Nil_String loop Dir_Elem := Data.Tree.String_Elements.Table (Dirs_Id); Dirs_Id := Dir_Elem.Next; if Project.Library_ALI_Dir.Name = Path_Name_Type (Dir_Elem.Value) then Err_Vars.Error_Msg_File_1 := File_Name_Type (Dir_Elem.Value); Error_Msg (Data.Flags, "library 'A'L'I directory cannot be " & "the same as source directory {", Lib_ALI_Dir.Location, Project); OK := False; exit; end if; end loop; if OK then -- The library ALI directory cannot be the same as -- a source directory of another project either. Pid := Data.Tree.Projects; ALI_Project_Loop : loop exit ALI_Project_Loop when Pid = null; if Pid.Project /= Project then Dirs_Id := Pid.Project.Source_Dirs; ALI_Dir_Loop : while Dirs_Id /= Nil_String loop Dir_Elem := Data.Tree.String_Elements.Table (Dirs_Id); Dirs_Id := Dir_Elem.Next; if Project.Library_ALI_Dir.Name = Path_Name_Type (Dir_Elem.Value) then Err_Vars.Error_Msg_File_1 := File_Name_Type (Dir_Elem.Value); Err_Vars.Error_Msg_Name_1 := Pid.Project.Name; Error_Msg (Data.Flags, "library 'A'L'I directory cannot " & "be the same as source directory " & "{ of project %%", Lib_ALI_Dir.Location, Project); OK := False; exit ALI_Project_Loop; end if; end loop ALI_Dir_Loop; end if; Pid := Pid.Next; end loop ALI_Project_Loop; end if; if not OK then Project.Library_ALI_Dir := No_Path_Information; elsif Current_Verbosity = High then -- Display Library ALI directory in high verbosity Write_Attr ("Library ALI dir", Get_Name_String (Project.Library_ALI_Dir.Display_Name)); end if; end; end if; end if; end if; pragma Assert (Lib_Version.Kind = Single); if Lib_Version.Value = Empty_String then if Current_Verbosity = High then Write_Line ("No library version specified"); end if; else Project.Lib_Internal_Name := Lib_Version.Value; end if; pragma Assert (The_Lib_Kind.Kind = Single); if The_Lib_Kind.Value = Empty_String then if Current_Verbosity = High then Write_Line ("No library kind specified"); end if; else Get_Name_String (The_Lib_Kind.Value); declare Kind_Name : constant String := To_Lower (Name_Buffer (1 .. Name_Len)); OK : Boolean := True; begin if Kind_Name = "static" then Project.Library_Kind := Static; elsif Kind_Name = "dynamic" then Project.Library_Kind := Dynamic; elsif Kind_Name = "relocatable" then Project.Library_Kind := Relocatable; else Error_Msg (Data.Flags, "illegal value for Library_Kind", The_Lib_Kind.Location, Project); OK := False; end if; if Current_Verbosity = High and then OK then Write_Attr ("Library kind", Kind_Name); end if; if Project.Library_Kind /= Static then if Support_For_Libraries = Prj.Static_Only then Error_Msg (Data.Flags, "only static libraries are supported " & "on this platform", The_Lib_Kind.Location, Project); Project.Library := False; else -- Check if (obsolescent) attribute Library_GCC or -- Linker'Driver is declared. if Lib_GCC.Value /= Empty_String then Error_Msg (Data.Flags, "?Library_'G'C'C is an obsolescent attribute, " & "use Linker''Driver instead", Lib_GCC.Location, Project); Project.Config.Shared_Lib_Driver := File_Name_Type (Lib_GCC.Value); else declare Linker : constant Package_Id := Value_Of (Name_Linker, Project.Decl.Packages, Data.Tree); Driver : constant Variable_Value := Value_Of (Name => No_Name, Attribute_Or_Array_Name => Name_Driver, In_Package => Linker, In_Tree => Data.Tree); begin if Driver /= Nil_Variable_Value and then Driver.Value /= Empty_String then Project.Config.Shared_Lib_Driver := File_Name_Type (Driver.Value); end if; end; end if; end if; end if; end; end if; if Project.Library then if Current_Verbosity = High then Write_Line ("This is a library project file"); end if; Check_Library (Project.Extends, Extends => True); Imported_Project_List := Project.Imported_Projects; while Imported_Project_List /= null loop Check_Library (Imported_Project_List.Project, Extends => False); Imported_Project_List := Imported_Project_List.Next; end loop; end if; end if; end if; -- Check if Linker'Switches or Linker'Default_Switches are declared. -- Warn if they are declared, as it is a common error to think that -- library are "linked" with Linker switches. if Project.Library then declare Linker_Package_Id : constant Package_Id := Util.Value_Of (Name_Linker, Project.Decl.Packages, Data.Tree); Linker_Package : Package_Element; Switches : Array_Element_Id := No_Array_Element; begin if Linker_Package_Id /= No_Package then Linker_Package := Data.Tree.Packages.Table (Linker_Package_Id); Switches := Value_Of (Name => Name_Switches, In_Arrays => Linker_Package.Decl.Arrays, In_Tree => Data.Tree); if Switches = No_Array_Element then Switches := Value_Of (Name => Name_Default_Switches, In_Arrays => Linker_Package.Decl.Arrays, In_Tree => Data.Tree); end if; if Switches /= No_Array_Element then Error_Msg (Data.Flags, "?Linker switches not taken into account in library " & "projects", No_Location, Project); end if; end if; end; end if; if Project.Extends /= No_Project and then Project.Extends.Library then -- Remove the library name from Lib_Data_Table for J in 1 .. Lib_Data_Table.Last loop if Lib_Data_Table.Table (J).Proj = Project.Extends then Lib_Data_Table.Table (J) := Lib_Data_Table.Table (Lib_Data_Table.Last); Lib_Data_Table.Set_Last (Lib_Data_Table.Last - 1); exit; end if; end loop; Project.Extends.Library := False; end if; if Project.Library and then not Lib_Name.Default then -- Check if the same library name is used in an other library project for J in 1 .. Lib_Data_Table.Last loop if Lib_Data_Table.Table (J).Name = Project.Library_Name then Error_Msg_Name_1 := Lib_Data_Table.Table (J).Proj.Name; Error_Msg (Data.Flags, "Library name cannot be the same as in project %%", Lib_Name.Location, Project); Project.Library := False; exit; end if; end loop; end if; if Project.Library then -- Record the library name Lib_Data_Table.Append ((Name => Project.Library_Name, Proj => Project)); end if; end Check_Library_Attributes; --------------------------------- -- Check_Programming_Languages -- --------------------------------- procedure Check_Programming_Languages (Project : Project_Id; Data : in out Tree_Processing_Data) is Languages : Variable_Value := Nil_Variable_Value; Def_Lang : Variable_Value := Nil_Variable_Value; Def_Lang_Id : Name_Id; procedure Add_Language (Name, Display_Name : Name_Id); -- Add a new language to the list of languages for the project. -- Nothing is done if the language has already been defined ------------------ -- Add_Language -- ------------------ procedure Add_Language (Name, Display_Name : Name_Id) is Lang : Language_Ptr; begin Lang := Project.Languages; while Lang /= No_Language_Index loop if Name = Lang.Name then return; end if; Lang := Lang.Next; end loop; Lang := new Language_Data'(No_Language_Data); Lang.Next := Project.Languages; Project.Languages := Lang; Lang.Name := Name; Lang.Display_Name := Display_Name; if Name = Name_Ada then Lang.Config.Kind := Unit_Based; Lang.Config.Dependency_Kind := ALI_File; else Lang.Config.Kind := File_Based; end if; end Add_Language; -- Start of processing for Check_Programming_Languages begin Project.Languages := null; Languages := Prj.Util.Value_Of (Name_Languages, Project.Decl.Attributes, Data.Tree); Def_Lang := Prj.Util.Value_Of (Name_Default_Language, Project.Decl.Attributes, Data.Tree); if Project.Source_Dirs /= Nil_String then -- Check if languages are specified in this project if Languages.Default then -- Fail if there is no default language defined if Def_Lang.Default then Error_Msg (Data.Flags, "no languages defined for this project", Project.Location, Project); Def_Lang_Id := No_Name; else Get_Name_String (Def_Lang.Value); To_Lower (Name_Buffer (1 .. Name_Len)); Def_Lang_Id := Name_Find; end if; if Def_Lang_Id /= No_Name then Get_Name_String (Def_Lang_Id); Name_Buffer (1) := GNAT.Case_Util.To_Upper (Name_Buffer (1)); Add_Language (Name => Def_Lang_Id, Display_Name => Name_Find); end if; else declare Current : String_List_Id := Languages.Values; Element : String_Element; begin -- If there are no languages declared, there are no sources if Current = Nil_String then Project.Source_Dirs := Nil_String; if Project.Qualifier = Standard then Error_Msg (Data.Flags, "a standard project must have at least one language", Languages.Location, Project); end if; else -- Look through all the languages specified in attribute -- Languages. while Current /= Nil_String loop Element := Data.Tree.String_Elements.Table (Current); Get_Name_String (Element.Value); To_Lower (Name_Buffer (1 .. Name_Len)); Add_Language (Name => Name_Find, Display_Name => Element.Value); Current := Element.Next; end loop; end if; end; end if; end if; end Check_Programming_Languages; ------------------------------- -- Check_Stand_Alone_Library -- ------------------------------- procedure Check_Stand_Alone_Library (Project : Project_Id; Data : in out Tree_Processing_Data) is Lib_Interfaces : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Interface, Project.Decl.Attributes, Data.Tree); Lib_Auto_Init : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Auto_Init, Project.Decl.Attributes, Data.Tree); Lib_Src_Dir : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Src_Dir, Project.Decl.Attributes, Data.Tree); Lib_Symbol_File : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Symbol_File, Project.Decl.Attributes, Data.Tree); Lib_Symbol_Policy : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Symbol_Policy, Project.Decl.Attributes, Data.Tree); Lib_Ref_Symbol_File : constant Prj.Variable_Value := Prj.Util.Value_Of (Snames.Name_Library_Reference_Symbol_File, Project.Decl.Attributes, Data.Tree); Auto_Init_Supported : Boolean; OK : Boolean := True; Source : Source_Id; Next_Proj : Project_Id; Iter : Source_Iterator; begin Auto_Init_Supported := Project.Config.Auto_Init_Supported; pragma Assert (Lib_Interfaces.Kind = List); -- It is a stand-alone library project file if attribute -- Library_Interface is defined. if not Lib_Interfaces.Default then declare Interfaces : String_List_Id := Lib_Interfaces.Values; Interface_ALIs : String_List_Id := Nil_String; Unit : Name_Id; begin Project.Standalone_Library := True; -- Library_Interface cannot be an empty list if Interfaces = Nil_String then Error_Msg (Data.Flags, "Library_Interface cannot be an empty list", Lib_Interfaces.Location, Project); end if; -- Process each unit name specified in the attribute -- Library_Interface. while Interfaces /= Nil_String loop Get_Name_String (Data.Tree.String_Elements.Table (Interfaces).Value); To_Lower (Name_Buffer (1 .. Name_Len)); if Name_Len = 0 then Error_Msg (Data.Flags, "an interface cannot be an empty string", Data.Tree.String_Elements.Table (Interfaces).Location, Project); else Unit := Name_Find; Error_Msg_Name_1 := Unit; Next_Proj := Project.Extends; Iter := For_Each_Source (Data.Tree, Project); loop while Prj.Element (Iter) /= No_Source and then (Prj.Element (Iter).Unit = null or else Prj.Element (Iter).Unit.Name /= Unit) loop Next (Iter); end loop; Source := Prj.Element (Iter); exit when Source /= No_Source or else Next_Proj = No_Project; Iter := For_Each_Source (Data.Tree, Next_Proj); Next_Proj := Next_Proj.Extends; end loop; if Source /= No_Source then if Source.Kind = Sep then Source := No_Source; elsif Source.Kind = Spec and then Other_Part (Source) /= No_Source then Source := Other_Part (Source); end if; end if; if Source /= No_Source then if Source.Project /= Project and then not Is_Extending (Project, Source.Project) then Source := No_Source; end if; end if; if Source = No_Source then Error_Msg (Data.Flags, "%% is not a unit of this project", Data.Tree.String_Elements.Table (Interfaces).Location, Project); else if Source.Kind = Spec and then Other_Part (Source) /= No_Source then Source := Other_Part (Source); end if; String_Element_Table.Increment_Last (Data.Tree.String_Elements); Data.Tree.String_Elements.Table (String_Element_Table.Last (Data.Tree.String_Elements)) := (Value => Name_Id (Source.Dep_Name), Index => 0, Display_Value => Name_Id (Source.Dep_Name), Location => Data.Tree.String_Elements.Table (Interfaces).Location, Flag => False, Next => Interface_ALIs); Interface_ALIs := String_Element_Table.Last (Data.Tree.String_Elements); end if; end if; Interfaces := Data.Tree.String_Elements.Table (Interfaces).Next; end loop; -- Put the list of Interface ALIs in the project data Project.Lib_Interface_ALIs := Interface_ALIs; -- Check value of attribute Library_Auto_Init and set -- Lib_Auto_Init accordingly. if Lib_Auto_Init.Default then -- If no attribute Library_Auto_Init is declared, then set auto -- init only if it is supported. Project.Lib_Auto_Init := Auto_Init_Supported; else Get_Name_String (Lib_Auto_Init.Value); To_Lower (Name_Buffer (1 .. Name_Len)); if Name_Buffer (1 .. Name_Len) = "false" then Project.Lib_Auto_Init := False; elsif Name_Buffer (1 .. Name_Len) = "true" then if Auto_Init_Supported then Project.Lib_Auto_Init := True; else -- Library_Auto_Init cannot be "true" if auto init is not -- supported. Error_Msg (Data.Flags, "library auto init not supported " & "on this platform", Lib_Auto_Init.Location, Project); end if; else Error_Msg (Data.Flags, "invalid value for attribute Library_Auto_Init", Lib_Auto_Init.Location, Project); end if; end if; end; -- If attribute Library_Src_Dir is defined and not the empty string, -- check if the directory exist and is not the object directory or -- one of the source directories. This is the directory where copies -- of the interface sources will be copied. Note that this directory -- may be the library directory. if Lib_Src_Dir.Value /= Empty_String then declare Dir_Id : constant File_Name_Type := File_Name_Type (Lib_Src_Dir.Value); Dir_Exists : Boolean; begin Locate_Directory (Project, Dir_Id, Path => Project.Library_Src_Dir, Dir_Exists => Dir_Exists, Data => Data, Must_Exist => False, Create => "library source copy", Location => Lib_Src_Dir.Location, Externally_Built => Project.Externally_Built); -- If directory does not exist, report an error if not Dir_Exists then -- Get the absolute name of the library directory that does -- not exist, to report an error. Err_Vars.Error_Msg_File_1 := File_Name_Type (Project.Library_Src_Dir.Display_Name); Error_Msg (Data.Flags, "Directory { does not exist", Lib_Src_Dir.Location, Project); -- Report error if it is the same as the object directory elsif Project.Library_Src_Dir = Project.Object_Directory then Error_Msg (Data.Flags, "directory to copy interfaces cannot be " & "the object directory", Lib_Src_Dir.Location, Project); Project.Library_Src_Dir := No_Path_Information; else declare Src_Dirs : String_List_Id; Src_Dir : String_Element; Pid : Project_List; begin -- Interface copy directory cannot be one of the source -- directory of the current project. Src_Dirs := Project.Source_Dirs; while Src_Dirs /= Nil_String loop Src_Dir := Data.Tree.String_Elements.Table (Src_Dirs); -- Report error if it is one of the source directories if Project.Library_Src_Dir.Name = Path_Name_Type (Src_Dir.Value) then Error_Msg (Data.Flags, "directory to copy interfaces cannot " & "be one of the source directories", Lib_Src_Dir.Location, Project); Project.Library_Src_Dir := No_Path_Information; exit; end if; Src_Dirs := Src_Dir.Next; end loop; if Project.Library_Src_Dir /= No_Path_Information then -- It cannot be a source directory of any other -- project either. Pid := Data.Tree.Projects; Project_Loop : loop exit Project_Loop when Pid = null; Src_Dirs := Pid.Project.Source_Dirs; Dir_Loop : while Src_Dirs /= Nil_String loop Src_Dir := Data.Tree.String_Elements.Table (Src_Dirs); -- Report error if it is one of the source -- directories. if Project.Library_Src_Dir.Name = Path_Name_Type (Src_Dir.Value) then Error_Msg_File_1 := File_Name_Type (Src_Dir.Value); Error_Msg_Name_1 := Pid.Project.Name; Error_Msg (Data.Flags, "directory to copy interfaces cannot " & "be the same as source directory { of " & "project %%", Lib_Src_Dir.Location, Project); Project.Library_Src_Dir := No_Path_Information; exit Project_Loop; end if; Src_Dirs := Src_Dir.Next; end loop Dir_Loop; Pid := Pid.Next; end loop Project_Loop; end if; end; -- In high verbosity, if there is a valid Library_Src_Dir, -- display its path name. if Project.Library_Src_Dir /= No_Path_Information and then Current_Verbosity = High then Write_Attr ("Directory to copy interfaces", Get_Name_String (Project.Library_Src_Dir.Name)); end if; end if; end; end if; -- Check the symbol related attributes -- First, the symbol policy if not Lib_Symbol_Policy.Default then declare Value : constant String := To_Lower (Get_Name_String (Lib_Symbol_Policy.Value)); begin -- Symbol policy must hove one of a limited number of values if Value = "autonomous" or else Value = "default" then Project.Symbol_Data.Symbol_Policy := Autonomous; elsif Value = "compliant" then Project.Symbol_Data.Symbol_Policy := Compliant; elsif Value = "controlled" then Project.Symbol_Data.Symbol_Policy := Controlled; elsif Value = "restricted" then Project.Symbol_Data.Symbol_Policy := Restricted; elsif Value = "direct" then Project.Symbol_Data.Symbol_Policy := Direct; else Error_Msg (Data.Flags, "illegal value for Library_Symbol_Policy", Lib_Symbol_Policy.Location, Project); end if; end; end if; -- If attribute Library_Symbol_File is not specified, symbol policy -- cannot be Restricted. if Lib_Symbol_File.Default then if Project.Symbol_Data.Symbol_Policy = Restricted then Error_Msg (Data.Flags, "Library_Symbol_File needs to be defined when " & "symbol policy is Restricted", Lib_Symbol_Policy.Location, Project); end if; else -- Library_Symbol_File is defined Project.Symbol_Data.Symbol_File := Path_Name_Type (Lib_Symbol_File.Value); Get_Name_String (Lib_Symbol_File.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "symbol file name cannot be an empty string", Lib_Symbol_File.Location, Project); else OK := not Is_Absolute_Path (Name_Buffer (1 .. Name_Len)); if OK then for J in 1 .. Name_Len loop if Name_Buffer (J) = '/' or else Name_Buffer (J) = Directory_Separator then OK := False; exit; end if; end loop; end if; if not OK then Error_Msg_File_1 := File_Name_Type (Lib_Symbol_File.Value); Error_Msg (Data.Flags, "symbol file name { is illegal. " & "Name cannot include directory info.", Lib_Symbol_File.Location, Project); end if; end if; end if; -- If attribute Library_Reference_Symbol_File is not defined, -- symbol policy cannot be Compliant or Controlled. if Lib_Ref_Symbol_File.Default then if Project.Symbol_Data.Symbol_Policy = Compliant or else Project.Symbol_Data.Symbol_Policy = Controlled then Error_Msg (Data.Flags, "a reference symbol file needs to be defined", Lib_Symbol_Policy.Location, Project); end if; else -- Library_Reference_Symbol_File is defined, check file exists Project.Symbol_Data.Reference := Path_Name_Type (Lib_Ref_Symbol_File.Value); Get_Name_String (Lib_Ref_Symbol_File.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "reference symbol file name cannot be an empty string", Lib_Symbol_File.Location, Project); else if not Is_Absolute_Path (Name_Buffer (1 .. Name_Len)) then Name_Len := 0; Add_Str_To_Name_Buffer (Get_Name_String (Project.Directory.Name)); Add_Str_To_Name_Buffer (Get_Name_String (Lib_Ref_Symbol_File.Value)); Project.Symbol_Data.Reference := Name_Find; end if; if not Is_Regular_File (Get_Name_String (Project.Symbol_Data.Reference)) then Error_Msg_File_1 := File_Name_Type (Lib_Ref_Symbol_File.Value); -- For controlled and direct symbol policies, it is an error -- if the reference symbol file does not exist. For other -- symbol policies, this is just a warning Error_Msg_Warn := Project.Symbol_Data.Symbol_Policy /= Controlled and then Project.Symbol_Data.Symbol_Policy /= Direct; Error_Msg (Data.Flags, "<library reference symbol file { does not exist", Lib_Ref_Symbol_File.Location, Project); -- In addition in the non-controlled case, if symbol policy -- is Compliant, it is changed to Autonomous, because there -- is no reference to check against, and we don't want to -- fail in this case. if Project.Symbol_Data.Symbol_Policy /= Controlled then if Project.Symbol_Data.Symbol_Policy = Compliant then Project.Symbol_Data.Symbol_Policy := Autonomous; end if; end if; end if; -- If both the reference symbol file and the symbol file are -- defined, then check that they are not the same file. if Project.Symbol_Data.Symbol_File /= No_Path then Get_Name_String (Project.Symbol_Data.Symbol_File); if Name_Len > 0 then declare -- We do not need to pass a Directory to -- Normalize_Pathname, since the path_information -- already contains absolute information. Symb_Path : constant String := Normalize_Pathname (Get_Name_String (Project.Object_Directory.Name) & Name_Buffer (1 .. Name_Len), Directory => "/", Resolve_Links => Opt.Follow_Links_For_Files); Ref_Path : constant String := Normalize_Pathname (Get_Name_String (Project.Symbol_Data.Reference), Directory => "/", Resolve_Links => Opt.Follow_Links_For_Files); begin if Symb_Path = Ref_Path then Error_Msg (Data.Flags, "library reference symbol file and library" & " symbol file cannot be the same file", Lib_Ref_Symbol_File.Location, Project); end if; end; end if; end if; end if; end if; end if; end Check_Stand_Alone_Library; ---------------------------- -- Compute_Directory_Last -- ---------------------------- function Compute_Directory_Last (Dir : String) return Natural is begin if Dir'Length > 1 and then (Dir (Dir'Last - 1) = Directory_Separator or else Dir (Dir'Last - 1) = '/') then return Dir'Last - 1; else return Dir'Last; end if; end Compute_Directory_Last; --------------------- -- Get_Directories -- --------------------- procedure Get_Directories (Project : Project_Id; Data : in out Tree_Processing_Data) is Object_Dir : constant Variable_Value := Util.Value_Of (Name_Object_Dir, Project.Decl.Attributes, Data.Tree); Exec_Dir : constant Variable_Value := Util.Value_Of (Name_Exec_Dir, Project.Decl.Attributes, Data.Tree); Source_Dirs : constant Variable_Value := Util.Value_Of (Name_Source_Dirs, Project.Decl.Attributes, Data.Tree); Ignore_Source_Sub_Dirs : constant Variable_Value := Util.Value_Of (Name_Ignore_Source_Sub_Dirs, Project.Decl.Attributes, Data.Tree); Excluded_Source_Dirs : constant Variable_Value := Util.Value_Of (Name_Excluded_Source_Dirs, Project.Decl.Attributes, Data.Tree); Source_Files : constant Variable_Value := Util.Value_Of (Name_Source_Files, Project.Decl.Attributes, Data.Tree); Last_Source_Dir : String_List_Id := Nil_String; Last_Src_Dir_Rank : Number_List_Index := No_Number_List; Languages : constant Variable_Value := Prj.Util.Value_Of (Name_Languages, Project.Decl.Attributes, Data.Tree); Remove_Source_Dirs : Boolean := False; procedure Add_To_Or_Remove_From_Source_Dirs (Path : Path_Information; Rank : Natural); -- When Removed = False, the directory Path_Id to the list of -- source_dirs if not already in the list. When Removed = True, -- removed directory Path_Id if in the list. procedure Find_Source_Dirs is new Expand_Subdirectory_Pattern (Add_To_Or_Remove_From_Source_Dirs); --------------------------------------- -- Add_To_Or_Remove_From_Source_Dirs -- --------------------------------------- procedure Add_To_Or_Remove_From_Source_Dirs (Path : Path_Information; Rank : Natural) is List : String_List_Id; Prev : String_List_Id; Rank_List : Number_List_Index; Prev_Rank : Number_List_Index; Element : String_Element; begin Prev := Nil_String; Prev_Rank := No_Number_List; List := Project.Source_Dirs; Rank_List := Project.Source_Dir_Ranks; while List /= Nil_String loop Element := Data.Tree.String_Elements.Table (List); exit when Element.Value = Name_Id (Path.Name); Prev := List; List := Element.Next; Prev_Rank := Rank_List; Rank_List := Data.Tree.Number_Lists.Table (Prev_Rank).Next; end loop; -- The directory is in the list if List is not Nil_String if not Remove_Source_Dirs and then List = Nil_String then if Current_Verbosity = High then Write_Str (" Adding Source Dir="); Write_Line (Get_Name_String (Path.Display_Name)); end if; String_Element_Table.Increment_Last (Data.Tree.String_Elements); Element := (Value => Name_Id (Path.Name), Index => 0, Display_Value => Name_Id (Path.Display_Name), Location => No_Location, Flag => False, Next => Nil_String); Number_List_Table.Increment_Last (Data.Tree.Number_Lists); if Last_Source_Dir = Nil_String then -- This is the first source directory Project.Source_Dirs := String_Element_Table.Last (Data.Tree.String_Elements); Project.Source_Dir_Ranks := Number_List_Table.Last (Data.Tree.Number_Lists); else -- We already have source directories, link the previous -- last to the new one. Data.Tree.String_Elements.Table (Last_Source_Dir).Next := String_Element_Table.Last (Data.Tree.String_Elements); Data.Tree.Number_Lists.Table (Last_Src_Dir_Rank).Next := Number_List_Table.Last (Data.Tree.Number_Lists); end if; -- And register this source directory as the new last Last_Source_Dir := String_Element_Table.Last (Data.Tree.String_Elements); Data.Tree.String_Elements.Table (Last_Source_Dir) := Element; Last_Src_Dir_Rank := Number_List_Table.Last (Data.Tree.Number_Lists); Data.Tree.Number_Lists.Table (Last_Src_Dir_Rank) := (Number => Rank, Next => No_Number_List); elsif Remove_Source_Dirs and then List /= Nil_String then -- Remove source dir if present if Prev = Nil_String then Project.Source_Dirs := Data.Tree.String_Elements.Table (List).Next; Project.Source_Dir_Ranks := Data.Tree.Number_Lists.Table (Rank_List).Next; else Data.Tree.String_Elements.Table (Prev).Next := Data.Tree.String_Elements.Table (List).Next; Data.Tree.Number_Lists.Table (Prev_Rank).Next := Data.Tree.Number_Lists.Table (Rank_List).Next; end if; end if; end Add_To_Or_Remove_From_Source_Dirs; -- Local declarations Dir_Exists : Boolean; No_Sources : constant Boolean := ((not Source_Files.Default and then Source_Files.Values = Nil_String) or else (not Source_Dirs.Default and then Source_Dirs.Values = Nil_String) or else (not Languages.Default and then Languages.Values = Nil_String)) and then Project.Extends = No_Project; -- Start of processing for Get_Directories begin if Current_Verbosity = High then Write_Line ("Starting to look for directories"); end if; -- Set the object directory to its default which may be nil, if there -- is no sources in the project. if No_Sources then Project.Object_Directory := No_Path_Information; else Project.Object_Directory := Project.Directory; end if; -- Check the object directory if Object_Dir.Value /= Empty_String then Get_Name_String (Object_Dir.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "Object_Dir cannot be empty", Object_Dir.Location, Project); elsif not No_Sources then -- We check that the specified object directory does exist. -- However, even when it doesn't exist, we set it to a default -- value. This is for the benefit of tools that recover from -- errors; for example, these tools could create the non existent -- directory. We always return an absolute directory name though. Locate_Directory (Project, File_Name_Type (Object_Dir.Value), Path => Project.Object_Directory, Create => "object", Dir_Exists => Dir_Exists, Data => Data, Location => Object_Dir.Location, Must_Exist => False, Externally_Built => Project.Externally_Built); if not Dir_Exists and then not Project.Externally_Built then -- The object directory does not exist, report an error if the -- project is not externally built. Err_Vars.Error_Msg_File_1 := File_Name_Type (Object_Dir.Value); Error_Or_Warning (Data.Flags, Data.Flags.Require_Obj_Dirs, "object directory { not found", Project.Location, Project); end if; end if; elsif not No_Sources and then Subdirs /= null then Name_Len := 1; Name_Buffer (1) := '.'; Locate_Directory (Project, Name_Find, Path => Project.Object_Directory, Create => "object", Dir_Exists => Dir_Exists, Data => Data, Location => Object_Dir.Location, Externally_Built => Project.Externally_Built); end if; if Current_Verbosity = High then if Project.Object_Directory = No_Path_Information then Write_Line ("No object directory"); else Write_Attr ("Object directory", Get_Name_String (Project.Object_Directory.Display_Name)); end if; end if; -- Check the exec directory -- We set the object directory to its default Project.Exec_Directory := Project.Object_Directory; if Exec_Dir.Value /= Empty_String then Get_Name_String (Exec_Dir.Value); if Name_Len = 0 then Error_Msg (Data.Flags, "Exec_Dir cannot be empty", Exec_Dir.Location, Project); elsif not No_Sources then -- We check that the specified exec directory does exist Locate_Directory (Project, File_Name_Type (Exec_Dir.Value), Path => Project.Exec_Directory, Dir_Exists => Dir_Exists, Data => Data, Create => "exec", Location => Exec_Dir.Location, Externally_Built => Project.Externally_Built); if not Dir_Exists then Err_Vars.Error_Msg_File_1 := File_Name_Type (Exec_Dir.Value); Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "exec directory { not found", Project.Location, Project); end if; end if; end if; if Current_Verbosity = High then if Project.Exec_Directory = No_Path_Information then Write_Line ("No exec directory"); else Write_Str ("Exec directory: """); Write_Str (Get_Name_String (Project.Exec_Directory.Display_Name)); Write_Line (""""); end if; end if; -- Look for the source directories if Current_Verbosity = High then Write_Line ("Starting to look for source directories"); end if; pragma Assert (Source_Dirs.Kind = List, "Source_Dirs is not a list"); if not Source_Files.Default and then Source_Files.Values = Nil_String then Project.Source_Dirs := Nil_String; if Project.Qualifier = Standard then Error_Msg (Data.Flags, "a standard project cannot have no sources", Source_Files.Location, Project); end if; elsif Source_Dirs.Default then -- No Source_Dirs specified: the single source directory is the one -- containing the project file. Remove_Source_Dirs := False; Add_To_Or_Remove_From_Source_Dirs (Path => (Name => Project.Directory.Name, Display_Name => Project.Directory.Display_Name), Rank => 1); else Remove_Source_Dirs := False; Find_Source_Dirs (Project => Project, Data => Data, Patterns => Source_Dirs.Values, Ignore => Ignore_Source_Sub_Dirs.Values, Search_For => Search_Directories, Resolve_Links => Opt.Follow_Links_For_Dirs); if Project.Source_Dirs = Nil_String and then Project.Qualifier = Standard then Error_Msg (Data.Flags, "a standard project cannot have no source directories", Source_Dirs.Location, Project); end if; end if; if not Excluded_Source_Dirs.Default and then Excluded_Source_Dirs.Values /= Nil_String then Remove_Source_Dirs := True; Find_Source_Dirs (Project => Project, Data => Data, Patterns => Excluded_Source_Dirs.Values, Ignore => Nil_String, Search_For => Search_Directories, Resolve_Links => Opt.Follow_Links_For_Dirs); end if; if Current_Verbosity = High then Write_Line ("Putting source directories in canonical cases"); end if; declare Current : String_List_Id := Project.Source_Dirs; Element : String_Element; begin while Current /= Nil_String loop Element := Data.Tree.String_Elements.Table (Current); if Element.Value /= No_Name then Element.Value := Name_Id (Canonical_Case_File_Name (Element.Value)); Data.Tree.String_Elements.Table (Current) := Element; end if; Current := Element.Next; end loop; end; end Get_Directories; --------------- -- Get_Mains -- --------------- procedure Get_Mains (Project : Project_Id; Data : in out Tree_Processing_Data) is Mains : constant Variable_Value := Prj.Util.Value_Of (Name_Main, Project.Decl.Attributes, Data.Tree); List : String_List_Id; Elem : String_Element; begin Project.Mains := Mains.Values; -- If no Mains were specified, and if we are an extending project, -- inherit the Mains from the project we are extending. if Mains.Default then if not Project.Library and then Project.Extends /= No_Project then Project.Mains := Project.Extends.Mains; end if; -- In a library project file, Main cannot be specified elsif Project.Library then Error_Msg (Data.Flags, "a library project file cannot have Main specified", Mains.Location, Project); else List := Mains.Values; while List /= Nil_String loop Elem := Data.Tree.String_Elements.Table (List); if Length_Of_Name (Elem.Value) = 0 then Error_Msg (Data.Flags, "?a main cannot have an empty name", Elem.Location, Project); exit; end if; List := Elem.Next; end loop; end if; end Get_Mains; --------------------------- -- Get_Sources_From_File -- --------------------------- procedure Get_Sources_From_File (Path : String; Location : Source_Ptr; Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data) is File : Prj.Util.Text_File; Line : String (1 .. 250); Last : Natural; Source_Name : File_Name_Type; Name_Loc : Name_Location; begin if Current_Verbosity = High then Write_Str ("Opening """); Write_Str (Path); Write_Line ("""."); end if; -- Open the file Prj.Util.Open (File, Path); if not Prj.Util.Is_Valid (File) then Error_Msg (Data.Flags, "file does not exist", Location, Project.Project); else -- Read the lines one by one while not Prj.Util.End_Of_File (File) loop Prj.Util.Get_Line (File, Line, Last); -- A non empty, non comment line should contain a file name if Last /= 0 and then (Last = 1 or else Line (1 .. 2) /= "--") then Name_Len := Last; Name_Buffer (1 .. Name_Len) := Line (1 .. Last); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Source_Name := Name_Find; -- Check that there is no directory information for J in 1 .. Last loop if Line (J) = '/' or else Line (J) = Directory_Separator then Error_Msg_File_1 := Source_Name; Error_Msg (Data.Flags, "file name cannot include directory information ({)", Location, Project.Project); exit; end if; end loop; Name_Loc := Source_Names_Htable.Get (Project.Source_Names, Source_Name); if Name_Loc = No_Name_Location then Name_Loc := (Name => Source_Name, Location => Location, Source => No_Source, Listed => True, Found => False); else Name_Loc.Listed := True; end if; Source_Names_Htable.Set (Project.Source_Names, Source_Name, Name_Loc); end if; end loop; Prj.Util.Close (File); end if; end Get_Sources_From_File; ----------------------- -- Compute_Unit_Name -- ----------------------- procedure Compute_Unit_Name (File_Name : File_Name_Type; Naming : Lang_Naming_Data; Kind : out Source_Kind; Unit : out Name_Id; Project : Project_Processing_Data; In_Tree : Project_Tree_Ref) is Filename : constant String := Get_Name_String (File_Name); Last : Integer := Filename'Last; Sep_Len : Integer; Body_Len : Integer; Spec_Len : Integer; Unit_Except : Unit_Exception; Masked : Boolean := False; begin Unit := No_Name; Kind := Spec; if Naming.Separate_Suffix = No_File or else Naming.Body_Suffix = No_File or else Naming.Spec_Suffix = No_File then return; end if; if Naming.Dot_Replacement = No_File then if Current_Verbosity = High then Write_Line (" No dot_replacement specified"); end if; return; end if; Sep_Len := Integer (Length_Of_Name (Naming.Separate_Suffix)); Spec_Len := Integer (Length_Of_Name (Naming.Spec_Suffix)); Body_Len := Integer (Length_Of_Name (Naming.Body_Suffix)); -- Choose the longest suffix that matches. If there are several matches, -- give priority to specs, then bodies, then separates. if Naming.Separate_Suffix /= Naming.Body_Suffix and then Suffix_Matches (Filename, Naming.Separate_Suffix) then Last := Filename'Last - Sep_Len; Kind := Sep; end if; if Filename'Last - Body_Len <= Last and then Suffix_Matches (Filename, Naming.Body_Suffix) then Last := Natural'Min (Last, Filename'Last - Body_Len); Kind := Impl; end if; if Filename'Last - Spec_Len <= Last and then Suffix_Matches (Filename, Naming.Spec_Suffix) then Last := Natural'Min (Last, Filename'Last - Spec_Len); Kind := Spec; end if; if Last = Filename'Last then if Current_Verbosity = High then Write_Line (" no matching suffix"); end if; return; end if; -- Check that the casing matches if File_Names_Case_Sensitive then case Naming.Casing is when All_Lower_Case => for J in Filename'First .. Last loop if Is_Letter (Filename (J)) and then not Is_Lower (Filename (J)) then if Current_Verbosity = High then Write_Line (" Invalid casing"); end if; return; end if; end loop; when All_Upper_Case => for J in Filename'First .. Last loop if Is_Letter (Filename (J)) and then not Is_Upper (Filename (J)) then if Current_Verbosity = High then Write_Line (" Invalid casing"); end if; return; end if; end loop; when Mixed_Case | Unknown => null; end case; end if; -- If Dot_Replacement is not a single dot, then there should not -- be any dot in the name. declare Dot_Repl : constant String := Get_Name_String (Naming.Dot_Replacement); begin if Dot_Repl /= "." then for Index in Filename'First .. Last loop if Filename (Index) = '.' then if Current_Verbosity = High then Write_Line (" Invalid name, contains dot"); end if; return; end if; end loop; Replace_Into_Name_Buffer (Filename (Filename'First .. Last), Dot_Repl, '.'); else Name_Len := Last - Filename'First + 1; Name_Buffer (1 .. Name_Len) := Filename (Filename'First .. Last); Fixed.Translate (Source => Name_Buffer (1 .. Name_Len), Mapping => Lower_Case_Map); end if; end; -- In the standard GNAT naming scheme, check for special cases: children -- or separates of A, G, I or S, and run time sources. if Is_Standard_GNAT_Naming (Naming) and then Name_Len >= 3 then declare S1 : constant Character := Name_Buffer (1); S2 : constant Character := Name_Buffer (2); S3 : constant Character := Name_Buffer (3); begin if S1 = 'a' or else S1 = 'g' or else S1 = 'i' or else S1 = 's' then -- Children or separates of packages A, G, I or S. These names -- are x__ ... or x~... (where x is a, g, i, or s). Both -- versions (x__... and x~...) are allowed in all platforms, -- because it is not possible to know the platform before -- processing of the project files. if S2 = '_' and then S3 = '_' then Name_Buffer (2) := '.'; Name_Buffer (3 .. Name_Len - 1) := Name_Buffer (4 .. Name_Len); Name_Len := Name_Len - 1; elsif S2 = '~' then Name_Buffer (2) := '.'; elsif S2 = '.' then -- If it is potentially a run time source null; end if; end if; end; end if; -- Name_Buffer contains the name of the unit in lower-cases. Check -- that this is a valid unit name Check_Ada_Name (Name_Buffer (1 .. Name_Len), Unit); -- If there is a naming exception for the same unit, the file is not -- a source for the unit. if Unit /= No_Name then Unit_Except := Unit_Exceptions_Htable.Get (Project.Unit_Exceptions, Unit); if Kind = Spec then Masked := Unit_Except.Spec /= No_File and then Unit_Except.Spec /= File_Name; else Masked := Unit_Except.Impl /= No_File and then Unit_Except.Impl /= File_Name; end if; if Masked then if Current_Verbosity = High then Write_Str (" """ & Filename & """ contains the "); if Kind = Spec then Write_Str ("spec of a unit found in """); Write_Str (Get_Name_String (Unit_Except.Spec)); else Write_Str ("body of a unit found in """); Write_Str (Get_Name_String (Unit_Except.Impl)); end if; Write_Line (""" (ignored)"); end if; Unit := No_Name; end if; end if; if Unit /= No_Name and then Current_Verbosity = High then case Kind is when Spec => Write_Str (" spec of "); when Impl => Write_Str (" body of "); when Sep => Write_Str (" sep of "); end case; Write_Line (Get_Name_String (Unit)); end if; end Compute_Unit_Name; -------------------------- -- Check_Illegal_Suffix -- -------------------------- procedure Check_Illegal_Suffix (Project : Project_Id; Suffix : File_Name_Type; Dot_Replacement : File_Name_Type; Attribute_Name : String; Location : Source_Ptr; Data : in out Tree_Processing_Data) is Suffix_Str : constant String := Get_Name_String (Suffix); begin if Suffix_Str'Length = 0 then -- Always valid return; elsif Index (Suffix_Str, ".") = 0 then Err_Vars.Error_Msg_File_1 := Suffix; Error_Msg (Data.Flags, "{ is illegal for " & Attribute_Name & ": must have a dot", Location, Project); return; end if; -- Case of dot replacement is a single dot, and first character of -- suffix is also a dot. if Dot_Replacement /= No_File and then Get_Name_String (Dot_Replacement) = "." and then Suffix_Str (Suffix_Str'First) = '.' then for Index in Suffix_Str'First + 1 .. Suffix_Str'Last loop -- If there are multiple dots in the name if Suffix_Str (Index) = '.' then -- It is illegal to have a letter following the initial dot if Is_Letter (Suffix_Str (Suffix_Str'First + 1)) then Err_Vars.Error_Msg_File_1 := Suffix; Error_Msg (Data.Flags, "{ is illegal for " & Attribute_Name & ": ambiguous prefix when Dot_Replacement is a dot", Location, Project); end if; return; end if; end loop; end if; end Check_Illegal_Suffix; ---------------------- -- Locate_Directory -- ---------------------- procedure Locate_Directory (Project : Project_Id; Name : File_Name_Type; Path : out Path_Information; Dir_Exists : out Boolean; Data : in out Tree_Processing_Data; Create : String := ""; Location : Source_Ptr := No_Location; Must_Exist : Boolean := True; Externally_Built : Boolean := False) is Parent : constant Path_Name_Type := Project.Directory.Display_Name; The_Parent : constant String := Get_Name_String (Parent); The_Parent_Last : constant Natural := Compute_Directory_Last (The_Parent); Full_Name : File_Name_Type; The_Name : File_Name_Type; begin Get_Name_String (Name); -- Add Subdirs.all if it is a directory that may be created and -- Subdirs is not null; if Create /= "" and then Subdirs /= null then if Name_Buffer (Name_Len) /= Directory_Separator then Add_Char_To_Name_Buffer (Directory_Separator); end if; Add_Str_To_Name_Buffer (Subdirs.all); end if; -- Convert '/' to directory separator (for Windows) for J in 1 .. Name_Len loop if Name_Buffer (J) = '/' then Name_Buffer (J) := Directory_Separator; end if; end loop; The_Name := Name_Find; if Current_Verbosity = High then Write_Str ("Locate_Directory ("""); Write_Str (Get_Name_String (The_Name)); Write_Str (""", """); Write_Str (The_Parent); Write_Line (""")"); end if; Path := No_Path_Information; Dir_Exists := False; if Is_Absolute_Path (Get_Name_String (The_Name)) then Full_Name := The_Name; else Name_Len := 0; Add_Str_To_Name_Buffer (The_Parent (The_Parent'First .. The_Parent_Last)); Add_Str_To_Name_Buffer (Get_Name_String (The_Name)); Full_Name := Name_Find; end if; declare Full_Path_Name : String_Access := new String'(Get_Name_String (Full_Name)); begin if (Setup_Projects or else Subdirs /= null) and then Create'Length > 0 then if not Is_Directory (Full_Path_Name.all) then -- If project is externally built, do not create a subdir, -- use the specified directory, without the subdir. if Externally_Built then if Is_Absolute_Path (Get_Name_String (Name)) then Get_Name_String (Name); else Name_Len := 0; Add_Str_To_Name_Buffer (The_Parent (The_Parent'First .. The_Parent_Last)); Add_Str_To_Name_Buffer (Get_Name_String (Name)); end if; Full_Path_Name := new String'(Name_Buffer (1 .. Name_Len)); else begin Create_Path (Full_Path_Name.all); if not Quiet_Output then Write_Str (Create); Write_Str (" directory """); Write_Str (Full_Path_Name.all); Write_Str (""" created for project "); Write_Line (Get_Name_String (Project.Name)); end if; exception when Use_Error => Error_Msg (Data.Flags, "could not create " & Create & " directory " & Full_Path_Name.all, Location, Project); end; end if; end if; end if; Dir_Exists := Is_Directory (Full_Path_Name.all); if not Must_Exist or else Dir_Exists then declare Normed : constant String := Normalize_Pathname (Full_Path_Name.all, Directory => The_Parent (The_Parent'First .. The_Parent_Last), Resolve_Links => False, Case_Sensitive => True); Canonical_Path : constant String := Normalize_Pathname (Normed, Directory => The_Parent (The_Parent'First .. The_Parent_Last), Resolve_Links => Opt.Follow_Links_For_Dirs, Case_Sensitive => False); begin Name_Len := Normed'Length; Name_Buffer (1 .. Name_Len) := Normed; -- Directories should always end with a directory separator if Name_Buffer (Name_Len) /= Directory_Separator then Add_Char_To_Name_Buffer (Directory_Separator); end if; Path.Display_Name := Name_Find; Name_Len := Canonical_Path'Length; Name_Buffer (1 .. Name_Len) := Canonical_Path; if Name_Buffer (Name_Len) /= Directory_Separator then Add_Char_To_Name_Buffer (Directory_Separator); end if; Path.Name := Name_Find; end; end if; Free (Full_Path_Name); end; end Locate_Directory; --------------------------- -- Find_Excluded_Sources -- --------------------------- procedure Find_Excluded_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data) is Excluded_Source_List_File : constant Variable_Value := Util.Value_Of (Name_Excluded_Source_List_File, Project.Project.Decl.Attributes, Data.Tree); Excluded_Sources : Variable_Value := Util.Value_Of (Name_Excluded_Source_Files, Project.Project.Decl.Attributes, Data.Tree); Current : String_List_Id; Element : String_Element; Location : Source_Ptr; Name : File_Name_Type; File : Prj.Util.Text_File; Line : String (1 .. 300); Last : Natural; Locally_Removed : Boolean := False; begin -- If Excluded_Source_Files is not declared, check Locally_Removed_Files if Excluded_Sources.Default then Locally_Removed := True; Excluded_Sources := Util.Value_Of (Name_Locally_Removed_Files, Project.Project.Decl.Attributes, Data.Tree); end if; -- If there are excluded sources, put them in the table if not Excluded_Sources.Default then if not Excluded_Source_List_File.Default then if Locally_Removed then Error_Msg (Data.Flags, "?both attributes Locally_Removed_Files and " & "Excluded_Source_List_File are present", Excluded_Source_List_File.Location, Project.Project); else Error_Msg (Data.Flags, "?both attributes Excluded_Source_Files and " & "Excluded_Source_List_File are present", Excluded_Source_List_File.Location, Project.Project); end if; end if; Current := Excluded_Sources.Values; while Current /= Nil_String loop Element := Data.Tree.String_Elements.Table (Current); Name := Canonical_Case_File_Name (Element.Value); -- If the element has no location, then use the location of -- Excluded_Sources to report possible errors. if Element.Location = No_Location then Location := Excluded_Sources.Location; else Location := Element.Location; end if; Excluded_Sources_Htable.Set (Project.Excluded, Name, (Name, False, Location)); Current := Element.Next; end loop; elsif not Excluded_Source_List_File.Default then Location := Excluded_Source_List_File.Location; declare Source_File_Path_Name : constant String := Path_Name_Of (File_Name_Type (Excluded_Source_List_File.Value), Project.Project.Directory.Name); begin if Source_File_Path_Name'Length = 0 then Err_Vars.Error_Msg_File_1 := File_Name_Type (Excluded_Source_List_File.Value); Error_Msg (Data.Flags, "file with excluded sources { does not exist", Excluded_Source_List_File.Location, Project.Project); else -- Open the file Prj.Util.Open (File, Source_File_Path_Name); if not Prj.Util.Is_Valid (File) then Error_Msg (Data.Flags, "file does not exist", Location, Project.Project); else -- Read the lines one by one while not Prj.Util.End_Of_File (File) loop Prj.Util.Get_Line (File, Line, Last); -- Non empty, non comment line should contain a file name if Last /= 0 and then (Last = 1 or else Line (1 .. 2) /= "--") then Name_Len := Last; Name_Buffer (1 .. Name_Len) := Line (1 .. Last); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Name := Name_Find; -- Check that there is no directory information for J in 1 .. Last loop if Line (J) = '/' or else Line (J) = Directory_Separator then Error_Msg_File_1 := Name; Error_Msg (Data.Flags, "file name cannot include " & "directory information ({)", Location, Project.Project); exit; end if; end loop; Excluded_Sources_Htable.Set (Project.Excluded, Name, (Name, False, Location)); end if; end loop; Prj.Util.Close (File); end if; end if; end; end if; end Find_Excluded_Sources; ------------------ -- Find_Sources -- ------------------ procedure Find_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data) is Sources : constant Variable_Value := Util.Value_Of (Name_Source_Files, Project.Project.Decl.Attributes, Data.Tree); Source_List_File : constant Variable_Value := Util.Value_Of (Name_Source_List_File, Project.Project.Decl.Attributes, Data.Tree); Name_Loc : Name_Location; Has_Explicit_Sources : Boolean; begin pragma Assert (Sources.Kind = List, "Source_Files is not a list"); pragma Assert (Source_List_File.Kind = Single, "Source_List_File is not a single string"); Project.Source_List_File_Location := Source_List_File.Location; -- If the user has specified a Source_Files attribute if not Sources.Default then if not Source_List_File.Default then Error_Msg (Data.Flags, "?both attributes source_files and " & "source_list_file are present", Source_List_File.Location, Project.Project); end if; -- Sources is a list of file names declare Current : String_List_Id := Sources.Values; Element : String_Element; Location : Source_Ptr; Name : File_Name_Type; begin if Current = Nil_String then Project.Project.Languages := No_Language_Index; -- This project contains no source. For projects that don't -- extend other projects, this also means that there is no -- need for an object directory, if not specified. if Project.Project.Extends = No_Project and then Project.Project.Object_Directory = Project.Project.Directory then Project.Project.Object_Directory := No_Path_Information; end if; end if; while Current /= Nil_String loop Element := Data.Tree.String_Elements.Table (Current); Name := Canonical_Case_File_Name (Element.Value); Get_Name_String (Element.Value); -- If the element has no location, then use the location of -- Sources to report possible errors. if Element.Location = No_Location then Location := Sources.Location; else Location := Element.Location; end if; -- Check that there is no directory information for J in 1 .. Name_Len loop if Name_Buffer (J) = '/' or else Name_Buffer (J) = Directory_Separator then Error_Msg_File_1 := Name; Error_Msg (Data.Flags, "file name cannot include directory " & "information ({)", Location, Project.Project); exit; end if; end loop; -- Check whether the file is already there: the same file name -- may be in the list. If the source is missing, the error will -- be on the first mention of the source file name. Name_Loc := Source_Names_Htable.Get (Project.Source_Names, Name); if Name_Loc = No_Name_Location then Name_Loc := (Name => Name, Location => Location, Source => No_Source, Listed => True, Found => False); else Name_Loc.Listed := True; end if; Source_Names_Htable.Set (Project.Source_Names, Name, Name_Loc); Current := Element.Next; end loop; Has_Explicit_Sources := True; end; -- If we have no Source_Files attribute, check the Source_List_File -- attribute. elsif not Source_List_File.Default then -- Source_List_File is the name of the file that contains the source -- file names. declare Source_File_Path_Name : constant String := Path_Name_Of (File_Name_Type (Source_List_File.Value), Project.Project.Directory.Name); begin Has_Explicit_Sources := True; if Source_File_Path_Name'Length = 0 then Err_Vars.Error_Msg_File_1 := File_Name_Type (Source_List_File.Value); Error_Msg (Data.Flags, "file with sources { does not exist", Source_List_File.Location, Project.Project); else Get_Sources_From_File (Source_File_Path_Name, Source_List_File.Location, Project, Data); end if; end; else -- Neither Source_Files nor Source_List_File has been specified. Find -- all the files that satisfy the naming scheme in all the source -- directories. Has_Explicit_Sources := False; end if; -- Remove any exception that is not in the specified list of sources if Has_Explicit_Sources then declare Source : Source_Id; Iter : Source_Iterator; NL : Name_Location; Again : Boolean; begin Iter_Loop : loop Again := False; Iter := For_Each_Source (Data.Tree, Project.Project); Source_Loop : loop Source := Prj.Element (Iter); exit Source_Loop when Source = No_Source; if Source.Naming_Exception then NL := Source_Names_Htable.Get (Project.Source_Names, Source.File); if NL /= No_Name_Location and then not NL.Listed then -- Remove the exception Source_Names_Htable.Set (Project.Source_Names, Source.File, No_Name_Location); Remove_Source (Data.Tree, Source, No_Source); Error_Msg_Name_1 := Name_Id (Source.File); Error_Msg (Data.Flags, "? unknown source file %%", NL.Location, Project.Project); Again := True; exit Source_Loop; end if; end if; Next (Iter); end loop Source_Loop; exit Iter_Loop when not Again; end loop Iter_Loop; end; end if; Search_Directories (Project, Data => Data, For_All_Sources => Sources.Default and then Source_List_File.Default); -- Check if all exceptions have been found declare Source : Source_Id; Iter : Source_Iterator; Found : Boolean := False; Path : Path_Information; begin Iter := For_Each_Source (Data.Tree, Project.Project); loop Source := Prj.Element (Iter); exit when Source = No_Source; if Source.Naming_Exception and then Source.Path = No_Path_Information then if Source.Unit /= No_Unit_Index then Found := False; -- For multi-unit source files, source_id gets duplicated -- once for every unit. Only the first source_id got its -- full path set. if Source.Index /= 0 then Path := Files_Htable.Get (Data.File_To_Source, Source.File).Path; if Path /= No_Path_Information then Found := True; end if; end if; if not Found then Error_Msg_Name_1 := Name_Id (Source.Display_File); Error_Msg_Name_2 := Source.Unit.Name; Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "source file %% for unit %% not found", No_Location, Project.Project); else Source.Path := Path; if Current_Verbosity = High then if Source.Path /= No_Path_Information then Write_Line ("Setting full path for " & Get_Name_String (Source.File) & " at" & Source.Index'Img & " to " & Get_Name_String (Path.Name)); end if; end if; end if; end if; if Source.Path = No_Path_Information then Remove_Source (Data.Tree, Source, No_Source); end if; end if; Next (Iter); end loop; end; -- It is an error if a source file name in a source list or in a source -- list file is not found. if Has_Explicit_Sources then declare NL : Name_Location; First_Error : Boolean; begin NL := Source_Names_Htable.Get_First (Project.Source_Names); First_Error := True; while NL /= No_Name_Location loop if not NL.Found then Err_Vars.Error_Msg_File_1 := NL.Name; if First_Error then Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "source file { not found", NL.Location, Project.Project); First_Error := False; else Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "\source file { not found", NL.Location, Project.Project); end if; end if; NL := Source_Names_Htable.Get_Next (Project.Source_Names); end loop; end; end if; end Find_Sources; ---------------- -- Initialize -- ---------------- procedure Initialize (Data : out Tree_Processing_Data; Tree : Project_Tree_Ref; Node_Tree : Prj.Tree.Project_Node_Tree_Ref; Flags : Prj.Processing_Flags) is begin Files_Htable.Reset (Data.File_To_Source); Data.Tree := Tree; Data.Node_Tree := Node_Tree; Data.Flags := Flags; end Initialize; ---------- -- Free -- ---------- procedure Free (Data : in out Tree_Processing_Data) is begin Files_Htable.Reset (Data.File_To_Source); end Free; ---------------- -- Initialize -- ---------------- procedure Initialize (Data : in out Project_Processing_Data; Project : Project_Id) is begin Data.Project := Project; end Initialize; ---------- -- Free -- ---------- procedure Free (Data : in out Project_Processing_Data) is begin Source_Names_Htable.Reset (Data.Source_Names); Unit_Exceptions_Htable.Reset (Data.Unit_Exceptions); Excluded_Sources_Htable.Reset (Data.Excluded); end Free; ------------------------------- -- Check_File_Naming_Schemes -- ------------------------------- procedure Check_File_Naming_Schemes (In_Tree : Project_Tree_Ref; Project : Project_Processing_Data; File_Name : File_Name_Type; Alternate_Languages : out Language_List; Language : out Language_Ptr; Display_Language_Name : out Name_Id; Unit : out Name_Id; Lang_Kind : out Language_Kind; Kind : out Source_Kind) is Filename : constant String := Get_Name_String (File_Name); Config : Language_Config; Tmp_Lang : Language_Ptr; Header_File : Boolean := False; -- True if we found at least one language for which the file is a header -- In such a case, we search for all possible languages where this is -- also a header (C and C++ for instance), since the file might be used -- for several such languages. procedure Check_File_Based_Lang; -- Does the naming scheme test for file-based languages. For those, -- there is no Unit. Just check if the file name has the implementation -- or, if it is specified, the template suffix of the language. -- -- Returns True if the file belongs to the current language and we -- should stop searching for matching languages. Not that a given header -- file could belong to several languages (C and C++ for instance). Thus -- if we found a header we'll check whether it matches other languages. --------------------------- -- Check_File_Based_Lang -- --------------------------- procedure Check_File_Based_Lang is begin if not Header_File and then Suffix_Matches (Filename, Config.Naming_Data.Body_Suffix) then Unit := No_Name; Kind := Impl; Language := Tmp_Lang; if Current_Verbosity = High then Write_Str (" implementation of language "); Write_Line (Get_Name_String (Display_Language_Name)); end if; elsif Suffix_Matches (Filename, Config.Naming_Data.Spec_Suffix) then if Current_Verbosity = High then Write_Str (" header of language "); Write_Line (Get_Name_String (Display_Language_Name)); end if; if Header_File then Alternate_Languages := new Language_List_Element' (Language => Language, Next => Alternate_Languages); else Header_File := True; Kind := Spec; Unit := No_Name; Language := Tmp_Lang; end if; end if; end Check_File_Based_Lang; -- Start of processing for Check_File_Naming_Schemes begin Language := No_Language_Index; Alternate_Languages := null; Display_Language_Name := No_Name; Unit := No_Name; Lang_Kind := File_Based; Kind := Spec; Tmp_Lang := Project.Project.Languages; while Tmp_Lang /= No_Language_Index loop if Current_Verbosity = High then Write_Line (" Testing language " & Get_Name_String (Tmp_Lang.Name) & " Header_File=" & Header_File'Img); end if; Display_Language_Name := Tmp_Lang.Display_Name; Config := Tmp_Lang.Config; Lang_Kind := Config.Kind; case Config.Kind is when File_Based => Check_File_Based_Lang; exit when Kind = Impl; when Unit_Based => -- We know it belongs to a least a file_based language, no -- need to check unit-based ones. if not Header_File then Compute_Unit_Name (File_Name => File_Name, Naming => Config.Naming_Data, Kind => Kind, Unit => Unit, Project => Project, In_Tree => In_Tree); if Unit /= No_Name then Language := Tmp_Lang; exit; end if; end if; end case; Tmp_Lang := Tmp_Lang.Next; end loop; if Language = No_Language_Index and then Current_Verbosity = High then Write_Line (" not a source of any language"); end if; end Check_File_Naming_Schemes; ------------------- -- Override_Kind -- ------------------- procedure Override_Kind (Source : Source_Id; Kind : Source_Kind) is begin -- If the file was previously already associated with a unit, change it if Source.Unit /= null and then Source.Kind in Spec_Or_Body and then Source.Unit.File_Names (Source.Kind) /= null then -- If we had another file referencing the same unit (for instance it -- was in an extended project), that source file is in fact invisible -- from now on, and in particular doesn't belong to the same unit. if Source.Unit.File_Names (Source.Kind) /= Source then Source.Unit.File_Names (Source.Kind).Unit := No_Unit_Index; end if; Source.Unit.File_Names (Source.Kind) := null; end if; Source.Kind := Kind; if Current_Verbosity = High and then Source.File /= No_File then Write_Line ("Override kind for " & Get_Name_String (Source.File) & " kind=" & Source.Kind'Img); end if; if Source.Kind in Spec_Or_Body and then Source.Unit /= null then Source.Unit.File_Names (Source.Kind) := Source; end if; end Override_Kind; ---------------- -- Check_File -- ---------------- procedure Check_File (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data; Source_Dir_Rank : Natural; Path : Path_Name_Type; Display_Path : Path_Name_Type; File_Name : File_Name_Type; Display_File_Name : File_Name_Type; Locally_Removed : Boolean; For_All_Sources : Boolean) is Name_Loc : Name_Location := Source_Names_Htable.Get (Project.Source_Names, File_Name); Check_Name : Boolean := False; Alternate_Languages : Language_List; Language : Language_Ptr; Source : Source_Id; Src_Ind : Source_File_Index; Unit : Name_Id; Display_Language_Name : Name_Id; Lang_Kind : Language_Kind; Kind : Source_Kind := Spec; begin if Current_Verbosity = High then Write_Line ("Checking file:"); Write_Str (" Path = "); Write_Line (Get_Name_String (Path)); Write_Str (" Rank ="); Write_Line (Source_Dir_Rank'Img); end if; if Name_Loc = No_Name_Location then Check_Name := For_All_Sources; else if Name_Loc.Found then -- Check if it is OK to have the same file name in several -- source directories. if Source_Dir_Rank = Name_Loc.Source.Source_Dir_Rank then Error_Msg_File_1 := File_Name; Error_Msg (Data.Flags, "{ is found in several source directories", Name_Loc.Location, Project.Project); end if; else Name_Loc.Found := True; Source_Names_Htable.Set (Project.Source_Names, File_Name, Name_Loc); if Name_Loc.Source = No_Source then Check_Name := True; else Name_Loc.Source.Path := (Path, Display_Path); Source_Paths_Htable.Set (Data.Tree.Source_Paths_HT, Path, Name_Loc.Source); -- Check if this is a subunit if Name_Loc.Source.Unit /= No_Unit_Index and then Name_Loc.Source.Kind = Impl then Src_Ind := Sinput.P.Load_Project_File (Get_Name_String (Display_Path)); if Sinput.P.Source_File_Is_Subunit (Src_Ind) then Override_Kind (Name_Loc.Source, Sep); end if; end if; Files_Htable.Set (Data.File_To_Source, File_Name, Name_Loc.Source); end if; end if; end if; if Check_Name then Check_File_Naming_Schemes (In_Tree => Data.Tree, Project => Project, File_Name => File_Name, Alternate_Languages => Alternate_Languages, Language => Language, Display_Language_Name => Display_Language_Name, Unit => Unit, Lang_Kind => Lang_Kind, Kind => Kind); if Language = No_Language_Index then -- A file name in a list must be a source of a language if Data.Flags.Error_On_Unknown_Language and then Name_Loc.Found then Error_Msg_File_1 := File_Name; Error_Msg (Data.Flags, "language unknown for {", Name_Loc.Location, Project.Project); end if; else Add_Source (Id => Source, Project => Project.Project, Source_Dir_Rank => Source_Dir_Rank, Lang_Id => Language, Kind => Kind, Data => Data, Alternate_Languages => Alternate_Languages, File_Name => File_Name, Display_File => Display_File_Name, Unit => Unit, Locally_Removed => Locally_Removed, Path => (Path, Display_Path)); -- If it is a source specified in a list, update the entry in -- the Source_Names table. if Name_Loc.Found and then Name_Loc.Source = No_Source then Name_Loc.Source := Source; Source_Names_Htable.Set (Project.Source_Names, File_Name, Name_Loc); end if; end if; end if; end Check_File; --------------------------------- -- Expand_Subdirectory_Pattern -- --------------------------------- procedure Expand_Subdirectory_Pattern (Project : Project_Id; Data : in out Tree_Processing_Data; Patterns : String_List_Id; Ignore : String_List_Id; Search_For : Search_Type; Resolve_Links : Boolean) is package Recursive_Dirs is new GNAT.Dynamic_HTables.Simple_HTable (Header_Num => Header_Num, Element => Boolean, No_Element => False, Key => Path_Name_Type, Hash => Hash, Equal => "="); -- Hash table stores recursive source directories, to avoid looking -- several times, and to avoid cycles that may be introduced by symbolic -- links. File_Pattern : GNAT.Regexp.Regexp; -- Pattern to use when matching file names. Visited : Recursive_Dirs.Instance; procedure Find_Pattern (Pattern_Id : Name_Id; Rank : Natural; Location : Source_Ptr); -- Find a specific pattern function Recursive_Find_Dirs (Path : Path_Information; Rank : Natural) return Boolean; -- Search all the subdirectories (recursively) of Path. -- Return True if at least one file or directory was processed function Subdirectory_Matches (Path : Path_Information; Rank : Natural) return Boolean; -- Called when a matching directory was found. If the user is in fact -- searching for files, we then search for those files matching the -- pattern within the directory. -- Return True if at least one file or directory was processed -------------------------- -- Subdirectory_Matches -- -------------------------- function Subdirectory_Matches (Path : Path_Information; Rank : Natural) return Boolean is Dir : Dir_Type; Name : String (1 .. 250); Last : Natural; Found : Path_Information; Success : Boolean := False; begin case Search_For is when Search_Directories => Callback (Path, Rank); return True; when Search_Files => Open (Dir, Get_Name_String (Path.Display_Name)); loop Read (Dir, Name, Last); exit when Last = 0; if Name (Name'First .. Last) /= "." and then Name (Name'First .. Last) /= ".." and then Match (Name (Name'First .. Last), File_Pattern) then Get_Name_String (Path.Display_Name); Add_Str_To_Name_Buffer (Name (Name'First .. Last)); Found.Display_Name := Name_Find; Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Found.Name := Name_Find; Callback (Found, Rank); Success := True; end if; end loop; Close (Dir); return Success; end case; end Subdirectory_Matches; ------------------------- -- Recursive_Find_Dirs -- ------------------------- function Recursive_Find_Dirs (Path : Path_Information; Rank : Natural) return Boolean is Path_Str : constant String := Get_Name_String (Path.Display_Name); Dir : Dir_Type; Name : String (1 .. 250); Last : Natural; Success : Boolean := False; begin if Current_Verbosity = High then Write_Str (" Looking for subdirs of """); Write_Str (Path_Str); Write_Line (""""); end if; if Recursive_Dirs.Get (Visited, Path.Name) then return Success; end if; Recursive_Dirs.Set (Visited, Path.Name, True); Success := Subdirectory_Matches (Path, Rank) or Success; Open (Dir, Path_Str); loop Read (Dir, Name, Last); exit when Last = 0; if Name (1 .. Last) /= "." and then Name (1 .. Last) /= ".." then declare Path_Name : constant String := Normalize_Pathname (Name => Name (1 .. Last), Directory => Path_Str, Resolve_Links => Resolve_Links) & Directory_Separator; Path2 : Path_Information; OK : Boolean := True; begin if Is_Directory (Path_Name) then if Ignore /= Nil_String then declare Dir_Name : String := Name (1 .. Last); List : String_List_Id := Ignore; begin Canonical_Case_File_Name (Dir_Name); while List /= Nil_String loop Get_Name_String (Data.Tree.String_Elements.Table (List).Value); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); OK := Name_Buffer (1 .. Name_Len) /= Dir_Name; exit when not OK; List := Data.Tree.String_Elements.Table (List).Next; end loop; end; end if; if OK then Name_Len := 0; Add_Str_To_Name_Buffer (Path_Name); Path2.Display_Name := Name_Find; Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Path2.Name := Name_Find; Success := Recursive_Find_Dirs (Path2, Rank) or Success; end if; end if; end; end if; end loop; Close (Dir); return Success; exception when Directory_Error => return Success; end Recursive_Find_Dirs; ------------------ -- Find_Pattern -- ------------------ procedure Find_Pattern (Pattern_Id : Name_Id; Rank : Natural; Location : Source_Ptr) is Pattern : constant String := Get_Name_String (Pattern_Id); Pattern_End : Natural := Pattern'Last; Recursive : Boolean; Dir : File_Name_Type; Path_Name : Path_Information; Dir_Exists : Boolean; Has_Error : Boolean := False; Success : Boolean; begin if Current_Verbosity = High then Write_Str ("Expand_Subdirectory_Pattern ("""); Write_Str (Pattern); Write_Line (""")"); end if; -- If we are looking for files, find the pattern for the files if Search_For = Search_Files then while Pattern_End >= Pattern'First and then Pattern (Pattern_End) /= '/' and then Pattern (Pattern_End) /= Directory_Separator loop Pattern_End := Pattern_End - 1; end loop; if Pattern_End = Pattern'Last then Err_Vars.Error_Msg_File_1 := File_Name_Type (Pattern_Id); Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "Missing file name or pattern in {", Location, Project); return; end if; if Current_Verbosity = High then Write_Str (" file pattern="); Write_Line (Pattern (Pattern_End + 1 .. Pattern'Last)); Write_Str (" Expand directory pattern="); Write_Line (Pattern (Pattern'First .. Pattern_End)); end if; File_Pattern := Compile (Pattern (Pattern_End + 1 .. Pattern'Last), Glob => True, Case_Sensitive => File_Names_Case_Sensitive); -- If we had just "*.gpr", this is equivalent to "./*.gpr" if Pattern_End > Pattern'First then Pattern_End := Pattern_End - 1; -- Skip directory separator end if; end if; Recursive := Pattern_End - 1 >= Pattern'First and then Pattern (Pattern_End - 1 .. Pattern_End) = "**" and then (Pattern_End - 1 = Pattern'First or else Pattern (Pattern_End - 2) = '/' or else Pattern (Pattern_End - 2) = Directory_Separator); if Recursive then Pattern_End := Pattern_End - 2; if Pattern_End > Pattern'First then Pattern_End := Pattern_End - 1; -- Skip '/' end if; end if; Name_Len := Pattern_End - Pattern'First + 1; Name_Buffer (1 .. Name_Len) := Pattern (Pattern'First .. Pattern_End); Dir := Name_Find; Locate_Directory (Project => Project, Name => Dir, Path => Path_Name, Dir_Exists => Dir_Exists, Data => Data, Must_Exist => False); if not Dir_Exists then Err_Vars.Error_Msg_File_1 := Dir; Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "{ is not a valid directory", Location, Project); Has_Error := Data.Flags.Missing_Source_Files = Error; end if; if not Has_Error then -- Links have been resolved if necessary, and Path_Name -- always ends with a directory separator. if Recursive then Success := Recursive_Find_Dirs (Path_Name, Rank); else Success := Subdirectory_Matches (Path_Name, Rank); end if; if not Success then case Search_For is when Search_Directories => null; -- Error can't occur when Search_Files => Err_Vars.Error_Msg_File_1 := File_Name_Type (Pattern_Id); Error_Or_Warning (Data.Flags, Data.Flags.Missing_Source_Files, "file { not found", Location, Project); end case; end if; end if; end Find_Pattern; -- Local variables Pattern_Id : String_List_Id := Patterns; Element : String_Element; Rank : Natural := 1; -- Start of processing for Expand_Subdirectory_Pattern begin while Pattern_Id /= Nil_String loop Element := Data.Tree.String_Elements.Table (Pattern_Id); Find_Pattern (Element.Value, Rank, Element.Location); Rank := Rank + 1; Pattern_Id := Element.Next; end loop; Recursive_Dirs.Reset (Visited); end Expand_Subdirectory_Pattern; ------------------------ -- Search_Directories -- ------------------------ procedure Search_Directories (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data; For_All_Sources : Boolean) is Source_Dir : String_List_Id; Element : String_Element; Src_Dir_Rank : Number_List_Index; Num_Nod : Number_Node; Dir : Dir_Type; Name : String (1 .. 1_000); Last : Natural; File_Name : File_Name_Type; Display_File_Name : File_Name_Type; begin if Current_Verbosity = High then Write_Line ("Looking for sources:"); end if; -- Loop through subdirectories Source_Dir := Project.Project.Source_Dirs; Src_Dir_Rank := Project.Project.Source_Dir_Ranks; while Source_Dir /= Nil_String loop begin Num_Nod := Data.Tree.Number_Lists.Table (Src_Dir_Rank); Element := Data.Tree.String_Elements.Table (Source_Dir); -- Use Element.Value in this test, not Display_Value, because we -- want the symbolic links to be resolved when appropriate. if Element.Value /= No_Name then declare Source_Directory : constant String := Get_Name_String (Element.Value) & Directory_Separator; Dir_Last : constant Natural := Compute_Directory_Last (Source_Directory); Display_Source_Directory : constant String := Get_Name_String (Element.Display_Value) & Directory_Separator; -- Display_Source_Directory is to allow us to open a UTF-8 -- encoded directory on Windows. begin if Current_Verbosity = High then Write_Attr ("Source_Dir", Source_Directory (Source_Directory'First .. Dir_Last)); Write_Line (Num_Nod.Number'Img); end if; -- We look to every entry in the source directory Open (Dir, Display_Source_Directory); loop Read (Dir, Name, Last); exit when Last = 0; -- In fast project loading mode (without -eL), the user -- guarantees that no directory has a name which is a -- valid source name, so we can avoid doing a system call -- here. This provides a very significant speed up on -- slow file systems (remote files for instance). if not Opt.Follow_Links_For_Files or else Is_Regular_File (Display_Source_Directory & Name (1 .. Last)) then if Current_Verbosity = High then Write_Str (" Checking "); Write_Line (Name (1 .. Last)); end if; Name_Len := Last; Name_Buffer (1 .. Name_Len) := Name (1 .. Last); Display_File_Name := Name_Find; if Osint.File_Names_Case_Sensitive then File_Name := Display_File_Name; else Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); File_Name := Name_Find; end if; declare Path_Name : constant String := Normalize_Pathname (Name (1 .. Last), Directory => Source_Directory (Source_Directory'First .. Dir_Last), Resolve_Links => Opt.Follow_Links_For_Files, Case_Sensitive => True); Path : Path_Name_Type; FF : File_Found := Excluded_Sources_Htable.Get (Project.Excluded, File_Name); To_Remove : Boolean := False; begin Name_Len := Path_Name'Length; Name_Buffer (1 .. Name_Len) := Path_Name; if Osint.File_Names_Case_Sensitive then Path := Name_Find; else Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Path := Name_Find; end if; if FF /= No_File_Found then if not FF.Found then FF.Found := True; Excluded_Sources_Htable.Set (Project.Excluded, File_Name, FF); if Current_Verbosity = High then Write_Str (" excluded source """); Write_Str (Get_Name_String (Display_File_Name)); Write_Line (""""); end if; -- Will mark the file as removed, but we -- still need to add it to the list: if we -- don't, the file will not appear in the -- mapping file and will cause the compiler -- to fail. To_Remove := True; end if; end if; -- Preserve the user's original casing and use of -- links. The display_value (a directory) already -- ends with a directory separator by construction, -- so no need to add one. Get_Name_String (Element.Display_Value); Get_Name_String_And_Append (Display_File_Name); Check_File (Project => Project, Source_Dir_Rank => Num_Nod.Number, Data => Data, Path => Path, Display_Path => Name_Find, File_Name => File_Name, Locally_Removed => To_Remove, Display_File_Name => Display_File_Name, For_All_Sources => For_All_Sources); end; end if; end loop; Close (Dir); end; end if; exception when Directory_Error => null; end; Source_Dir := Element.Next; Src_Dir_Rank := Num_Nod.Next; end loop; if Current_Verbosity = High then Write_Line ("end Looking for sources."); end if; end Search_Directories; ---------------------------- -- Load_Naming_Exceptions -- ---------------------------- procedure Load_Naming_Exceptions (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data) is Source : Source_Id; Iter : Source_Iterator; begin Iter := For_Each_Source (Data.Tree, Project.Project); loop Source := Prj.Element (Iter); exit when Source = No_Source; -- An excluded file cannot also be an exception file name if Excluded_Sources_Htable.Get (Project.Excluded, Source.File) /= No_File_Found then Error_Msg_File_1 := Source.File; Error_Msg (Data.Flags, "{ cannot be both excluded and an exception file name", No_Location, Project.Project); end if; if Current_Verbosity = High then Write_Str ("Naming exception: Putting source file "); Write_Str (Get_Name_String (Source.File)); Write_Line (" in Source_Names"); end if; Source_Names_Htable.Set (Project.Source_Names, K => Source.File, E => Name_Location' (Name => Source.File, Location => Source.Location, Source => Source, Listed => False, Found => False)); -- If this is an Ada exception, record in table Unit_Exceptions if Source.Unit /= No_Unit_Index then declare Unit_Except : Unit_Exception := Unit_Exceptions_Htable.Get (Project.Unit_Exceptions, Source.Unit.Name); begin Unit_Except.Name := Source.Unit.Name; if Source.Kind = Spec then Unit_Except.Spec := Source.File; else Unit_Except.Impl := Source.File; end if; Unit_Exceptions_Htable.Set (Project.Unit_Exceptions, Source.Unit.Name, Unit_Except); end; end if; Next (Iter); end loop; end Load_Naming_Exceptions; ---------------------- -- Look_For_Sources -- ---------------------- procedure Look_For_Sources (Project : in out Project_Processing_Data; Data : in out Tree_Processing_Data) is Object_Files : Object_File_Names_Htable.Instance; Iter : Source_Iterator; Src : Source_Id; procedure Check_Object (Src : Source_Id); -- Check if object file name of Src is already used in the project tree, -- and report an error if so. procedure Check_Object_Files; -- Check that no two sources of this project have the same object file procedure Mark_Excluded_Sources; -- Mark as such the sources that are declared as excluded procedure Check_Missing_Sources; -- Check whether one of the languages has no sources, and report an -- error when appropriate procedure Get_Sources_From_Source_Info; -- Get the source information from the tables that were created when a -- source info fie was read. --------------------------- -- Check_Missing_Sources -- --------------------------- procedure Check_Missing_Sources is Extending : constant Boolean := Project.Project.Extends /= No_Project; Language : Language_Ptr; Source : Source_Id; Alt_Lang : Language_List; Continuation : Boolean := False; Iter : Source_Iterator; begin if not Project.Project.Externally_Built and then not Extending then Language := Project.Project.Languages; while Language /= No_Language_Index loop -- If there are no sources for this language, check if there -- are sources for which this is an alternate language. if Language.First_Source = No_Source and then (Data.Flags.Require_Sources_Other_Lang or else Language.Name = Name_Ada) then Iter := For_Each_Source (In_Tree => Data.Tree, Project => Project.Project); Source_Loop : loop Source := Element (Iter); exit Source_Loop when Source = No_Source or else Source.Language = Language; Alt_Lang := Source.Alternate_Languages; while Alt_Lang /= null loop exit Source_Loop when Alt_Lang.Language = Language; Alt_Lang := Alt_Lang.Next; end loop; Next (Iter); end loop Source_Loop; if Source = No_Source then Report_No_Sources (Project.Project, Get_Name_String (Language.Display_Name), Data, Project.Source_List_File_Location, Continuation); Continuation := True; end if; end if; Language := Language.Next; end loop; end if; end Check_Missing_Sources; ------------------ -- Check_Object -- ------------------ procedure Check_Object (Src : Source_Id) is Source : Source_Id; begin Source := Object_File_Names_Htable.Get (Object_Files, Src.Object); -- We cannot just check on "Source /= Src", since we might have -- two different entries for the same file (and since that's -- the same file it is expected that it has the same object) if Source /= No_Source and then Source.Path /= Src.Path then Error_Msg_File_1 := Src.File; Error_Msg_File_2 := Source.File; Error_Msg (Data.Flags, "{ and { have the same object file name", No_Location, Project.Project); else Object_File_Names_Htable.Set (Object_Files, Src.Object, Src); end if; end Check_Object; --------------------------- -- Mark_Excluded_Sources -- --------------------------- procedure Mark_Excluded_Sources is Source : Source_Id := No_Source; Excluded : File_Found; Proj : Project_Id; begin -- Minor optimization: if there are no excluded files, no need to -- traverse the list of sources. We cannot however also check whether -- the existing exceptions have ".Found" set to True (indicating we -- found them before) because we need to do some final processing on -- them in any case. if Excluded_Sources_Htable.Get_First (Project.Excluded) /= No_File_Found then Proj := Project.Project; while Proj /= No_Project loop Iter := For_Each_Source (Data.Tree, Proj); while Prj.Element (Iter) /= No_Source loop Source := Prj.Element (Iter); Excluded := Excluded_Sources_Htable.Get (Project.Excluded, Source.File); if Excluded /= No_File_Found then Source.Locally_Removed := True; Source.In_Interfaces := False; if Current_Verbosity = High then Write_Str ("Removing file "); Write_Line (Get_Name_String (Excluded.File) & " " & Get_Name_String (Source.Project.Name)); end if; Excluded_Sources_Htable.Remove (Project.Excluded, Source.File); end if; Next (Iter); end loop; Proj := Proj.Extends; end loop; end if; -- If we have any excluded element left, that means we did not find -- the source file Excluded := Excluded_Sources_Htable.Get_First (Project.Excluded); while Excluded /= No_File_Found loop if not Excluded.Found then -- Check if the file belongs to another imported project to -- provide a better error message. Src := Find_Source (In_Tree => Data.Tree, Project => Project.Project, In_Imported_Only => True, Base_Name => Excluded.File); Err_Vars.Error_Msg_File_1 := Excluded.File; if Src = No_Source then Error_Msg (Data.Flags, "unknown file {", Excluded.Location, Project.Project); else Error_Msg (Data.Flags, "cannot remove a source from an imported project: {", Excluded.Location, Project.Project); end if; end if; Excluded := Excluded_Sources_Htable.Get_Next (Project.Excluded); end loop; end Mark_Excluded_Sources; ------------------------ -- Check_Object_Files -- ------------------------ procedure Check_Object_Files is Iter : Source_Iterator; Src_Id : Source_Id; Src_Ind : Source_File_Index; begin Iter := For_Each_Source (Data.Tree); loop Src_Id := Prj.Element (Iter); exit when Src_Id = No_Source; if Is_Compilable (Src_Id) and then Src_Id.Language.Config.Object_Generated and then Is_Extending (Project.Project, Src_Id.Project) then if Src_Id.Unit = No_Unit_Index then if Src_Id.Kind = Impl then Check_Object (Src_Id); end if; else case Src_Id.Kind is when Spec => if Other_Part (Src_Id) = No_Source then Check_Object (Src_Id); end if; when Sep => null; when Impl => if Other_Part (Src_Id) /= No_Source then Check_Object (Src_Id); else -- Check if it is a subunit Src_Ind := Sinput.P.Load_Project_File (Get_Name_String (Src_Id.Path.Display_Name)); if Sinput.P.Source_File_Is_Subunit (Src_Ind) then Override_Kind (Src_Id, Sep); else Check_Object (Src_Id); end if; end if; end case; end if; end if; Next (Iter); end loop; end Check_Object_Files; ---------------------------------- -- Get_Sources_From_Source_Info -- ---------------------------------- procedure Get_Sources_From_Source_Info is Iter : Source_Info_Iterator; Src : Source_Info; Id : Source_Id; Lang_Id : Language_Ptr; begin Initialize (Iter, Project.Project.Name); loop Src := Source_Info_Of (Iter); exit when Src = No_Source_Info; Id := new Source_Data; Id.Project := Project.Project; Lang_Id := Project.Project.Languages; while Lang_Id /= No_Language_Index and then Lang_Id.Name /= Src.Language loop Lang_Id := Lang_Id.Next; end loop; if Lang_Id = No_Language_Index then Prj.Com.Fail ("unknown language " & Get_Name_String (Src.Language) & " for project " & Get_Name_String (Src.Project) & " in source info file"); end if; Id.Language := Lang_Id; Id.Kind := Src.Kind; Id.Index := Src.Index; Id.Path := (Path_Name_Type (Src.Display_Path_Name), Path_Name_Type (Src.Path_Name)); Name_Len := 0; Add_Str_To_Name_Buffer (Ada.Directories.Simple_Name (Get_Name_String (Src.Path_Name))); Id.File := Name_Find; Id.Next_With_File_Name := Source_Files_Htable.Get (Data.Tree.Source_Files_HT, Id.File); Source_Files_Htable.Set (Data.Tree.Source_Files_HT, Id.File, Id); Name_Len := 0; Add_Str_To_Name_Buffer (Ada.Directories.Simple_Name (Get_Name_String (Src.Display_Path_Name))); Id.Display_File := Name_Find; Id.Dep_Name := Dependency_Name (Id.File, Id.Language.Config.Dependency_Kind); Id.Naming_Exception := Src.Naming_Exception; Id.Object := Object_Name (Id.File, Id.Language.Config.Object_File_Suffix); Id.Switches := Switches_Name (Id.File); -- Add the source id to the Unit_Sources_HT hash table, if the -- unit name is not null. if Src.Kind /= Sep and then Src.Unit_Name /= No_Name then declare UData : Unit_Index := Units_Htable.Get (Data.Tree.Units_HT, Src.Unit_Name); begin if UData = No_Unit_Index then UData := new Unit_Data; UData.Name := Src.Unit_Name; Units_Htable.Set (Data.Tree.Units_HT, Src.Unit_Name, UData); end if; Id.Unit := UData; end; -- Note that this updates Unit information as well Override_Kind (Id, Id.Kind); end if; if Src.Index /= 0 then Project.Project.Has_Multi_Unit_Sources := True; end if; -- Add the source to the language list Id.Next_In_Lang := Id.Language.First_Source; Id.Language.First_Source := Id; Files_Htable.Set (Data.File_To_Source, Id.File, Id); Next (Iter); end loop; end Get_Sources_From_Source_Info; -- Start of processing for Look_For_Sources begin if Data.Tree.Source_Info_File_Exists then Get_Sources_From_Source_Info; else if Project.Project.Source_Dirs /= Nil_String then Find_Excluded_Sources (Project, Data); if Project.Project.Languages /= No_Language_Index then Load_Naming_Exceptions (Project, Data); Find_Sources (Project, Data); Mark_Excluded_Sources; Check_Object_Files; Check_Missing_Sources; end if; end if; Object_File_Names_Htable.Reset (Object_Files); end if; end Look_For_Sources; ------------------ -- Path_Name_Of -- ------------------ function Path_Name_Of (File_Name : File_Name_Type; Directory : Path_Name_Type) return String is Result : String_Access; The_Directory : constant String := Get_Name_String (Directory); begin Get_Name_String (File_Name); Result := Locate_Regular_File (File_Name => Name_Buffer (1 .. Name_Len), Path => The_Directory); if Result = null then return ""; else declare R : String := Result.all; begin Free (Result); Canonical_Case_File_Name (R); return R; end; end if; end Path_Name_Of; ------------------- -- Remove_Source -- ------------------- procedure Remove_Source (Tree : Project_Tree_Ref; Id : Source_Id; Replaced_By : Source_Id) is Source : Source_Id; begin if Current_Verbosity = High then Write_Str ("Removing source "); Write_Str (Get_Name_String (Id.File)); if Id.Index /= 0 then Write_Str (" at" & Id.Index'Img); end if; Write_Eol; end if; if Replaced_By /= No_Source then Id.Replaced_By := Replaced_By; Replaced_By.Declared_In_Interfaces := Id.Declared_In_Interfaces; if Id.File /= Replaced_By.File then declare Replacement : constant File_Name_Type := Replaced_Source_HTable.Get (Tree.Replaced_Sources, Id.File); begin Replaced_Source_HTable.Set (Tree.Replaced_Sources, Id.File, Replaced_By.File); if Replacement = No_File then Tree.Replaced_Source_Number := Tree.Replaced_Source_Number + 1; end if; end; end if; end if; Id.In_Interfaces := False; Id.Locally_Removed := True; -- ??? Should we remove the source from the unit ? The file is not used, -- so probably should not be referenced from the unit. On the other hand -- it might give useful additional info -- if Id.Unit /= null then -- Id.Unit.File_Names (Id.Kind) := null; -- end if; Source := Id.Language.First_Source; if Source = Id then Id.Language.First_Source := Id.Next_In_Lang; else while Source.Next_In_Lang /= Id loop Source := Source.Next_In_Lang; end loop; Source.Next_In_Lang := Id.Next_In_Lang; end if; end Remove_Source; ----------------------- -- Report_No_Sources -- ----------------------- procedure Report_No_Sources (Project : Project_Id; Lang_Name : String; Data : Tree_Processing_Data; Location : Source_Ptr; Continuation : Boolean := False) is begin case Data.Flags.When_No_Sources is when Silent => null; when Warning | Error => declare Msg : constant String := "<there are no " & Lang_Name & " sources in this project"; begin Error_Msg_Warn := Data.Flags.When_No_Sources = Warning; if Continuation then Error_Msg (Data.Flags, "\" & Msg, Location, Project); else Error_Msg (Data.Flags, Msg, Location, Project); end if; end; end case; end Report_No_Sources; ---------------------- -- Show_Source_Dirs -- ---------------------- procedure Show_Source_Dirs (Project : Project_Id; In_Tree : Project_Tree_Ref) is Current : String_List_Id; Element : String_Element; begin Write_Line ("Source_Dirs:"); Current := Project.Source_Dirs; while Current /= Nil_String loop Element := In_Tree.String_Elements.Table (Current); Write_Str (" "); Write_Line (Get_Name_String (Element.Display_Value)); Current := Element.Next; end loop; Write_Line ("end Source_Dirs."); end Show_Source_Dirs; --------------------------- -- Process_Naming_Scheme -- --------------------------- procedure Process_Naming_Scheme (Tree : Project_Tree_Ref; Root_Project : Project_Id; Node_Tree : Prj.Tree.Project_Node_Tree_Ref; Flags : Processing_Flags) is procedure Recursive_Check (Project : Project_Id; Data : in out Tree_Processing_Data); -- Check_Naming_Scheme for the project --------------------- -- Recursive_Check -- --------------------- procedure Recursive_Check (Project : Project_Id; Data : in out Tree_Processing_Data) is begin if Verbose_Mode then Write_Str ("Processing_Naming_Scheme for project """); Write_Str (Get_Name_String (Project.Name)); Write_Line (""""); end if; Prj.Nmsc.Check (Project, Data); end Recursive_Check; procedure Check_All_Projects is new For_Every_Project_Imported (Tree_Processing_Data, Recursive_Check); Data : Tree_Processing_Data; -- Start of processing for Process_Naming_Scheme begin Lib_Data_Table.Init; Initialize (Data, Tree => Tree, Node_Tree => Node_Tree, Flags => Flags); Check_All_Projects (Root_Project, Data, Imported_First => True); Free (Data); -- Adjust language configs for projects that are extended declare List : Project_List; Proj : Project_Id; Exte : Project_Id; Lang : Language_Ptr; Elng : Language_Ptr; begin List := Tree.Projects; while List /= null loop Proj := List.Project; Exte := Proj; while Exte.Extended_By /= No_Project loop Exte := Exte.Extended_By; end loop; if Exte /= Proj then Lang := Proj.Languages; if Lang /= No_Language_Index then loop Elng := Get_Language_From_Name (Exte, Get_Name_String (Lang.Name)); exit when Elng /= No_Language_Index; Exte := Exte.Extends; end loop; if Elng /= Lang then Lang.Config := Elng.Config; end if; end if; end if; List := List.Next; end loop; end; end Process_Naming_Scheme; end Prj.Nmsc;
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ncurses2.trace_set -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 2000,2006 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000 -- Version Control -- $Revision: 1.2 $ -- $Date: 2006/06/25 14:24:40 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ with ncurses2.util; use ncurses2.util; with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Terminal_Interface.Curses.Trace; use Terminal_Interface.Curses.Trace; with Terminal_Interface.Curses.Menus; use Terminal_Interface.Curses.Menus; with Ada.Strings.Bounded; -- interactively set the trace level procedure ncurses2.trace_set is function menu_virtualize (c : Key_Code) return Menu_Request_Code; function subset (super, sub : Trace_Attribute_Set) return Boolean; function trace_or (a, b : Trace_Attribute_Set) return Trace_Attribute_Set; function trace_num (tlevel : Trace_Attribute_Set) return String; function tracetrace (tlevel : Trace_Attribute_Set) return String; function run_trace_menu (m : Menu) return Boolean; function menu_virtualize (c : Key_Code) return Menu_Request_Code is begin case c is when Character'Pos (newl) | Key_Exit => return Menu_Request_Code'Last + 1; -- MAX_COMMAND? TODO when Character'Pos ('u') => return M_ScrollUp_Line; when Character'Pos ('d') => return M_ScrollDown_Line; when Character'Pos ('b') | Key_Next_Page => return M_ScrollUp_Page; when Character'Pos ('f') | Key_Previous_Page => return M_ScrollDown_Page; when Character'Pos ('n') | Key_Cursor_Down => return M_Next_Item; when Character'Pos ('p') | Key_Cursor_Up => return M_Previous_Item; when Character'Pos (' ') => return M_Toggle_Item; when Key_Mouse => return c; when others => Beep; return c; end case; end menu_virtualize; type string_a is access String; type tbl_entry is record name : string_a; mask : Trace_Attribute_Set; end record; t_tbl : constant array (Positive range <>) of tbl_entry := ( (new String'("Disable"), Trace_Disable), (new String'("Times"), Trace_Attribute_Set'(Times => True, others => False)), (new String'("Tputs"), Trace_Attribute_Set'(Tputs => True, others => False)), (new String'("Update"), Trace_Attribute_Set'(Update => True, others => False)), (new String'("Cursor_Move"), Trace_Attribute_Set'(Cursor_Move => True, others => False)), (new String'("Character_Output"), Trace_Attribute_Set'(Character_Output => True, others => False)), (new String'("Ordinary"), Trace_Ordinary), (new String'("Calls"), Trace_Attribute_Set'(Calls => True, others => False)), (new String'("Virtual_Puts"), Trace_Attribute_Set'(Virtual_Puts => True, others => False)), (new String'("Input_Events"), Trace_Attribute_Set'(Input_Events => True, others => False)), (new String'("TTY_State"), Trace_Attribute_Set'(TTY_State => True, others => False)), (new String'("Internal_Calls"), Trace_Attribute_Set'(Internal_Calls => True, others => False)), (new String'("Character_Calls"), Trace_Attribute_Set'(Character_Calls => True, others => False)), (new String'("Termcap_TermInfo"), Trace_Attribute_Set'(Termcap_TermInfo => True, others => False)), (new String'("Maximium"), Trace_Maximum) ); package BS is new Ada.Strings.Bounded.Generic_Bounded_Length (300); function subset (super, sub : Trace_Attribute_Set) return Boolean is begin if (super.Times or not sub.Times) and (super.Tputs or not sub.Tputs) and (super.Update or not sub.Update) and (super.Cursor_Move or not sub.Cursor_Move) and (super.Character_Output or not sub.Character_Output) and (super.Calls or not sub.Calls) and (super.Virtual_Puts or not sub.Virtual_Puts) and (super.Input_Events or not sub.Input_Events) and (super.TTY_State or not sub.TTY_State) and (super.Internal_Calls or not sub.Internal_Calls) and (super.Character_Calls or not sub.Character_Calls) and (super.Termcap_TermInfo or not sub.Termcap_TermInfo) and True then return True; else return False; end if; end subset; function trace_or (a, b : Trace_Attribute_Set) return Trace_Attribute_Set is retval : Trace_Attribute_Set := Trace_Disable; begin retval.Times := (a.Times or b.Times); retval.Tputs := (a.Tputs or b.Tputs); retval.Update := (a.Update or b.Update); retval.Cursor_Move := (a.Cursor_Move or b.Cursor_Move); retval.Character_Output := (a.Character_Output or b.Character_Output); retval.Calls := (a.Calls or b.Calls); retval.Virtual_Puts := (a.Virtual_Puts or b.Virtual_Puts); retval.Input_Events := (a.Input_Events or b.Input_Events); retval.TTY_State := (a.TTY_State or b.TTY_State); retval.Internal_Calls := (a.Internal_Calls or b.Internal_Calls); retval.Character_Calls := (a.Character_Calls or b.Character_Calls); retval.Termcap_TermInfo := (a.Termcap_TermInfo or b.Termcap_TermInfo); return retval; end trace_or; -- Print the hexadecimal value of the mask so -- users can set it from the command line. function trace_num (tlevel : Trace_Attribute_Set) return String is result : Integer := 0; m : Integer := 1; begin if tlevel.Times then result := result + m; end if; m := m * 2; if tlevel.Tputs then result := result + m; end if; m := m * 2; if tlevel.Update then result := result + m; end if; m := m * 2; if tlevel.Cursor_Move then result := result + m; end if; m := m * 2; if tlevel.Character_Output then result := result + m; end if; m := m * 2; if tlevel.Calls then result := result + m; end if; m := m * 2; if tlevel.Virtual_Puts then result := result + m; end if; m := m * 2; if tlevel.Input_Events then result := result + m; end if; m := m * 2; if tlevel.TTY_State then result := result + m; end if; m := m * 2; if tlevel.Internal_Calls then result := result + m; end if; m := m * 2; if tlevel.Character_Calls then result := result + m; end if; m := m * 2; if tlevel.Termcap_TermInfo then result := result + m; end if; m := m * 2; return result'Img; end trace_num; function tracetrace (tlevel : Trace_Attribute_Set) return String is use BS; buf : Bounded_String := To_Bounded_String (""); begin -- The C version prints the hexadecimal value of the mask, we -- won't do that here because this is Ada. if tlevel = Trace_Disable then Append (buf, "Trace_Disable"); else if subset (tlevel, Trace_Attribute_Set'(Times => True, others => False)) then Append (buf, "Times"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Tputs => True, others => False)) then Append (buf, "Tputs"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Update => True, others => False)) then Append (buf, "Update"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Cursor_Move => True, others => False)) then Append (buf, "Cursor_Move"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Character_Output => True, others => False)) then Append (buf, "Character_Output"); Append (buf, ", "); end if; if subset (tlevel, Trace_Ordinary) then Append (buf, "Ordinary"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Calls => True, others => False)) then Append (buf, "Calls"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Virtual_Puts => True, others => False)) then Append (buf, "Virtual_Puts"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Input_Events => True, others => False)) then Append (buf, "Input_Events"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(TTY_State => True, others => False)) then Append (buf, "TTY_State"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Internal_Calls => True, others => False)) then Append (buf, "Internal_Calls"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Character_Calls => True, others => False)) then Append (buf, "Character_Calls"); Append (buf, ", "); end if; if subset (tlevel, Trace_Attribute_Set'(Termcap_TermInfo => True, others => False)) then Append (buf, "Termcap_TermInfo"); Append (buf, ", "); end if; if subset (tlevel, Trace_Maximum) then Append (buf, "Maximium"); Append (buf, ", "); end if; end if; if To_String (buf) (Length (buf) - 1) = ',' then Delete (buf, Length (buf) - 1, Length (buf)); end if; return To_String (buf); end tracetrace; function run_trace_menu (m : Menu) return Boolean is i, p : Item; changed : Boolean; c, v : Key_Code; begin loop changed := False; c := Getchar (Get_Window (m)); v := menu_virtualize (c); case Driver (m, v) is when Unknown_Request => return False; when others => i := Current (m); if i = Menus.Items (m, 1) then -- the first item for n in t_tbl'First + 1 .. t_tbl'Last loop if Value (i) then Set_Value (i, False); changed := True; end if; end loop; else for n in t_tbl'First + 1 .. t_tbl'Last loop p := Menus.Items (m, n); if Value (p) then Set_Value (Menus.Items (m, 1), False); changed := True; exit; end if; end loop; end if; if not changed then return True; end if; end case; end loop; end run_trace_menu; nc_tracing, mask : Trace_Attribute_Set; pragma Import (C, nc_tracing, "_nc_tracing"); items_a : constant Item_Array_Access := new Item_Array (t_tbl'First .. t_tbl'Last + 1); mrows : Line_Count; mcols : Column_Count; menuwin : Window; menu_y : constant Line_Position := 8; menu_x : constant Column_Position := 8; ip : Item; m : Menu; newtrace : Trace_Attribute_Set; begin Add (Line => 0, Column => 0, Str => "Interactively set trace level:"); Add (Line => 2, Column => 0, Str => " Press space bar to toggle a selection."); Add (Line => 3, Column => 0, Str => " Use up and down arrow to move the select bar."); Add (Line => 4, Column => 0, Str => " Press return to set the trace level."); Add (Line => 6, Column => 0, Str => "(Current trace level is "); Add (Str => tracetrace (nc_tracing) & " numerically: " & trace_num (nc_tracing)); Add (Ch => ')'); Refresh; for n in t_tbl'Range loop items_a (n) := New_Item (t_tbl (n).name.all); end loop; items_a (t_tbl'Last + 1) := Null_Item; m := New_Menu (items_a); Set_Format (m, 16, 2); Scale (m, mrows, mcols); Switch_Options (m, (One_Valued => True, others => False), On => False); menuwin := New_Window (mrows + 2, mcols + 2, menu_y, menu_x); Set_Window (m, menuwin); Set_KeyPad_Mode (menuwin, SwitchOn => True); Box (menuwin); Set_Sub_Window (m, Derived_Window (menuwin, mrows, mcols, 1, 1)); Post (m); for n in t_tbl'Range loop ip := Items (m, n); mask := t_tbl (n).mask; if mask = Trace_Disable then Set_Value (ip, nc_tracing = Trace_Disable); elsif subset (sub => mask, super => nc_tracing) then Set_Value (ip, True); end if; end loop; while run_trace_menu (m) loop null; end loop; newtrace := Trace_Disable; for n in t_tbl'Range loop ip := Items (m, n); if Value (ip) then mask := t_tbl (n).mask; newtrace := trace_or (newtrace, mask); end if; end loop; Trace_On (newtrace); Trace_Put ("trace level interactively set to " & tracetrace (nc_tracing)); Move_Cursor (Line => Lines - 4, Column => 0); Add (Str => "Trace level is "); Add (Str => tracetrace (nc_tracing)); Add (Ch => newl); Pause; -- was just Add(); Getchar Post (m, False); -- menuwin has subwindows I think, which makes an error. declare begin Delete (menuwin); exception when Curses_Exception => null; end; -- free_menu(m); -- free_item() end ncurses2.trace_set;
----------------------------------------------------------------------- -- components-ajax -- AJAX Components -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- package ASF.Components.Ajax is end ASF.Components.Ajax;
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; package body Examples.Visitor is procedure Demo_Visitor (Unit : Analysis_Unit); procedure Demo (File_Name : String) is Unit : constant Analysis_Unit := Analyze_File (File_Name); begin Put_Line ("=== Examples of Visitor ======="); New_Line; Demo_Visitor (Unit); New_Line; end Demo; procedure Demo_Visitor (Unit : Analysis_Unit) is function Visit_Function (Node : Ada_Node'Class) return Visit_Status; function Visit_Function (Node : Ada_Node'Class) return Visit_Status is begin if Node.Kind = Ada_Call_Expr then Put_Line (Node.Image); end if; return Into; -- Always continue the traversal. end Visit_Function; begin Unit.Root.Traverse (Visit_Function'Access); end Demo_Visitor; end Examples.Visitor;
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Ada.Streams; with GNAT.SHA1; with Natools.GNAT_HMAC; with Natools.GNAT_HMAC.SHA1; with Natools.S_Expressions.Encodings; with Natools.S_Expressions.File_Readers; with Natools.S_Expressions.File_Writers; with Natools.S_Expressions.Interpreter_Loop; with Natools.S_Expressions.Printers.Pretty.Config; with Simple_Webapps.Commands.Upload_Servers; separate (Simple_Webapps.Upload_Servers) package body Backend is package Commands renames Simple_Webapps.Commands.Upload_Servers; package Hash renames GNAT.SHA1; package HMAC renames Natools.GNAT_HMAC.SHA1; Hash_Name : constant String := "SHA-1"; Digit_62 : constant Ada.Streams.Stream_Element := Character'Pos ('-'); Digit_63 : constant Ada.Streams.Stream_Element := Character'Pos ('_'); -- Special digits for base-64 URI (RFC 4648) procedure Execute (State : in out Config_Data; Context : in Natools.Meaningless_Type; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class); -- Execute S-expression commands for configuration data interpreter procedure Execute (State : in out File_Data; Context : in Natools.Meaningless_Type; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class); -- Execute S-expression commands for file data interpreter procedure Set_Max_Expiration (Max_Expiration : in out Size_Time; Expression : in out S_Expressions.Lockable.Descriptor'Class); -- Process Expression and update Max_Expiration with parsed value procedure Write (Self : in File_Data; Output : in out S_Expressions.Printers.Printer'Class); -- Serialize the given file data into Output -------------------- -- File Entry I/O -- -------------------- procedure Execute (State : in out File_Data; Context : in Natools.Meaningless_Type; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class) is pragma Unreferenced (Context); use type S_Expressions.Events.Event; begin if Arguments.Current_Event /= S_Expressions.Events.Add_Atom then return; end if; declare Value : constant String := S_Expressions.To_String (Arguments.Current_Atom); begin case Commands.To_File_Command (S_Expressions.To_String (Name)) is when Commands.File_Error => null; when Commands.Set_Name => State.Name := Hold (Value); when Commands.Set_Comment => State.Comment := Hold (Value); when Commands.Set_Download => if State.Download'Length = Value'Length then State.Download := Value; end if; when Commands.Set_Expiration => State.Expiration := Ada.Calendar.Formatting.Value (Value); when Commands.Set_MIME_Type => State.MIME_Type := Hold (Value); when Commands.Set_Upload => State.Upload := Ada.Calendar.Formatting.Value (Value); end case; end; end Execute; procedure Interpreter is new S_Expressions.Interpreter_Loop (File_Data, Natools.Meaningless_Type, Execute); procedure Write (Self : in File_Data; Output : in out S_Expressions.Printers.Printer'Class) is begin Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom (Self.Report)); Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("name")); Output.Append_Atom (S_Expressions.To_Atom (To_String (Self.Name))); Output.Close_List; Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("comment")); Output.Append_Atom (S_Expressions.To_Atom (To_String (Self.Comment))); Output.Close_List; Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("download-key")); Output.Append_Atom (S_Expressions.To_Atom (Self.Download)); Output.Close_List; Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("expire")); Output.Append_Atom (S_Expressions.To_Atom (Ada.Calendar.Formatting.Image (Self.Expiration))); Output.Close_List; Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("mime-type")); Output.Append_Atom (S_Expressions.To_Atom (To_String (Self.MIME_Type))); Output.Close_List; Output.Open_List; Output.Append_Atom (S_Expressions.To_Atom ("upload")); Output.Append_Atom (S_Expressions.To_Atom (Ada.Calendar.Formatting.Image (Self.Upload))); Output.Close_List; Output.Close_List; end Write; ------------------------- -- Database Config I/O -- ------------------------- procedure Set_Max_Expiration (Max_Expiration : in out Size_Time; Expression : in out S_Expressions.Lockable.Descriptor'Class) is use type S_Expressions.Events.Event; Event : S_Expressions.Events.Event; New_Value : Size_Time := 0; begin Parse_Number : declare use type S_Expressions.Atom; use type S_Expressions.Count; use type S_Expressions.Octet; Number : constant S_Expressions.Atom := Expression.Current_Atom; I : S_Expressions.Offset := Number'First; begin while I in Number'Range and then Number (I) = 32 loop I := I + 1; end loop; while I in Number'Range and then Number (I) in 48 .. 57 loop New_Value := New_Value * 10 + Size_Time (Number (I) - 48); I := I + 1; end loop; if I in Number'Range or New_Value = 0 then return; end if; end Parse_Number; Max_Expiration := New_Value; Expression.Next (Event); if Event /= S_Expressions.Events.Add_Atom then return; end if; Parse_Unit : declare Unit_Str : constant String := S_Expressions.To_String (Expression.Current_Atom); I : Positive := Unit_Str'First; begin if Unit_Str (I) = 'k' then New_Value := New_Value * 1024; I := I + 1; elsif Unit_Str (I) = 'M' then New_Value := New_Value * 1024 ** 2; I := I + 1; elsif Unit_Str (I) = 'G' then New_Value := New_Value * 1024 ** 3; I := I + 1; elsif Unit_Str (I) = 'T' then New_Value := New_Value * 1024 ** 4; I := I + 1; end if; if Unit_Str (I) = 'b' then New_Value := New_Value / 8; I := I + 1; elsif Unit_Str (I) = 'B' then I := I + 1; else return; end if; if Unit_Str (I) = '.' then I := I + 1; else return; end if; if Unit_Str (I) = 's' then I := I + 1; elsif Unit_Str (I) = 'm' then New_Value := New_Value * 60; I := I + 1; elsif Unit_Str (I) = 'h' then New_Value := New_Value * 3600; I := I + 1; elsif Unit_Str (I) = 'd' then New_Value := New_Value * 86_400; I := I + 1; elsif Unit_Str (I) = 'w' then New_Value := New_Value * 604_800; I := I + 1; else return; end if; end Parse_Unit; Max_Expiration := New_Value; end Set_Max_Expiration; procedure Execute (State : in out Config_Data; Context : in Natools.Meaningless_Type; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class) is pragma Unreferenced (Context); use type S_Expressions.Events.Event; function Current_Atom return S_Expressions.Atom; function Current_Atom return S_Expressions.Atom is begin return Arguments.Current_Atom; end Current_Atom; begin if Arguments.Current_Event /= S_Expressions.Events.Add_Atom then return; end if; declare Value : constant String := S_Expressions.To_String (Arguments.Current_Atom); begin case Commands.To_Config_Command (S_Expressions.To_String (Name)) is when Commands.Config_Error => null; when Commands.Set_Storage_File => State.Storage_File := Hold (Value); declare Event : S_Expressions.Events.Event; begin Arguments.Next (Event); case Event is when S_Expressions.Events.Add_Atom | S_Expressions.Events.Open_List => S_Expressions.Printers.Pretty.Config.Update (State.Printer_Param, Arguments); when S_Expressions.Events.Close_List | S_Expressions.Events.End_Of_Input | S_Expressions.Events.Error => null; end case; end; when Commands.Set_Directory => State.Directory := Atom_Refs.Create (Current_Atom'Access); when Commands.Set_Error_Template => State.Error_Template := Hold (Value); when Commands.Set_HMAC_Key => State.HMAC_Key := Hold (Value); when Commands.Set_Index_Template => State.Index_Template := Hold (Value); when Commands.Set_Input_Dir => State.Input_Dir := Hold (Value); when Commands.Set_Max_Expiration => Set_Max_Expiration (State.Max_Expiration, Arguments); when Commands.Set_Static_Dir => State.Static_Dir := Hold (Value); when Commands.Set_Report_Template => State.Report_Template := Hold (Value); end case; end; end Execute; procedure Interpreter is new S_Expressions.Interpreter_Loop (Config_Data, Natools.Meaningless_Type, Execute); -------------------- -- File Accessors -- -------------------- function Is_Empty (Self : File) return Boolean is begin return Self.Ref.Is_Empty; end Is_Empty; function Name (Self : File) return String is begin return To_String (Self.Ref.Query.Data.Name); end Name; function Comment (Self : File) return String is begin return To_String (Self.Ref.Query.Data.Comment); end Comment; function MIME_Type (Self : File) return String is begin return To_String (Self.Ref.Query.Data.MIME_Type); end MIME_Type; function Path (Directory : Atom_Refs.Immutable_Reference; Report : URI_Key) return String is begin return Ada.Directories.Compose (S_Expressions.To_String (Directory.Query.Data.all), Report, ""); end Path; function Path (Self : File) return String is begin return Path (Self.Ref.Query.Data.Directory, Self.Ref.Query.Data.Report); end Path; function Report (Self : File) return URI_Key is begin return Self.Ref.Query.Data.Report; end Report; function Download (Self : File) return URI_Key is begin return Self.Ref.Query.Data.Download; end Download; function Hash_Type (Self : File) return String is pragma Unreferenced (Self); begin return Hash_Name; end Hash_Type; function Hex_Digest (Self : File) return String is begin return S_Expressions.To_String (S_Expressions.Encodings.Encode_Hex (S_Expressions.Encodings.Decode_Base64 (S_Expressions.To_Atom (Self.Ref.Query.Data.Report), Digit_62, Digit_63), S_Expressions.Encodings.Lower)); end Hex_Digest; function Upload (Self : File) return Ada.Calendar.Time is begin return Self.Ref.Query.Data.Upload; end Upload; function Expiration (Self : File) return Ada.Calendar.Time is begin return Self.Ref.Query.Data.Expiration; end Expiration; function Expire_Before (Left, Right : File) return Boolean is use type Ada.Calendar.Time; begin return Left.Expiration < Right.Expiration or else (Left.Expiration = Right.Expiration and then Left.Report < Right.Report); end Expire_Before; ---------------------- -- S-Expression I/O -- ---------------------- procedure Read (Self : out File_Set; Input : in out S_Expressions.Lockable.Descriptor'Class; Directory : in Atom_Refs.Immutable_Reference) is use type S_Expressions.Events.Event; use type Ada.Calendar.Time; Event : S_Expressions.Events.Event := Input.Current_Event; Now : constant Ada.Calendar.Time := Ada.Calendar.Clock; Empty_Data : constant File_Data := (Name | Comment | MIME_Type => Hold (""), Report | Download => (others => ' '), Upload | Expiration => Now, Directory => Directory); Data : File_Data; F : File; function Create return File_Data; function Create return File_Data is begin return Data; end Create; Lock : S_Expressions.Lockable.Lock_State; begin Self.Reports.Clear; Self.Downloads.Clear; Self.Expires.Clear; loop case Event is when S_Expressions.Events.Open_List => Input.Next (Event); if Event = S_Expressions.Events.Add_Atom and then Input.Current_Atom'Length = Data.Report'Length then Data := Empty_Data; Data.Report := S_Expressions.To_String (Input.Current_Atom); Input.Lock (Lock); Input.Next; Interpreter (Input, Data, Natools.Meaningless_Value); Input.Unlock (Lock); if Data.Download /= Empty_Data.Download and then not Self.Reports.Contains (Data.Report) and then not Self.Downloads.Contains (Data.Download) then if Data.Expiration > Now then F := (Ref => File_Refs.Create (Create'Access)); Self.Reports.Insert (Data.Report, F); Self.Downloads.Insert (Data.Download, F); Self.Expires.Insert (F); elsif Ada.Directories.Exists (Path (Directory, Data.Report)) then Ada.Directories.Delete_File (Path (Directory, Data.Report)); Log ("Purged stale file " & Data.Report); end if; end if; end if; when S_Expressions.Events.Close_List | S_Expressions.Events.Add_Atom => null; when S_Expressions.Events.End_Of_Input | S_Expressions.Events.Error => exit; end case; Input.Next (Event); end loop; end Read; ----------------------------- -- Database Implementation -- ----------------------------- protected body Database is function Debug_Activated return Boolean is begin return Debug; end Debug_Activated; function Report (Key : URI_Key) return File is use type Ada.Calendar.Time; Cursor : constant File_Maps.Cursor := Files.Reports.Find (Key); Result : File := (Ref => File_Refs.Null_Immutable_Reference); begin if File_Maps.Has_Element (Cursor) then Result := File_Maps.Element (Cursor); if Result.Expiration < Ada.Calendar.Clock then Result := (Ref => File_Refs.Null_Immutable_Reference); end if; end if; return Result; end Report; function Download (Key : URI_Key) return File is use type Ada.Calendar.Time; Cursor : constant File_Maps.Cursor := Files.Downloads.Find (Key); Result : File := (Ref => File_Refs.Null_Immutable_Reference); begin if File_Maps.Has_Element (Cursor) then Result := File_Maps.Element (Cursor); if Result.Expiration < Ada.Calendar.Clock then Result := (Ref => File_Refs.Null_Immutable_Reference); end if; end if; return Result; end Download; function Error_Template return String is begin return To_String (Config.Error_Template); end Error_Template; function Index_Template return String is begin return To_String (Config.Index_Template); end Index_Template; function Max_Expiration return Size_Time is begin return Config.Max_Expiration; end Max_Expiration; function Static_Resource_Dir return String is begin return To_String (Config.Static_Dir); end Static_Resource_Dir; function Report_Template return String is begin return To_String (Config.Report_Template); end Report_Template; function Iterate (Process : not null access procedure (F : in File)) return Boolean is procedure Local_Process (Position : in Time_Sets.Cursor); procedure Local_Process (Position : in Time_Sets.Cursor) is begin Process.all (Time_Sets.Element (Position)); end Local_Process; begin Files.Expires.Iterate (Local_Process'Access); return True; end Iterate; procedure Add_File (Local_Path : in String; Name : in String; Comment : in String; MIME_Type : in String; Expiration : in Ada.Calendar.Time; Report : out URI_Key) is Download : URI_Key; Input_Dir : constant String := To_String (Config.Input_Dir); function Create return File_Data; function Create return File_Data is begin return (Name => Hold (Name), Comment => Hold (Comment), MIME_Type => Hold (MIME_Type), Report => Report, Download => Download, Expiration => Expiration, Upload => Ada.Calendar.Clock, Directory => Config.Directory); end Create; begin Purge_Expired; if Input_Dir /= "" and then (Input_Dir'Length > Local_Path'Length or else Local_Path (Local_Path'First .. Local_Path'First + Input_Dir'Length - 1) /= Input_Dir) then -- Local_Path outside of Input_Dir, something nasty might be -- going on, so drop the request. Report := (others => ' '); return; end if; Compute_Hash : declare procedure Process (Block : in S_Expressions.Atom); Context : Hash.Context := Hash.Initial_Context; procedure Process (Block : in S_Expressions.Atom) is begin Hash.Update (Context, Block); end Process; begin S_Expressions.File_Readers.Block_Query (S_Expressions.File_Readers.Reader (Local_Path), 4096, Process'Access); Report := S_Expressions.To_String (S_Expressions.Encodings.Encode_Base64 (Natools.GNAT_HMAC.Digest (Context), Digit_62, Digit_63)); end Compute_Hash; Save_File : declare Target_Path : constant String := Path (Config.Directory, Report); begin Ada.Directories.Copy_File (Local_Path, Target_Path); end Save_File; Remove_Source : begin Ada.Directories.Delete_File (Local_Path); end Remove_Source; Download := S_Expressions.To_String (S_Expressions.Encodings.Encode_Base64 (HMAC.Digest (To_String (Config.HMAC_Key), S_Expressions.To_Atom (Report)), Digit_62, Digit_63)); Write_DB : declare Printer : S_Expressions.File_Writers.Writer; begin Printer.Open (To_String (Config.Storage_File)); Printer.Set_Parameters (Config.Printer_Param); Write (Create, Printer); if Config.Printer_Param.Newline_At (S_Expressions.Printers.Pretty.Closing, S_Expressions.Printers.Pretty.Opening) then Printer.Newline; end if; end Write_DB; Insert_Ref : declare F : constant File := (Ref => File_Refs.Create (Create'Access)); begin Files.Reports.Insert (Report, F); Files.Downloads.Insert (Download, F); Files.Expires.Insert (F); end Insert_Ref; Log ("File " & Report & " received, expires on " & Ada.Calendar.Formatting.Image (Expiration)); end Add_File; procedure Purge_Expired is use type Ada.Calendar.Time; Now : constant Ada.Calendar.Time := Ada.Calendar.Clock; First : File; begin loop exit when Files.Expires.Is_Empty; First := Files.Expires.First_Element; exit when First.Expiration > Now; Files.Reports.Delete (First.Report); Files.Downloads.Delete (First.Download); Files.Expires.Delete (First); Ada.Directories.Delete_File (First.Path); Log ("File " & First.Report & " purged"); end loop; end Purge_Expired; procedure Reset (New_Config : in out S_Expressions.Lockable.Descriptor'Class; New_Debug : in Boolean := False) is use type Ada.Directories.File_Kind; New_Data : Config_Data := (Storage_File => Hold ("/"), Directory => Atom_Refs.Null_Immutable_Reference, HMAC_Key | Input_Dir | Static_Dir | Error_Template | Index_Template | Report_Template => Hold (""), Max_Expiration => <>, Printer_Param => S_Expressions.Printers.Pretty.Canonical); begin Interpreter (New_Config, New_Data, Natools.Meaningless_Value); if New_Data.Directory.Is_Empty or else To_String (New_Data.HMAC_Key) = "" or else not Ada.Directories.Exists (To_String (New_Data.Storage_File)) or else Ada.Directories.Kind (To_String (New_Data.Storage_File)) /= Ada.Directories.Ordinary_File then Log ("Failed reset"); return; end if; declare Storage : S_Expressions.File_Readers.S_Reader := S_Expressions.File_Readers.Reader (To_String (New_Data.Storage_File)); begin Read (Files, Storage, New_Data.Directory); end; Config := New_Data; Debug := New_Debug; Log ("Database successfully reset with" & Ada.Containers.Count_Type'Image (Files.Expires.Length) & " active files"); end Reset; end Database; end Backend;
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>linebuffer</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>in_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>in_stream.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>out_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>out_stream.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>12</id> <name></name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/sharpen</fileDirectory> <lineNumber>403</lineNumber> <contextFuncName>linebuffer_2D&amp;lt;1920, 1080, 1, 1, 1, 1, 3, 3, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/sharpen</first> <second class_id="11" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer&amp;lt;1920, 1080, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>530</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_2D&amp;lt;1920, 1080, 1, 1, 1, 1, 3, 3, unsigned char&amp;gt;</second> </first> <second>403</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_3D&amp;lt;1920, 1080, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>492</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_4D&amp;lt;1920, 1080, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>505</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>16</item> <item>17</item> <item>18</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>13</id> <name></name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/sharpen</fileDirectory> <lineNumber>531</lineNumber> <contextFuncName>linebuffer&amp;lt;1920, 1080, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer&amp;lt;1920, 1080, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>531</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>2</type> <id>15</id> <name>call</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:call&gt;</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_6"> <Obj> <type>3</type> <id>14</id> <name>linebuffer</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>12</item> <item>13</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_7"> <id>16</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_8"> <id>17</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_9"> <id>18</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>12</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_10"> <mId>1</mId> <mTag>linebuffer</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>14</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>2077921</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_11"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_12"> <type>0</type> <name>call_U0</name> <ssdmobj_id>12</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_13"> <port class_id="29" tracking_level="1" version="0" object_id="_14"> <name>in_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_15"> <type>0</type> <name>call_U0</name> <ssdmobj_id>12</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_16"> <port class_id_reference="29" object_id="_17"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_15"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </channel_list> <net_list class_id="32" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="33" tracking_level="1" version="0" object_id="_18"> <states class_id="34" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="35" tracking_level="1" version="0" object_id="_19"> <id>1</id> <operations class_id="36" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="37" tracking_level="1" version="0" object_id="_20"> <id>12</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="35" object_id="_21"> <id>2</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="37" object_id="_22"> <id>3</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_23"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_24"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_25"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_26"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_27"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_28"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_29"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_30"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="37" object_id="_31"> <id>12</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="37" object_id="_32"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="38" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="39" tracking_level="1" version="0" object_id="_33"> <inState>1</inState> <outState>2</outState> <condition class_id="40" tracking_level="0" version="0"> <id>0</id> <sop class_id="41" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="-1"></res> <node_label_latency class_id="44" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="45" tracking_level="0" version="0"> <first>12</first> <second class_id="46" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="47" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="48" tracking_level="0" version="0"> <first>14</first> <second class_id="49" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> </bblk_ent_exit> <regions class_id="50" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="51" tracking_level="1" version="0" object_id="_34"> <region_name>linebuffer</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>14</item> </basic_blocks> <nodes> <count>11</count> <item_version>0</item_version> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="52" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="53" tracking_level="0" version="0"> <first>36</first> <second> <count>2</count> <item_version>0</item_version> <item>12</item> <item>12</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="55" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>1</count> <item_version>0</item_version> <item class_id="56" tracking_level="0" version="0"> <first>grp_call_fu_36</first> <second> <count>2</count> <item_version>0</item_version> <item>12</item> <item>12</item> </second> </item> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="57" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="58" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="59" tracking_level="0" version="0"> <first>in_stream_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </second> </item> <item> <first>out_stream_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="60" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="61" tracking_level="0" version="0"> <first>1</first> <second>FIFO_SRL</second> </item> <item> <first>2</first> <second>FIFO_SRL</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
----------------------------------------------------------------------- -- util-serialize-io-xml -- XML Serialization Driver -- Copyright (C) 2011, 2012, 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Sax.Exceptions; with Sax.Locators; with Sax.Readers; with Sax.Attributes; with Unicode.CES; with Input_Sources; with Ada.Streams; with Ada.Strings.Unbounded; with Util.Streams.Buffered; with Util.Streams.Texts; package Util.Serialize.IO.XML is Parse_Error : exception; type Parser is new Serialize.IO.Parser with private; -- Parse the stream using the JSON parser. procedure Parse (Handler : in out Parser; Stream : in out Util.Streams.Buffered.Input_Buffer_Stream'Class; Sink : in out Reader'Class); -- Set the XHTML reader to ignore or not the white spaces. -- When set to True, the ignorable white spaces will not be kept. procedure Set_Ignore_White_Spaces (Reader : in out Parser; Value : in Boolean); -- Set the XHTML reader to ignore empty lines. procedure Set_Ignore_Empty_Lines (Reader : in out Parser; Value : in Boolean); -- Get the current location (file and line) to report an error message. function Get_Location (Handler : in Parser) return String; type Xhtml_Reader is new Sax.Readers.Reader with private; -- ------------------------------ -- XML Output Stream -- ------------------------------ -- The <b>Output_Stream</b> provides methods for creating an XML output stream. -- The stream object takes care of the XML escape rules. type Output_Stream is limited new Util.Serialize.IO.Output_Stream with private; -- Set the target output stream. procedure Initialize (Stream : in out Output_Stream; Output : in Util.Streams.Texts.Print_Stream_Access); -- Flush the buffer (if any) to the sink. overriding procedure Flush (Stream : in out Output_Stream); -- Close the sink. overriding procedure Close (Stream : in out Output_Stream); -- Write the buffer array to the output stream. overriding procedure Write (Stream : in out Output_Stream; Buffer : in Ada.Streams.Stream_Element_Array); -- Write a character on the response stream and escape that character as necessary. procedure Write_Escape (Stream : in out Output_Stream'Class; Char : in Wide_Wide_Character); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_String (Stream : in out Output_Stream; Value : in String); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_Wide_String (Stream : in out Output_Stream; Value : in Wide_Wide_String); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_String (Stream : in out Output_Stream; Value : in Util.Beans.Objects.Object); -- Start a new XML object. procedure Start_Entity (Stream : in out Output_Stream; Name : in String); -- Terminates the current XML object. procedure End_Entity (Stream : in out Output_Stream; Name : in String); -- Write the attribute name/value pair. overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in String); overriding procedure Write_Wide_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Wide_Wide_String); overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Integer); overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Boolean); -- Write a XML name/value attribute. procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Util.Beans.Objects.Object); -- Write the attribute with a null value. overriding procedure Write_Null_Attribute (Stream : in out Output_Stream; Name : in String); -- Write the entity value. overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in String); overriding procedure Write_Wide_Entity (Stream : in out Output_Stream; Name : in String; Value : in Wide_Wide_String); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Boolean); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Integer); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Ada.Calendar.Time); overriding procedure Write_Long_Entity (Stream : in out Output_Stream; Name : in String; Value : in Long_Long_Integer); overriding procedure Write_Enum_Entity (Stream : in out Output_Stream; Name : in String; Value : in String); -- Write a XML name/value entity (see Write_Attribute). overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Util.Beans.Objects.Object); -- Write an entity with a null value. overriding procedure Write_Null_Entity (Stream : in out Output_Stream; Name : in String); -- Starts a XML array. overriding procedure Start_Array (Stream : in out Output_Stream; Name : in String); -- Terminates a XML array. overriding procedure End_Array (Stream : in out Output_Stream; Name : in String); -- Return the location where the exception was raised. function Get_Location (Except : Sax.Exceptions.Sax_Parse_Exception'Class) return String; private overriding procedure Warning (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Error (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Fatal_Error (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Set_Document_Locator (Handler : in out Xhtml_Reader; Loc : in out Sax.Locators.Locator); overriding procedure Start_Document (Handler : in out Xhtml_Reader); overriding procedure End_Document (Handler : in out Xhtml_Reader); overriding procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader; Prefix : in Unicode.CES.Byte_Sequence; URI : in Unicode.CES.Byte_Sequence); overriding procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader; Prefix : in Unicode.CES.Byte_Sequence); overriding procedure Start_Element (Handler : in out Xhtml_Reader; Namespace_URI : in Unicode.CES.Byte_Sequence := ""; Local_Name : in Unicode.CES.Byte_Sequence := ""; Qname : in Unicode.CES.Byte_Sequence := ""; Atts : in Sax.Attributes.Attributes'Class); overriding procedure End_Element (Handler : in out Xhtml_Reader; Namespace_URI : in Unicode.CES.Byte_Sequence := ""; Local_Name : in Unicode.CES.Byte_Sequence := ""; Qname : in Unicode.CES.Byte_Sequence := ""); overriding procedure Characters (Handler : in out Xhtml_Reader; Ch : in Unicode.CES.Byte_Sequence); overriding procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader; Ch : in Unicode.CES.Byte_Sequence); overriding procedure Processing_Instruction (Handler : in out Xhtml_Reader; Target : in Unicode.CES.Byte_Sequence; Data : in Unicode.CES.Byte_Sequence); overriding procedure Skipped_Entity (Handler : in out Xhtml_Reader; Name : in Unicode.CES.Byte_Sequence); overriding procedure Start_Cdata (Handler : in out Xhtml_Reader); overriding procedure End_Cdata (Handler : in out Xhtml_Reader); overriding function Resolve_Entity (Handler : Xhtml_Reader; Public_Id : Unicode.CES.Byte_Sequence; System_Id : Unicode.CES.Byte_Sequence) return Input_Sources.Input_Source_Access; overriding procedure Start_DTD (Handler : in out Xhtml_Reader; Name : Unicode.CES.Byte_Sequence; Public_Id : Unicode.CES.Byte_Sequence := ""; System_Id : Unicode.CES.Byte_Sequence := ""); procedure Collect_Text (Handler : in out Xhtml_Reader; Content : Unicode.CES.Byte_Sequence); type Xhtml_Reader is new Sax.Readers.Reader with record Stack_Pos : Natural := 0; Handler : access Parser'Class; Text : Ada.Strings.Unbounded.Unbounded_String; -- Whether white spaces can be ignored. Ignore_White_Spaces : Boolean := True; -- Whether empty lines should be ignored (when white spaces are kept). Ignore_Empty_Lines : Boolean := True; Sink : access Reader'Class; end record; type Parser is new Util.Serialize.IO.Parser with record -- The SAX locator to find the current file and line number. Locator : Sax.Locators.Locator; Has_Pending_Char : Boolean := False; Pending_Char : Character; -- Whether white spaces can be ignored. Ignore_White_Spaces : Boolean := True; -- Whether empty lines should be ignored (when white spaces are kept). Ignore_Empty_Lines : Boolean := True; end record; type Output_Stream is limited new Util.Serialize.IO.Output_Stream with record Close_Start : Boolean := False; Stream : Util.Streams.Texts.Print_Stream_Access; end record; end Util.Serialize.IO.XML;
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with vadefs_h; with System; with umingw_h; with umingw_off_t_h; package stdio_h is BUFSIZ : constant := 512; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:19 EOF : constant := (-1); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:23 -- unsupported macro: L_tmpnam (sizeof(_P_tmpdir) + 12) SEEK_CUR : constant := 1; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:55 SEEK_END : constant := 2; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:56 SEEK_SET : constant := 0; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:57 STDIN_FILENO : constant := 0; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:59 STDOUT_FILENO : constant := 1; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:60 STDERR_FILENO : constant := 2; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:61 FILENAME_MAX : constant := 260; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:63 FOPEN_MAX : constant := 20; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:64 TMP_MAX : constant := 32767; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:66 -- unsupported macro: stdin (&__iob_func()[0]) -- unsupported macro: stdout (&__iob_func()[1]) -- unsupported macro: stderr (&__iob_func()[2]) -- unsupported macro: popen _popen -- unsupported macro: pclose _pclose -- unsupported macro: WEOF (wint_t)(0xFFFF) -- unsupported macro: wpopen _wpopen -- arg-macro: procedure getwchar () -- fgetwc(stdin) -- arg-macro: procedure putwchar (_c) -- fputwc((_c),stdout) -- arg-macro: procedure getwc (_stm) -- fgetwc(_stm) -- arg-macro: procedure putwc (_c, _stm) -- fputwc(_c,_stm) -- unsupported macro: P_tmpdir _P_tmpdir -- unsupported macro: SYS_OPEN _SYS_OPEN type u_iobuf is record u_ptr : Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:27 u_cnt : aliased int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:28 u_base : Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:29 u_flag : aliased int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:30 u_file : aliased int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:31 u_charbuf : aliased int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:32 u_bufsiz : aliased int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:33 u_tmpfname : Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:34 end record; pragma Convention (C_Pass_By_Copy, u_iobuf); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:26 subtype FILE is u_iobuf; subtype fpos_t is Long_Long_Integer; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:103 function fprintf (u_File : access FILE; u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:348 pragma Import (C, fprintf, "fprintf"); function printf (u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:349 pragma Import (C, printf, "printf"); function sprintf (u_Dest : Interfaces.C.Strings.chars_ptr; u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:350 pragma Import (C, sprintf, "sprintf"); function vfprintf (u_File : access FILE; u_Format : Interfaces.C.Strings.chars_ptr; u_ArgList : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:352 pragma Import (C, vfprintf, "vfprintf"); function vprintf (u_Format : Interfaces.C.Strings.chars_ptr; u_ArgList : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:353 pragma Import (C, vprintf, "vprintf"); function vsprintf (u_Dest : Interfaces.C.Strings.chars_ptr; u_Format : Interfaces.C.Strings.chars_ptr; u_Args : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:354 pragma Import (C, vsprintf, "vsprintf"); function fscanf (u_File : access FILE; u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:356 pragma Import (C, fscanf, "fscanf"); function scanf (u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:357 pragma Import (C, scanf, "scanf"); function sscanf (u_Src : Interfaces.C.Strings.chars_ptr; u_Format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:358 pragma Import (C, sscanf, "sscanf"); function vscanf (Format : Interfaces.C.Strings.chars_ptr; argp : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:360 pragma Import (C, vscanf, "vscanf"); function vfscanf (fp : access FILE; Format : Interfaces.C.Strings.chars_ptr; argp : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:361 pragma Import (C, vfscanf, "vfscanf"); function vsscanf (u_Str : Interfaces.C.Strings.chars_ptr; Format : Interfaces.C.Strings.chars_ptr; argp : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:362 pragma Import (C, vsscanf, "vsscanf"); -- skipped func _filbuf -- skipped func _flsbuf -- skipped func _fsopen procedure clearerr (u_File : access FILE); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:373 pragma Import (C, clearerr, "clearerr"); function fclose (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:374 pragma Import (C, fclose, "fclose"); -- skipped func _fcloseall -- skipped func _fdopen function feof (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:381 pragma Import (C, feof, "feof"); function ferror (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:382 pragma Import (C, ferror, "ferror"); function fflush (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:383 pragma Import (C, fflush, "fflush"); function fgetc (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:384 pragma Import (C, fgetc, "fgetc"); -- skipped func _fgetchar function fgetpos (u_File : access FILE; u_Pos : access fpos_t) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:386 pragma Import (C, fgetpos, "fgetpos"); function fgetpos64 (u_File : access FILE; u_Pos : access fpos_t) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:387 pragma Import (C, fgetpos64, "fgetpos64"); function fgets (u_Buf : Interfaces.C.Strings.chars_ptr; u_MaxCount : int; u_File : access FILE) return Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:388 pragma Import (C, fgets, "fgets"); -- skipped func _fileno -- skipped func _tempnam -- skipped func _flushall function fopen (u_Filename : Interfaces.C.Strings.chars_ptr; u_Mode : Interfaces.C.Strings.chars_ptr) return access FILE; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:395 pragma Import (C, fopen, "fopen"); function fopen64 (filename : Interfaces.C.Strings.chars_ptr; mode : Interfaces.C.Strings.chars_ptr) return access FILE; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:396 pragma Import (C, fopen64, "fopen64"); function fputc (u_Ch : int; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:397 pragma Import (C, fputc, "fputc"); -- skipped func _fputchar function fputs (u_Str : Interfaces.C.Strings.chars_ptr; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:399 pragma Import (C, fputs, "fputs"); function fread (u_DstBuf : System.Address; u_ElementSize : umingw_h.size_t; u_Count : umingw_h.size_t; u_File : access FILE) return umingw_h.size_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:400 pragma Import (C, fread, "fread"); function freopen (u_Filename : Interfaces.C.Strings.chars_ptr; u_Mode : Interfaces.C.Strings.chars_ptr; u_File : access FILE) return access FILE; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:401 pragma Import (C, freopen, "freopen"); -- skipped func _fscanf_l function fsetpos (u_File : access FILE; u_Pos : access fpos_t) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:403 pragma Import (C, fsetpos, "fsetpos"); function fsetpos64 (u_File : access FILE; u_Pos : access fpos_t) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:404 pragma Import (C, fsetpos64, "fsetpos64"); function fseek (u_File : access FILE; u_Offset : long; u_Origin : int) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:405 pragma Import (C, fseek, "fseek"); function fseeko64 (stream : access FILE; offset : umingw_off_t_h.u_off64_t; whence : int) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:409 pragma Import (C, fseeko64, "fseeko64"); function fseeko (stream : access FILE; offset : umingw_off_t_h.u_off_t; whence : int) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:410 pragma Import (C, fseeko, "fseeko"); function ftell (u_File : access FILE) return long; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:423 pragma Import (C, ftell, "ftell"); function ftello (stream : access FILE) return umingw_off_t_h.u_off_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:425 pragma Import (C, ftello, "ftello"); function ftello64 (stream : access FILE) return umingw_off_t_h.u_off64_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:426 pragma Import (C, ftello64, "ftello64"); -- skipped func _fseeki64 -- skipped func _ftelli64 function fwrite (u_Str : System.Address; u_Size : umingw_h.size_t; u_Count : umingw_h.size_t; u_File : access FILE) return umingw_h.size_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:437 pragma Import (C, fwrite, "fwrite"); function getc (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:438 pragma Import (C, getc, "getc"); function getchar return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:439 pragma Import (C, getchar, "getchar"); -- skipped func _getmaxstdio function gets (u_Buffer : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:441 pragma Import (C, gets, "gets"); -- skipped func _getw procedure perror (u_ErrMsg : Interfaces.C.Strings.chars_ptr); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:445 pragma Import (C, perror, "perror"); -- skipped func _pclose -- skipped func _popen function putc (u_Ch : int; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:453 pragma Import (C, putc, "putc"); function putchar (u_Ch : int) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:454 pragma Import (C, putchar, "putchar"); function puts (u_Str : Interfaces.C.Strings.chars_ptr) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:455 pragma Import (C, puts, "puts"); -- skipped func _putw function remove (u_Filename : Interfaces.C.Strings.chars_ptr) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:459 pragma Import (C, remove, "remove"); function rename (u_OldFilename : Interfaces.C.Strings.chars_ptr; u_NewFilename : Interfaces.C.Strings.chars_ptr) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:460 pragma Import (C, rename, "rename"); -- skipped func _unlink function unlink (u_Filename : Interfaces.C.Strings.chars_ptr) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:463 pragma Import (C, unlink, "unlink"); procedure rewind (u_File : access FILE); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:466 pragma Import (C, rewind, "rewind"); -- skipped func _rmtmp -- skipped func _scanf_l procedure setbuf (u_File : access FILE; u_Buffer : Interfaces.C.Strings.chars_ptr); -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:469 pragma Import (C, setbuf, "setbuf"); -- skipped func _setmaxstdio -- skipped func _set_output_format -- skipped func _get_output_format function setvbuf (u_File : access FILE; u_Buf : Interfaces.C.Strings.chars_ptr; u_Mode : int; u_Size : umingw_h.size_t) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:479 pragma Import (C, setvbuf, "setvbuf"); -- skipped func _scprintf -- skipped func _sscanf_l -- skipped func _snscanf -- skipped func _snscanf_l function tmpfile return access FILE; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:484 pragma Import (C, tmpfile, "tmpfile"); function tmpnam (u_Buffer : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:485 pragma Import (C, tmpnam, "tmpnam"); function ungetc (u_Ch : int; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:486 pragma Import (C, ungetc, "ungetc"); -- skipped func _snprintf -- skipped func _snprintf_l -- skipped func _vsnprintf -- skipped func _vsnprintf_l -- skipped func _sprintf_l function vsnprintf (d : Interfaces.C.Strings.chars_ptr; n : umingw_h.size_t; format : Interfaces.C.Strings.chars_ptr; arg : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:501 pragma Import (C, vsnprintf, "vsnprintf"); function snprintf (s : Interfaces.C.Strings.chars_ptr; n : umingw_h.size_t; format : Interfaces.C.Strings.chars_ptr -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:505 pragma Import (C, snprintf, "snprintf"); -- skipped func _vscprintf -- skipped func _set_printf_count_output -- skipped func _get_printf_count_output function fwscanf (u_File : access FILE; u_Format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:692 pragma Import (C, fwscanf, "fwscanf"); function swscanf (u_Src : access wchar_t; u_Format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:693 pragma Import (C, swscanf, "swscanf"); function wscanf (u_Format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:694 pragma Import (C, wscanf, "wscanf"); function vwscanf (arg1 : access wchar_t; arg2 : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:696 pragma Import (C, vwscanf, "vwscanf"); function vfwscanf (arg1 : access FILE; arg2 : access wchar_t; arg3 : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:697 pragma Import (C, vfwscanf, "vfwscanf"); function vswscanf (arg1 : access wchar_t; arg2 : access wchar_t; arg3 : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:698 pragma Import (C, vswscanf, "vswscanf"); function fwprintf (u_File : access FILE; u_Format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:701 pragma Import (C, fwprintf, "fwprintf"); function wprintf (u_Format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:702 pragma Import (C, wprintf, "wprintf"); function vfwprintf (u_File : access FILE; u_Format : access wchar_t; u_ArgList : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:703 pragma Import (C, vfwprintf, "vfwprintf"); function vwprintf (u_Format : access wchar_t; u_ArgList : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:704 pragma Import (C, vwprintf, "vwprintf"); function swprintf (arg1 : access wchar_t; arg2 : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:705 pragma Import (C, swprintf, "swprintf"); function vswprintf (arg1 : access wchar_t; arg2 : access wchar_t; arg3 : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:706 pragma Import (C, vswprintf, "vswprintf"); -- skipped func _wfsopen function fgetwc (u_File : access FILE) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:719 pragma Import (C, fgetwc, "fgetwc"); -- skipped func _fgetwchar function fputwc (u_Ch : wchar_t; u_File : access FILE) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:721 pragma Import (C, fputwc, "fputwc"); -- skipped func _fputwchar function getwc (u_File : access FILE) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:723 pragma Import (C, getwc, "getwc"); function getwchar return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:724 pragma Import (C, getwchar, "getwchar"); function putwc (u_Ch : wchar_t; u_File : access FILE) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:725 pragma Import (C, putwc, "putwc"); function putwchar (u_Ch : wchar_t) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:726 pragma Import (C, putwchar, "putwchar"); function ungetwc (u_Ch : umingw_h.wint_t; u_File : access FILE) return umingw_h.wint_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:727 pragma Import (C, ungetwc, "ungetwc"); function fgetws (u_Dst : access wchar_t; u_SizeInWords : int; u_File : access FILE) return access wchar_t; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:728 pragma Import (C, fgetws, "fgetws"); function fputws (u_Str : access wchar_t; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:729 pragma Import (C, fputws, "fputws"); -- skipped func _getws -- skipped func _putws -- skipped func _scwprintf -- skipped func _swprintf_l -- skipped func _swprintf_c -- skipped func _vswprintf_c -- skipped func _snwprintf -- skipped func _vsnwprintf function snwprintf (s : access wchar_t; n : umingw_h.size_t; format : access wchar_t -- , ... ) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:747 pragma Import (C, snwprintf, "snwprintf"); function vsnwprintf (arg1 : access wchar_t; arg2 : umingw_h.size_t; arg3 : access wchar_t; arg4 : vadefs_h.va_list) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:748 pragma Import (C, vsnwprintf, "vsnwprintf"); -- skipped func _fwprintf_p -- skipped func _wprintf_p -- skipped func _vfwprintf_p -- skipped func _vwprintf_p -- skipped func _swprintf_p -- skipped func _vswprintf_p -- skipped func _scwprintf_p -- skipped func _vscwprintf_p -- skipped func _wprintf_l -- skipped func _wprintf_p_l -- skipped func _vwprintf_l -- skipped func _vwprintf_p_l -- skipped func _fwprintf_l -- skipped func _fwprintf_p_l -- skipped func _vfwprintf_l -- skipped func _vfwprintf_p_l -- skipped func _swprintf_c_l -- skipped func _swprintf_p_l -- skipped func _vswprintf_c_l -- skipped func _vswprintf_p_l -- skipped func _scwprintf_l -- skipped func _scwprintf_p_l -- skipped func _vscwprintf_p_l -- skipped func _snwprintf_l -- skipped func _vsnwprintf_l -- skipped func _swprintf -- skipped func _vswprintf -- skipped func _vswprintf_l -- skipped func _wtempnam -- skipped func _vscwprintf -- skipped func _vscwprintf_l -- skipped func _fwscanf_l -- skipped func _swscanf_l -- skipped func _snwscanf -- skipped func _snwscanf_l -- skipped func _wscanf_l -- skipped func _wfdopen -- skipped func _wfopen -- skipped func _wfreopen -- skipped func _wperror -- skipped func _wpopen -- skipped func _wremove -- skipped func _wtmpnam -- skipped func _fgetwc_nolock -- skipped func _fputwc_nolock -- skipped func _ungetwc_nolock -- skipped func _lock_file -- skipped func _unlock_file -- skipped func _fclose_nolock -- skipped func _fflush_nolock -- skipped func _fread_nolock -- skipped func _fseek_nolock -- skipped func _ftell_nolock -- skipped func _fseeki64_nolock -- skipped func _ftelli64_nolock -- skipped func _fwrite_nolock -- skipped func _ungetc_nolock function tempnam (u_Directory : Interfaces.C.Strings.chars_ptr; u_FilePrefix : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:871 pragma Import (C, tempnam, "tempnam"); function fcloseall return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:872 pragma Import (C, fcloseall, "fcloseall"); function fdopen (u_FileHandle : int; u_Format : Interfaces.C.Strings.chars_ptr) return access FILE; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:873 pragma Import (C, fdopen, "fdopen"); function fgetchar return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:874 pragma Import (C, fgetchar, "fgetchar"); function fileno (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:875 pragma Import (C, fileno, "fileno"); function flushall return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:876 pragma Import (C, flushall, "flushall"); function fputchar (u_Ch : int) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:877 pragma Import (C, fputchar, "fputchar"); function getw (u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:878 pragma Import (C, getw, "getw"); function putw (u_Ch : int; u_File : access FILE) return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:879 pragma Import (C, putw, "putw"); function rmtmp return int; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/stdio.h:880 pragma Import (C, rmtmp, "rmtmp"); end stdio_h;
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- -- -- Labs is free software; you can redistribute it and/or modify it -- -- under the terms of the GNU General Public License as published by -- -- the Free Software Foundation; either version 2 of the License, or -- -- (at your option) any later version. -- -- -- -- This program is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- General Public License for more details. You should have received -- -- a copy of the GNU General Public License along with this program; -- -- if not, write to the Free Software Foundation, Inc., 59 Temple -- -- Place - Suite 330, Boston, MA 02111-1307, USA. -- ----------------------------------------------------------------------- with Display; use Display; with Display.Basic; use Display.Basic; package Solar_System is -- define type Bodies_Enum_T as an enumeration of Sun, Earth, Moon, Satellite ... type Bodies_Enum_T is (Sun, Earth, Moon, Satellite, Comet, Black_Hole, Asteroid_1, Asteroid_2); -- TODO : declare type Body_Access_T as an access type to all Body_T type Bodies_Array_T is private; -- TODO : Implement Get_Body returning an access of type Body_Access_T -- function Get_Body (B : Bodies_Enum_T; Bodies : access Bodies_Array_T) return Body_Access_T; -- TODO : Modify Init_Body with the following profile -- procedure Init_Body (B : Body_Access_T; -- Radius : Float; -- Color : RGBA_T; -- Distance : Float; -- Angle : Float; -- Speed : Float; -- Turns_Around : Body_Access_T; -- Visible : Boolean := True); procedure Init_Body (B : Bodies_Enum_T; Bodies : in out Bodies_Array_T; Radius : Float; Color : RGBA_T; Distance : Float; Angle : Float; Speed : Float; Turns_Around : Bodies_Enum_T; Visible : Boolean := True); procedure Move_All (Bodies : access Bodies_Array_T); private -- define a type Body_T to store every information about a body -- X, Y, Distance, Speed, Angle, Radius, Color type Body_T is record X : Float := 0.0; Y : Float := 0.0; Distance : Float := 0.0; Speed : Float := 0.0; Angle : Float := 0.0; Radius : Float := 0.0; Color : RGBA_T; Visible : Boolean := True; -- TODO : Modify Turns_Around as an access to Body_T using Body_Access_T type Turns_Around : Bodies_Enum_T := Sun; end record; -- define type Bodies_Array_T as an array of Body_T indexed by bodies enumeration type Bodies_Array_T is array (Bodies_Enum_T) of Body_T; -- TODO : Modify the Move procedure with the following profile -- procedure Move (Body_To_Move : Body_Access_T); procedure Move (Body_To_Move : in out Body_T; Bodies : Bodies_Array_T); end Solar_System;
-- C48009B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- FOR ALLOCATORS OF THE FORM "NEW T'(X)", CHECK THAT CONSTRAINT_ERROR -- IS RAISED IF T IS AN UNCONSTRAINED RECORD OR PRIVATE TYPE, (X) IS AN -- AGGREGATE OR A VALUE OF TYPE T, AND ONE OF THE DISCRIMINANT VALUES IN -- X: -- 1) DOES NOT SATISFY THE RANGE CONSTRAINT FOR THE CORRESPONDING -- DISCRIMINANT OF T. -- 2) DOES NOT EQUAL THE DISCRIMINANT VALUE SPECIFIED IN THE -- DECLARATION OF THE ALLOCATOR'S BASE TYPE. -- 3) A DISCRIMINANT VALUE IS COMPATIBLE WITH A DISCRIMINANT'S SUBTYPE -- BUT DOES NOT PROVIDE A COMPATIBLE INDEX OR DISCRIMINANT -- CONSTRAINT FOR A SUBCOMPONENT DEPENDENT ON THE DISCRIMINANT. -- RM 01/08/80 -- NL 10/13/81 -- SPS 10/26/82 -- JBG 03/02/83 -- EG 07/05/84 WITH REPORT; PROCEDURE C48009B IS USE REPORT; BEGIN TEST( "C48009B" , "FOR ALLOCATORS OF THE FORM 'NEW T '(X)', " & "CHECK THAT CONSTRAINT_ERROR IS RAISED WHEN " & "APPROPRIATE - UNCONSTRAINED RECORD AND " & "PRIVATE TYPES"); DECLARE SUBTYPE I1_7 IS INTEGER RANGE IDENT_INT(1)..IDENT_INT(7); SUBTYPE I1_10 IS INTEGER RANGE IDENT_INT(1)..IDENT_INT(10); SUBTYPE I2_9 IS INTEGER RANGE IDENT_INT(2)..IDENT_INT(9); TYPE REC (A : I2_9) IS RECORD NULL; END RECORD; TYPE ARR IS ARRAY (I2_9 RANGE <>) OF INTEGER; TYPE T_REC (C : I1_10) IS RECORD D : REC(C); END RECORD; TYPE T_ARR (C : I1_10) IS RECORD D : ARR(2..C); E : ARR(C..9); END RECORD; TYPE T_REC_REC (A : I1_10) IS RECORD B : T_REC(A); END RECORD; TYPE T_REC_ARR (A : I1_10) IS RECORD B : T_ARR(A); END RECORD; TYPE TB ( A : I1_7 ) IS RECORD R : INTEGER; END RECORD; TYPE A_T_REC_REC IS ACCESS T_REC_REC; TYPE A_T_REC_ARR IS ACCESS T_REC_ARR; TYPE ATB IS ACCESS TB; TYPE ACTB IS ACCESS TB(3); VA_T_REC_REC : A_T_REC_REC; VA_T_REC_ARR : A_T_REC_ARR; VB : ATB; VCB : ACTB; PACKAGE P IS TYPE PRIV( A : I1_10 ) IS PRIVATE; CONS_PRIV : CONSTANT PRIV; PRIVATE TYPE PRIV( A : I1_10 ) IS RECORD R : INTEGER; END RECORD; CONS_PRIV : CONSTANT PRIV := (2, 3); END P; USE P; TYPE A_PRIV IS ACCESS P.PRIV; TYPE A_CPRIV IS ACCESS P.PRIV (3); VP : A_PRIV; VCP : A_CPRIV; FUNCTION ALLOC1(X : P.PRIV) RETURN A_CPRIV IS BEGIN IF EQUAL(1, 1) THEN RETURN NEW P.PRIV'(X); ELSE RETURN NULL; END IF; END ALLOC1; FUNCTION ALLOC2(X : TB) RETURN ACTB IS BEGIN IF EQUAL(1, 1) THEN RETURN NEW TB'(X); ELSE RETURN NULL; END IF; END ALLOC2; BEGIN BEGIN -- B1 VB := NEW TB'(A => IDENT_INT(0), R => 1); FAILED ("NO EXCEPTION RAISED - CASE 1A"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED( "WRONG EXCEPTION RAISED - CASE 1A" ); END; BEGIN VB := NEW TB'(A => 8, R => 1); FAILED ("NO EXCEPTION RAISED - CASE 1B"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED( "WRONG EXCEPTION RAISED - CASE 1B"); END; -- B1 BEGIN -- B2 VCB := NEW TB'(2, 3); FAILED ("NO EXCEPTION RAISED - CASE 2A"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 2A"); END; BEGIN IF ALLOC2((IDENT_INT(4), 3)) = NULL THEN FAILED ("IMPOSSIBLE - CASE 2B"); END IF; FAILED ("NO EXCEPTION RAISED - CASE 2B"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 2B"); END; BEGIN IF ALLOC1(CONS_PRIV) = NULL THEN FAILED ("IMPOSSIBLE - CASE 2C"); END IF; FAILED ("NO EXCEPTION RAISED - CASE 2C"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 2C"); END; -- B2 BEGIN -- B3 VA_T_REC_REC := NEW T_REC_REC'(1, (1, (A => 1))); FAILED ("NO EXCEPTION RAISED - CASE 3A"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 3A"); END; BEGIN VA_T_REC_REC := NEW T_REC_REC'(10, (10, (A => 10))); FAILED ("NO EXCEPTION RAISED - CASE 3B"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 3B"); END; BEGIN VA_T_REC_ARR := NEW T_REC_ARR'(1, (1, (OTHERS => 1), (OTHERS => 2))); FAILED ("NO EXCEPTION RAISED - CASE 3C"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 3C"); END; BEGIN VA_T_REC_ARR := NEW T_REC_ARR'(10, (10, (OTHERS => 1), (OTHERS => 2))); FAILED ("NO EXCEPTION RAISED - CASE 3D"); EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CASE 3D"); END; END; RESULT; END C48009B;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . E X P _ L L I -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Long_Long_Integer exponentiation package System.Exp_LLI is pragma Pure; function Exp_Long_Long_Integer (Left : Long_Long_Integer; Right : Natural) return Long_Long_Integer; end System.Exp_LLI;
-------------------------------------------------------------------------- -- Arbitrary Precision Math Library: Logarithmic Functions -- Joe Wingbermuehle 20020320 <> 20020327 -------------------------------------------------------------------------- with Arbitrary.Trig; use Arbitrary.Trig; package body Arbitrary.Log is ----------------------------------------------------------------------- -- Compute e^n ----------------------------------------------------------------------- function Exp(a : Arbitrary_Type) return Arbitrary_Type is result : Arbitrary_Type(a.precision); multiplier : Arbitrary_Type(a.precision); last : Arbitrary_Type(a.precision); count : integer; begin result := To_Arbitrary(2, a.precision); count := 2; multiplier := a; loop last := result; result := result + multiplier * One_Over_Factorial(count, a.precision); exit when last = result; count := count + 1; multiplier := multiplier * multiplier; end loop; return result; end Exp; ----------------------------------------------------------------------- -- Compute ln(2) ----------------------------------------------------------------------- function Ln2(precision : integer) return Arbitrary_Type is result : Arbitrary_Type(precision); last : Arbitrary_Type(precision); multiplier : Arbitrary_Type(precision); count : Arbitrary_Type(precision); over_two : constant Arbitrary_Type(precision) := To_Arbitrary(1, precision) / To_Arbitrary(2, precision); one : constant Arbitrary_Type(precision) := To_Arbitrary(1, precision); begin -- ln(2) = sum(1/(x*2^x)) multiplier := over_two; -- 1/2^1 (1/2^x) count := one; loop last := result; result := result + multiplier / count; exit when last = result; multiplier := multiplier * over_two; count := count + one; end loop; return result; end Ln2; ----------------------------------------------------------------------- -- Compute ln(a) for values of a between 0 and 2 exclusive -- (convergence is too slow for larger values) ----------------------------------------------------------------------- function Ln_Small(a : Arbitrary_Type) return Arbitrary_Type is result : Arbitrary_Type(a.precision); temp : Arbitrary_Type(a.precision); last : Arbitrary_Type(a.precision); count : Arbitrary_Type(a.precision); term : Arbitrary_Type(a.precision); one : constant Arbitrary_Type(a.precision) := To_Arbitrary(1, a.precision); sign : integer range -1 .. 1; begin -- ln(1 + x) = x - (1/2)x^2 + (1/3)x^3 - ... temp := a - one; term := temp; count := one; sign := 1; loop last := result; if sign > 0 then result := result + term / count; else result := result - term / count; end if; exit when last = result; count := count + one; term := term * temp; sign := -sign; end loop; return result; end Ln_Small; ----------------------------------------------------------------------- -- Compute ln(x) ----------------------------------------------------------------------- function Ln(a : Arbitrary_Type) return Arbitrary_Type is one : constant Arbitrary_Type(a.precision) := To_Arbitrary(1, a.precision); two : constant Arbitrary_Type(a.precision) := To_Arbitrary(2, a.precision); begin -- ln(x) = 2*acoth(x - 1) + ln(x - 2) if a > two then return two * ArcCoth(a - one) + Ln(a - two); elsif a = two then return Ln2(a.precision); else return Ln_Small(a); end if; end Ln; end Arbitrary.Log;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Holders.Elements; package body AMF.Internals.Collections.Elements is ------------- -- Element -- ------------- overriding function Element (Self : not null access constant Shared_Element_Collection; Index : Positive) return League.Holders.Holder is begin return AMF.Holders.Elements.To_Holder (Element (Shared_Element_Collection'Class (Self.all)'Access, Index)); end Element; end AMF.Internals.Collections.Elements;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M -- -- -- -- S p e c -- -- (Windows Version) -- -- -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package System is pragma Pure; -- Note that we take advantage of the implementation permission to make -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada -- 2005, this is Pure in any case (AI-362). type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; -- System-Dependent Named Numbers Min_Int : constant := Long_Long_Integer'First; Max_Int : constant := Long_Long_Integer'Last; Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size; Max_Nonbinary_Modulus : constant := Integer'Last; Max_Base_Digits : constant := Long_Long_Float'Digits; Max_Digits : constant := Long_Long_Float'Digits; Max_Mantissa : constant := 63; Fine_Delta : constant := 2.0 ** (-Max_Mantissa); Tick : constant := 0.01; -- Storage-related Declarations type Address is private; Null_Address : constant Address; Storage_Unit : constant := 8; Word_Size : constant := 32; Memory_Size : constant := 2 ** 32; -- Address comparison function "<" (Left, Right : Address) return Boolean; function "<=" (Left, Right : Address) return Boolean; function ">" (Left, Right : Address) return Boolean; function ">=" (Left, Right : Address) return Boolean; function "=" (Left, Right : Address) return Boolean; pragma Import (Intrinsic, "<"); pragma Import (Intrinsic, "<="); pragma Import (Intrinsic, ">"); pragma Import (Intrinsic, ">="); pragma Import (Intrinsic, "="); -- Other System-Dependent Declarations type Bit_Order is (High_Order_First, Low_Order_First); Default_Bit_Order : constant Bit_Order := Low_Order_First; pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning -- Priority-related Declarations (RM D.1) Max_Priority : constant Positive := 30; Max_Interrupt_Priority : constant Positive := 31; subtype Any_Priority is Integer range 0 .. 31; subtype Priority is Any_Priority range 0 .. 30; subtype Interrupt_Priority is Any_Priority range 31 .. 31; Default_Priority : constant Priority := 15; private type Address is mod Memory_Size; Null_Address : constant Address := 0; -------------------------------------- -- System Implementation Parameters -- -------------------------------------- -- These parameters provide information about the target that is used -- by the compiler. They are in the private part of System, where they -- can be accessed using the special circuitry in the Targparm unit -- whose source should be consulted for more detailed descriptions -- of the individual switch values. AAMP : constant Boolean := False; Backend_Divide_Checks : constant Boolean := False; Backend_Overflow_Checks : constant Boolean := False; Command_Line_Args : constant Boolean := True; Compiler_System_Version : constant Boolean := False; Configurable_Run_Time : constant Boolean := False; Denorm : constant Boolean := True; Duration_32_Bits : constant Boolean := False; Exit_Status_Supported : constant Boolean := True; Fractional_Fixed_Ops : constant Boolean := False; Frontend_Layout : constant Boolean := False; Functions_Return_By_DSP : constant Boolean := False; Machine_Overflows : constant Boolean := False; Machine_Rounds : constant Boolean := True; OpenVMS : constant Boolean := False; Preallocated_Stacks : constant Boolean := False; Signed_Zeros : constant Boolean := True; Stack_Check_Default : constant Boolean := False; Stack_Check_Probes : constant Boolean := True; Support_64_Bit_Divides : constant Boolean := True; Support_Aggregates : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; Suppress_Standard_Library : constant Boolean := False; Use_Ada_Main_Program_Name : constant Boolean := False; ZCX_By_Default : constant Boolean := True; GCC_ZCX_Support : constant Boolean := True; Front_End_ZCX_Support : constant Boolean := False; -- Obsolete entries, to be removed eventually (bootstrap issues!) High_Integrity_Mode : constant Boolean := False; Long_Shifts_Inlined : constant Boolean := False; --------------------------- -- Underlying Priorities -- --------------------------- -- Important note: this section of the file must come AFTER the -- definition of the system implementation parameters to ensure -- that the value of these parameters is available for analysis -- of the declarations here (using Rtsfind at compile time). -- The underlying priorities table provides a generalized mechanism -- for mapping from Ada priorities to system priorities. In some -- cases a 1-1 mapping is not the convenient or optimal choice. type Priorities_Mapping is array (Any_Priority) of Integer; pragma Suppress_Initialization (Priorities_Mapping); -- Suppress initialization in case gnat.adc specifies Normalize_Scalars Underlying_Priorities : constant Priorities_Mapping := (Priority'First .. Default_Priority - 8 => -15, Default_Priority - 7 => -7, Default_Priority - 6 => -6, Default_Priority - 5 => -5, Default_Priority - 4 => -4, Default_Priority - 3 => -3, Default_Priority - 2 => -2, Default_Priority - 1 => -1, Default_Priority => 0, Default_Priority + 1 => 1, Default_Priority + 2 => 2, Default_Priority + 3 => 3, Default_Priority + 4 => 4, Default_Priority + 5 => 5, Default_Priority + 6 .. Priority'Last => 6, Interrupt_Priority => 15); -- The default mapping preserves the standard 31 priorities of the Ada -- model, but maps them using compression onto the 7 priority levels -- available in NT and on the 16 priority levels available in 2000/XP. -- To replace the default values of the Underlying_Priorities mapping, -- copy this source file into your build directory, edit the file to -- reflect your desired behavior, and recompile using Makefile.adalib -- which can be found under the adalib directory of your gnat installation pragma Linker_Options ("-Wl,--stack=0x2000000"); -- This is used to change the default stack (32 MB) size for non tasking -- programs. We change this value for GNAT on Windows here because the -- binutils on this platform have switched to a too low value for Ada -- programs. Note that we also set the stack size for tasking programs in -- System.Task_Primitives.Operations. end System;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f4xx_hal_dac.c and stm32f4xx_hal_dac_ex.c -- -- @author MCD Application Team -- -- @version V1.3.1 -- -- @date 25-March-2015 -- -- @brief Header file of DAC HAL module. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; with STM32_SVD.DAC; use STM32_SVD.DAC; package body STM32.DAC is ------------ -- Enable -- ------------ procedure Enable (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.EN1 := True; when Channel_2 => This.CR.EN2 := True; end case; end Enable; ------------- -- Disable -- ------------- procedure Disable (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.EN1 := False; when Channel_2 => This.CR.EN2 := False; end case; end Disable; ------------- -- Enabled -- ------------- function Enabled (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return Boolean is begin case Channel is when Channel_1 => return This.CR.EN1; when Channel_2 => return This.CR.EN2; end case; end Enabled; ---------------- -- Set_Output -- ---------------- procedure Set_Output (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel; Value : UInt32; Resolution : DAC_Resolution; Alignment : Data_Alignment) is begin case Channel is when Channel_1 => case Resolution is when DAC_Resolution_12_Bits => case Alignment is when Left_Aligned => This.DHR12L1.DACC1DHR := UInt12 (Value and Max_12bit_Resolution); when Right_Aligned => This.DHR12R1.DACC1DHR := UInt12 (Value and Max_12bit_Resolution); end case; when DAC_Resolution_8_Bits => This.DHR8R1.DACC1DHR := UInt8 (Value and Max_8bit_Resolution); end case; when Channel_2 => case Resolution is when DAC_Resolution_12_Bits => case Alignment is when Left_Aligned => This.DHR12L2.DACC2DHR := UInt12 (Value and Max_12bit_Resolution); when Right_Aligned => This.DHR12R2.DACC2DHR := UInt12 (Value and Max_12bit_Resolution); end case; when DAC_Resolution_8_Bits => This.DHR8R2.DACC2DHR := UInt8 (Value and Max_8bit_Resolution); end case; end case; end Set_Output; ------------------------------------ -- Trigger_Conversion_By_Software -- ------------------------------------ procedure Trigger_Conversion_By_Software (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.SWTRIGR.SWTRIG.Arr (1) := True; -- cleared by hardware when Channel_2 => This.SWTRIGR.SWTRIG.Arr (2) := True; -- cleared by hardware end case; end Trigger_Conversion_By_Software; ---------------------------- -- Converted_Output_Value -- ---------------------------- function Converted_Output_Value (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return UInt32 is begin case Channel is when Channel_1 => return UInt32 (This.DOR1.DACC1DOR); when Channel_2 => return UInt32 (This.DOR2.DACC2DOR); end case; end Converted_Output_Value; ------------------------------ -- Set_Dual_Output_Voltages -- ------------------------------ procedure Set_Dual_Output_Voltages (This : in out Digital_To_Analog_Converter; Channel_1_Value : UInt32; Channel_2_Value : UInt32; Resolution : DAC_Resolution; Alignment : Data_Alignment) is begin case Resolution is when DAC_Resolution_12_Bits => case Alignment is when Left_Aligned => This.DHR12LD.DACC1DHR := UInt12 (Channel_1_Value and Max_12bit_Resolution); This.DHR12LD.DACC2DHR := UInt12 (Channel_2_Value and Max_12bit_Resolution); when Right_Aligned => This.DHR12RD.DACC1DHR := UInt12 (Channel_1_Value and Max_12bit_Resolution); This.DHR12RD.DACC2DHR := UInt12 (Channel_2_Value and Max_12bit_Resolution); end case; when DAC_Resolution_8_Bits => This.DHR8RD.DACC1DHR := UInt8 (Channel_1_Value and Max_8bit_Resolution); This.DHR8RD.DACC2DHR := UInt8 (Channel_2_Value and Max_8bit_Resolution); end case; end Set_Dual_Output_Voltages; --------------------------------- -- Converted_Dual_Output_Value -- --------------------------------- function Converted_Dual_Output_Value (This : Digital_To_Analog_Converter) return Dual_Channel_Output is Result : Dual_Channel_Output; begin Result.Channel_1_Data := UInt16 (This.DOR1.DACC1DOR); Result.Channel_2_Data := UInt16 (This.DOR2.DACC2DOR); return Result; end Converted_Dual_Output_Value; -------------------------- -- Enable_Output_Buffer -- -------------------------- procedure Enable_Output_Buffer (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.BOFF1 := True; when Channel_2 => This.CR.BOFF2 := True; end case; end Enable_Output_Buffer; --------------------------- -- Disable_Output_Buffer -- --------------------------- procedure Disable_Output_Buffer (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.BOFF1 := False; when Channel_2 => This.CR.BOFF2 := False; end case; end Disable_Output_Buffer; --------------------------- -- Output_Buffer_Enabled -- --------------------------- function Output_Buffer_Enabled (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return Boolean is begin case Channel is when Channel_1 => return This.CR.BOFF1; when Channel_2 => return This.CR.BOFF2; end case; end Output_Buffer_Enabled; -------------------- -- Select_Trigger -- -------------------- procedure Select_Trigger (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel; Trigger : External_Event_Trigger_Selection) is begin case Channel is when Channel_1 => This.CR.TSEL1 := External_Event_Trigger_Selection'Enum_Rep (Trigger); when Channel_2 => This.CR.TSEL2 := External_Event_Trigger_Selection'Enum_Rep (Trigger); end case; end Select_Trigger; ----------------------- -- Trigger_Selection -- ----------------------- function Trigger_Selection (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return External_Event_Trigger_Selection is begin case Channel is when Channel_1 => return External_Event_Trigger_Selection'Val (This.CR.TSEL1); when Channel_2 => return External_Event_Trigger_Selection'Val (This.CR.TSEL2); end case; end Trigger_Selection; -------------------- -- Enable_Trigger -- -------------------- procedure Enable_Trigger (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.TEN1 := True; when Channel_2 => This.CR.TEN2 := True; end case; end Enable_Trigger; --------------------- -- Disable_Trigger -- --------------------- procedure Disable_Trigger (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.TEN1 := False; when Channel_2 => This.CR.TEN2 := False; end case; end Disable_Trigger; --------------------- -- Trigger_Enabled -- --------------------- function Trigger_Enabled (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return Boolean is begin case Channel is when Channel_1 => return This.CR.TEN1; when Channel_2 => return This.CR.TEN2; end case; end Trigger_Enabled; ---------------- -- Enable_DMA -- ---------------- procedure Enable_DMA (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.DMAEN1 := True; when Channel_2 => This.CR.DMAEN2 := True; end case; end Enable_DMA; ----------------- -- Disable_DMA -- ----------------- procedure Disable_DMA (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.CR.DMAEN1 := False; when Channel_2 => This.CR.DMAEN2 := False; end case; end Disable_DMA; ----------------- -- DMA_Enabled -- ----------------- function DMA_Enabled (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return Boolean is begin case Channel is when Channel_1 => return This.CR.DMAEN1; when Channel_2 => return This.CR.DMAEN2; end case; end DMA_Enabled; ------------ -- Status -- ------------ function Status (This : Digital_To_Analog_Converter; Flag : DAC_Status_Flag) return Boolean is begin case Flag is when DMA_Underrun_Channel_1 => return This.SR.DMAUDR1; when DMA_Underrun_Channel_2 => return This.SR.DMAUDR2; end case; end Status; ------------------ -- Clear_Status -- ------------------ procedure Clear_Status (This : in out Digital_To_Analog_Converter; Flag : DAC_Status_Flag) is begin case Flag is when DMA_Underrun_Channel_1 => This.SR.DMAUDR1 := True; -- set to 1 to clear when DMA_Underrun_Channel_2 => This.SR.DMAUDR2 := True; -- set to 1 to clear end case; end Clear_Status; ----------------------- -- Enable_Interrupts -- ----------------------- procedure Enable_Interrupts (This : in out Digital_To_Analog_Converter; Source : DAC_Interrupts) is begin case Source is when DMA_Underrun_Channel_1 => This.CR.DMAUDRIE1 := True; when DMA_Underrun_Channel_2 => This.CR.DMAUDRIE2 := True; end case; end Enable_Interrupts; ------------------------ -- Disable_Interrupts -- ------------------------ procedure Disable_Interrupts (This : in out Digital_To_Analog_Converter; Source : DAC_Interrupts) is begin case Source is when DMA_Underrun_Channel_1 => This.CR.DMAUDRIE1 := False; when DMA_Underrun_Channel_2 => This.CR.DMAUDRIE2 := False; end case; end Disable_Interrupts; ----------------------- -- Interrupt_Enabled -- ----------------------- function Interrupt_Enabled (This : Digital_To_Analog_Converter; Source : DAC_Interrupts) return Boolean is begin case Source is when DMA_Underrun_Channel_1 => return This.CR.DMAUDRIE1; when DMA_Underrun_Channel_2 => return This.CR.DMAUDRIE2; end case; end Interrupt_Enabled; ----------------------------- -- Clear_Interrupt_Pending -- ----------------------------- procedure Clear_Interrupt_Pending (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel) is begin case Channel is when Channel_1 => This.SR.DMAUDR1 := False; when Channel_2 => This.SR.DMAUDR2 := False; end case; end Clear_Interrupt_Pending; ---------------------------- -- Select_Wave_Generation -- ---------------------------- procedure Select_Wave_Generation (This : in out Digital_To_Analog_Converter; Channel : DAC_Channel; Selection : Wave_Generation) is function As_UInt4 is new Ada.Unchecked_Conversion (Source => Noise_Wave_Mask_Selection, Target => UInt4); function As_UInt4 is new Ada.Unchecked_Conversion (Source => Triangle_Wave_Amplitude_Selection, Target => UInt4); begin case Channel is when Channel_1 => This.CR.WAVE1 := Wave_Generation_Selection'Enum_Rep (Selection.Kind); when Channel_2 => This.CR.WAVE2 := Wave_Generation_Selection'Enum_Rep (Selection.Kind); end case; case Selection.Kind is when No_Wave_Generation => null; when Noise_Wave => case Channel is when Channel_1 => This.CR.MAMP1 := As_UInt4 (Selection.Mask); when Channel_2 => This.CR.MAMP2 := As_UInt4 (Selection.Mask); end case; when Triangle_Wave => case Channel is when Channel_1 => This.CR.MAMP1 := As_UInt4 (Selection.Amplitude); when Channel_2 => This.CR.MAMP2 := As_UInt4 (Selection.Amplitude); end case; end case; end Select_Wave_Generation; ------------------------------ -- Selected_Wave_Generation -- ------------------------------ function Selected_Wave_Generation (This : Digital_To_Analog_Converter; Channel : DAC_Channel) return Wave_Generation is Kind : Wave_Generation_Selection; function As_Mask is new Ada.Unchecked_Conversion (Target => Noise_Wave_Mask_Selection, Source => UInt4); function As_Amplitude is new Ada.Unchecked_Conversion (Target => Triangle_Wave_Amplitude_Selection, Source => UInt4); begin case Channel is when Channel_1 => Kind := Wave_Generation_Selection'Val (This.CR.WAVE1); when Channel_2 => Kind := Wave_Generation_Selection'Val (This.CR.WAVE2); end case; declare Result : Wave_Generation (Kind); begin case Kind is when No_Wave_Generation => null; when Noise_Wave => case Channel is when Channel_1 => Result.Mask := As_Mask (This.CR.MAMP1); when Channel_2 => Result.Mask := As_Mask (This.CR.MAMP2); end case; when Triangle_Wave => case Channel is when Channel_1 => Result.Amplitude := As_Amplitude (This.CR.MAMP1); when Channel_2 => Result.Amplitude := As_Amplitude (This.CR.MAMP2); end case; end case; return Result; end; end Selected_Wave_Generation; ------------------ -- Data_Address -- ------------------ function Data_Address (This : Digital_To_Analog_Converter; Channel : DAC_Channel; Resolution : DAC_Resolution; Alignment : Data_Alignment) return Address is Result : Address; begin case Channel is when Channel_1 => case Resolution is when DAC_Resolution_12_Bits => case Alignment is when Left_Aligned => Result := This.DHR12L1'Address; when Right_Aligned => Result := This.DHR12R1'Address; end case; when DAC_Resolution_8_Bits => Result := This.DHR8R1'Address; end case; when Channel_2 => case Resolution is when DAC_Resolution_12_Bits => case Alignment is when Left_Aligned => Result := This.DHR12L2'Address; when Right_Aligned => Result := This.DHR12R2'Address; end case; when DAC_Resolution_8_Bits => Result := This.DHR8R2'Address; end case; end case; return Result; end Data_Address; end STM32.DAC;
package body getter.macros is function get return character is c : character; procedure rem_var (cur : in params_t.cursor) is begin environment.delete(environment_t.key(params_t.element(cur))); end rem_var; begin if current_called.last > unb.length(current_macros.code) then params_t.iterate(current_called.params, rem_var'access); stack.delete_last; if not stack_t.is_empty(stack) then current_called := stack_t.element(stack_t.last(stack)); current_macros := macroses_t.element(current_called.macros_cursor); end if; pop; return ' '; end if; c := unb.element(current_macros.code, current_called.last); inc(current_called.last); return c; end get; procedure define (name, params : string) is eqs : natural := 1; c : character; tmp_macros : macros_t; len_end : constant natural := end_macros_statement'length; start_pos : natural := 1; cur_pos : natural := 1; mustbe_only_default : boolean := false; t_param : param_t; begin loop c := getter.get(false); if c = ascii.nul then raise ERROR_NO_CLOSED; end if; if end_macros_statement(eqs) = c and then unb.element(tmp_macros.code, unb.length(tmp_macros.code) - eqs + 1) in ' '|ascii.lf then inc(eqs); if eqs > len_end then unb.delete(tmp_macros.code, unb.length(tmp_macros.code) - (end_macros_statement'length - 2), unb.length(tmp_macros.code)); exit; end if; else eqs := 1; end if; unb.append(tmp_macros.code, c); end loop; for i in params'range loop c := params(i); if c in ' '|ascii.lf then if start_pos /= cur_pos then declare param : constant string := params(start_pos..(cur_pos - 1)); assignment_pos : natural := fix.index(param, "="); begin if assignment_pos > 0 then mustbe_only_default := true; if assignment_pos = param'last or assignment_pos = param'first or not validate_variable(param(param'first..(assignment_pos - 1))) or not validate_word(param((assignment_pos + 1)..param'last)) then raise ERROR_PARAM with param; end if; t_param.name := unb.to_unbounded_string(param(param'first..(assignment_pos - 1))); t_param.default_val := value(param((assignment_pos + 1)..param'last)); t_param.has_default := true; elsif mustbe_only_default then raise ERROR_NONDEFAULT_AFTER_DEFAULT with param; elsif not validate_variable(param) then raise ERROR_PARAM with param; else inc(tmp_macros.num_required_params); t_param.name := unb.to_unbounded_string(param); end if; end; tmp_macros.param_names.append(t_param); end if; start_pos := cur_pos + 1; end if; inc(cur_pos); end loop; macroses.insert(name, tmp_macros); end define; procedure call (name, params : string) is t_i : positive := 1; param_i : param_names_t.cursor; tmp_env_cur : environment_t.cursor; tb : boolean; num_req : natural; tmp_n : natural; mustbe_only_default : boolean := false; t_param : param_t; begin if not macroses_t.contains(macroses, name) then raise ERROR_NO_DEFINED; end if; if not stack_t.is_empty(stack) then stack.replace_element(stack_t.last(stack), current_called); end if; current_called.last := 1; current_called.cur_line := 1; current_called.params.clear; current_called.macros_cursor := macroses_t.find(macroses, name); current_macros := macroses_t.element(current_called.macros_cursor); num_req := current_macros.num_required_params; stack.append(current_called); param_i := param_names_t.first(current_macros.param_names); for i in params'range loop if params(i) = ' ' then declare param_raw : constant string := params(t_i..i - 1); assignment_pos : natural := fix.index(param_raw, "="); name : constant string := param_raw(param_raw'first..(assignment_pos - 1)); param : constant string := param_raw(natural'max((assignment_pos + 1), param_raw'first)..param_raw'last); begin if assignment_pos > 0 then if assignment_pos = param_raw'first or assignment_pos = param_raw'last then raise ERROR_PARAM with param; end if; mustbe_only_default := true; param_i := param_names_t.first(current_macros.param_names); while param_names_t.has_element(param_i) loop t_param := param_names_t.element(param_i); if t_param.name = name then if not t_param.has_default then if num_req = 0 then raise ERROR_COUNT_PARAMS with params; end if; dec(num_req); end if; exit; end if; param_names_t.next(param_i); end loop; if not param_names_t.has_element(param_i) then raise ERROR_UNEXPECTED_NAME with name; end if; environment.insert(name, value(param), tmp_env_cur, tb); elsif mustbe_only_default then raise ERROR_NONDEFAULT_AFTER_DEFAULT with params; else if num_req > 0 then dec(num_req); end if; environment.insert(unb.to_string(param_names_t.element(param_i).name), value(param), tmp_env_cur, tb); param_names_t.next(param_i); end if; if not tb then raise ERROR_ALREADY_DEFINED; end if; end; current_called.params.append(tmp_env_cur); t_i := i + 1; end if; end loop; if num_req > 0 then raise ERROR_COUNT_PARAMS with params; end if; param_i := param_names_t.first(current_macros.param_names); while param_names_t.has_element(param_i) loop t_param := param_names_t.element(param_i); if t_param.has_default then environment.insert(unb.to_string(param_names_t.element(param_i).name), t_param.default_val, tmp_env_cur, tb); if tb then current_called.params.append(tmp_env_cur); end if; end if; param_names_t.next(param_i); end loop; getter.push(get'access); end call; end getter.macros;
function Palindrome (message: String) return Boolean is -- Palindrome checker rev, orig : String(message'First..message'Last); counter, rev_count : Integer := 0; begin -- Remove any spaces for c in message'First..message'Last loop if message(c) /= ' ' then counter := counter + 1; orig(counter..counter) := message(c..c); end if; end loop; -- Reverse the string for d in reverse 1..counter loop rev_count := rev_count + 1; rev(rev_count..rev_count) := orig(d..d); end loop; -- Compare and return return orig(1..counter) = rev(1..counter); end Palindrome;
with Ada; procedure Debug is pragma Debug (Ada.Debug.Put ("here, we go !")); begin null; end Debug;
----------------------------------------------------------------------- -- awa-applications-configs -- Read application configuration files -- Copyright (C) 2011, 2012, 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Command_Line; with Ada.Directories; with Ada.Strings.Unbounded; with Util.Files; with Util.Log.Loggers; with ASF.Contexts.Faces; with ASF.Applications.Main.Configs; with Security.Policies; with AWA.Events.Configs; with AWA.Services.Contexts; package body AWA.Applications.Configs is Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Applications.Configs"); -- ------------------------------ -- XML reader configuration. By instantiating this generic package, the XML parser -- gets initialized to read the configuration for servlets, filters, managed beans, -- permissions, events and other configuration elements. -- ------------------------------ package body Reader_Config is App_Access : constant ASF.Contexts.Faces.Application_Access := App.all'Unchecked_Access; package Bean_Config is new ASF.Applications.Main.Configs.Reader_Config (Reader, App_Access, Context.all'Access, Override_Context); package Event_Config is new AWA.Events.Configs.Reader_Config (Reader => Reader, Manager => App.Events'Unchecked_Access, Context => Context.all'Access); pragma Warnings (Off, Bean_Config); pragma Warnings (Off, Event_Config); end Reader_Config; -- ------------------------------ -- Read the application configuration file and configure the application -- ------------------------------ procedure Read_Configuration (App : in out Application'Class; File : in String; Context : in EL.Contexts.Default.Default_Context_Access; Override_Context : in Boolean) is Reader : Util.Serialize.IO.XML.Parser; Ctx : AWA.Services.Contexts.Service_Context; Sec : constant Security.Policies.Policy_Manager_Access := App.Get_Security_Manager; begin Log.Info ("Reading application configuration file {0}", File); Ctx.Set_Context (App'Unchecked_Access, null); declare package Config is new Reader_Config (Reader, App'Unchecked_Access, Context, Override_Context); pragma Warnings (Off, Config); begin Sec.Prepare_Config (Reader); -- Initialize the parser with the module configuration mappers (if any). Initialize_Parser (App, Reader); if Log.Get_Level >= Util.Log.DEBUG_LEVEL then Util.Serialize.IO.Dump (Reader, Log); end if; -- Read the configuration file and record managed beans, navigation rules. Reader.Parse (File); end; exception when others => Log.Error ("Error while reading {0}", File); raise; end Read_Configuration; -- ------------------------------ -- Get the configuration path for the application name. -- The configuration path is search from: -- o the current directory, -- o the 'config' directory, -- o the Dynamo installation directory in share/dynamo -- ------------------------------ function Get_Config_Path (Name : in String) return String is use Ada.Strings.Unbounded; use Ada.Directories; Command : constant String := Ada.Command_Line.Command_Name; Path : constant String := Ada.Directories.Containing_Directory (Command); Dir : constant String := Containing_Directory (Path); Paths : Ada.Strings.Unbounded.Unbounded_String; begin Append (Paths, ".;"); Append (Paths, Util.Files.Compose (Dir, "config")); Append (Paths, ";"); Append (Paths, Util.Files.Compose (Dir, "share/dynamo/" & Name)); return Util.Files.Find_File_Path (Name & ".properties", To_String (Paths)); end Get_Config_Path; end AWA.Applications.Configs;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . I M G _ E N U M _ 3 2 -- -- -- -- S p e c -- -- -- -- Copyright (C) 2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Instantiation of System.Image_N for enumeration types whose names table -- has a length that fits in a 32-bit but not a 16-bit integer. with Interfaces; with System.Image_N; package System.Img_Enum_32 is pragma Pure; package Impl is new Image_N (Interfaces.Integer_32); procedure Image_Enumeration_32 (Pos : Natural; S : in out String; P : out Natural; Names : String; Indexes : System.Address) renames Impl.Image_Enumeration; end System.Img_Enum_32;
-- Copyright 2010-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package Pck is Node_Low_Bound : constant := 0; Node_High_Bound : constant := 099_999_999; type Node_Id is range Node_Low_Bound .. Node_High_Bound; function Pn (N : Node_Id) return Node_Id; end Pck;
-- Copyright 2008 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Do_Nothing (C : in out Circle) is begin null; end Do_Nothing; end Pck;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . E X E C U T I O N _ T I M E -- -- -- -- S p e c -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ -- This unit is not implemented in typical GNAT implementations that lie on -- top of operating systems, because it is infeasible to implement in such -- environments. -- If a target environment provides appropriate support for this package -- then the Unimplemented_Unit pragma should be removed from this spec and -- an appropriate body provided. with Ada.Task_Identification; with Ada.Real_Time; package Ada.Execution_Time with SPARK_Mode is pragma Preelaborate; pragma Unimplemented_Unit; type CPU_Time is private; CPU_Time_First : constant CPU_Time; CPU_Time_Last : constant CPU_Time; CPU_Time_Unit : constant := 0.000001; CPU_Tick : constant Ada.Real_Time.Time_Span; use type Ada.Task_Identification.Task_Id; function Clock (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) return CPU_Time with Volatile_Function, Global => Ada.Real_Time.Clock_Time, Pre => T /= Ada.Task_Identification.Null_Task_Id; function "+" (Left : CPU_Time; Right : Ada.Real_Time.Time_Span) return CPU_Time with Global => null; function "+" (Left : Ada.Real_Time.Time_Span; Right : CPU_Time) return CPU_Time with Global => null; function "-" (Left : CPU_Time; Right : Ada.Real_Time.Time_Span) return CPU_Time with Global => null; function "-" (Left : CPU_Time; Right : CPU_Time) return Ada.Real_Time.Time_Span with Global => null; function "<" (Left, Right : CPU_Time) return Boolean with Global => null; function "<=" (Left, Right : CPU_Time) return Boolean with Global => null; function ">" (Left, Right : CPU_Time) return Boolean with Global => null; function ">=" (Left, Right : CPU_Time) return Boolean with Global => null; procedure Split (T : CPU_Time; SC : out Ada.Real_Time.Seconds_Count; TS : out Ada.Real_Time.Time_Span) with Global => null; function Time_Of (SC : Ada.Real_Time.Seconds_Count; TS : Ada.Real_Time.Time_Span := Ada.Real_Time.Time_Span_Zero) return CPU_Time with Global => null; Interrupt_Clocks_Supported : constant Boolean := False; Separate_Interrupt_Clocks_Supported : constant Boolean := False; pragma Warnings (Off, "check will fail at run time"); function Clock_For_Interrupts return CPU_Time with Volatile_Function, Global => Ada.Real_Time.Clock_Time, Pre => Interrupt_Clocks_Supported; pragma Warnings (On, "check will fail at run time"); private pragma SPARK_Mode (Off); type CPU_Time is new Ada.Real_Time.Time; CPU_Time_First : constant CPU_Time := CPU_Time (Ada.Real_Time.Time_First); CPU_Time_Last : constant CPU_Time := CPU_Time (Ada.Real_Time.Time_Last); CPU_Tick : constant Ada.Real_Time.Time_Span := Ada.Real_Time.Tick; end Ada.Execution_Time;
-- C34007A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT THE REQUIRED PREDEFINED OPERATIONS ARE DECLARED -- (IMPLICITLY) FOR DERIVED ACCESS TYPES WHOSE DESIGNATED TYPE IS -- NOT AN ARRAY TYPE, A TASK TYPE, A RECORD TYPE, OR A TYPE WITH -- DISCRIMINANTS. -- HISTORY: -- JRK 09/24/86 CREATED ORIGINAL TEST. -- BCB 10/21/87 CHANGED HEADER TO STANDARD FORMAT. REVISED TEST SO -- T'STORAGE_SIZE IS NOT REQUIRED TO BE > 1. -- BCB 09/26/88 REMOVED COMPARISON INVOLVING OBJECT SIZE. -- BCB 03/07/90 PUT CHECK FOR 'STORAGE_SIZE IN EXCEPTION HANDLER. -- THS 09/18/90 REMOVED DECLARATION OF B, MADE THE BODY OF -- PROCEDURE A NULL, AND DELETED ALL REFERENCES TO B. -- PWN 01/31/95 REMOVED INCONSISTENCIES WITH ADA 9X. WITH SYSTEM; USE SYSTEM; WITH REPORT; USE REPORT; PROCEDURE C34007A IS TYPE DESIGNATED IS RANGE -100 .. 100; SUBTYPE SUBDESIGNATED IS DESIGNATED RANGE DESIGNATED'VAL (IDENT_INT (-50)) .. DESIGNATED'VAL (IDENT_INT ( 50)); TYPE PARENT IS ACCESS SUBDESIGNATED RANGE DESIGNATED'VAL (IDENT_INT (-30)) .. DESIGNATED'VAL (IDENT_INT ( 30)); TYPE T IS NEW PARENT; X : T := NEW DESIGNATED'(-30); K : INTEGER := X'SIZE; Y : T := NEW DESIGNATED'( 30); W : PARENT := NEW DESIGNATED'( 30); PROCEDURE A (X : ADDRESS) IS BEGIN NULL; END A; FUNCTION IDENT (X : T) RETURN T IS BEGIN IF X = NULL OR ELSE EQUAL (DESIGNATED'POS (X.ALL), DESIGNATED'POS (X.ALL)) THEN RETURN X; -- ALWAYS EXECUTED. END IF; RETURN NEW DESIGNATED; END IDENT; BEGIN TEST ("C34007A", "CHECK THAT THE REQUIRED PREDEFINED OPERATIONS " & "ARE DECLARED (IMPLICITLY) FOR DERIVED " & "ACCESS TYPES WHOSE DESIGNATED TYPE IS NOT AN " & "ARRAY TYPE, A TASK TYPE, A RECORD TYPE, OR A " & "TYPE WITH DISCRIMINANTS"); IF Y = NULL OR ELSE Y.ALL /= 30 THEN FAILED ("INCORRECT INITIALIZATION"); END IF; X := IDENT (Y); IF X /= Y THEN FAILED ("INCORRECT :="); END IF; IF T'(X) /= Y THEN FAILED ("INCORRECT QUALIFICATION"); END IF; IF T (X) /= Y THEN FAILED ("INCORRECT SELF CONVERSION"); END IF; IF EQUAL (3, 3) THEN W := NEW DESIGNATED'(-30); END IF; X := T (W); IF X = NULL OR ELSE X = Y OR ELSE X.ALL /= -30 THEN FAILED ("INCORRECT CONVERSION FROM PARENT"); END IF; X := IDENT (Y); W := PARENT (X); IF W = NULL OR ELSE W.ALL /= 30 OR ELSE T (W) /= Y THEN FAILED ("INCORRECT CONVERSION TO PARENT"); END IF; IF IDENT (NULL) /= NULL OR X = NULL THEN FAILED ("INCORRECT NULL"); END IF; X := IDENT (NEW DESIGNATED'(30)); IF X = NULL OR ELSE X = Y OR ELSE X.ALL /= 30 THEN FAILED ("INCORRECT ALLOCATOR"); END IF; X := IDENT (Y); IF X.ALL /= 30 THEN FAILED ("INCORRECT .ALL (VALUE)"); END IF; X.ALL := DESIGNATED'VAL (IDENT_INT (10)); IF X /= Y OR Y.ALL /= 10 THEN FAILED ("INCORRECT .ALL (ASSIGNMENT)"); END IF; Y.ALL := 30; X := IDENT (NULL); BEGIN IF X.ALL = 0 THEN FAILED ("NO EXCEPTION FOR NULL.ALL - 1"); ELSE FAILED ("NO EXCEPTION FOR NULL.ALL - 2"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION FOR NULL.ALL"); END; X := IDENT (Y); IF X = NULL OR X = NEW DESIGNATED OR NOT (X = Y) THEN FAILED ("INCORRECT ="); END IF; IF X /= Y OR NOT (X /= NULL) THEN FAILED ("INCORRECT /="); END IF; IF NOT (X IN T) THEN FAILED ("INCORRECT ""IN"""); END IF; IF X NOT IN T THEN FAILED ("INCORRECT ""NOT IN"""); END IF; A (X'ADDRESS); BEGIN IF T'STORAGE_SIZE /= PARENT'STORAGE_SIZE THEN FAILED ("COLLECTION SIZE OF DERIVED TYPE IS NOT " & "EQUAL OF COLLECTION SIZE OF PARENT TYPE"); END IF; EXCEPTION WHEN PROGRAM_ERROR => COMMENT ("PROGRAM_ERROR RAISED FOR " & "UNDEFINED STORAGE_SIZE (AI-00608)"); WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED"); END; RESULT; END C34007A;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . C P U _ P R I M I T I V E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid -- -- Copyright (C) 2003-2004 The European Space Agency -- -- Copyright (C) 2003-2021, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package contains the primitives which are dependent on the -- underlying processor. pragma Restrictions (No_Elaboration_Code); with System; with System.Storage_Elements; with System.BB.CPU_Specific; package System.BB.CPU_Primitives is pragma Preelaborate; ------------------------ -- Context Management -- ------------------------ subtype Context_Buffer is System.BB.CPU_Specific.Context_Buffer; procedure Context_Switch; -- Perform the context switch between the running_thread and the first -- thread. The value of running_thread will be updated. procedure Initialize_Stack (Base : Address; Size : Storage_Elements.Storage_Offset; Stack_Pointer : out Address); -- Initialize a stack which spans BASE .. BASE + SIZE - 1. Set -- STACK_POINTER to the address to be used by the processor. procedure Initialize_Context (Buffer : not null access Context_Buffer; Program_Counter : System.Address; Argument : System.Address; Stack_Pointer : System.Address); pragma Inline (Initialize_Context); -- Initialize_Context initializes the context buffer with the default -- values for each register. The values for program counter, the argument -- to be passed and the stack pointer are provided as parameters. --------------------------------- -- Interrupt and Trap Handling -- --------------------------------- procedure Install_Error_Handlers; -- Called at system initialization time to install a CPU specific trap -- handler, GNAT_Error_Handler, that converts synchronous traps to -- appropriate exceptions. procedure Disable_Interrupts; pragma Inline (Disable_Interrupts); -- All external interrupts (asynchronous traps) are disabled procedure Enable_Interrupts (Level : Integer); pragma Inline (Enable_Interrupts); -- Interrupts are enabled if they are above the value given by Level procedure Initialize_CPU; pragma Inline (Initialize_CPU); end System.BB.CPU_Primitives;
with OpenGL.Thin; with System; generic type Element_Type is private; type Index_Type is range <>; type Array_Type is array (Index_Type range <>) of aliased Element_Type; package OpenGL.Buffer_Object is type Buffer_t is new Thin.Unsigned_Integer_t; type Buffer_Array_t is array (Natural range <>) of aliased Buffer_t; pragma Convention (C, Buffer_Array_t); -- -- Generate buffer name(s). -- -- proc_map : glGenBuffers procedure Generate (Buffers : in out Buffer_Array_t); -- -- Delete buffer. -- -- proc_map : glDeleteBuffers procedure Delete (Buffers : in Buffer_Array_t); -- -- Bind object to target. -- type Target_t is (Array_Buffer, Copy_Read_Buffer, Copy_Write_Buffer, Element_Array_Buffer, Pixel_Pack_Buffer, Pixel_Unpack_Buffer, Texture_Buffer, Transform_Feedback_Buffer, Uniform_Buffer); -- proc_map : glBindBuffer procedure Bind (Target : in Target_t; Buffer : in Buffer_t); -- -- Buffer data. -- type Usage_t is (Stream_Draw, Stream_Read, Stream_Copy, Static_Draw, Static_Read, Static_Copy, Dynamic_Draw, Dynamic_Read, Dynamic_Copy); -- proc_map : glBufferData procedure Data (Target : in Target_t; Data : in Array_Type; Usage : in Usage_t); -- proc_map : glBufferSubData procedure Sub_Data (Target : in Target_t; Offset : in Index_Type; Data : in Array_Type); -- -- Map buffer data. -- type Access_Policy_t is new OpenGL.Thin.Bitfield_t; Read_Bit : constant Access_Policy_t := Thin.GL_MAP_READ_BIT; Write_Bit : constant Access_Policy_t := Thin.GL_MAP_WRITE_BIT; Invalidate_Range_Bit : constant Access_Policy_t := Thin.GL_MAP_INVALIDATE_RANGE_BIT; Invalidate_Buffer_Bit : constant Access_Policy_t := Thin.GL_MAP_INVALIDATE_BUFFER_BIT; Flush_Explicit_Bit : constant Access_Policy_t := Thin.GL_MAP_FLUSH_EXPLICIT_BIT; Unsynchronized_Bit : constant Access_Policy_t := Thin.GL_MAP_UNSYNCHRONIZED_BIT; -- proc_map : glMapBufferRange function Map_Range (Target : in Target_t; Offset : in Index_Type; Length : in Index_Type; Access_Policy : in Access_Policy_t) return System.Address; -- proc_map : glMapBuffer function Map (Target : in Target_t; Access_Policy : in Access_Policy_t) return System.Address; -- -- Flush mapped buffer. -- -- proc_map : glFlushMappedBufferRange procedure Flush_Range (Target : in Target_t; Offset : in Index_Type; Length : in Index_Type); -- -- Unmap buffer. -- -- proc_map : glUnmapBuffer function Unmap (Target : in Target_t) return Boolean; end OpenGL.Buffer_Object;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.Internals.String_Vectors; package League.String_Vectors.Internals is pragma Preelaborate; function Wrap (Item : Matreshka.Internals.String_Vectors.Shared_String_Vector_Access) return Universal_String_Vector; -- Creates vector object by wrapping specified internal object. pragma Inline (Wrap); end League.String_Vectors.Internals;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M -- -- -- -- S p e c -- -- (GNU-Linux/MIPS Version) -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package System is pragma Pure; -- Note that we take advantage of the implementation permission to make -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada -- 2005, this is Pure in any case (AI-362). pragma No_Elaboration_Code_All; -- Allow the use of that restriction in units that WITH this unit type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; -- System-Dependent Named Numbers Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1); Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1; Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size; Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1; Max_Base_Digits : constant := Long_Long_Float'Digits; Max_Digits : constant := Long_Long_Float'Digits; Max_Mantissa : constant := 63; Fine_Delta : constant := 2.0 ** (-Max_Mantissa); Tick : constant := 0.000_001; -- Storage-related Declarations type Address is private; pragma Preelaborable_Initialization (Address); Null_Address : constant Address; Storage_Unit : constant := 8; Word_Size : constant := Standard'Word_Size; Memory_Size : constant := 2 ** Word_Size; -- Address comparison function "<" (Left, Right : Address) return Boolean; function "<=" (Left, Right : Address) return Boolean; function ">" (Left, Right : Address) return Boolean; function ">=" (Left, Right : Address) return Boolean; function "=" (Left, Right : Address) return Boolean; pragma Import (Intrinsic, "<"); pragma Import (Intrinsic, "<="); pragma Import (Intrinsic, ">"); pragma Import (Intrinsic, ">="); pragma Import (Intrinsic, "="); -- Other System-Dependent Declarations type Bit_Order is (High_Order_First, Low_Order_First); Default_Bit_Order : constant Bit_Order := Bit_Order'Val (Standard'Default_Bit_Order); pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning -- Priority-related Declarations (RM D.1) Max_Priority : constant Positive := 30; Max_Interrupt_Priority : constant Positive := 31; subtype Any_Priority is Integer range 0 .. 31; subtype Priority is Any_Priority range 0 .. 30; subtype Interrupt_Priority is Any_Priority range 31 .. 31; Default_Priority : constant Priority := 15; private type Address is mod Memory_Size; Null_Address : constant Address := 0; -------------------------------------- -- System Implementation Parameters -- -------------------------------------- -- These parameters provide information about the target that is used -- by the compiler. They are in the private part of System, where they -- can be accessed using the special circuitry in the Targparm unit -- whose source should be consulted for more detailed descriptions -- of the individual switch values. Backend_Divide_Checks : constant Boolean := False; Backend_Overflow_Checks : constant Boolean := True; Command_Line_Args : constant Boolean := True; Configurable_Run_Time : constant Boolean := False; Denorm : constant Boolean := True; Duration_32_Bits : constant Boolean := False; Exit_Status_Supported : constant Boolean := True; Fractional_Fixed_Ops : constant Boolean := False; Frontend_Layout : constant Boolean := False; Machine_Overflows : constant Boolean := False; Machine_Rounds : constant Boolean := True; Preallocated_Stacks : constant Boolean := False; Signed_Zeros : constant Boolean := True; Stack_Check_Default : constant Boolean := False; Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; Always_Compatible_Rep : constant Boolean := False; Suppress_Standard_Library : constant Boolean := False; Use_Ada_Main_Program_Name : constant Boolean := False; Frontend_Exceptions : constant Boolean := False; ZCX_By_Default : constant Boolean := True; end System;
with Ada.Text_IO; use Ada.Text_IO; package body Greetings is procedure Hello is begin Put_Line ("Hello WORLD!"); end Hello; procedure Goodbye is begin Put_Line ("Goodbye WORLD!"); end Goodbye; end Greetings;
-- { dg-do run } -- { dg-options "-gnatws" } pragma Assertion_Policy (Check); with Text_IO; use Text_IO; procedure assert1 is type p1 is array (1 .. 113) of Boolean; pragma Pack (p1); type p2 is array (1 .. 13) of Boolean; pragma Pack (p2); type p3 is array (1 .. 113) of Boolean; pragma Pack (p3); for p3'size use 113; type p4 is array (1 .. 13) of Boolean; pragma Pack (p4); for p4'size use 13; v1 : p1; v2 : p2; v3 : p3; v4 : p4; begin pragma Assert (p1'Size = 120); pragma Assert (p2'Size = 13); pragma Assert (p3'Size = 113); pragma Assert (p4'Size = 13); pragma Assert (p1'Value_Size = 120); pragma Assert (p2'Value_Size = 13); pragma Assert (p3'Value_Size = 113); pragma Assert (p4'Value_Size = 13); pragma Assert (p1'Object_Size = 120); pragma Assert (p2'Object_Size = 16); pragma Assert (p3'Object_Size = 120); pragma Assert (p4'Object_Size = 16); pragma Assert (v1'Size = 120); pragma Assert (v2'Size = 16); pragma Assert (v3'Size = 120); pragma Assert (v4'Size = 16); null; end;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E R R O U T C -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2010, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This packages contains global variables and routines common to error -- reporting packages, including Errout and Prj.Err. with Table; with Types; use Types; package Erroutc is Class_Flag : Boolean := False; -- This flag is set True when outputting a reference to a class-wide -- type, and is used by Add_Class to insert 'Class at the proper point Continuation : Boolean := False; -- Indicates if current message is a continuation. Initialized from the -- Msg_Cont parameter in Error_Msg_Internal and then set True if a \ -- insertion character is encountered. Continuation_New_Line : Boolean := False; -- Indicates if current message was a continuation line marked with \\ to -- force a new line. Set True if \\ encountered. Flag_Source : Source_File_Index; -- Source file index for source file where error is being posted Is_Warning_Msg : Boolean := False; -- Set True to indicate if current message is warning message Is_Style_Msg : Boolean := False; -- Set True to indicate if the current message is a style message -- (i.e. a message whose text starts with the characters "(style)"). Is_Serious_Error : Boolean := False; -- Set by Set_Msg_Text to indicate if current message is serious error Is_Unconditional_Msg : Boolean := False; -- Set by Set_Msg_Text to indicate if current message is unconditional Kill_Message : Boolean := False; -- A flag used to kill weird messages (e.g. those containing uninterpreted -- implicit type references) if we have already seen at least one message -- already. The idea is that we hope the weird message is a junk cascaded -- message that should be suppressed. Last_Killed : Boolean := False; -- Set True if the most recently posted non-continuation message was -- killed. This is used to determine the processing of any continuation -- messages that follow. List_Pragmas_Index : Int := 0; -- Index into List_Pragmas table List_Pragmas_Mode : Boolean := False; -- Starts True, gets set False by pragma List (Off), True by List (On) Manual_Quote_Mode : Boolean := False; -- Set True in manual quotation mode Max_Msg_Length : constant := 1024 + 2 * Int (Column_Number'Last); -- Maximum length of error message. The addition of 2 * Column_Number'Last -- ensures that two insertion tokens of maximum length can be accommodated. -- The value of 1024 is an arbitrary value that should be more than long -- enough to accommodate any reasonable message (and for that matter, some -- pretty unreasonable messages!) Msg_Buffer : String (1 .. Max_Msg_Length); -- Buffer used to prepare error messages Msglen : Integer := 0; -- Number of characters currently stored in the message buffer Suppress_Message : Boolean; -- A flag used to suppress certain obviously redundant messages (i.e. -- those referring to a node whose type is Any_Type). This suppression -- is effective only if All_Errors_Mode is off. Suppress_Instance_Location : Boolean := False; -- Normally, if a # location in a message references a location within -- a generic template, then a note is added giving the location of the -- instantiation. If this variable is set True, then this note is not -- output. This is used for internal processing for the case of an -- illegal instantiation. See Error_Msg routine for further details. ---------------------------- -- Message ID Definitions -- ---------------------------- type Error_Msg_Id is new Int; -- A type used to represent specific error messages. Used by the clients -- of this package only in the context of the Get_Error_Id and -- Change_Error_Text subprograms. No_Error_Msg : constant Error_Msg_Id := 0; -- A constant which is different from any value returned by Get_Error_Id. -- Typically used by a client to indicate absence of a saved Id value. Cur_Msg : Error_Msg_Id := No_Error_Msg; -- Id of most recently posted error message function Get_Msg_Id return Error_Msg_Id; -- Returns the Id of the message most recently posted using one of the -- Error_Msg routines. function Get_Location (E : Error_Msg_Id) return Source_Ptr; -- Returns the flag location of the error message with the given id E ----------------------------------- -- Error Message Data Structures -- ----------------------------------- -- The error messages are stored as a linked list of error message objects -- sorted into ascending order by the source location (Sloc). Each object -- records the text of the message and its source location. -- The following record type and table are used to represent error -- messages, with one entry in the table being allocated for each message. type Error_Msg_Object is record Text : String_Ptr; -- Text of error message, fully expanded with all insertions Next : Error_Msg_Id; -- Pointer to next message in error chain. A value of No_Error_Msg -- indicates the end of the chain. Prev : Error_Msg_Id; -- Pointer to previous message in error chain. Only set during the -- Finalize procedure. A value of No_Error_Msg indicates the first -- message in the chain. Sfile : Source_File_Index; -- Source table index of source file. In the case of an error that -- refers to a template, always references the original template -- not an instantiation copy. Sptr : Source_Ptr; -- Flag pointer. In the case of an error that refers to a template, -- always references the original template, not an instantiation copy. -- This value is the actual place in the source that the error message -- will be posted. Note that an error placed on an instantiation will -- have Sptr pointing to the instantiation point. Optr : Source_Ptr; -- Flag location used in the call to post the error. This is normally -- the same as Sptr, except when an error is posted on a particular -- instantiation of a generic. In such a case, Sptr will point to -- the original source location of the instantiation itself, but -- Optr will point to the template location (more accurately to the -- template copy in the instantiation copy corresponding to the -- instantiation referenced by Sptr). Line : Physical_Line_Number; -- Line number for error message Col : Column_Number; -- Column number for error message Warn : Boolean; -- True if warning message (i.e. insertion character ? appeared) Style : Boolean; -- True if style message (starts with "(style)") Serious : Boolean; -- True if serious error message (not a warning and no | character) Uncond : Boolean; -- True if unconditional message (i.e. insertion character ! appeared) Msg_Cont : Boolean; -- This is used for logical messages that are composed of multiple -- individual messages. For messages that are not part of such a -- group, or that are the first message in such a group. Msg_Cont -- is set to False. For subsequent messages in a group, Msg_Cont -- is set to True. This is used to make sure that such a group of -- messages is either suppressed or retained as a group (e.g. in -- the circuit that deletes identical messages). Deleted : Boolean; -- If this flag is set, the message is not printed. This is used -- in the circuit for deleting duplicate/redundant error messages. end record; package Errors is new Table.Table ( Table_Component_Type => Error_Msg_Object, Table_Index_Type => Error_Msg_Id, Table_Low_Bound => 1, Table_Initial => 200, Table_Increment => 200, Table_Name => "Error"); First_Error_Msg : Error_Msg_Id; -- The list of error messages, i.e. the first entry on the list of error -- messages. This is not the same as the physically first entry in the -- error message table, since messages are not always inserted in sequence. Last_Error_Msg : Error_Msg_Id; -- The last entry on the list of error messages. Note that this is not -- the same as the physically last entry in the error message table, since -- messages are not always inserted in sequence. -------------------------- -- Warning Mode Control -- -------------------------- -- Pragma Warnings allows warnings to be turned off for a specified -- region of code, and the following tables are the data structure used -- to keep track of these regions. -- The first table is used for the basic command line control, and for -- the forms of Warning with a single ON or OFF parameter -- It contains pairs of source locations, the first being the start -- location for a warnings off region, and the second being the end -- location. When a pragma Warnings (Off) is encountered, a new entry -- is established extending from the location of the pragma to the -- end of the current source file. A subsequent pragma Warnings (On) -- adjusts the end point of this entry appropriately. -- If all warnings are suppressed by command switch, then there is a -- dummy entry (put there by Errout.Initialize) at the start of the -- table which covers all possible Source_Ptr values. Note that the -- source pointer values in this table always reference the original -- template, not an instantiation copy, in the generic case. type Warnings_Entry is record Start : Source_Ptr; Stop : Source_Ptr; end record; package Warnings is new Table.Table ( Table_Component_Type => Warnings_Entry, Table_Index_Type => Natural, Table_Low_Bound => 1, Table_Initial => 100, Table_Increment => 200, Table_Name => "Warnings"); -- The second table is used for the specific forms of the pragma, where -- the first argument is ON or OFF, and the second parameter is a string -- which is the entire message to suppress, or a prefix of it. type Specific_Warning_Entry is record Start : Source_Ptr; Stop : Source_Ptr; -- Starting and ending source pointers for the range. These are always -- from the same source file. Msg : String_Ptr; -- Message from pragma Warnings (Off, string) Open : Boolean; -- Set to True if OFF has been encountered with no matching ON Used : Boolean; -- Set to True if entry has been used to suppress a warning Config : Boolean; -- True if pragma is configuration pragma (in which case no matching -- Off pragma is required, and it is not required that a specific -- warning be suppressed). end record; package Specific_Warnings is new Table.Table ( Table_Component_Type => Specific_Warning_Entry, Table_Index_Type => Natural, Table_Low_Bound => 1, Table_Initial => 100, Table_Increment => 200, Table_Name => "Specific_Warnings"); -- Note on handling configuration case versus specific case. A complication -- arises from this example: -- pragma Warnings (Off, "not referenced*"); -- procedure Mumble (X : Integer) is -- pragma Warnings (On, "not referenced*"); -- begin -- null; -- end Mumble; -- The trouble is that the first pragma is technically a configuration -- pragma, and yet it is clearly being used in the context of thinking -- of it as a specific case. To deal with this, what we do is that the -- On entry can match a configuration pragma from the same file, and if -- we find such an On entry, we cancel the indication of it being the -- configuration case. This seems to handle all cases we run into ok. ----------------- -- Subprograms -- ----------------- procedure Add_Class; -- Add 'Class to buffer for class wide type case (Class_Flag set) function Buffer_Ends_With (S : String) return Boolean; -- Tests if message buffer ends with given string preceded by a space procedure Buffer_Remove (S : String); -- Removes given string from end of buffer if it is present -- at end of buffer, and preceded by a space. function Compilation_Errors return Boolean; -- Returns true if errors have been detected, or warnings in -gnatwe -- (treat warnings as errors) mode. procedure dmsg (Id : Error_Msg_Id); -- Debugging routine to dump an error message procedure Debug_Output (N : Node_Id); -- Called from Error_Msg_N and Error_Msg_NE to generate line of debug -- output giving node number (of node N) if the debug X switch is set. procedure Check_Duplicate_Message (M1, M2 : Error_Msg_Id); -- This function is passed the Id values of two error messages. If -- either M1 or M2 is a continuation message, or is already deleted, -- the call is ignored. Otherwise a check is made to see if M1 and M2 -- are duplicated or redundant. If so, the message to be deleted and -- all its continuations are marked with the Deleted flag set to True. procedure Output_Error_Msgs (E : in out Error_Msg_Id); -- Output source line, error flag, and text of stored error message and -- all subsequent messages for the same line and unit. On return E is -- set to be one higher than the last message output. procedure Output_Line_Number (L : Logical_Line_Number); -- Output a line number as six digits (with leading zeroes suppressed), -- followed by a period and a blank (note that this is 8 characters which -- means that tabs in the source line will not get messed up). Line numbers -- that match or are less than the last Source_Reference pragma are listed -- as all blanks, avoiding output of junk line numbers. procedure Output_Msg_Text (E : Error_Msg_Id); -- Outputs characters of text in the text of the error message E. Note that -- no end of line is output, the caller is responsible for adding the end -- of line. If Error_Msg_Line_Length is non-zero, this is the routine that -- splits the line generating multiple lines of output, and in this case -- the last line has no terminating end of line character. procedure Purge_Messages (From : Source_Ptr; To : Source_Ptr); -- All error messages whose location is in the range From .. To (not -- including the end points) will be deleted from the error listing. function Same_Error (M1, M2 : Error_Msg_Id) return Boolean; -- See if two messages have the same text. Returns true if the text -- of the two messages is identical, or if one of them is the same -- as the other with an appended "instance at xxx" tag. procedure Set_Msg_Blank; -- Sets a single blank in the message if the preceding character is a -- non-blank character other than a left parenthesis or minus. Has no -- effect if manual quote mode is turned on. procedure Set_Msg_Blank_Conditional; -- Sets a single blank in the message if the preceding character is a -- non-blank character other than a left parenthesis or quote. Has no -- effect if manual quote mode is turned on. procedure Set_Msg_Char (C : Character); -- Add a single character to the current message. This routine does not -- check for special insertion characters (they are just treated as text -- characters if they occur). procedure Set_Msg_Insertion_File_Name; -- Handle file name insertion (left brace insertion character) procedure Set_Msg_Insertion_Line_Number (Loc, Flag : Source_Ptr); -- Handle line number insertion (# insertion character). Loc is the -- location to be referenced, and Flag is the location at which the -- flag is posted (used to determine whether to add "in file xxx") procedure Set_Msg_Insertion_Name_Literal; procedure Set_Msg_Insertion_Name; -- Handle name insertion (% insertion character) procedure Set_Msg_Insertion_Reserved_Name; -- Handle insertion of reserved word name (* insertion character) procedure Set_Msg_Insertion_Reserved_Word (Text : String; J : in out Integer); -- Handle reserved word insertion (upper case letters). The Text argument -- is the current error message input text, and J is an index which on -- entry points to the first character of the reserved word, and on exit -- points past the last character of the reserved word. procedure Set_Msg_Insertion_Run_Time_Name; -- If package System contains a definition for Run_Time_Name (see package -- Targparm for details), then this procedure will insert a message of -- the form (name) into the current error message, with name set in mixed -- case (upper case after any spaces). If no run time name is defined, -- then this routine has no effect). procedure Set_Msg_Insertion_Uint; -- Handle Uint insertion (^ insertion character) procedure Set_Msg_Int (Line : Int); -- Set the decimal representation of the argument in the error message -- buffer with no leading zeroes output. procedure Set_Msg_Name_Buffer; -- Output name from Name_Buffer, with surrounding quotes unless manual -- quotation mode is in effect. procedure Set_Msg_Quote; -- Set quote if in normal quote mode, nothing if in manual quote mode procedure Set_Msg_Str (Text : String); -- Add a sequence of characters to the current message. This routine does -- not check for special insertion characters (they are just treated as -- text characters if they occur). procedure Set_Next_Non_Deleted_Msg (E : in out Error_Msg_Id); -- Given a message id, move to next message id, but skip any deleted -- messages, so that this results in E on output being the first non- -- deleted message following the input value of E, or No_Error_Msg if -- the input value of E was either already No_Error_Msg, or was the -- last non-deleted message. procedure Set_Specific_Warning_Off (Loc : Source_Ptr; Msg : String; Config : Boolean); -- This is called in response to the two argument form of pragma Warnings -- where the first argument is OFF, and the second argument is a string -- which identifies a specific warning to be suppressed. The first argument -- is the start of the suppression range, and the second argument is the -- string from the pragma. Loc is the location of the pragma (which is the -- start of the range to suppress). Config is True for the configuration -- pragma case (where there is no requirement for a matching OFF pragma). procedure Set_Specific_Warning_On (Loc : Source_Ptr; Msg : String; Err : out Boolean); -- This is called in response to the two argument form of pragma Warnings -- where the first argument is ON, and the second argument is a string -- which identifies a specific warning to be suppressed. The first argument -- is the end of the suppression range, and the second argument is the -- string from the pragma. Err is set to True on return to report the error -- of no matching Warnings Off pragma preceding this one. procedure Set_Warnings_Mode_Off (Loc : Source_Ptr); -- Called in response to a pragma Warnings (Off) to record the source -- location from which warnings are to be turned off. procedure Set_Warnings_Mode_On (Loc : Source_Ptr); -- Called in response to a pragma Warnings (On) to record the source -- location from which warnings are to be turned back on. procedure Test_Style_Warning_Serious_Msg (Msg : String); -- Sets Is_Warning_Msg true if Msg is a warning message (contains a -- question mark character), and False otherwise. Is_Style_Msg is set true -- if Msg is a style message (starts with "(style)". Sets Is_Serious_Error -- True unless the message is a warning or style/info message or contains -- the character | indicating a non-serious error message. Note that the -- call has no effect for continuation messages (those whose first -- character is '\'). function Warnings_Suppressed (Loc : Source_Ptr) return Boolean; -- Determines if given location is covered by a warnings off suppression -- range in the warnings table (or is suppressed by compilation option, -- which generates a warning range for the whole source file). This routine -- only deals with the general ON/OFF case, not specific warnings. True -- is also returned if warnings are globally suppressed. function Warning_Specifically_Suppressed (Loc : Source_Ptr; Msg : String_Ptr) return Boolean; -- Determines if given message to be posted at given location is suppressed -- by specific ON/OFF Warnings pragmas specifying this particular message. type Error_Msg_Proc is access procedure (Msg : String; Flag_Location : Source_Ptr); procedure Validate_Specific_Warnings (Eproc : Error_Msg_Proc); -- Checks that specific warnings are consistent (for non-configuration -- case, properly closed, and used). The argument is a pointer to the -- Error_Msg procedure to be called if any inconsistencies are detected. end Erroutc;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Asis; with Engines.Contexts; with League.Strings; package Properties.Expressions.Short_Circuit is function Code (Engine : access Engines.Contexts.Context; Element : Asis.Expression; Name : Engines.Text_Property) return League.Strings.Universal_String; end Properties.Expressions.Short_Circuit;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- I M P U N I T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2000-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains data and functions used to determine if a given -- unit is an internal unit intended only for use by the implementation -- and which should not be directly WITH'ed by user code. It also checks -- for Ada 05 units that should only be WITH'ed in Ada 05 mode. with Types; use Types; package Impunit is type Kind_Of_Unit is (Implementation_Unit, -- Unit from predefined library intended to be used only by the -- compiler generated code, or from the implementation of the run time. -- Use of such a unit generates a warning unless the client is compiled -- with the -gnatg switch. If we are being super strict, this should be -- an error for the case of Ada units, but that seems over strenuous. Not_Predefined_Unit, -- This is not a predefined unit, so no checks are needed Ada_95_Unit, -- This unit is defined in the Ada 95 RM, and can be freely with'ed -- in both Ada 95 mode and Ada 05 mode. Note that in Ada 83 mode, no -- child units are allowed, so you can't even name such a unit. Ada_05_Unit); -- This unit is defined in the Ada 05 RM. Withing this unit from a -- Ada 95 mode program will generate a warning (again, strictly speaking -- this should be an error, but that seems over-strenuous). function Get_Kind_Of_Unit (U : Unit_Number_Type) return Kind_Of_Unit; -- Given the unit number of a unit, this function determines the type -- of the unit, as defined above. end Impunit;
-- This spec has been automatically generated from STM32L0x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.UInt6; -- control register type CR_Register is record -- SYNC event OK interrupt enable SYNCOKIE : Boolean := False; -- SYNC warning interrupt enable SYNCWARNIE : Boolean := False; -- Synchronization or trimming error interrupt enable ERRIE : Boolean := False; -- Expected SYNC interrupt enable ESYNCIE : Boolean := False; -- unspecified Reserved_4_4 : HAL.Bit := 16#0#; -- Frequency error counter enable CEN : Boolean := False; -- Automatic trimming enable AUTOTRIMEN : Boolean := False; -- Generate software SYNC event SWSYNC : Boolean := False; -- HSI48 oscillator smooth trimming TRIM : CR_TRIM_Field := 16#20#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record SYNCOKIE at 0 range 0 .. 0; SYNCWARNIE at 0 range 1 .. 1; ERRIE at 0 range 2 .. 2; ESYNCIE at 0 range 3 .. 3; Reserved_4_4 at 0 range 4 .. 4; CEN at 0 range 5 .. 5; AUTOTRIMEN at 0 range 6 .. 6; SWSYNC at 0 range 7 .. 7; TRIM at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype CFGR_RELOAD_Field is HAL.UInt16; subtype CFGR_FELIM_Field is HAL.UInt8; subtype CFGR_SYNCDIV_Field is HAL.UInt3; subtype CFGR_SYNCSRC_Field is HAL.UInt2; -- configuration register type CFGR_Register is record -- Counter reload value RELOAD : CFGR_RELOAD_Field := 16#BB7F#; -- Frequency error limit FELIM : CFGR_FELIM_Field := 16#22#; -- SYNC divider SYNCDIV : CFGR_SYNCDIV_Field := 16#0#; -- unspecified Reserved_27_27 : HAL.Bit := 16#0#; -- SYNC signal source selection SYNCSRC : CFGR_SYNCSRC_Field := 16#2#; -- unspecified Reserved_30_30 : HAL.Bit := 16#0#; -- SYNC polarity selection SYNCPOL : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR_Register use record RELOAD at 0 range 0 .. 15; FELIM at 0 range 16 .. 23; SYNCDIV at 0 range 24 .. 26; Reserved_27_27 at 0 range 27 .. 27; SYNCSRC at 0 range 28 .. 29; Reserved_30_30 at 0 range 30 .. 30; SYNCPOL at 0 range 31 .. 31; end record; subtype ISR_FECAP_Field is HAL.UInt16; -- interrupt and status register type ISR_Register is record -- Read-only. SYNC event OK flag SYNCOKF : Boolean; -- Read-only. SYNC warning flag SYNCWARNF : Boolean; -- Read-only. Error flag ERRF : Boolean; -- Read-only. Expected SYNC flag ESYNCF : Boolean; -- unspecified Reserved_4_7 : HAL.UInt4; -- Read-only. SYNC error SYNCERR : Boolean; -- Read-only. SYNC missed SYNCMISS : Boolean; -- Read-only. Trimming overflow or underflow TRIMOVF : Boolean; -- unspecified Reserved_11_14 : HAL.UInt4; -- Read-only. Frequency error direction FEDIR : Boolean; -- Read-only. Frequency error capture FECAP : ISR_FECAP_Field; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record SYNCOKF at 0 range 0 .. 0; SYNCWARNF at 0 range 1 .. 1; ERRF at 0 range 2 .. 2; ESYNCF at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; SYNCERR at 0 range 8 .. 8; SYNCMISS at 0 range 9 .. 9; TRIMOVF at 0 range 10 .. 10; Reserved_11_14 at 0 range 11 .. 14; FEDIR at 0 range 15 .. 15; FECAP at 0 range 16 .. 31; end record; -- interrupt flag clear register type ICR_Register is record -- SYNC event OK clear flag SYNCOKC : Boolean := False; -- SYNC warning clear flag SYNCWARNC : Boolean := False; -- Error clear flag ERRC : Boolean := False; -- Expected SYNC clear flag ESYNCC : Boolean := False; -- unspecified Reserved_4_31 : HAL.UInt28 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ICR_Register use record SYNCOKC at 0 range 0 .. 0; SYNCWARNC at 0 range 1 .. 1; ERRC at 0 range 2 .. 2; ESYNCC at 0 range 3 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Clock recovery system type CRS_Peripheral is record -- control register CR : aliased CR_Register; -- configuration register CFGR : aliased CFGR_Register; -- interrupt and status register ISR : aliased ISR_Register; -- interrupt flag clear register ICR : aliased ICR_Register; end record with Volatile; for CRS_Peripheral use record CR at 16#0# range 0 .. 31; CFGR at 16#4# range 0 .. 31; ISR at 16#8# range 0 .. 31; ICR at 16#C# range 0 .. 31; end record; -- Clock recovery system CRS_Periph : aliased CRS_Peripheral with Import, Address => System'To_Address (16#40006C00#); end STM32_SVD.CRS;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T C M D -- -- -- -- S p e c -- -- -- -- Copyright (C) 1996 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This program provides a simple command interface for using GNAT and its -- associated utilities. The format of switches accepted is intended to -- be more familiar in style for VMS and DOS users than the standard Unix -- style switches that are accepted directly. -- The program is typically called GNAT when it is installed and -- the two possibile styles of use are: -- To call gcc: -- GNAT filename switches -- To call the tool gnatxxx -- GNAT xxx filename switches -- where xxx is the command name (e.g. MAKE for gnatmake). This command name -- can be abbreviated by giving a prefix (e.g. GNAT MAK) as long as it -- remains unique. -- In both cases, filename is in the format appropriate to the operating -- system in use. The individual commands give more details. In some cases -- a unit name may be given in place of a file name. -- The switches start with a slash. Switch names can also be abbreviated -- where no ambiguity arises. The switches associated with each command -- are specified by the tables that can be found in the body. -- Although by convention we use upper case for command names and switches -- in the documentation, all command and switch names are case insensitive -- and may be given in upper case or lower case or a mixture. procedure GNATCmd;
with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.USART; with STM32GD.USART.Peripheral; with STM32GD.Clock; with STM32GD.Clock.Tree; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with STM32GD.RTC; with STM32GD.GPIO; with Drivers.Text_IO; package STM32GD.Board is package GPIO renames STM32GD.GPIO; package Clocks is new STM32GD.Clock.Tree (LSE_Enabled => True); package BUTTON is new GPIO.Pin (Pin => GPIO.Pin_7, Port => GPIO.Port_A); package SWO is new GPIO.Pin (Pin => GPIO.Pin_3, Port => GPIO.Port_B, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_PushPull); package LED is new GPIO.Pin (Pin => GPIO.Pin_13, Port => GPIO.Port_C, Mode => GPIO.Speed_2MHz, Out_Conf => GPIO.Out_PushPull); package LED2 is new GPIO.Pin (Pin => GPIO.Pin_9, Port => GPIO.Port_B, Mode => GPIO.Speed_2MHz, Out_Conf => GPIO.Out_PushPull); package SCLK is new GPIO.Pin (Pin => GPIO.Pin_5, Port => GPIO.Port_A, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_PushPull); package MISO is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_A, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_PushPull); package MOSI is new GPIO.Pin (Pin => GPIO.Pin_7, Port => GPIO.Port_A, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_PushPull); package CSN is new GPIO.Pin (Pin => GPIO.Pin_4, Port => GPIO.Port_A, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Out_PushPull); package TX is new GPIO.Pin (Pin => GPIO.Pin_9, Port => GPIO.Port_A, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_PushPull); package RX is new GPIO.Pin (Pin => GPIO.Pin_10, Port => GPIO.Port_A); package SCL is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_B, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_OpenDrain); package SDA is new GPIO.Pin (Pin => GPIO.Pin_7, Port => GPIO.Port_B, Mode => GPIO.Speed_50MHz, Out_Conf => GPIO.Alt_OpenDrain); package SPI is new STM32GD.SPI.Peripheral (SPI => STM32GD.SPI.SPI_1); package USART is new STM32GD.USART.Peripheral (USART => STM32GD.USART.USART_1, Speed => 115200, Clock => 8_000_000); package RTC is new STM32GD.RTC (Clock_Tree => STM32GD.Board.Clocks, Clock => STM32GD.Clock.LSE); package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART); procedure Init; procedure USB_Re_Enumerate; end STM32GD.Board;
with Histogram; with PixelArray; with ImageRegions; package HistogramDescriptor is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); BinCount: Positive := 20; type Divergence is (JensenShannon, KullbackLeibler); type Data is tagged record horizontal: Histogram.Data(BinCount); vertical: Histogram.Data(BinCount); end record; function create(image: PixelArray.ImagePlane; region: ImageRegions.Rect) return Data with Pre => region.width /= 0 and region.height /= 0; function computeDivergence(h0, h1: Histogram.Data; method: Divergence) return Float with Pre => (h0.Size = h1.Size); end HistogramDescriptor;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ package League.JSON.Streams.Boolean_Stream_Operations is pragma Preelaborate; procedure Read (Stream : in out League.JSON.Streams.JSON_Stream'Class; Item : out Boolean); procedure Write (Stream : in out League.JSON.Streams.JSON_Stream'Class; Item : Boolean); end League.JSON.Streams.Boolean_Stream_Operations;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . F O R M A L _ O R D E R E D _ M A P S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2019, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- ------------------------------------------------------------------------------ -- This spec is derived from package Ada.Containers.Bounded_Ordered_Maps in -- the Ada 2012 RM. The modifications are meant to facilitate formal proofs by -- making it easier to express properties, and by making the specification of -- this unit compatible with SPARK 2014. Note that the API of this unit may be -- subject to incompatible changes as SPARK 2014 evolves. -- The modifications are: -- A parameter for the container is added to every function reading the -- content of a container: Key, Element, Next, Query_Element, Previous, -- Has_Element, Iterate, Reverse_Iterate. This change is motivated by the -- need to have cursors which are valid on different containers (typically a -- container C and its previous version C'Old) for expressing properties, -- which is not possible if cursors encapsulate an access to the underlying -- container. The operators "<" and ">" that could not be modified that way -- have been removed. -- Iteration over maps is done using the Iterable aspect, which is SPARK -- compatible. "For of" iteration ranges over keys instead of elements. with Ada.Containers.Functional_Vectors; with Ada.Containers.Functional_Maps; private with Ada.Containers.Red_Black_Trees; generic type Key_Type is private; type Element_Type is private; with function "<" (Left, Right : Key_Type) return Boolean is <>; package Ada.Containers.Formal_Ordered_Maps with SPARK_Mode is pragma Annotate (CodePeer, Skip_Analysis); function Equivalent_Keys (Left, Right : Key_Type) return Boolean with Global => null, Post => Equivalent_Keys'Result = (not (Left < Right) and not (Right < Left)); pragma Annotate (GNATprove, Inline_For_Proof, Equivalent_Keys); type Map (Capacity : Count_Type) is private with Iterable => (First => First, Next => Next, Has_Element => Has_Element, Element => Key), Default_Initial_Condition => Is_Empty (Map); pragma Preelaborable_Initialization (Map); type Cursor is record Node : Count_Type; end record; No_Element : constant Cursor := (Node => 0); Empty_Map : constant Map; function Length (Container : Map) return Count_Type with Global => null, Post => Length'Result <= Container.Capacity; pragma Unevaluated_Use_Of_Old (Allow); package Formal_Model with Ghost is subtype Positive_Count_Type is Count_Type range 1 .. Count_Type'Last; package M is new Ada.Containers.Functional_Maps (Element_Type => Element_Type, Key_Type => Key_Type, Equivalent_Keys => Equivalent_Keys); function "=" (Left : M.Map; Right : M.Map) return Boolean renames M."="; function "<=" (Left : M.Map; Right : M.Map) return Boolean renames M."<="; package K is new Ada.Containers.Functional_Vectors (Element_Type => Key_Type, Index_Type => Positive_Count_Type); function "=" (Left : K.Sequence; Right : K.Sequence) return Boolean renames K."="; function "<" (Left : K.Sequence; Right : K.Sequence) return Boolean renames K."<"; function "<=" (Left : K.Sequence; Right : K.Sequence) return Boolean renames K."<="; function K_Bigger_Than_Range (Container : K.Sequence; Fst : Positive_Count_Type; Lst : Count_Type; Key : Key_Type) return Boolean with Global => null, Pre => Lst <= K.Length (Container), Post => K_Bigger_Than_Range'Result = (for all I in Fst .. Lst => K.Get (Container, I) < Key); pragma Annotate (GNATprove, Inline_For_Proof, K_Bigger_Than_Range); function K_Smaller_Than_Range (Container : K.Sequence; Fst : Positive_Count_Type; Lst : Count_Type; Key : Key_Type) return Boolean with Global => null, Pre => Lst <= K.Length (Container), Post => K_Smaller_Than_Range'Result = (for all I in Fst .. Lst => Key < K.Get (Container, I)); pragma Annotate (GNATprove, Inline_For_Proof, K_Smaller_Than_Range); function K_Is_Find (Container : K.Sequence; Key : Key_Type; Position : Count_Type) return Boolean with Global => null, Pre => Position - 1 <= K.Length (Container), Post => K_Is_Find'Result = ((if Position > 0 then K_Bigger_Than_Range (Container, 1, Position - 1, Key)) and (if Position < K.Length (Container) then K_Smaller_Than_Range (Container, Position + 1, K.Length (Container), Key))); pragma Annotate (GNATprove, Inline_For_Proof, K_Is_Find); function Find (Container : K.Sequence; Key : Key_Type) return Count_Type -- Search for Key in Container with Global => null, Post => (if Find'Result > 0 then Find'Result <= K.Length (Container) and Equivalent_Keys (Key, K.Get (Container, Find'Result))); package P is new Ada.Containers.Functional_Maps (Key_Type => Cursor, Element_Type => Positive_Count_Type, Equivalent_Keys => "=", Enable_Handling_Of_Equivalence => False); function "=" (Left : P.Map; Right : P.Map) return Boolean renames P."="; function "<=" (Left : P.Map; Right : P.Map) return Boolean renames P."<="; function P_Positions_Shifted (Small : P.Map; Big : P.Map; Cut : Positive_Count_Type; Count : Count_Type := 1) return Boolean with Global => null, Post => P_Positions_Shifted'Result = -- Big contains all cursors of Small (P.Keys_Included (Small, Big) -- Cursors located before Cut are not moved, cursors located -- after are shifted by Count. and (for all I of Small => (if P.Get (Small, I) < Cut then P.Get (Big, I) = P.Get (Small, I) else P.Get (Big, I) - Count = P.Get (Small, I))) -- New cursors of Big (if any) are between Cut and Cut - 1 + -- Count. and (for all I of Big => P.Has_Key (Small, I) or P.Get (Big, I) - Count in Cut - Count .. Cut - 1)); function Model (Container : Map) return M.Map with -- The high-level model of a map is a map from keys to elements. Neither -- cursors nor order of elements are represented in this model. Keys are -- modeled up to equivalence. Ghost, Global => null; function Keys (Container : Map) return K.Sequence with -- The Keys sequence represents the underlying list structure of maps -- that is used for iteration. It stores the actual values of keys in -- the map. It does not model cursors nor elements. Ghost, Global => null, Post => K.Length (Keys'Result) = Length (Container) -- It only contains keys contained in Model and (for all Key of Keys'Result => M.Has_Key (Model (Container), Key)) -- It contains all the keys contained in Model and (for all Key of Model (Container) => (Find (Keys'Result, Key) > 0 and then Equivalent_Keys (K.Get (Keys'Result, Find (Keys'Result, Key)), Key))) -- It is sorted in increasing order and (for all I in 1 .. Length (Container) => Find (Keys'Result, K.Get (Keys'Result, I)) = I and K_Is_Find (Keys'Result, K.Get (Keys'Result, I), I)); pragma Annotate (GNATprove, Iterable_For_Proof, "Model", Keys); function Positions (Container : Map) return P.Map with -- The Positions map is used to model cursors. It only contains valid -- cursors and maps them to their position in the container. Ghost, Global => null, Post => not P.Has_Key (Positions'Result, No_Element) -- Positions of cursors are smaller than the container's length. and then (for all I of Positions'Result => P.Get (Positions'Result, I) in 1 .. Length (Container) -- No two cursors have the same position. Note that we do not -- state that there is a cursor in the map for each position, as -- it is rarely needed. and then (for all J of Positions'Result => (if P.Get (Positions'Result, I) = P.Get (Positions'Result, J) then I = J))); procedure Lift_Abstraction_Level (Container : Map) with -- Lift_Abstraction_Level is a ghost procedure that does nothing but -- assume that we can access the same elements by iterating over -- positions or cursors. -- This information is not generally useful except when switching from -- a low-level, cursor-aware view of a container, to a high-level, -- position-based view. Ghost, Global => null, Post => (for all Key of Keys (Container) => (for some I of Positions (Container) => K.Get (Keys (Container), P.Get (Positions (Container), I)) = Key)); function Contains (C : M.Map; K : Key_Type) return Boolean renames M.Has_Key; -- To improve readability of contracts, we rename the function used to -- search for a key in the model to Contains. function Element (C : M.Map; K : Key_Type) return Element_Type renames M.Get; -- To improve readability of contracts, we rename the function used to -- access an element in the model to Element. end Formal_Model; use Formal_Model; function "=" (Left, Right : Map) return Boolean with Global => null, Post => "="'Result = (Model (Left) = Model (Right)); function Is_Empty (Container : Map) return Boolean with Global => null, Post => Is_Empty'Result = (Length (Container) = 0); procedure Clear (Container : in out Map) with Global => null, Post => Length (Container) = 0 and M.Is_Empty (Model (Container)); procedure Assign (Target : in out Map; Source : Map) with Global => null, Pre => Target.Capacity >= Length (Source), Post => Model (Target) = Model (Source) and Keys (Target) = Keys (Source) and Length (Source) = Length (Target); function Copy (Source : Map; Capacity : Count_Type := 0) return Map with Global => null, Pre => Capacity = 0 or else Capacity >= Source.Capacity, Post => Model (Copy'Result) = Model (Source) and Keys (Copy'Result) = Keys (Source) and Positions (Copy'Result) = Positions (Source) and (if Capacity = 0 then Copy'Result.Capacity = Source.Capacity else Copy'Result.Capacity = Capacity); function Key (Container : Map; Position : Cursor) return Key_Type with Global => null, Pre => Has_Element (Container, Position), Post => Key'Result = K.Get (Keys (Container), P.Get (Positions (Container), Position)); pragma Annotate (GNATprove, Inline_For_Proof, Key); function Element (Container : Map; Position : Cursor) return Element_Type with Global => null, Pre => Has_Element (Container, Position), Post => Element'Result = Element (Model (Container), Key (Container, Position)); pragma Annotate (GNATprove, Inline_For_Proof, Element); procedure Replace_Element (Container : in out Map; Position : Cursor; New_Item : Element_Type) with Global => null, Pre => Has_Element (Container, Position), Post => -- Order of keys and cursors is preserved Keys (Container) = Keys (Container)'Old and Positions (Container) = Positions (Container)'Old -- New_Item is now associated with the key at position Position in -- Container. and Element (Container, Position) = New_Item -- Elements associated with other keys are preserved and M.Same_Keys (Model (Container), Model (Container)'Old) and M.Elements_Equal_Except (Model (Container), Model (Container)'Old, Key (Container, Position)); procedure Move (Target : in out Map; Source : in out Map) with Global => null, Pre => Target.Capacity >= Length (Source), Post => Model (Target) = Model (Source)'Old and Keys (Target) = Keys (Source)'Old and Length (Source)'Old = Length (Target) and Length (Source) = 0; procedure Insert (Container : in out Map; Key : Key_Type; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean) with Global => null, Pre => Length (Container) < Container.Capacity or Contains (Container, Key), Post => Contains (Container, Key) and Has_Element (Container, Position) and Equivalent_Keys (Formal_Ordered_Maps.Key (Container, Position), Key) and K_Is_Find (Keys (Container), Key, P.Get (Positions (Container), Position)), Contract_Cases => -- If Key is already in Container, it is not modified and Inserted is -- set to False. (Contains (Container, Key) => not Inserted and Model (Container) = Model (Container)'Old and Keys (Container) = Keys (Container)'Old and Positions (Container) = Positions (Container)'Old, -- Otherwise, Key is inserted in Container and Inserted is set to True others => Inserted and Length (Container) = Length (Container)'Old + 1 -- Key now maps to New_Item and Formal_Ordered_Maps.Key (Container, Position) = Key and Element (Model (Container), Key) = New_Item -- Other mappings are preserved and Model (Container)'Old <= Model (Container) and M.Keys_Included_Except (Model (Container), Model (Container)'Old, Key) -- The keys of Container located before Position are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => P.Get (Positions (Container), Position) - 1) -- Other keys are shifted by 1 and K.Range_Shifted (Left => Keys (Container)'Old, Right => Keys (Container), Fst => P.Get (Positions (Container), Position), Lst => Length (Container)'Old, Offset => 1) -- A new cursor has been inserted at position Position in -- Container. and P_Positions_Shifted (Positions (Container)'Old, Positions (Container), Cut => P.Get (Positions (Container), Position))); procedure Insert (Container : in out Map; Key : Key_Type; New_Item : Element_Type) with Global => null, Pre => Length (Container) < Container.Capacity and then (not Contains (Container, Key)), Post => Length (Container) = Length (Container)'Old + 1 and Contains (Container, Key) -- Key now maps to New_Item and K.Get (Keys (Container), Find (Keys (Container), Key)) = Key and Element (Model (Container), Key) = New_Item -- Other mappings are preserved and Model (Container)'Old <= Model (Container) and M.Keys_Included_Except (Model (Container), Model (Container)'Old, Key) -- The keys of Container located before Key are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => Find (Keys (Container), Key) - 1) -- Other keys are shifted by 1 and K.Range_Shifted (Left => Keys (Container)'Old, Right => Keys (Container), Fst => Find (Keys (Container), Key), Lst => Length (Container)'Old, Offset => 1) -- A new cursor has been inserted in Container and P_Positions_Shifted (Positions (Container)'Old, Positions (Container), Cut => Find (Keys (Container), Key)); procedure Include (Container : in out Map; Key : Key_Type; New_Item : Element_Type) with Global => null, Pre => Length (Container) < Container.Capacity or Contains (Container, Key), Post => Contains (Container, Key) and Element (Container, Key) = New_Item, Contract_Cases => -- If Key is already in Container, Key is mapped to New_Item (Contains (Container, Key) => -- Cursors are preserved Positions (Container) = Positions (Container)'Old -- The key equivalent to Key in Container is replaced by Key and K.Get (Keys (Container), Find (Keys (Container), Key)) = Key and K.Equal_Except (Keys (Container)'Old, Keys (Container), Find (Keys (Container), Key)) -- Elements associated with other keys are preserved and M.Same_Keys (Model (Container), Model (Container)'Old) and M.Elements_Equal_Except (Model (Container), Model (Container)'Old, Key), -- Otherwise, Key is inserted in Container others => Length (Container) = Length (Container)'Old + 1 -- Other mappings are preserved and Model (Container)'Old <= Model (Container) and M.Keys_Included_Except (Model (Container), Model (Container)'Old, Key) -- Key is inserted in Container and K.Get (Keys (Container), Find (Keys (Container), Key)) = Key -- The keys of Container located before Key are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => Find (Keys (Container), Key) - 1) -- Other keys are shifted by 1 and K.Range_Shifted (Left => Keys (Container)'Old, Right => Keys (Container), Fst => Find (Keys (Container), Key), Lst => Length (Container)'Old, Offset => 1) -- A new cursor has been inserted in Container and P_Positions_Shifted (Positions (Container)'Old, Positions (Container), Cut => Find (Keys (Container), Key))); procedure Replace (Container : in out Map; Key : Key_Type; New_Item : Element_Type) with Global => null, Pre => Contains (Container, Key), Post => -- Cursors are preserved Positions (Container) = Positions (Container)'Old -- The key equivalent to Key in Container is replaced by Key and K.Get (Keys (Container), Find (Keys (Container), Key)) = Key and K.Equal_Except (Keys (Container)'Old, Keys (Container), Find (Keys (Container), Key)) -- New_Item is now associated with the Key in Container and Element (Model (Container), Key) = New_Item -- Elements associated with other keys are preserved and M.Same_Keys (Model (Container), Model (Container)'Old) and M.Elements_Equal_Except (Model (Container), Model (Container)'Old, Key); procedure Exclude (Container : in out Map; Key : Key_Type) with Global => null, Post => not Contains (Container, Key), Contract_Cases => -- If Key is not in Container, nothing is changed (not Contains (Container, Key) => Model (Container) = Model (Container)'Old and Keys (Container) = Keys (Container)'Old and Positions (Container) = Positions (Container)'Old, -- Otherwise, Key is removed from Container others => Length (Container) = Length (Container)'Old - 1 -- Other mappings are preserved and Model (Container) <= Model (Container)'Old and M.Keys_Included_Except (Model (Container)'Old, Model (Container), Key) -- The keys of Container located before Key are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => Find (Keys (Container), Key)'Old - 1) -- The keys located after Key are shifted by 1 and K.Range_Shifted (Left => Keys (Container), Right => Keys (Container)'Old, Fst => Find (Keys (Container), Key)'Old, Lst => Length (Container), Offset => 1) -- A cursor has been removed from Container and P_Positions_Shifted (Positions (Container), Positions (Container)'Old, Cut => Find (Keys (Container), Key)'Old)); procedure Delete (Container : in out Map; Key : Key_Type) with Global => null, Pre => Contains (Container, Key), Post => Length (Container) = Length (Container)'Old - 1 -- Key is no longer in Container and not Contains (Container, Key) -- Other mappings are preserved and Model (Container) <= Model (Container)'Old and M.Keys_Included_Except (Model (Container)'Old, Model (Container), Key) -- The keys of Container located before Key are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => Find (Keys (Container), Key)'Old - 1) -- The keys located after Key are shifted by 1 and K.Range_Shifted (Left => Keys (Container), Right => Keys (Container)'Old, Fst => Find (Keys (Container), Key)'Old, Lst => Length (Container), Offset => 1) -- A cursor has been removed from Container and P_Positions_Shifted (Positions (Container), Positions (Container)'Old, Cut => Find (Keys (Container), Key)'Old); procedure Delete (Container : in out Map; Position : in out Cursor) with Global => null, Pre => Has_Element (Container, Position), Post => Position = No_Element and Length (Container) = Length (Container)'Old - 1 -- The key at position Position is no longer in Container and not Contains (Container, Key (Container, Position)'Old) and not P.Has_Key (Positions (Container), Position'Old) -- Other mappings are preserved and Model (Container) <= Model (Container)'Old and M.Keys_Included_Except (Model (Container)'Old, Model (Container), Key (Container, Position)'Old) -- The keys of Container located before Position are preserved. and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => P.Get (Positions (Container)'Old, Position'Old) - 1) -- The keys located after Position are shifted by 1 and K.Range_Shifted (Left => Keys (Container), Right => Keys (Container)'Old, Fst => P.Get (Positions (Container)'Old, Position'Old), Lst => Length (Container), Offset => 1) -- Position has been removed from Container and P_Positions_Shifted (Positions (Container), Positions (Container)'Old, Cut => P.Get (Positions (Container)'Old, Position'Old)); procedure Delete_First (Container : in out Map) with Global => null, Contract_Cases => (Length (Container) = 0 => Length (Container) = 0, others => Length (Container) = Length (Container)'Old - 1 -- The first key has been removed from Container and not Contains (Container, First_Key (Container)'Old) -- Other mappings are preserved and Model (Container) <= Model (Container)'Old and M.Keys_Included_Except (Model (Container)'Old, Model (Container), First_Key (Container)'Old) -- Other keys are shifted by 1 and K.Range_Shifted (Left => Keys (Container), Right => Keys (Container)'Old, Fst => 1, Lst => Length (Container), Offset => 1) -- First has been removed from Container and P_Positions_Shifted (Positions (Container), Positions (Container)'Old, Cut => 1)); procedure Delete_Last (Container : in out Map) with Global => null, Contract_Cases => (Length (Container) = 0 => Length (Container) = 0, others => Length (Container) = Length (Container)'Old - 1 -- The last key has been removed from Container and not Contains (Container, Last_Key (Container)'Old) -- Other mappings are preserved and Model (Container) <= Model (Container)'Old and M.Keys_Included_Except (Model (Container)'Old, Model (Container), Last_Key (Container)'Old) -- Others keys of Container are preserved and K.Range_Equal (Left => Keys (Container)'Old, Right => Keys (Container), Fst => 1, Lst => Length (Container)) -- Last cursor has been removed from Container and Positions (Container) <= Positions (Container)'Old); function First (Container : Map) return Cursor with Global => null, Contract_Cases => (Length (Container) = 0 => First'Result = No_Element, others => Has_Element (Container, First'Result) and P.Get (Positions (Container), First'Result) = 1); function First_Element (Container : Map) return Element_Type with Global => null, Pre => not Is_Empty (Container), Post => First_Element'Result = Element (Model (Container), First_Key (Container)); function First_Key (Container : Map) return Key_Type with Global => null, Pre => not Is_Empty (Container), Post => First_Key'Result = K.Get (Keys (Container), 1) and K_Smaller_Than_Range (Keys (Container), 2, Length (Container), First_Key'Result); function Last (Container : Map) return Cursor with Global => null, Contract_Cases => (Length (Container) = 0 => Last'Result = No_Element, others => Has_Element (Container, Last'Result) and P.Get (Positions (Container), Last'Result) = Length (Container)); function Last_Element (Container : Map) return Element_Type with Global => null, Pre => not Is_Empty (Container), Post => Last_Element'Result = Element (Model (Container), Last_Key (Container)); function Last_Key (Container : Map) return Key_Type with Global => null, Pre => not Is_Empty (Container), Post => Last_Key'Result = K.Get (Keys (Container), Length (Container)) and K_Bigger_Than_Range (Keys (Container), 1, Length (Container) - 1, Last_Key'Result); function Next (Container : Map; Position : Cursor) return Cursor with Global => null, Pre => Has_Element (Container, Position) or else Position = No_Element, Contract_Cases => (Position = No_Element or else P.Get (Positions (Container), Position) = Length (Container) => Next'Result = No_Element, others => Has_Element (Container, Next'Result) and then P.Get (Positions (Container), Next'Result) = P.Get (Positions (Container), Position) + 1); procedure Next (Container : Map; Position : in out Cursor) with Global => null, Pre => Has_Element (Container, Position) or else Position = No_Element, Contract_Cases => (Position = No_Element or else P.Get (Positions (Container), Position) = Length (Container) => Position = No_Element, others => Has_Element (Container, Position) and then P.Get (Positions (Container), Position) = P.Get (Positions (Container), Position'Old) + 1); function Previous (Container : Map; Position : Cursor) return Cursor with Global => null, Pre => Has_Element (Container, Position) or else Position = No_Element, Contract_Cases => (Position = No_Element or else P.Get (Positions (Container), Position) = 1 => Previous'Result = No_Element, others => Has_Element (Container, Previous'Result) and then P.Get (Positions (Container), Previous'Result) = P.Get (Positions (Container), Position) - 1); procedure Previous (Container : Map; Position : in out Cursor) with Global => null, Pre => Has_Element (Container, Position) or else Position = No_Element, Contract_Cases => (Position = No_Element or else P.Get (Positions (Container), Position) = 1 => Position = No_Element, others => Has_Element (Container, Position) and then P.Get (Positions (Container), Position) = P.Get (Positions (Container), Position'Old) - 1); function Find (Container : Map; Key : Key_Type) return Cursor with Global => null, Contract_Cases => -- If Key is not contained in Container, Find returns No_Element (not Contains (Model (Container), Key) => not P.Has_Key (Positions (Container), Find'Result) and Find'Result = No_Element, -- Otherwise, Find returns a valid cursor in Container others => P.Has_Key (Positions (Container), Find'Result) and P.Get (Positions (Container), Find'Result) = Find (Keys (Container), Key) -- The key designated by the result of Find is Key and Equivalent_Keys (Formal_Ordered_Maps.Key (Container, Find'Result), Key)); function Element (Container : Map; Key : Key_Type) return Element_Type with Global => null, Pre => Contains (Container, Key), Post => Element'Result = Element (Model (Container), Key); pragma Annotate (GNATprove, Inline_For_Proof, Element); function Floor (Container : Map; Key : Key_Type) return Cursor with Global => null, Contract_Cases => (Length (Container) = 0 or else Key < First_Key (Container) => Floor'Result = No_Element, others => Has_Element (Container, Floor'Result) and not (Key < K.Get (Keys (Container), P.Get (Positions (Container), Floor'Result))) and K_Is_Find (Keys (Container), Key, P.Get (Positions (Container), Floor'Result))); function Ceiling (Container : Map; Key : Key_Type) return Cursor with Global => null, Contract_Cases => (Length (Container) = 0 or else Last_Key (Container) < Key => Ceiling'Result = No_Element, others => Has_Element (Container, Ceiling'Result) and not (K.Get (Keys (Container), P.Get (Positions (Container), Ceiling'Result)) < Key) and K_Is_Find (Keys (Container), Key, P.Get (Positions (Container), Ceiling'Result))); function Contains (Container : Map; Key : Key_Type) return Boolean with Global => null, Post => Contains'Result = Contains (Model (Container), Key); pragma Annotate (GNATprove, Inline_For_Proof, Contains); function Has_Element (Container : Map; Position : Cursor) return Boolean with Global => null, Post => Has_Element'Result = P.Has_Key (Positions (Container), Position); pragma Annotate (GNATprove, Inline_For_Proof, Has_Element); private pragma SPARK_Mode (Off); pragma Inline (Next); pragma Inline (Previous); subtype Node_Access is Count_Type; use Red_Black_Trees; type Node_Type is record Has_Element : Boolean := False; Parent : Node_Access := 0; Left : Node_Access := 0; Right : Node_Access := 0; Color : Red_Black_Trees.Color_Type := Red; Key : Key_Type; Element : Element_Type; end record; package Tree_Types is new Ada.Containers.Red_Black_Trees.Generic_Bounded_Tree_Types (Node_Type); type Map (Capacity : Count_Type) is new Tree_Types.Tree_Type (Capacity) with null record; Empty_Map : constant Map := (Capacity => 0, others => <>); end Ada.Containers.Formal_Ordered_Maps;
with physics.Object; package body GEL.ball_Joint is ---------- --- Forge -- procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; Pivot_in_A, Pivot_in_B : in Vector_3) is type Joint_cast is access all gel.Joint.Item; sprite_A_Solid, sprite_B_Solid : std_physics.Object.view; begin if Sprite_A /= null then sprite_A_Solid := std_physics.Object.view (Sprite_A.Solid); end if; if Sprite_B /= null then sprite_B_Solid := std_physics.Object.view (Sprite_B.Solid); end if; Joint.define (Joint_cast (Self), Sprite_A, Sprite_B); -- Define base class. Self.Physics := in_Space.new_ball_Joint (sprite_A_Solid, sprite_B_Solid, Pivot_in_A, Pivot_in_B); end define; overriding procedure destroy (Self : in out Item) is begin raise Error with "TODO"; end destroy; -------------- --- Attributes -- overriding function Frame_A (Self : in Item) return Matrix_4x4 is begin return Self.Physics.Frame_A; end Frame_A; overriding function Frame_B (Self : in Item) return Matrix_4x4 is begin return Self.Physics.Frame_B; end Frame_B; overriding procedure Frame_A_is (Self : in out Item; Now : in Matrix_4x4) is begin Self.Physics.Frame_A_is (Now); end Frame_A_is; overriding procedure Frame_B_is (Self : in out Item; Now : in Matrix_4x4) is begin Self.Physics.Frame_B_is (Now); end Frame_B_is; overriding function Physics (Self : in Item) return gel.joint.Physics_view is begin return Self.Physics; end Physics; overriding function Degrees_of_freedom (Self : in Item) return joint.Degree_of_freedom is pragma unreferenced (Self); begin return 6; end Degrees_of_freedom; ---------- --- Bounds - limits the range of motion for a Degree of freedom. -- overriding function is_Bound (Self : in Item; for_Degree : in joint.Degree_of_freedom) return Boolean is begin if for_Degree in Sway .. Surge then return False; end if; return Self.Physics.is_Limited (for_Degree); end is_Bound; overriding function low_Bound (Self : access Item; for_Degree : in joint.Degree_of_freedom) return Real is begin case for_Degree is when Sway .. Surge => raise Error with "Unhandled degree of freedom:" & for_Degree'Image; when Pitch .. Roll => return Self.Physics.lower_Limit (for_Degree); end case; end low_Bound; overriding procedure low_Bound_is (Self : access Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.lower_Limit_is (Now, for_Degree); end low_Bound_is; overriding function high_Bound (Self : access Item; for_Degree : in joint.Degree_of_freedom) return Real is begin case for_Degree is when Sway .. Surge => raise Error with "Unhandled degree of freedom:" & for_Degree'Image; when Pitch .. Roll => return Self.Physics.upper_Limit (for_Degree); end case; end high_Bound; overriding procedure high_Bound_is (Self : access Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.upper_Limit_is (Now, for_Degree); end high_Bound_is; ---------- --- Extent -- overriding function Extent (Self : in Item; for_Degree : in joint.Degree_of_freedom) return Real is begin if for_Degree in Sway .. Surge then raise Error with "Unhandled Degree of freedom:" & for_Degree'Image; end if; return Self.Physics.Extent (for_Degree); end Extent; ------------------ --- Motor Velocity -- overriding procedure Velocity_is (Self : in Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.Velocity_is (Now, for_Degree); end Velocity_is; end gel.ball_Joint;
pragma License (Unrestricted); with Ada.Streams.Stream_IO; package Ada.Text_IO.Text_Streams is -- type Stream_Access is access all Streams.Root_Stream_Type'Class; subtype Stream_Access is Streams.Stream_IO.Stream_Access; -- extended procedure Open ( File : in out File_Type; Mode : File_Mode; Stream : Stream_Access; Name : String := ""; Form : String); -- removed default procedure Open ( File : in out File_Type; Mode : File_Mode; Stream : Stream_Access; Name : String := ""; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True; External : IO_Modes.File_External_Spec := IO_Modes.By_Target; New_Line : IO_Modes.File_New_Line_Spec := IO_Modes.By_Target); function Open ( Mode : File_Mode; Stream : Stream_Access; Name : String := ""; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True; External : IO_Modes.File_External_Spec := IO_Modes.By_Target; New_Line : IO_Modes.File_New_Line_Spec := IO_Modes.By_Target) return File_Type; function Stream ( File : File_Type) -- Open_File_Type return Stream_Access; pragma Inline (Stream); end Ada.Text_IO.Text_Streams;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- M L I B . T G T -- -- (IRIX Version) -- -- -- -- B o d y -- -- -- -- Copyright (C) 2003-2005, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides a set of target dependent routines to build -- static, dynamic and shared libraries. -- This is the IRIX version of the body with MLib.Fil; with MLib.Utl; with Namet; use Namet; with Opt; with Output; use Output; with Prj.Com; with System; package body MLib.Tgt is --------------------- -- Archive_Builder -- --------------------- function Archive_Builder return String is begin return "ar"; end Archive_Builder; ----------------------------- -- Archive_Builder_Options -- ----------------------------- function Archive_Builder_Options return String_List_Access is begin return new String_List'(1 => new String'("cr")); end Archive_Builder_Options; ----------------- -- Archive_Ext -- ----------------- function Archive_Ext return String is begin return "a"; end Archive_Ext; --------------------- -- Archive_Indexer -- --------------------- function Archive_Indexer return String is begin return "ranlib"; end Archive_Indexer; ----------------------------- -- Archive_Indexer_Options -- ----------------------------- function Archive_Indexer_Options return String_List_Access is begin return new String_List (1 .. 0); end Archive_Indexer_Options; --------------------------- -- Build_Dynamic_Library -- --------------------------- procedure Build_Dynamic_Library (Ofiles : Argument_List; Foreign : Argument_List; Afiles : Argument_List; Options : Argument_List; Options_2 : Argument_List; Interfaces : Argument_List; Lib_Filename : String; Lib_Dir : String; Symbol_Data : Symbol_Record; Driver_Name : Name_Id := No_Name; Lib_Version : String := ""; Auto_Init : Boolean := False) is pragma Unreferenced (Foreign); pragma Unreferenced (Afiles); pragma Unreferenced (Interfaces); pragma Unreferenced (Symbol_Data); pragma Unreferenced (Auto_Init); Lib_File : constant String := Lib_Dir & Directory_Separator & "lib" & MLib.Fil.Ext_To (Lib_Filename, DLL_Ext); Version_Arg : String_Access; Symbolic_Link_Needed : Boolean := False; N_Options : Argument_List := Options; Options_Last : Natural := N_Options'Last; -- After moving -lxxx to Options_2, N_Options up to index Options_Last -- will contain the Options to pass to MLib.Utl.Gcc. Real_Options_2 : Argument_List (1 .. Options'Length + Options_2'Length); Real_Options_2_Last : Natural := 0; -- Real_Options_2 up to index Real_Options_2_Last will contain the -- Options_2 to pass to MLib.Utl.Gcc. begin if Opt.Verbose_Mode then Write_Str ("building relocatable shared library "); Write_Line (Lib_File); end if; -- Move all -lxxx to Options_2 declare Index : Natural := N_Options'First; Arg : String_Access; begin while Index <= Options_Last loop Arg := N_Options (Index); if Arg'Length > 2 and then Arg (Arg'First .. Arg'First + 1) = "-l" then Real_Options_2_Last := Real_Options_2_Last + 1; Real_Options_2 (Real_Options_2_Last) := Arg; N_Options (Index .. Options_Last - 1) := N_Options (Index + 1 .. Options_Last); Options_Last := Options_Last - 1; else Index := Index + 1; end if; end loop; end; -- Add to Real_Options_2 the argument Options_2 Real_Options_2 (Real_Options_2_Last + 1 .. Real_Options_2_Last + Options_2'Length) := Options_2; Real_Options_2_Last := Real_Options_2_Last + Options_2'Length; if Lib_Version = "" then MLib.Utl.Gcc (Output_File => Lib_File, Objects => Ofiles, Options => N_Options (N_Options'First .. Options_Last), Driver_Name => Driver_Name, Options_2 => Real_Options_2 (1 .. Real_Options_2_Last)); else Version_Arg := new String'("-Wl,-soname," & Lib_Version); if Is_Absolute_Path (Lib_Version) then MLib.Utl.Gcc (Output_File => Lib_Version, Objects => Ofiles, Options => N_Options (N_Options'First .. Options_Last) & Version_Arg, Driver_Name => Driver_Name, Options_2 => Real_Options_2 (1 .. Real_Options_2_Last)); Symbolic_Link_Needed := Lib_Version /= Lib_File; else MLib.Utl.Gcc (Output_File => Lib_Dir & Directory_Separator & Lib_Version, Objects => Ofiles, Options => N_Options (N_Options'First .. Options_Last) & Version_Arg, Driver_Name => Driver_Name, Options_2 => Real_Options_2 (1 .. Real_Options_2_Last)); Symbolic_Link_Needed := Lib_Dir & Directory_Separator & Lib_Version /= Lib_File; end if; if Symbolic_Link_Needed then declare Success : Boolean; Oldpath : String (1 .. Lib_Version'Length + 1); Newpath : String (1 .. Lib_File'Length + 1); Result : Integer; pragma Unreferenced (Result); function Symlink (Oldpath : System.Address; Newpath : System.Address) return Integer; pragma Import (C, Symlink, "__gnat_symlink"); begin Oldpath (1 .. Lib_Version'Length) := Lib_Version; Oldpath (Oldpath'Last) := ASCII.NUL; Newpath (1 .. Lib_File'Length) := Lib_File; Newpath (Newpath'Last) := ASCII.NUL; Delete_File (Lib_File, Success); Result := Symlink (Oldpath'Address, Newpath'Address); end; end if; end if; end Build_Dynamic_Library; ------------- -- DLL_Ext -- ------------- function DLL_Ext return String is begin return "so"; end DLL_Ext; ---------------- -- DLL_Prefix -- ---------------- function DLL_Prefix return String is begin return "lib"; end DLL_Prefix; -------------------- -- Dynamic_Option -- -------------------- function Dynamic_Option return String is begin return "-shared"; end Dynamic_Option; ------------------- -- Is_Object_Ext -- ------------------- function Is_Object_Ext (Ext : String) return Boolean is begin return Ext = ".o"; end Is_Object_Ext; -------------- -- Is_C_Ext -- -------------- function Is_C_Ext (Ext : String) return Boolean is begin return Ext = ".c"; end Is_C_Ext; -------------------- -- Is_Archive_Ext -- -------------------- function Is_Archive_Ext (Ext : String) return Boolean is begin return Ext = ".a" or else Ext = ".so"; end Is_Archive_Ext; ------------- -- Libgnat -- ------------- function Libgnat return String is begin return "libgnat.a"; end Libgnat; ------------------------ -- Library_Exists_For -- ------------------------ function Library_Exists_For (Project : Project_Id; In_Tree : Project_Tree_Ref) return Boolean is begin if not In_Tree.Projects.Table (Project).Library then Prj.Com.Fail ("INTERNAL ERROR: Library_Exists_For called " & "for non library project"); return False; else declare Lib_Dir : constant String := Get_Name_String (In_Tree.Projects.Table (Project).Library_Dir); Lib_Name : constant String := Get_Name_String (In_Tree.Projects.Table (Project).Library_Name); begin if In_Tree.Projects.Table (Project).Library_Kind = Static then return Is_Regular_File (Lib_Dir & Directory_Separator & "lib" & Fil.Ext_To (Lib_Name, Archive_Ext)); else return Is_Regular_File (Lib_Dir & Directory_Separator & "lib" & Fil.Ext_To (Lib_Name, DLL_Ext)); end if; end; end if; end Library_Exists_For; --------------------------- -- Library_File_Name_For -- --------------------------- function Library_File_Name_For (Project : Project_Id; In_Tree : Project_Tree_Ref) return Name_Id is begin if not In_Tree.Projects.Table (Project).Library then Prj.Com.Fail ("INTERNAL ERROR: Library_File_Name_For called " & "for non library project"); return No_Name; else declare Lib_Name : constant String := Get_Name_String (In_Tree.Projects.Table (Project).Library_Name); begin Name_Len := 3; Name_Buffer (1 .. Name_Len) := "lib"; if In_Tree.Projects.Table (Project).Library_Kind = Static then Add_Str_To_Name_Buffer (Fil.Ext_To (Lib_Name, Archive_Ext)); else Add_Str_To_Name_Buffer (Fil.Ext_To (Lib_Name, DLL_Ext)); end if; return Name_Find; end; end if; end Library_File_Name_For; ---------------- -- Object_Ext -- ---------------- function Object_Ext return String is begin return "o"; end Object_Ext; ---------------- -- PIC_Option -- ---------------- function PIC_Option return String is begin return "-fPIC"; end PIC_Option; ----------------------------------------------- -- Standalone_Library_Auto_Init_Is_Supported -- ----------------------------------------------- function Standalone_Library_Auto_Init_Is_Supported return Boolean is begin return True; end Standalone_Library_Auto_Init_Is_Supported; --------------------------- -- Support_For_Libraries -- --------------------------- function Support_For_Libraries return Library_Support is begin return Full; end Support_For_Libraries; end MLib.Tgt;
----------------------------------------------------------------------- -- gen-model-projects -- Projects meta data -- Copyright (C) 2011 - 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.IO_Exceptions; with Ada.Directories; with Ada.Strings.Fixed; with Ada.Strings.Maps; with Util.Files; with Util.Log.Loggers; with Util.Serialize.IO.XML; with Util.Serialize.Mappers.Record_Mapper; with Util.Streams.Texts; with Util.Strings.Vectors; package body Gen.Model.Projects is use Ada.Strings.Unbounded; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Gen.Model.Projects"); -- Find the Dynamo.xml path associated with the given GNAT project file or installed -- in the Dynamo installation path. -- ------------------------------ function Get_Dynamo_Path (Name : in String; Project_Path : in String; Install_Dir : in String) return String; function Get (Project : in Project_Definition; Name : in String; Default : in Boolean) return Boolean; function Get (Project : in Project_Definition; Name : in String; Default : in Boolean) return Boolean is begin if not Project.Props.Exists (Name) then return Default; else declare Value : constant String := Project.Props.Get (Name); begin return Value = "TRUE" or Value = "true" or Value = "1"; end; end if; end Get; -- ------------------------------ -- Get the value identified by the name. -- If the name cannot be found, the method should return the Null object. -- ------------------------------ overriding function Get_Value (From : in Project_Definition; Name : in String) return UBO.Object is begin if Name = "name" then return UBO.To_Object (From.Name); elsif From.Props.Exists (Name) then return UBO.To_Object (String '(From.Props.Get (Name))); else return UBO.Null_Object; end if; end Get_Value; -- ------------------------------ -- Get the project name. -- ------------------------------ function Get_Project_Name (Project : in Project_Definition) return String is begin return To_String (Project.Name); end Get_Project_Name; To_GNAT_Mapping : Ada.Strings.Maps.Character_Mapping; -- ------------------------------ -- Get the GNAT project file name. The default is to use the Dynamo project -- name and add the <b>.gpr</b> extension. The <b>gnat_project</b> configuration -- property allows to override this default. -- ------------------------------ function Get_GNAT_Project_Name (Project : in Project_Definition) return String is Name : constant String := Project.Props.Get ("gnat_project", ""); begin if Name'Length = 0 then return Ada.Strings.Fixed.Translate (To_String (Project.Name), To_GNAT_Mapping) & ".gpr"; else return Name; end if; end Get_GNAT_Project_Name; -- ------------------------------ -- Get the directory path which holds application modules. -- This is controlled by the <b>modules_dir</b> configuration property. -- The default is <tt>plugins</tt>. -- ------------------------------ function Get_Module_Dir (Project : in Project_Definition) return String is begin return Project.Props.Get ("modules_dir", "plugins"); end Get_Module_Dir; -- ------------------------------ -- Get the directory path which holds database model files. -- This is controlled by the <b>db_dir</b> configuration property. -- The default is <tt>db</tt>. -- ------------------------------ function Get_Database_Dir (Project : in Project_Definition) return String is Dir : constant String := Ada.Directories.Containing_Directory (To_String (Project.Path)); begin if not Project.Props.Exists ("db_dir") then return Util.Files.Compose (Dir, "db"); end if; return Util.Files.Compose (Dir, Project.Props.Get ("db_dir", "db")); end Get_Database_Dir; -- ------------------------------ -- Get the directory path which is the base dir for the 'web, 'config' and 'bundles'. -- This is controlled by the <b>base_dir</b> configuration property. -- The default is <tt>.</tt>. -- ------------------------------ function Get_Base_Dir (Project : in Project_Definition) return String is Dir : constant String := Ada.Directories.Containing_Directory (To_String (Project.Path)); begin if not Project.Props.Exists ("base_dir") then return Dir; end if; return Util.Files.Compose (Dir, Project.Props.Get ("base_dir", "")); end Get_Base_Dir; -- ------------------------------ -- Find the Dynamo.xml path associated with the given GNAT project file or installed -- in the Dynamo installation path. -- ------------------------------ function Get_Dynamo_Path (Name : in String; Project_Path : in String; Install_Dir : in String) return String is begin -- Check in the directory which contains the project file. if Project_Path'Length /= 0 then declare Dir : constant String := Ada.Directories.Containing_Directory (Project_Path); Dynamo : constant String := Util.Files.Compose (Dir, "dynamo.xml"); begin Log.Debug ("Checking dynamo file {0}", Dynamo); if Ada.Directories.Exists (Dynamo) then return Dynamo; end if; end; end if; -- Look in the Dynamo installation directory. if Name'Length > 0 then declare Path : constant String := Util.Files.Compose (Install_Dir, Name); Dynamo : constant String := Util.Files.Compose (Path, "dynamo.xml"); begin Log.Debug ("Checking dynamo file {0}", Dynamo); if Ada.Directories.Exists (Dynamo) then return Dynamo; end if; end; else declare Name : constant String := Ada.Directories.Base_Name (Project_Path); Path : constant String := Util.Files.Compose (Install_Dir, Name); Dynamo : constant String := Util.Files.Compose (Path, "dynamo.xml"); begin Log.Debug ("Checking dynamo file {0}", Dynamo); if Ada.Directories.Exists (Dynamo) then return Dynamo; end if; end; end if; return ""; end Get_Dynamo_Path; -- ------------------------------ -- Find the dependency for the <b>Name</b> plugin. -- Returns a null dependency if the project does not depend on that plugin. -- ------------------------------ function Find_Dependency (From : in Project_Definition; Name : in String) return Project_Reference is Iter : Project_Vectors.Cursor := From.Dependencies.First; Result : Project_Reference; begin while Project_Vectors.Has_Element (Iter) loop Result := Project_Vectors.Element (Iter); if Result.Name = Name then return Result; end if; Project_Vectors.Next (Iter); end loop; return Project_Reference '(null, To_UString (Name), NONE); end Find_Dependency; -- ------------------------------ -- Add a dependency to the plugin identified by <b>Name</b>. -- ------------------------------ procedure Add_Dependency (Into : in out Project_Definition; Name : in String; Kind : in Dependency_Type) is Depend : Project_Reference := Into.Find_Dependency (Name); begin Log.Debug ("Adding dependency {0}", Name); if Depend.Project = null and Depend.Kind = NONE then Depend.Project := Into.Find_Project_By_Name (Name); Depend.Kind := Kind; Into.Dependencies.Append (Depend); end if; end Add_Dependency; -- ------------------------------ -- Add a dependency to the plugin identified by <b>Project</b>. -- ------------------------------ procedure Add_Dependency (Into : in out Project_Definition; Project : in Project_Definition_Access; Kind : in Dependency_Type) is procedure Update (Ref : in out Project_Reference); procedure Update (Ref : in out Project_Reference) is begin Ref.Project := Project; end Update; Iter : Project_Vectors.Cursor := Into.Dependencies.First; Result : Project_Reference; begin Log.Debug ("Adding dependency {0}", Project.Name); while Project_Vectors.Has_Element (Iter) loop Result := Project_Vectors.Element (Iter); if Result.Name = Project.Name then Into.Dependencies.Update_Element (Iter, Update'Access); return; end if; Project_Vectors.Next (Iter); end loop; Result.Project := Project; Result.Kind := Kind; Result.Name := Project.Name; Into.Dependencies.Append (Result); end Add_Dependency; -- ------------------------------ -- Add the project in the global project list on the root project instance. -- ------------------------------ procedure Add_Project (Into : in out Project_Definition; Project : in Project_Definition_Access) is begin if Into.Root /= null then Root_Project_Definition'Class (Into.Root.all).Add_Project (Project); else Log.Error ("Project not added"); end if; end Add_Project; -- ------------------------------ -- Create a project definition instance to record a project with the dynamo XML file path. -- ------------------------------ procedure Create_Project (Into : in out Project_Definition; Name : in String; Path : in String; Project : out Project_Definition_Access) is begin Project := new Project_Definition; Project.Path := To_UString (Path); Project.Set_Name (Name); Log.Info ("Creating project {0} - {1}", Name, Path); Project_Definition'Class (Into).Add_Project (Project); end Create_Project; -- ------------------------------ -- Add the project <b>Name</b> as a module. -- ------------------------------ procedure Add_Module (Into : in out Project_Definition; Name : in String) is Project : Project_Reference := Find_Project (Into.Modules, Name); begin if Project.Name /= Null_Unbounded_String then Log.Debug ("Module {0} already present", Name); return; end if; Log.Debug ("Adding module {0}", Name); Project.Name := To_UString (Name); Project.Project := Into.Find_Project (Name); if Project.Project /= null then Project.Name := Project.Project.Name; end if; Into.Modules.Append (Project); end Add_Module; -- ------------------------------ -- Add the project represented by <b>Project</b> if it is not already part of the modules. -- ------------------------------ procedure Add_Module (Into : in out Project_Definition; Project : in Project_Definition_Access) is procedure Update (Item : in out Project_Reference); procedure Update (Item : in out Project_Reference) is begin Item.Name := Project.Name; Item.Project := Project; end Update; Iter : Project_Vectors.Cursor := Into.Modules.First; P : Project_Reference; begin while Project_Vectors.Has_Element (Iter) loop P := Project_Vectors.Element (Iter); if P.Project = Project then return; end if; if P.Name = Project.Name then Project_Vectors.Update_Element (Into.Modules, Iter, Update'Access); return; end if; Project_Vectors.Next (Iter); end loop; if Project.Name = Into.Name then Log.Debug ("Ignoring recursive reference to {0}", Into.Name); return; end if; Log.Debug ("Adding module {0} in {1}-{2}", Project.Name, Into.Name & "-" & Into.Path); P.Project := Project; P.Name := Project.Name; Into.Modules.Append (P); end Add_Module; -- ------------------------------ -- Iterate over the project referenced in the list and execute the <b>Process</b> procedure. -- ------------------------------ procedure Iterate (List : in out Project_Vectors.Vector; Process : access procedure (Item : in out Project_Reference)) is Iter : Project_Vectors.Cursor := List.First; begin while Project_Vectors.Has_Element (Iter) loop Project_Vectors.Update_Element (List, Iter, Process); Project_Vectors.Next (Iter); end loop; end Iterate; -- ------------------------------ -- Find a project from the list -- ------------------------------ function Find_Project (List : in Project_Vectors.Vector; Name : in String) return Project_Reference is Iter : Project_Vectors.Cursor := List.First; begin while Project_Vectors.Has_Element (Iter) loop declare P : constant Project_Reference := Project_Vectors.Element (Iter); begin if P.Name = Name then return P; end if; if P.Project /= null and then P.Project.Path = Name then return P; end if; end; Project_Vectors.Next (Iter); end loop; Log.Debug ("Project {0} not read yet", Name); return Project_Reference '(null, Null_Unbounded_String, NONE); end Find_Project; -- ------------------------------ -- Find the project definition associated with the dynamo XML file <b>Path</b>. -- Returns null if there is no such project -- ------------------------------ function Find_Project (From : in Project_Definition; Path : in String) return Project_Definition_Access is begin return Find_Project (From.Modules, Path).Project; end Find_Project; -- ------------------------------ -- Find the project definition having the name <b>Name</b>. -- Returns null if there is no such project -- ------------------------------ function Find_Project_By_Name (From : in Project_Definition; Name : in String) return Project_Definition_Access is begin if From.Root /= null then return Root_Project_Definition'Class (From.Root.all).Find_Project_By_Name (Name); else return null; end if; end Find_Project_By_Name; -- ------------------------------ -- Add the project in the global project list on the root project instance. -- ------------------------------ overriding procedure Add_Project (Into : in out Root_Project_Definition; Project : in Project_Definition_Access) is Ref : Project_Reference; begin Project.Root := Into'Unchecked_Access; Ref.Project := Project; Ref.Name := Project.Name; Into.Projects.Append (Ref); end Add_Project; -- ------------------------------ -- Find the project definition having the name <b>Name</b>. -- Returns null if there is no such project -- ------------------------------ overriding function Find_Project_By_Name (From : in Root_Project_Definition; Name : in String) return Project_Definition_Access is Iter : Project_Vectors.Cursor := From.Projects.First; begin while Project_Vectors.Has_Element (Iter) loop declare P : constant Project_Reference := Project_Vectors.Element (Iter); begin if P.Name = Name then return P.Project; end if; end; Project_Vectors.Next (Iter); end loop; Log.Debug ("Project {0} not found", Name); return null; end Find_Project_By_Name; -- ------------------------------ -- Update the project references after a project is found and initialized. -- ------------------------------ procedure Update_References (Root : in out Root_Project_Definition; Project : in Project_Definition_Access) is procedure Update (Item : in out Project_Reference); procedure Update (Item : in out Project_Reference) is begin if Item.Name = Project.Name or Item.Name = Project.Path then if Item.Project = null then Item.Project := Project; elsif Item.Project /= Project then Log.Error ("Project {0} found in {1} and {2}", To_String (Item.Name), To_String (Item.Project.Path), To_String (Project.Path)); end if; elsif Item.Project /= null and then Item.Project.Path = Project.Path then Item.Name := Project.Name; end if; if Item.Project /= null and then not Item.Project.Recursing then Item.Project.Recursing := True; Iterate (Item.Project.Modules, Update'Access); Iterate (Item.Project.Dependencies, Update'Access); Item.Project.Recursing := False; end if; end Update; begin Root.Recursing := True; Iterate (Root.Projects, Update'Access); Root.Recursing := False; end Update_References; -- ------------------------------ -- Find the project definition associated with the dynamo XML file <b>Path</b>. -- Returns null if there is no such project -- ------------------------------ overriding function Find_Project (From : in Root_Project_Definition; Path : in String) return Project_Definition_Access is begin return Find_Project (From.Projects, Path).Project; end Find_Project; -- ------------------------------ -- Save the project description and parameters. -- ------------------------------ procedure Save (Project : in out Project_Definition; Path : in String) is use Util.Streams; procedure Save_Dependency (Pos : in Project_Vectors.Cursor); procedure Save_Module (Pos : in Project_Vectors.Cursor); procedure Read_Property_Line (Line : in String); function Is_Default_Value (Name : in String) return Boolean; Buffer : aliased Util.Streams.Texts.Print_Stream; Output : Util.Serialize.IO.XML.Output_Stream; Prop_Output : Util.Streams.Texts.Print_Stream; procedure Save_Dependency (Pos : in Project_Vectors.Cursor) is Depend : constant Project_Reference := Project_Vectors.Element (Pos); begin if Depend.Kind = DIRECT then Output.Write_String (ASCII.LF & " "); Output.Start_Entity (Name => "depend"); Output.Write_Attribute (Name => "name", Value => UBO.To_Object (Depend.Name)); Output.End_Entity (Name => "depend"); end if; end Save_Dependency; procedure Save_Module (Pos : in Project_Vectors.Cursor) is Module : constant Project_Reference := Project_Vectors.Element (Pos); Name : constant String := To_String (Module.Name); begin if Name'Length > 0 then Output.Write_String (ASCII.LF & " "); Output.Start_Entity (Name => "module"); Output.Write_Attribute (Name => "name", Value => UBO.To_Object (Name)); Output.End_Entity (Name => "module"); end if; end Save_Module; -- ------------------------------ -- Read the application property file to remove all the dynamo.* properties -- ------------------------------ procedure Read_Property_Line (Line : in String) is begin if Line'Length < 7 or else Line (Line'First .. Line'First + 6) /= "dynamo_" then Prop_Output.Write (Line); Prop_Output.Write (ASCII.LF); end if; end Read_Property_Line; function Is_Default_Value (Name : in String) return Boolean is begin if Name /= "use_mysql" and Name /= "use_sqlite" and Name /= "use_postgresql" then return False; end if; return Get (Project, Name, True) = True; end Is_Default_Value; Dir : constant String := Ada.Directories.Containing_Directory (Path); Name : constant String := Project.Get_Project_Name; Prop_Name : constant String := Name & ".properties"; Prop_Path : constant String := Ada.Directories.Compose (Dir, Prop_Name); begin Prop_Output.Initialize (Size => 100000); Buffer.Initialize (Size => 100000); Output.Initialize (Output => Buffer'Unchecked_Access); -- Read the current project property file, ignoring the dynamo.* properties. begin Util.Files.Read_File (Prop_Path, Read_Property_Line'Access); exception when Ada.IO_Exceptions.Name_Error => null; end; -- Start building the new dynamo.xml content. -- At the same time, we append in the project property file the list of dynamo properties. Output.Start_Entity (Name => "project"); Output.Write_String (ASCII.LF & " "); Output.Write_Entity (Name => "name", Value => UBO.To_Object (Name)); declare Names : Util.Strings.Vectors.Vector; begin Project.Props.Get_Names (Names); for Name of Names loop if not Is_Default_Value (Name) then Output.Write_String (ASCII.LF & " "); Output.Start_Entity (Name => "property"); Output.Write_Attribute (Name => "name", Value => UBO.To_Object (Name)); Output.Write_String (Value => To_String (Project.Props.Get (Name))); Output.End_Entity (Name => "property"); end if; Prop_Output.Write ("dynamo_"); Prop_Output.Write (Name); Prop_Output.Write ("="); Prop_Output.Write (To_String (Project.Props.Get (Name))); Prop_Output.Write (ASCII.LF); end loop; end; Project.Modules.Iterate (Save_Module'Access); Project.Dependencies.Iterate (Save_Dependency'Access); Output.Write_String (ASCII.LF & ""); Output.End_Entity (Name => "project"); Util.Files.Write_File (Content => Texts.To_String (Buffer), Path => Path); Util.Files.Write_File (Content => Texts.To_String (Prop_Output), Path => Prop_Path); end Save; -- ------------------------------ -- Update the project definition from the properties. -- ------------------------------ procedure Update_From_Properties (Project : in out Project_Definition) is begin Project.Is_Plugin := Get (Project, "is_plugin", Project.Is_Plugin); Project.Use_Mysql := Get (Project, "use_mysql", Project.Use_Mysql); Project.Use_Postgresql := Get (Project, "use_postgresql", Project.Use_Postgresql); Project.Use_Sqlite := Get (Project, "use_sqlite", Project.Use_Sqlite); end Update_From_Properties; -- ------------------------------ -- Read the XML project description into the project description. -- ------------------------------ procedure Read_Project (Project : in out Project_Definition) is type Project_Fields is (FIELD_PROJECT_NAME, FIELD_PROPERTY_NAME, FIELD_PROPERTY_VALUE, FIELD_MODULE_NAME, FIELD_DEPEND_NAME); type Project_Loader is record Name : UString; end record; type Project_Loader_Access is access all Project_Loader; procedure Set_Member (Closure : in out Project_Loader; Field : in Project_Fields; Value : in UBO.Object); -- ------------------------------ -- Called by the de-serialization when a given field is recognized. -- ------------------------------ procedure Set_Member (Closure : in out Project_Loader; Field : in Project_Fields; Value : in UBO.Object) is begin case Field is when FIELD_PROJECT_NAME => Project.Set_Name (UBO.To_Unbounded_String (Value)); when FIELD_MODULE_NAME => declare Name : constant String := UBO.To_String (Value); begin Project.Add_Module (Name); end; when FIELD_DEPEND_NAME => if not UBO.Is_Empty (Value) then Project.Add_Dependency (UBO.To_String (Value), DIRECT); end if; when FIELD_PROPERTY_NAME => Closure.Name := UBO.To_Unbounded_String (Value); when FIELD_PROPERTY_VALUE => Project.Props.Set (Closure.Name, UBO.To_Unbounded_String (Value)); end case; end Set_Member; package Project_Mapper is new Util.Serialize.Mappers.Record_Mapper (Element_Type => Project_Loader, Element_Type_Access => Project_Loader_Access, Fields => Project_Fields, Set_Member => Set_Member); Path : constant String := To_String (Project.Path); Loader : aliased Project_Loader; Mapper : aliased Project_Mapper.Mapper; Reader : Util.Serialize.IO.XML.Parser; Prj_Mapper : Util.Serialize.Mappers.Processing; begin Log.Info ("Reading project file '{0}'", Path); if Path /= "" and then Ada.Directories.Exists (Path) then -- Create the mapping to load the XML project file. Mapper.Add_Mapping ("name", FIELD_PROJECT_NAME); Mapper.Add_Mapping ("property/@name", FIELD_PROPERTY_NAME); Mapper.Add_Mapping ("property", FIELD_PROPERTY_VALUE); Mapper.Add_Mapping ("module/@name", FIELD_MODULE_NAME); Mapper.Add_Mapping ("depend/@name", FIELD_DEPEND_NAME); Prj_Mapper.Add_Mapping ("project", Mapper'Unchecked_Access); -- Set the context for Set_Member. Project_Mapper.Set_Context (Prj_Mapper, Loader'Access); Project.Set_Name (Null_Unbounded_String); -- Read the XML query file. Reader.Parse (Path, Prj_Mapper); Project.Update_From_Properties; end if; if Length (Project.Name) = 0 then Log.Error ("Project file {0} does not contain the project name.", Path); elsif Project.Root /= null then Root_Project_Definition'Class (Project.Root.all). Update_References (Project'Unchecked_Access); end if; Log.Info ("Project {0} is {1}", To_String (Project.Path), To_String (Project.Name)); end Read_Project; -- ------------------------------ -- Scan and read the possible modules used by the application. Modules are stored in the -- <b>plugins</b> directory. Each module is stored in its own directory and has its own -- <b>dynamo.xml</b> file. -- ------------------------------ procedure Read_Modules (Project : in out Project_Definition) is use Ada.Directories; Dir_Filter : constant Filter_Type := (Directory => True, others => False); Module_Dir : constant String := Gen.Utils.Absolute_Path (Project.Get_Module_Dir); Ent : Directory_Entry_Type; Search : Search_Type; begin if not Exists (Module_Dir) then Log.Debug ("Project {0} has no module", Project.Name); return; end if; if Kind (Module_Dir) /= Directory then Log.Debug ("Project {0} has no module", Project.Name); return; end if; Log.Info ("Scanning project modules in {0}", Module_Dir); Start_Search (Search, Directory => Module_Dir, Pattern => "*", Filter => Dir_Filter); while More_Entries (Search) loop Get_Next_Entry (Search, Ent); declare Dir_Name : constant String := Simple_Name (Ent); Dir : constant String := Compose (Module_Dir, Dir_Name); File : constant String := Compose (Dir, "dynamo.xml"); begin if Dir_Name /= "." and then Dir_Name /= ".." and then Dir_Name /= ".svn" and then Exists (File) then declare P : Project_Definition_Access; begin P := Project.Find_Project (File); if P = null then Project.Create_Project (Path => File, Name => "", Project => P); Project.Dynamo_Files.Append (File); P.Read_Project; Project.Add_Dependency (P, DIRECT); end if; end; end if; end; end loop; exception when E : Ada.IO_Exceptions.Name_Error => Log.Info ("Exception: {0}", Util.Log.Loggers.Traceback (E)); end Read_Modules; -- ------------------------------ -- Read the XML project file. When <b>Recursive</b> is set, read the GNAT project -- files used by the main project and load all the <b>dynamo.xml</b> files defined -- by these project. -- ------------------------------ procedure Read_Project (Project : in out Root_Project_Definition; File : in String; Config : in Util.Properties.Manager'Class; Recursive : in Boolean := False) is procedure Collect_Dynamo_Files (List : in Gen.Utils.GNAT.Project_Info_Vectors.Vector; Result : out Gen.Utils.String_List.Vector); -- ------------------------------ -- Collect the <b>dynamo.xml</b> files used by the projects. -- Keep the list in the dependency order so that it can be used -- to build the database schema and take into account schema dependencies. -- ------------------------------ procedure Collect_Dynamo_Files (List : in Gen.Utils.GNAT.Project_Info_Vectors.Vector; Result : out Gen.Utils.String_List.Vector) is use Gen.Utils.GNAT; Iter : Gen.Utils.GNAT.Project_Info_Vectors.Cursor := List.First; Dir : constant String := To_String (Project.Install_Dir); begin while Gen.Utils.GNAT.Project_Info_Vectors.Has_Element (Iter) loop declare Info : constant Project_Info := Project_Info_Vectors.Element (Iter); Name : constant String := To_String (Info.Name); Dynamo : constant String := Get_Dynamo_Path (Name, To_String (Info.Path), Dir); Has_File : constant Boolean := Result.Contains (Dynamo); P : Model.Projects.Project_Definition_Access; begin Log.Info ("GNAT project {0}", Name); Project_Info_Vectors.Next (Iter); -- Do not include the 'dynamo.xml' path if it is already in the list -- (this happens if a project uses several GNAT project files). -- We have to make sure that the 'dynamo.xml' stored in the current directory -- appears last in the list. Insert only if there is a file. if not Info.Is_Abstract and then (not Has_File or else not Project_Info_Vectors.Has_Element (Iter)) and then Dynamo'Length > 0 then Log.Debug ("Dynamo file {0} is used", Dynamo); if Has_File then Result.Delete (Result.Find_Index (Dynamo)); end if; Result.Append (Dynamo); -- Find the project associated with the dynamo.xml file. -- Create it and load the XML if necessary. P := Project.Find_Project (Dynamo); if P = null then Log.Debug ("Create dependency for {0} on {1}", Name, Dynamo); Project.Create_Project (Path => Dynamo, Name => Name, Project => P); P.Read_Project; Log.Debug ("Loaded project {0}", P.Name); Project.Add_Dependency (P, DIRECT); end if; end if; end; end loop; end Collect_Dynamo_Files; begin Project.Path := To_UString (Gen.Utils.Absolute_Path (File)); Project.Root := null; Project.Add_Project (Project'Unchecked_Access); Project.Read_Project; -- When necessary, read the GNAT project files. We get a list of absolute GNAT path -- files that we can use to known the project dependencies with other modules. -- This is useful for database schema generation for example. if Recursive then -- Read GNAT project files. declare Name : constant String := Project.Get_GNAT_Project_Name; begin if not Ada.Directories.Exists (Name) then Log.Warn ("GNAT project file {0} does not exist.", Name); return; end if; Gen.Utils.GNAT.Initialize (Config); Gen.Utils.GNAT.Read_GNAT_Project_List (Name, Project.Project_Files); end; -- Mark the fact we did a recursive scan. Project.Recursive_Scan := True; -- Look for the projects that define the 'dynamo.xml' configuration. Collect_Dynamo_Files (Project.Project_Files, Project.Dynamo_Files); Project.Read_Modules; -- Last step, look for each project that was not yet found and try to load it -- from the Dynamo installation. declare Install_Dir : constant String := To_String (Project.Install_Dir); Pending : Project_Vectors.Vector; procedure Update (Item : in out Project_Reference); procedure Read_Dependencies (Def : in out Project_Definition'Class); -- ------------------------------ -- Read the dynamo project dependencies and find the associated dynamo.xml file. -- This is necessary for the plugins that don't have a GNAT project file associated. -- Such plugin don't contain any Ada code but they could provide either database files -- and web presentation pages (HTML, CSS, Javascript). -- ------------------------------ procedure Read_Dependencies (Def : in out Project_Definition'Class) is Iter : Project_Vectors.Cursor := Def.Dependencies.First; Result : Project_Reference; Found : Project_Reference; Dir : constant String := To_String (Project.Install_Dir); begin Log.Debug ("Read dependencies of {0}", Def.Name); while Project_Vectors.Has_Element (Iter) loop Result := Project_Vectors.Element (Iter); if Result.Project = null then Found := Find_Project (Pending, To_String (Result.Name)); if Found.Kind = NONE then Result.Project := Def.Find_Project_By_Name (To_String (Result.Name)); if Result.Project = null then Result.Project := new Project_Definition; Result.Project.Path := To_UString (""); Result.Project.Set_Name (Result.Name); Pending.Append (Result); end if; declare Path : constant String := To_String (Result.Project.Path); Dynamo : constant String := Get_Dynamo_Path (Result.Project.Get_Name, Path, Dir); Has_File : constant Boolean := Project.Dynamo_Files.Contains (Dynamo); begin Log.Info ("Project {0} depends on {1} found dynamo file {2}", Def.Get_Name, Result.Project.Get_Name, Dynamo); if Dynamo /= "" then if Path = "" then Result.Project.Path := To_UString (Dynamo); end if; if not Has_File then Project.Dynamo_Files.Append (Dynamo); end if; end if; end; end if; end if; Project_Vectors.Next (Iter); end loop; end Read_Dependencies; procedure Update (Item : in out Project_Reference) is begin Log.Debug ("Checking project {0}", Item.Name); if Item.Project = null then Item.Project := Project.Find_Project_By_Name (To_String (Item.Name)); end if; if Item.Project = null then declare Name : constant String := To_String (Item.Name); Path : constant String := Util.Files.Compose (Install_Dir, Name); Dynamo : constant String := Util.Files.Compose (Path, "dynamo.xml"); begin Log.Debug ("Checking dynamo file {0}", Dynamo); if Ada.Directories.Exists (Dynamo) then if not Project.Dynamo_Files.Contains (Dynamo) then Project.Dynamo_Files.Append (Dynamo); end if; Item.Project := new Project_Definition; Item.Project.Path := To_UString (Dynamo); Item.Project.Set_Name (Item.Name); Pending.Append (Item); Log.Info ("Preparing to load {0} from {1}", Name, Dynamo); else Log.Info ("Project {0} not found in dynamo search path", Name); end if; end; end if; if Item.Project /= null and then not Item.Project.Recursive_Scan then Item.Project.Recursive_Scan := True; Iterate (Item.Project.Modules, Update'Access); end if; if Item.Project /= null and then not Item.Project.Depend_Scan then Item.Project.Depend_Scan := True; Read_Dependencies (Item.Project.all); end if; end Update; Iter : Project_Vectors.Cursor; begin Iterate (Project.Modules, Update'Access); for Pass in 1 .. 4 loop Iter := Project.Projects.First; Log.Info ("Checking {0} projects", Ada.Containers.Count_Type'Image (Project.Projects.Length)); Iterate (Project.Projects, Update'Access); exit when Pending.Is_Empty; while not Pending.Is_Empty loop Iter := Pending.First; Project.Projects.Append (Project_Vectors.Element (Iter)); Project_Vectors.Element (Iter).Project.Read_Project; Pending.Delete_First; end loop; end loop; end; end if; end Read_Project; begin To_GNAT_Mapping := Ada.Strings.Maps.To_Mapping (From => "-", To => "_"); end Gen.Model.Projects;
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd with System; package Interfaces.STM32.Flash is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subtype ACR_LATENCY_Field is Interfaces.STM32.UInt4; subtype ACR_PRFTEN_Field is Interfaces.STM32.Bit; subtype ACR_ICEN_Field is Interfaces.STM32.Bit; subtype ACR_DCEN_Field is Interfaces.STM32.Bit; subtype ACR_ICRST_Field is Interfaces.STM32.Bit; subtype ACR_DCRST_Field is Interfaces.STM32.Bit; subtype ACR_RUN_PD_Field is Interfaces.STM32.Bit; subtype ACR_SLEEP_PD_Field is Interfaces.STM32.Bit; subtype ACR_DBG_SWEN_Field is Interfaces.STM32.Bit; -- Access control register type ACR_Register is record -- Latency LATENCY : ACR_LATENCY_Field := 16#0#; -- unspecified Reserved_4_7 : Interfaces.STM32.UInt4 := 16#0#; -- Prefetch enable PRFTEN : ACR_PRFTEN_Field := 16#0#; -- Instruction cache enable ICEN : ACR_ICEN_Field := 16#1#; -- Data cache enable DCEN : ACR_DCEN_Field := 16#1#; -- Instruction cache reset ICRST : ACR_ICRST_Field := 16#0#; -- Data cache reset DCRST : ACR_DCRST_Field := 16#0#; -- Flash Power-down mode during Low-power run mode RUN_PD : ACR_RUN_PD_Field := 16#0#; -- Flash Power-down mode during Low-power sleep mode SLEEP_PD : ACR_SLEEP_PD_Field := 16#0#; -- unspecified Reserved_15_17 : Interfaces.STM32.UInt3 := 16#0#; -- Debug software enable DBG_SWEN : ACR_DBG_SWEN_Field := 16#0#; -- unspecified Reserved_19_31 : Interfaces.STM32.UInt13 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ACR_Register use record LATENCY at 0 range 0 .. 3; Reserved_4_7 at 0 range 4 .. 7; PRFTEN at 0 range 8 .. 8; ICEN at 0 range 9 .. 9; DCEN at 0 range 10 .. 10; ICRST at 0 range 11 .. 11; DCRST at 0 range 12 .. 12; RUN_PD at 0 range 13 .. 13; SLEEP_PD at 0 range 14 .. 14; Reserved_15_17 at 0 range 15 .. 17; DBG_SWEN at 0 range 18 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; subtype SR_EOP_Field is Interfaces.STM32.Bit; subtype SR_OPERR_Field is Interfaces.STM32.Bit; subtype SR_PROGERR_Field is Interfaces.STM32.Bit; subtype SR_WRPERR_Field is Interfaces.STM32.Bit; subtype SR_PGAERR_Field is Interfaces.STM32.Bit; subtype SR_SIZERR_Field is Interfaces.STM32.Bit; subtype SR_PGSERR_Field is Interfaces.STM32.Bit; subtype SR_MISERR_Field is Interfaces.STM32.Bit; subtype SR_FASTERR_Field is Interfaces.STM32.Bit; subtype SR_RDERR_Field is Interfaces.STM32.Bit; subtype SR_OPTVERR_Field is Interfaces.STM32.Bit; subtype SR_BSY_Field is Interfaces.STM32.Bit; -- Status register type SR_Register is record -- End of operation EOP : SR_EOP_Field := 16#0#; -- Operation error OPERR : SR_OPERR_Field := 16#0#; -- unspecified Reserved_2_2 : Interfaces.STM32.Bit := 16#0#; -- Programming error PROGERR : SR_PROGERR_Field := 16#0#; -- Write protected error WRPERR : SR_WRPERR_Field := 16#0#; -- Programming alignment error PGAERR : SR_PGAERR_Field := 16#0#; -- Size error SIZERR : SR_SIZERR_Field := 16#0#; -- Programming sequence error PGSERR : SR_PGSERR_Field := 16#0#; -- Fast programming data miss error MISERR : SR_MISERR_Field := 16#0#; -- Fast programming error FASTERR : SR_FASTERR_Field := 16#0#; -- unspecified Reserved_10_13 : Interfaces.STM32.UInt4 := 16#0#; -- PCROP read error RDERR : SR_RDERR_Field := 16#0#; -- Option validity error OPTVERR : SR_OPTVERR_Field := 16#0#; -- Read-only. Busy BSY : SR_BSY_Field := 16#0#; -- unspecified Reserved_17_31 : Interfaces.STM32.UInt15 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record EOP at 0 range 0 .. 0; OPERR at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; PROGERR at 0 range 3 .. 3; WRPERR at 0 range 4 .. 4; PGAERR at 0 range 5 .. 5; SIZERR at 0 range 6 .. 6; PGSERR at 0 range 7 .. 7; MISERR at 0 range 8 .. 8; FASTERR at 0 range 9 .. 9; Reserved_10_13 at 0 range 10 .. 13; RDERR at 0 range 14 .. 14; OPTVERR at 0 range 15 .. 15; BSY at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CR_PG_Field is Interfaces.STM32.Bit; subtype CR_PER_Field is Interfaces.STM32.Bit; subtype CR_MER1_Field is Interfaces.STM32.Bit; subtype CR_PNB_Field is Interfaces.STM32.UInt7; subtype CR_STRT_Field is Interfaces.STM32.Bit; subtype CR_OPTSTRT_Field is Interfaces.STM32.Bit; subtype CR_FSTPG_Field is Interfaces.STM32.Bit; subtype CR_EOPIE_Field is Interfaces.STM32.Bit; subtype CR_ERRIE_Field is Interfaces.STM32.Bit; subtype CR_RDERRIE_Field is Interfaces.STM32.Bit; subtype CR_OBL_LAUNCH_Field is Interfaces.STM32.Bit; subtype CR_SEC_PROT1_Field is Interfaces.STM32.Bit; subtype CR_OPTLOCK_Field is Interfaces.STM32.Bit; subtype CR_LOCK_Field is Interfaces.STM32.Bit; -- Flash control register type CR_Register is record -- Programming PG : CR_PG_Field := 16#0#; -- Page erase PER : CR_PER_Field := 16#0#; -- Bank 1 Mass erase MER1 : CR_MER1_Field := 16#0#; -- Page number PNB : CR_PNB_Field := 16#0#; -- unspecified Reserved_10_15 : Interfaces.STM32.UInt6 := 16#0#; -- Start STRT : CR_STRT_Field := 16#0#; -- Options modification start OPTSTRT : CR_OPTSTRT_Field := 16#0#; -- Fast programming FSTPG : CR_FSTPG_Field := 16#0#; -- unspecified Reserved_19_23 : Interfaces.STM32.UInt5 := 16#0#; -- End of operation interrupt enable EOPIE : CR_EOPIE_Field := 16#0#; -- Error interrupt enable ERRIE : CR_ERRIE_Field := 16#0#; -- PCROP read error interrupt enable RDERRIE : CR_RDERRIE_Field := 16#0#; -- Force the option byte loading OBL_LAUNCH : CR_OBL_LAUNCH_Field := 16#0#; -- SEC_PROT1 SEC_PROT1 : CR_SEC_PROT1_Field := 16#0#; -- unspecified Reserved_29_29 : Interfaces.STM32.Bit := 16#0#; -- Options Lock OPTLOCK : CR_OPTLOCK_Field := 16#1#; -- FLASH_CR Lock LOCK : CR_LOCK_Field := 16#1#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record PG at 0 range 0 .. 0; PER at 0 range 1 .. 1; MER1 at 0 range 2 .. 2; PNB at 0 range 3 .. 9; Reserved_10_15 at 0 range 10 .. 15; STRT at 0 range 16 .. 16; OPTSTRT at 0 range 17 .. 17; FSTPG at 0 range 18 .. 18; Reserved_19_23 at 0 range 19 .. 23; EOPIE at 0 range 24 .. 24; ERRIE at 0 range 25 .. 25; RDERRIE at 0 range 26 .. 26; OBL_LAUNCH at 0 range 27 .. 27; SEC_PROT1 at 0 range 28 .. 28; Reserved_29_29 at 0 range 29 .. 29; OPTLOCK at 0 range 30 .. 30; LOCK at 0 range 31 .. 31; end record; subtype ECCR_ADDR_ECC_Field is Interfaces.STM32.UInt19; subtype ECCR_BK_ECC_Field is Interfaces.STM32.Bit; subtype ECCR_SYSF_ECC_Field is Interfaces.STM32.Bit; subtype ECCR_ECCIE_Field is Interfaces.STM32.Bit; subtype ECCR_ECCC2_Field is Interfaces.STM32.Bit; subtype ECCR_ECCD2_Field is Interfaces.STM32.Bit; subtype ECCR_ECCC_Field is Interfaces.STM32.Bit; subtype ECCR_ECCD_Field is Interfaces.STM32.Bit; -- Flash ECC register type ECCR_Register is record -- Read-only. ECC fail address ADDR_ECC : ECCR_ADDR_ECC_Field := 16#0#; -- unspecified Reserved_19_20 : Interfaces.STM32.UInt2 := 16#0#; -- Read-only. BK_ECC BK_ECC : ECCR_BK_ECC_Field := 16#0#; -- Read-only. SYSF_ECC SYSF_ECC : ECCR_SYSF_ECC_Field := 16#0#; -- unspecified Reserved_23_23 : Interfaces.STM32.Bit := 16#0#; -- ECCIE ECCIE : ECCR_ECCIE_Field := 16#0#; -- unspecified Reserved_25_27 : Interfaces.STM32.UInt3 := 16#0#; -- ECC correction ECCC2 : ECCR_ECCC2_Field := 16#0#; -- ECC2 detection ECCD2 : ECCR_ECCD2_Field := 16#0#; -- ECC correction ECCC : ECCR_ECCC_Field := 16#0#; -- ECC detection ECCD : ECCR_ECCD_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ECCR_Register use record ADDR_ECC at 0 range 0 .. 18; Reserved_19_20 at 0 range 19 .. 20; BK_ECC at 0 range 21 .. 21; SYSF_ECC at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; ECCIE at 0 range 24 .. 24; Reserved_25_27 at 0 range 25 .. 27; ECCC2 at 0 range 28 .. 28; ECCD2 at 0 range 29 .. 29; ECCC at 0 range 30 .. 30; ECCD at 0 range 31 .. 31; end record; subtype OPTR_RDP_Field is Interfaces.STM32.Byte; subtype OPTR_BOR_LEV_Field is Interfaces.STM32.UInt3; subtype OPTR_nRST_STOP_Field is Interfaces.STM32.Bit; subtype OPTR_nRST_STDBY_Field is Interfaces.STM32.Bit; subtype OPTR_nRST_SHDW_Field is Interfaces.STM32.Bit; subtype OPTR_IDWG_SW_Field is Interfaces.STM32.Bit; subtype OPTR_IWDG_STOP_Field is Interfaces.STM32.Bit; subtype OPTR_IWDG_STDBY_Field is Interfaces.STM32.Bit; subtype OPTR_WWDG_SW_Field is Interfaces.STM32.Bit; subtype OPTR_nBOOT1_Field is Interfaces.STM32.Bit; subtype OPTR_SRAM2_PE_Field is Interfaces.STM32.Bit; subtype OPTR_SRAM2_RST_Field is Interfaces.STM32.Bit; subtype OPTR_nSWBOOT0_Field is Interfaces.STM32.Bit; subtype OPTR_nBOOT0_Field is Interfaces.STM32.Bit; subtype OPTR_NRST_MODE_Field is Interfaces.STM32.UInt2; subtype OPTR_IRHEN_Field is Interfaces.STM32.Bit; -- Flash option register type OPTR_Register is record -- Read protection level RDP : OPTR_RDP_Field := 16#0#; -- BOR reset Level BOR_LEV : OPTR_BOR_LEV_Field := 16#0#; -- unspecified Reserved_11_11 : Interfaces.STM32.Bit := 16#0#; -- nRST_STOP nRST_STOP : OPTR_nRST_STOP_Field := 16#0#; -- nRST_STDBY nRST_STDBY : OPTR_nRST_STDBY_Field := 16#0#; -- nRST_SHDW nRST_SHDW : OPTR_nRST_SHDW_Field := 16#0#; -- unspecified Reserved_15_15 : Interfaces.STM32.Bit := 16#0#; -- Independent watchdog selection IDWG_SW : OPTR_IDWG_SW_Field := 16#0#; -- Independent watchdog counter freeze in Stop mode IWDG_STOP : OPTR_IWDG_STOP_Field := 16#0#; -- Independent watchdog counter freeze in Standby mode IWDG_STDBY : OPTR_IWDG_STDBY_Field := 16#0#; -- Window watchdog selection WWDG_SW : OPTR_WWDG_SW_Field := 16#0#; -- unspecified Reserved_20_22 : Interfaces.STM32.UInt3 := 16#0#; -- Boot configuration nBOOT1 : OPTR_nBOOT1_Field := 16#0#; -- SRAM2 parity check enable SRAM2_PE : OPTR_SRAM2_PE_Field := 16#0#; -- SRAM2 Erase when system reset SRAM2_RST : OPTR_SRAM2_RST_Field := 16#0#; -- nSWBOOT0 nSWBOOT0 : OPTR_nSWBOOT0_Field := 16#0#; -- nBOOT0 nBOOT0 : OPTR_nBOOT0_Field := 16#0#; -- NRST_MODE NRST_MODE : OPTR_NRST_MODE_Field := 16#3#; -- IRHEN IRHEN : OPTR_IRHEN_Field := 16#1#; -- unspecified Reserved_31_31 : Interfaces.STM32.Bit := 16#1#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OPTR_Register use record RDP at 0 range 0 .. 7; BOR_LEV at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; nRST_STOP at 0 range 12 .. 12; nRST_STDBY at 0 range 13 .. 13; nRST_SHDW at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; IDWG_SW at 0 range 16 .. 16; IWDG_STOP at 0 range 17 .. 17; IWDG_STDBY at 0 range 18 .. 18; WWDG_SW at 0 range 19 .. 19; Reserved_20_22 at 0 range 20 .. 22; nBOOT1 at 0 range 23 .. 23; SRAM2_PE at 0 range 24 .. 24; SRAM2_RST at 0 range 25 .. 25; nSWBOOT0 at 0 range 26 .. 26; nBOOT0 at 0 range 27 .. 27; NRST_MODE at 0 range 28 .. 29; IRHEN at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype PCROP1SR_PCROP1_STRT_Field is Interfaces.STM32.UInt15; -- Flash Bank 1 PCROP Start address register type PCROP1SR_Register is record -- Bank 1 PCROP area start offset PCROP1_STRT : PCROP1SR_PCROP1_STRT_Field := 16#0#; -- unspecified Reserved_15_31 : Interfaces.STM32.UInt17 := 16#1FFFE#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PCROP1SR_Register use record PCROP1_STRT at 0 range 0 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype PCROP1ER_PCROP1_END_Field is Interfaces.STM32.UInt15; subtype PCROP1ER_PCROP_RDP_Field is Interfaces.STM32.Bit; -- Flash Bank 1 PCROP End address register type PCROP1ER_Register is record -- Bank 1 PCROP area end offset PCROP1_END : PCROP1ER_PCROP1_END_Field := 16#0#; -- unspecified Reserved_15_30 : Interfaces.STM32.UInt16 := 16#1FFE#; -- PCROP area preserved when RDP level decreased PCROP_RDP : PCROP1ER_PCROP_RDP_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PCROP1ER_Register use record PCROP1_END at 0 range 0 .. 14; Reserved_15_30 at 0 range 15 .. 30; PCROP_RDP at 0 range 31 .. 31; end record; subtype WRP1AR_WRP1A_STRT_Field is Interfaces.STM32.UInt7; subtype WRP1AR_WRP1A_END_Field is Interfaces.STM32.UInt7; -- Flash Bank 1 WRP area A address register type WRP1AR_Register is record -- Bank 1 WRP first area start offset WRP1A_STRT : WRP1AR_WRP1A_STRT_Field := 16#0#; -- unspecified Reserved_7_15 : Interfaces.STM32.UInt9 := 16#0#; -- Bank 1 WRP first area A end offset WRP1A_END : WRP1AR_WRP1A_END_Field := 16#0#; -- unspecified Reserved_23_31 : Interfaces.STM32.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for WRP1AR_Register use record WRP1A_STRT at 0 range 0 .. 6; Reserved_7_15 at 0 range 7 .. 15; WRP1A_END at 0 range 16 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype WRP1BR_WRP1B_STRT_Field is Interfaces.STM32.UInt7; subtype WRP1BR_WRP1B_END_Field is Interfaces.STM32.UInt7; -- Flash Bank 1 WRP area B address register type WRP1BR_Register is record -- Bank 1 WRP second area B end offset WRP1B_STRT : WRP1BR_WRP1B_STRT_Field := 16#0#; -- unspecified Reserved_7_15 : Interfaces.STM32.UInt9 := 16#0#; -- Bank 1 WRP second area B start offset WRP1B_END : WRP1BR_WRP1B_END_Field := 16#0#; -- unspecified Reserved_23_31 : Interfaces.STM32.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for WRP1BR_Register use record WRP1B_STRT at 0 range 0 .. 6; Reserved_7_15 at 0 range 7 .. 15; WRP1B_END at 0 range 16 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype SEC1R_SEC_SIZE1_Field is Interfaces.STM32.Byte; subtype SEC1R_BOOT_LOCK_Field is Interfaces.STM32.Bit; -- securable area bank1 register type SEC1R_Register is record -- SEC_SIZE1 SEC_SIZE1 : SEC1R_SEC_SIZE1_Field := 16#0#; -- unspecified Reserved_8_15 : Interfaces.STM32.Byte := 16#FF#; -- BOOT_LOCK BOOT_LOCK : SEC1R_BOOT_LOCK_Field := 16#0#; -- unspecified Reserved_17_31 : Interfaces.STM32.UInt15 := 16#7F80#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SEC1R_Register use record SEC_SIZE1 at 0 range 0 .. 7; Reserved_8_15 at 0 range 8 .. 15; BOOT_LOCK at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Flash type FLASH_Peripheral is record -- Access control register ACR : aliased ACR_Register; -- Power down key register PDKEYR : aliased Interfaces.STM32.UInt32; -- Flash key register KEYR : aliased Interfaces.STM32.UInt32; -- Option byte key register OPTKEYR : aliased Interfaces.STM32.UInt32; -- Status register SR : aliased SR_Register; -- Flash control register CR : aliased CR_Register; -- Flash ECC register ECCR : aliased ECCR_Register; -- Flash option register OPTR : aliased OPTR_Register; -- Flash Bank 1 PCROP Start address register PCROP1SR : aliased PCROP1SR_Register; -- Flash Bank 1 PCROP End address register PCROP1ER : aliased PCROP1ER_Register; -- Flash Bank 1 WRP area A address register WRP1AR : aliased WRP1AR_Register; -- Flash Bank 1 WRP area B address register WRP1BR : aliased WRP1BR_Register; -- securable area bank1 register SEC1R : aliased SEC1R_Register; end record with Volatile; for FLASH_Peripheral use record ACR at 16#0# range 0 .. 31; PDKEYR at 16#4# range 0 .. 31; KEYR at 16#8# range 0 .. 31; OPTKEYR at 16#C# range 0 .. 31; SR at 16#10# range 0 .. 31; CR at 16#14# range 0 .. 31; ECCR at 16#18# range 0 .. 31; OPTR at 16#20# range 0 .. 31; PCROP1SR at 16#24# range 0 .. 31; PCROP1ER at 16#28# range 0 .. 31; WRP1AR at 16#2C# range 0 .. 31; WRP1BR at 16#30# range 0 .. 31; SEC1R at 16#70# range 0 .. 31; end record; -- Flash FLASH_Periph : aliased FLASH_Peripheral with Import, Address => FLASH_Base; end Interfaces.STM32.Flash;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Glfw.Enums; package body Glfw.Events.Mouse is function Pressed (Query : Button) return Boolean is begin return API.Get_Mouse_Button (Query) = Events.Press; end Pressed; procedure Get_Position (X, Y : out Coordinate) is begin API.Get_Mouse_Pos (X, Y); end Get_Position; procedure Set_Position (X, Y : Coordinate) is begin API.Set_Mouse_Pos (X, Y); end Set_Position; function Wheel return Wheel_Position is begin return API.Get_Mouse_Wheel; end Wheel; procedure Set_Wheel (Value : Wheel_Position) is begin API.Set_Mouse_Wheel (Value); end Set_Wheel; procedure Raw_Button_Callback (Subject : Button; Action : Button_State); procedure Raw_Position_Callback (X, Y : Coordinate); procedure Raw_Wheel_Callback (Pos : Wheel_Position); pragma Convention (C, Raw_Button_Callback); pragma Convention (C, Raw_Position_Callback); pragma Convention (C, Raw_Wheel_Callback); User_Button_Callback : Button_Callback; User_Position_Callback : Position_Callback; User_Wheel_Callback : Wheel_Callback; procedure Raw_Button_Callback (Subject : Button; Action : Button_State) is begin if User_Button_Callback /= null then User_Button_Callback (Subject, Action); end if; end Raw_Button_Callback; procedure Raw_Position_Callback (X, Y : Coordinate) is begin if User_Position_Callback /= null then User_Position_Callback (X, Y); end if; end Raw_Position_Callback; procedure Raw_Wheel_Callback (Pos : Wheel_Position) is begin if User_Wheel_Callback /= null then User_Wheel_Callback (Pos); end if; end Raw_Wheel_Callback; procedure Set_Button_Callback (Callback : Button_Callback) is begin User_Button_Callback := Callback; if Callback /= null then API.Set_Mouse_Button_Callback (Raw_Button_Callback'Access); else API.Set_Mouse_Button_Callback (null); end if; end Set_Button_Callback; procedure Set_Position_Callback (Callback : Position_Callback) is begin User_Position_Callback := Callback; if Callback /= null then API.Set_Mouse_Pos_Callback (Raw_Position_Callback'Access); else API.Set_Mouse_Pos_Callback (null); end if; end Set_Position_Callback; procedure Set_Wheel_Callback (Callback : Wheel_Callback) is begin User_Wheel_Callback := Callback; if Callback /= null then API.Set_Mouse_Wheel_Callback (Raw_Wheel_Callback'Access); else API.Set_Mouse_Wheel_Callback (null); end if; end Set_Wheel_Callback; procedure Toggle_Mouse_Cursor (Visible : Boolean) is begin if Visible then API.Enable (Enums.Mouse_Cursor); else API.Disable (Enums.Mouse_Cursor); end if; end Toggle_Mouse_Cursor; procedure Toggle_Sticky_Mouse_Buttons (Enable : Boolean) is begin if Enable then API.Enable (Enums.Sticky_Mouse_Buttons); else API.Disable (Enums.Sticky_Mouse_Buttons); end if; end Toggle_Sticky_Mouse_Buttons; end Glfw.Events.Mouse;
-- flyweights-untracked_ptrs.adb -- A package of generalised references which point to resources inside a -- Flyweight without tracking or releasing those resources -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -- PERFORMANCE OF THIS SOFTWARE. pragma Profile (No_Implementation_Extensions); with Ada.Unchecked_Conversion; package body Flyweights.Untracked_Ptrs is type Access_Element is access all Element; function Access_Element_To_Element_Access is new Ada.Unchecked_Conversion(Source => Access_Element, Target => Element_Access); subtype Hash_Type is Ada.Containers.Hash_Type; use type Ada.Containers.Hash_Type; --------------------------- -- Untracked_Element_Ptr -- --------------------------- function P (P : Untracked_Element_Ptr) return E_Ref is (E_Ref'(E => P.E)); function Get (P : Untracked_Element_Ptr) return Element_Access is (P.E); function Make_Ref (P : Untracked_Element_Ptr'Class) return Untracked_Element_Ref is (Untracked_Element_Ref'(E => P.E, Containing_Flyweight => P.Containing_Flyweight, Containing_Bucket => P.Containing_Bucket) ); function Insert_Ptr (F : aliased in out Flyweight_Hashtables.Flyweight; E : in out Element_Access) return Untracked_Element_Ptr is Bucket : Hash_Type ; begin Flyweight_Hashtables.Insert (F => F, Bucket => Bucket, Data_Ptr => E); return Untracked_Element_Ptr'(E => E, Containing_Flyweight => F'Access, Containing_Bucket => Bucket); end Insert_Ptr; --------------------------- -- Untracked_Element_Ref -- --------------------------- function Get (P : Untracked_Element_Ref) return Element_Access is (Access_Element_To_Element_Access(P.E)); function Make_Ptr (R : Untracked_Element_Ref'Class) return Untracked_Element_Ptr is begin return Untracked_Element_Ptr'(E => Access_Element_To_Element_Access(R.E), Containing_Flyweight => R.Containing_Flyweight, Containing_Bucket => R.Containing_Bucket); end Make_Ptr; function Insert_Ref (F : aliased in out Flyweight_Hashtables.Flyweight; E : in out Element_Access) return Untracked_Element_Ref is Bucket : Hash_Type ; begin Flyweight_Hashtables.Insert (F => F, Bucket => Bucket, Data_Ptr => E); return Untracked_Element_Ref'(E => E, Containing_Flyweight => F'Access, Containing_Bucket => Bucket); end Insert_Ref; end Flyweights.Untracked_Ptrs;
-- PR ada/43106 -- Testcase by Bill Neven <neven@hitt.nl> -- { dg-do run } -- { dg-options "-O2 -flto" { target lto } } with Lto1_Pkg; use Lto1_Pkg; procedure Lto1 is Radar : Radar_T; begin Radar.Sensor_Type := radcmb; Initialize (Radar); end;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Internals.UML_Elements; with AMF.Standard_Profile_L2.Sends; with AMF.UML.Usages; with AMF.Visitors; package AMF.Internals.Standard_Profile_L2_Sends is type Standard_Profile_L2_Send_Proxy is limited new AMF.Internals.UML_Elements.UML_Element_Base and AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send with null record; overriding function Get_Base_Usage (Self : not null access constant Standard_Profile_L2_Send_Proxy) return AMF.UML.Usages.UML_Usage_Access; -- Getter of Send::base_Usage. -- overriding procedure Set_Base_Usage (Self : not null access Standard_Profile_L2_Send_Proxy; To : AMF.UML.Usages.UML_Usage_Access); -- Setter of Send::base_Usage. -- overriding procedure Enter_Element (Self : not null access constant Standard_Profile_L2_Send_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); overriding procedure Leave_Element (Self : not null access constant Standard_Profile_L2_Send_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); overriding procedure Visit_Element (Self : not null access constant Standard_Profile_L2_Send_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); end AMF.Internals.Standard_Profile_L2_Sends;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Testsuite Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with League.Strings; with Web_Services.SOAP.Payloads.Encoders.Registry; with SOAPConf.Payloads; package body SOAPConf.Encoders is Test_URI : constant League.Strings.Universal_String := League.Strings.To_Universal_String ("http://example.org/ts-tests"); Test_Prefix : constant League.Strings.Universal_String := League.Strings.To_Universal_String ("test"); Response_Ok_Name : constant League.Strings.Universal_String := League.Strings.To_Universal_String ("responseOk"); procedure Encode_Response_OK (Payload : SOAPConf.Payloads.Response_Ok; Writer : in out XML.SAX.Writers.SAX_Writer'Class); ------------ -- Create -- ------------ overriding function Create (Dummy : not null access Boolean) return Test_Payload_Encoder is begin return X : Test_Payload_Encoder; end Create; ------------ -- Encode -- ------------ overriding procedure Encode (Self : Test_Payload_Encoder; Payload : Web_Services.SOAP.Payloads.Abstract_SOAP_Payload'Class; Writer : in out XML.SAX.Writers.SAX_Writer'Class) is begin if Payload in SOAPConf.Payloads.Response_Ok then Encode_Response_OK (SOAPConf.Payloads.Response_Ok (Payload), Writer); else raise Program_Error; end if; end Encode; ------------------------ -- Encode_Response_OK -- ------------------------ procedure Encode_Response_OK (Payload : SOAPConf.Payloads.Response_Ok; Writer : in out XML.SAX.Writers.SAX_Writer'Class) is begin Writer.Start_Prefix_Mapping (Test_Prefix, Test_URI); Writer.Start_Element (Test_URI, Response_Ok_Name); Writer.Characters (Payload.Text); Writer.End_Element (Test_URI, Response_Ok_Name); end Encode_Response_OK; begin Web_Services.SOAP.Payloads.Encoders.Registry.Register (SOAPConf.Payloads.Response_Ok'Tag, Test_Payload_Encoder'Tag); end SOAPConf.Encoders;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . F I N A L I Z A T I O N -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2011, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Warnings (Off); with System.Finalization_Root; pragma Warnings (On); package Ada.Finalization is pragma Pure_12; -- Ada.Finalization is declared pure in Ada 2012 (AI05-0212) pragma Preelaborate; pragma Remote_Types; -- The above apply in versions of Ada before Ada 2012 type Controlled is abstract tagged private; pragma Preelaborable_Initialization (Controlled); procedure Initialize (Object : in out Controlled); procedure Adjust (Object : in out Controlled); procedure Finalize (Object : in out Controlled); type Limited_Controlled is abstract tagged limited private; pragma Preelaborable_Initialization (Limited_Controlled); procedure Initialize (Object : in out Limited_Controlled); procedure Finalize (Object : in out Limited_Controlled); private package SFR renames System.Finalization_Root; type Controlled is abstract new SFR.Root_Controlled with null record; -- In order to simplify the implementation, the mechanism in Process_Full_ -- View ensures that the full view is limited even though the parent type -- is not. type Limited_Controlled is abstract new SFR.Root_Controlled with null record; end Ada.Finalization;
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, -- and/or sell copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -- DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- with Ada.Containers.Indefinite_Holders; with Ada.Containers.Indefinite_Doubly_Linked_Lists; with LSE.Model.Grammar.Symbol; use LSE.Model.Grammar.Symbol; -- @description -- This package provide a pointer and a list of Symbol. -- package LSE.Model.Grammar.Symbol_Utils is package Ptr is new Ada.Containers.Indefinite_Holders (Instance'Class); use Ptr; package P_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists ( Element_Type => Ptr.Holder ); end LSE.Model.Grammar.Symbol_Utils;
-- Copyright 2012-2014 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Update_Small (S : in out Small) is begin null; end Update_Small; end Pck;
-- Copyright (C) 2015-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Update_Signed_Small (S : in out Signed_Small) is begin null; end Update_Signed_Small; end Pck;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ S T R M -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Routines to build stream subprograms for composite types with Exp_Tss; use Exp_Tss; with Types; use Types; package Exp_Strm is function Build_Elementary_Input_Call (N : Node_Id) return Node_Id; -- Build call to Read attribute function for elementary type. Also used -- for Input attributes for elementary types with an appropriate extra -- assignment statement. N is the attribute reference node. function Build_Elementary_Write_Call (N : Node_Id) return Node_Id; -- Build call to Write attribute function for elementary type. Also used -- for Output attributes for elementary types (since the effect of the -- two attributes is identical for elementary types). N is the attribute -- reference node. function Build_Stream_Attr_Profile (Loc : Source_Ptr; Typ : Entity_Id; Nam : TSS_Name_Type) return List_Id; -- Builds the parameter profile for the stream attribute identified by -- the given name. This is used for the tagged case to build the spec -- for the primitive operation. -- The following routines build procedures and functions for stream -- attributes applied to composite types. For each of these routines, -- Loc is used to provide the location for the constructed subprogram -- declaration. Typ is the base type to which the subprogram applies -- (i.e. the base type of the stream attribute prefix). The returned -- results are the declaration and name (entity) of the subprogram. procedure Build_Array_Input_Function (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Fnam : out Entity_Id); -- Build function for Input attribute for array type procedure Build_Array_Output_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Output attribute for array type procedure Build_Array_Read_Procedure (Nod : Node_Id; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Read attribute for array type. Nod provides the -- Sloc value for generated code. procedure Build_Array_Write_Procedure (Nod : Node_Id; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Write attribute for array type. Nod provides the -- Sloc value for generated code. procedure Build_Mutable_Record_Read_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure to Read a record with default discriminants. -- Discriminants must be read explicitly (RM 13.13.2(9)) in the -- same manner as is done for 'Input. procedure Build_Mutable_Record_Write_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure to write a record with default discriminants. -- Discriminants must be written explicitly (RM 13.13.2(9)) in -- the same manner as is done for 'Output. procedure Build_Record_Or_Elementary_Input_Function (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Fnam : out Entity_Id); -- Build function for Input attribute for record type or for an elementary -- type (the latter is used only in the case where a user-defined Read -- routine is defined, since, in other cases, Input calls the appropriate -- runtime library routine directly). procedure Build_Record_Or_Elementary_Output_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Output attribute for record type or for an -- elementary type (the latter is used only in the case where a -- user defined Write routine is defined, since in other cases, -- Output calls the appropriate runtime library routine directly. procedure Build_Record_Read_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Read attribute for record type procedure Build_Record_Write_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : out Entity_Id); -- Build procedure for Write attribute for record type procedure Build_Stream_Procedure (Loc : Source_Ptr; Typ : Entity_Id; Decl : out Node_Id; Pnam : Entity_Id; Stms : List_Id; Outp : Boolean); -- Called to build an array or record stream procedure. The first three -- arguments are the same as Build_Record_Or_Elementary_Output_Procedure. -- Stms is the list of statements for the body (the declaration list is -- always null), and Pnam is the name of the constructed procedure. -- Used by Exp_Dist to generate stream-oriented attributes for RACWs. end Exp_Strm;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . V E C T O R S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2004-2016, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Containers.Generic_Array_Sort; with Ada.Unchecked_Deallocation; with System; use type System.Address; package body Ada.Containers.Vectors is pragma Warnings (Off, "variable ""Busy*"" is not referenced"); pragma Warnings (Off, "variable ""Lock*"" is not referenced"); -- See comment in Ada.Containers.Helpers procedure Free is new Ada.Unchecked_Deallocation (Elements_Type, Elements_Access); procedure Append_Slow_Path (Container : in out Vector; New_Item : Element_Type; Count : Count_Type); -- This is the slow path for Append. This is split out to minimize the size -- of Append, because we have Inline (Append). --------- -- "&" -- --------- -- We decide that the capacity of the result of "&" is the minimum needed -- -- the sum of the lengths of the vector parameters. We could decide to -- make it larger, but we have no basis for knowing how much larger, so we -- just allocate the minimum amount of storage. function "&" (Left, Right : Vector) return Vector is begin return Result : Vector do Reserve_Capacity (Result, Length (Left) + Length (Right)); Append (Result, Left); Append (Result, Right); end return; end "&"; function "&" (Left : Vector; Right : Element_Type) return Vector is begin return Result : Vector do Reserve_Capacity (Result, Length (Left) + 1); Append (Result, Left); Append (Result, Right); end return; end "&"; function "&" (Left : Element_Type; Right : Vector) return Vector is begin return Result : Vector do Reserve_Capacity (Result, 1 + Length (Right)); Append (Result, Left); Append (Result, Right); end return; end "&"; function "&" (Left, Right : Element_Type) return Vector is begin return Result : Vector do Reserve_Capacity (Result, 1 + 1); Append (Result, Left); Append (Result, Right); end return; end "&"; --------- -- "=" -- --------- overriding function "=" (Left, Right : Vector) return Boolean is begin if Left.Last /= Right.Last then return False; end if; if Left.Length = 0 then return True; end if; declare -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. Lock_Left : With_Lock (Left.TC'Unrestricted_Access); Lock_Right : With_Lock (Right.TC'Unrestricted_Access); begin for J in Index_Type range Index_Type'First .. Left.Last loop if Left.Elements.EA (J) /= Right.Elements.EA (J) then return False; end if; end loop; end; return True; end "="; ------------ -- Adjust -- ------------ procedure Adjust (Container : in out Vector) is begin -- If the counts are nonzero, execution is technically erroneous, but -- it seems friendly to allow things like concurrent "=" on shared -- constants. Zero_Counts (Container.TC); if Container.Last = No_Index then Container.Elements := null; return; end if; declare L : constant Index_Type := Container.Last; EA : Elements_Array renames Container.Elements.EA (Index_Type'First .. L); begin Container.Elements := null; -- Note: it may seem that the following assignment to Container.Last -- is useless, since we assign it to L below. However this code is -- used in case 'new Elements_Type' below raises an exception, to -- keep Container in a consistent state. Container.Last := No_Index; Container.Elements := new Elements_Type'(L, EA); Container.Last := L; end; end Adjust; ------------ -- Append -- ------------ procedure Append (Container : in out Vector; New_Item : Vector) is begin if Is_Empty (New_Item) then return; elsif Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; else Insert (Container, Container.Last + 1, New_Item); end if; end Append; procedure Append (Container : in out Vector; New_Item : Element_Type; Count : Count_Type := 1) is begin -- In the general case, we pass the buck to Insert, but for efficiency, -- we check for the usual case where Count = 1 and the vector has enough -- room for at least one more element. if Count = 1 and then Container.Elements /= null and then Container.Last /= Container.Elements.Last then TC_Check (Container.TC); -- Increment Container.Last after assigning the New_Item, so we -- leave the Container unmodified in case Finalize/Adjust raises -- an exception. declare New_Last : constant Index_Type := Container.Last + 1; begin Container.Elements.EA (New_Last) := New_Item; Container.Last := New_Last; end; else Append_Slow_Path (Container, New_Item, Count); end if; end Append; ---------------------- -- Append_Slow_Path -- ---------------------- procedure Append_Slow_Path (Container : in out Vector; New_Item : Element_Type; Count : Count_Type) is begin if Count = 0 then return; elsif Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; else Insert (Container, Container.Last + 1, New_Item, Count); end if; end Append_Slow_Path; ------------ -- Assign -- ------------ procedure Assign (Target : in out Vector; Source : Vector) is begin if Target'Address = Source'Address then return; else Target.Clear; Target.Append (Source); end if; end Assign; -------------- -- Capacity -- -------------- function Capacity (Container : Vector) return Count_Type is begin if Container.Elements = null then return 0; else return Container.Elements.EA'Length; end if; end Capacity; ----------- -- Clear -- ----------- procedure Clear (Container : in out Vector) is begin TC_Check (Container.TC); Container.Last := No_Index; end Clear; ------------------------ -- Constant_Reference -- ------------------------ function Constant_Reference (Container : aliased Vector; Position : Cursor) return Constant_Reference_Type is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; end if; if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; end if; if Position.Index > Position.Container.Last then raise Constraint_Error with "Position cursor is out of range"; end if; end if; declare TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access; begin return R : constant Constant_Reference_Type := (Element => Container.Elements.EA (Position.Index)'Access, Control => (Controlled with TC)) do Lock (TC.all); end return; end; end Constant_Reference; function Constant_Reference (Container : aliased Vector; Index : Index_Type) return Constant_Reference_Type is begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; declare TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access; begin return R : constant Constant_Reference_Type := (Element => Container.Elements.EA (Index)'Access, Control => (Controlled with TC)) do Lock (TC.all); end return; end; end Constant_Reference; -------------- -- Contains -- -------------- function Contains (Container : Vector; Item : Element_Type) return Boolean is begin return Find_Index (Container, Item) /= No_Index; end Contains; ---------- -- Copy -- ---------- function Copy (Source : Vector; Capacity : Count_Type := 0) return Vector is C : Count_Type; begin if Capacity >= Source.Length then C := Capacity; else C := Source.Length; if Checks and then Capacity /= 0 then raise Capacity_Error with "Requested capacity is less than Source length"; end if; end if; return Target : Vector do Target.Reserve_Capacity (C); Target.Assign (Source); end return; end Copy; ------------ -- Delete -- ------------ procedure Delete (Container : in out Vector; Index : Extended_Index; Count : Count_Type := 1) is Old_Last : constant Index_Type'Base := Container.Last; New_Last : Index_Type'Base; Count2 : Count_Type'Base; -- count of items from Index to Old_Last J : Index_Type'Base; -- first index of items that slide down begin -- Delete removes items from the vector, the number of which is the -- minimum of the specified Count and the items (if any) that exist from -- Index to Container.Last. There are no constraints on the specified -- value of Count (it can be larger than what's available at this -- position in the vector, for example), but there are constraints on -- the allowed values of the Index. -- As a precondition on the generic actual Index_Type, the base type -- must include Index_Type'Pred (Index_Type'First); this is the value -- that Container.Last assumes when the vector is empty. However, we do -- not allow that as the value for Index when specifying which items -- should be deleted, so we must manually check. (That the user is -- allowed to specify the value at all here is a consequence of the -- declaration of the Extended_Index subtype, which includes the values -- in the base range that immediately precede and immediately follow the -- values in the Index_Type.) if Checks and then Index < Index_Type'First then raise Constraint_Error with "Index is out of range (too small)"; end if; -- We do allow a value greater than Container.Last to be specified as -- the Index, but only if it's immediately greater. This allows the -- corner case of deleting no items from the back end of the vector to -- be treated as a no-op. (It is assumed that specifying an index value -- greater than Last + 1 indicates some deeper flaw in the caller's -- algorithm, so that case is treated as a proper error.) if Index > Old_Last then if Checks and then Index > Old_Last + 1 then raise Constraint_Error with "Index is out of range (too large)"; else return; end if; end if; -- Here and elsewhere we treat deleting 0 items from the container as a -- no-op, even when the container is busy, so we simply return. if Count = 0 then return; end if; -- The tampering bits exist to prevent an item from being deleted (or -- otherwise harmfully manipulated) while it is being visited. Query, -- Update, and Iterate increment the busy count on entry, and decrement -- the count on exit. Delete checks the count to determine whether it is -- being called while the associated callback procedure is executing. TC_Check (Container.TC); -- We first calculate what's available for deletion starting at -- Index. Here and elsewhere we use the wider of Index_Type'Base and -- Count_Type'Base as the type for intermediate values. (See function -- Length for more information.) if Count_Type'Base'Last >= Index_Type'Pos (Index_Type'Base'Last) then Count2 := Count_Type'Base (Old_Last) - Count_Type'Base (Index) + 1; else Count2 := Count_Type'Base (Old_Last - Index + 1); end if; -- If more elements are requested (Count) for deletion than are -- available (Count2) for deletion beginning at Index, then everything -- from Index is deleted. There are no elements to slide down, and so -- all we need to do is set the value of Container.Last. if Count >= Count2 then Container.Last := Index - 1; return; end if; -- There are some elements that aren't being deleted (the requested -- count was less than the available count), so we must slide them down -- to Index. We first calculate the index values of the respective array -- slices, using the wider of Index_Type'Base and Count_Type'Base as the -- type for intermediate calculations. For the elements that slide down, -- index value New_Last is the last index value of their new home, and -- index value J is the first index of their old home. if Index_Type'Base'Last >= Count_Type_Last then New_Last := Old_Last - Index_Type'Base (Count); J := Index + Index_Type'Base (Count); else New_Last := Index_Type'Base (Count_Type'Base (Old_Last) - Count); J := Index_Type'Base (Count_Type'Base (Index) + Count); end if; -- The internal elements array isn't guaranteed to exist unless we have -- elements, but we have that guarantee here because we know we have -- elements to slide. The array index values for each slice have -- already been determined, so we just slide down to Index the elements -- that weren't deleted. declare EA : Elements_Array renames Container.Elements.EA; begin EA (Index .. New_Last) := EA (J .. Old_Last); Container.Last := New_Last; end; end Delete; procedure Delete (Container : in out Vector; Position : in out Cursor; Count : Count_Type := 1) is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; elsif Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; elsif Position.Index > Container.Last then raise Program_Error with "Position index is out of range"; end if; end if; Delete (Container, Position.Index, Count); Position := No_Element; end Delete; ------------------ -- Delete_First -- ------------------ procedure Delete_First (Container : in out Vector; Count : Count_Type := 1) is begin if Count = 0 then return; elsif Count >= Length (Container) then Clear (Container); return; else Delete (Container, Index_Type'First, Count); end if; end Delete_First; ----------------- -- Delete_Last -- ----------------- procedure Delete_Last (Container : in out Vector; Count : Count_Type := 1) is begin -- It is not permitted to delete items while the container is busy (for -- example, we're in the middle of a passive iteration). However, we -- always treat deleting 0 items as a no-op, even when we're busy, so we -- simply return without checking. if Count = 0 then return; end if; -- The tampering bits exist to prevent an item from being deleted (or -- otherwise harmfully manipulated) while it is being visited. Query, -- Update, and Iterate increment the busy count on entry, and decrement -- the count on exit. Delete_Last checks the count to determine whether -- it is being called while the associated callback procedure is -- executing. TC_Check (Container.TC); -- There is no restriction on how large Count can be when deleting -- items. If it is equal or greater than the current length, then this -- is equivalent to clearing the vector. (In particular, there's no need -- for us to actually calculate the new value for Last.) -- If the requested count is less than the current length, then we must -- calculate the new value for Last. For the type we use the widest of -- Index_Type'Base and Count_Type'Base for the intermediate values of -- our calculation. (See the comments in Length for more information.) if Count >= Container.Length then Container.Last := No_Index; elsif Index_Type'Base'Last >= Count_Type_Last then Container.Last := Container.Last - Index_Type'Base (Count); else Container.Last := Index_Type'Base (Count_Type'Base (Container.Last) - Count); end if; end Delete_Last; ------------- -- Element -- ------------- function Element (Container : Vector; Index : Index_Type) return Element_Type is begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; return Container.Elements.EA (Index); end Element; function Element (Position : Cursor) return Element_Type is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; elsif Position.Index > Position.Container.Last then raise Constraint_Error with "Position cursor is out of range"; end if; end if; return Position.Container.Elements.EA (Position.Index); end Element; -------------- -- Finalize -- -------------- procedure Finalize (Container : in out Vector) is X : Elements_Access := Container.Elements; begin Container.Elements := null; Container.Last := No_Index; Free (X); TC_Check (Container.TC); end Finalize; procedure Finalize (Object : in out Iterator) is begin Unbusy (Object.Container.TC); end Finalize; ---------- -- Find -- ---------- function Find (Container : Vector; Item : Element_Type; Position : Cursor := No_Element) return Cursor is begin if Checks and then Position.Container /= null then if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; end if; if Position.Index > Container.Last then raise Program_Error with "Position index is out of range"; end if; end if; -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. declare Lock : With_Lock (Container.TC'Unrestricted_Access); begin for J in Position.Index .. Container.Last loop if Container.Elements.EA (J) = Item then return Cursor'(Container'Unrestricted_Access, J); end if; end loop; return No_Element; end; end Find; ---------------- -- Find_Index -- ---------------- function Find_Index (Container : Vector; Item : Element_Type; Index : Index_Type := Index_Type'First) return Extended_Index is -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. Lock : With_Lock (Container.TC'Unrestricted_Access); begin for Indx in Index .. Container.Last loop if Container.Elements.EA (Indx) = Item then return Indx; end if; end loop; return No_Index; end Find_Index; ----------- -- First -- ----------- function First (Container : Vector) return Cursor is begin if Is_Empty (Container) then return No_Element; end if; return (Container'Unrestricted_Access, Index_Type'First); end First; function First (Object : Iterator) return Cursor is begin -- The value of the iterator object's Index component influences the -- behavior of the First (and Last) selector function. -- When the Index component is No_Index, this means the iterator -- object was constructed without a start expression, in which case the -- (forward) iteration starts from the (logical) beginning of the entire -- sequence of items (corresponding to Container.First, for a forward -- iterator). -- Otherwise, this is iteration over a partial sequence of items. -- When the Index component isn't No_Index, the iterator object was -- constructed with a start expression, that specifies the position -- from which the (forward) partial iteration begins. if Object.Index = No_Index then return First (Object.Container.all); else return Cursor'(Object.Container, Object.Index); end if; end First; ------------------- -- First_Element -- ------------------- function First_Element (Container : Vector) return Element_Type is begin if Checks and then Container.Last = No_Index then raise Constraint_Error with "Container is empty"; else return Container.Elements.EA (Index_Type'First); end if; end First_Element; ----------------- -- First_Index -- ----------------- function First_Index (Container : Vector) return Index_Type is pragma Unreferenced (Container); begin return Index_Type'First; end First_Index; --------------------- -- Generic_Sorting -- --------------------- package body Generic_Sorting is --------------- -- Is_Sorted -- --------------- function Is_Sorted (Container : Vector) return Boolean is begin if Container.Last <= Index_Type'First then return True; end if; -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. declare Lock : With_Lock (Container.TC'Unrestricted_Access); EA : Elements_Array renames Container.Elements.EA; begin for J in Index_Type'First .. Container.Last - 1 loop if EA (J + 1) < EA (J) then return False; end if; end loop; return True; end; end Is_Sorted; ----------- -- Merge -- ----------- procedure Merge (Target, Source : in out Vector) is I : Index_Type'Base := Target.Last; J : Index_Type'Base; begin -- The semantics of Merge changed slightly per AI05-0021. It was -- originally the case that if Target and Source denoted the same -- container object, then the GNAT implementation of Merge did -- nothing. However, it was argued that RM05 did not precisely -- specify the semantics for this corner case. The decision of the -- ARG was that if Target and Source denote the same non-empty -- container object, then Program_Error is raised. if Source.Last < Index_Type'First then -- Source is empty return; end if; if Checks and then Target'Address = Source'Address then raise Program_Error with "Target and Source denote same non-empty container"; end if; if Target.Last < Index_Type'First then -- Target is empty Move (Target => Target, Source => Source); return; end if; TC_Check (Source.TC); Target.Set_Length (Length (Target) + Length (Source)); -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. declare TA : Elements_Array renames Target.Elements.EA; SA : Elements_Array renames Source.Elements.EA; Lock_Target : With_Lock (Target.TC'Unchecked_Access); Lock_Source : With_Lock (Source.TC'Unchecked_Access); begin J := Target.Last; while Source.Last >= Index_Type'First loop pragma Assert (Source.Last <= Index_Type'First or else not (SA (Source.Last) < SA (Source.Last - 1))); if I < Index_Type'First then TA (Index_Type'First .. J) := SA (Index_Type'First .. Source.Last); Source.Last := No_Index; exit; end if; pragma Assert (I <= Index_Type'First or else not (TA (I) < TA (I - 1))); if SA (Source.Last) < TA (I) then TA (J) := TA (I); I := I - 1; else TA (J) := SA (Source.Last); Source.Last := Source.Last - 1; end if; J := J - 1; end loop; end; end Merge; ---------- -- Sort -- ---------- procedure Sort (Container : in out Vector) is procedure Sort is new Generic_Array_Sort (Index_Type => Index_Type, Element_Type => Element_Type, Array_Type => Elements_Array, "<" => "<"); begin if Container.Last <= Index_Type'First then return; end if; -- The exception behavior for the vector container must match that -- for the list container, so we check for cursor tampering here -- (which will catch more things) instead of for element tampering -- (which will catch fewer things). It's true that the elements of -- this vector container could be safely moved around while (say) an -- iteration is taking place (iteration only increments the busy -- counter), and so technically all we would need here is a test for -- element tampering (indicated by the lock counter), that's simply -- an artifact of our array-based implementation. Logically Sort -- requires a check for cursor tampering. TC_Check (Container.TC); -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. declare Lock : With_Lock (Container.TC'Unchecked_Access); begin Sort (Container.Elements.EA (Index_Type'First .. Container.Last)); end; end Sort; end Generic_Sorting; ------------------------ -- Get_Element_Access -- ------------------------ function Get_Element_Access (Position : Cursor) return not null Element_Access is begin return Position.Container.Elements.EA (Position.Index)'Access; end Get_Element_Access; ----------------- -- Has_Element -- ----------------- function Has_Element (Position : Cursor) return Boolean is begin return Position /= No_Element; end Has_Element; ------------ -- Insert -- ------------ procedure Insert (Container : in out Vector; Before : Extended_Index; New_Item : Element_Type; Count : Count_Type := 1) is Old_Length : constant Count_Type := Container.Length; Max_Length : Count_Type'Base; -- determined from range of Index_Type New_Length : Count_Type'Base; -- sum of current length and Count New_Last : Index_Type'Base; -- last index of vector after insertion Index : Index_Type'Base; -- scratch for intermediate values J : Count_Type'Base; -- scratch New_Capacity : Count_Type'Base; -- length of new, expanded array Dst_Last : Index_Type'Base; -- last index of new, expanded array Dst : Elements_Access; -- new, expanded internal array begin if Checks then -- As a precondition on the generic actual Index_Type, the base type -- must include Index_Type'Pred (Index_Type'First); this is the value -- that Container.Last assumes when the vector is empty. However, we -- do not allow that as the value for Index when specifying where the -- new items should be inserted, so we must manually check. (That the -- user is allowed to specify the value at all here is a consequence -- of the declaration of the Extended_Index subtype, which includes -- the values in the base range that immediately precede and -- immediately follow the values in the Index_Type.) if Before < Index_Type'First then raise Constraint_Error with "Before index is out of range (too small)"; end if; -- We do allow a value greater than Container.Last to be specified as -- the Index, but only if it's immediately greater. This allows for -- the case of appending items to the back end of the vector. (It is -- assumed that specifying an index value greater than Last + 1 -- indicates some deeper flaw in the caller's algorithm, so that case -- is treated as a proper error.) if Before > Container.Last + 1 then raise Constraint_Error with "Before index is out of range (too large)"; end if; end if; -- We treat inserting 0 items into the container as a no-op, even when -- the container is busy, so we simply return. if Count = 0 then return; end if; -- There are two constraints we need to satisfy. The first constraint is -- that a container cannot have more than Count_Type'Last elements, so -- we must check the sum of the current length and the insertion count. -- Note: we cannot simply add these values, because of the possibility -- of overflow. if Checks and then Old_Length > Count_Type'Last - Count then raise Constraint_Error with "Count is out of range"; end if; -- It is now safe compute the length of the new vector, without fear of -- overflow. New_Length := Old_Length + Count; -- The second constraint is that the new Last index value cannot exceed -- Index_Type'Last. In each branch below, we calculate the maximum -- length (computed from the range of values in Index_Type), and then -- compare the new length to the maximum length. If the new length is -- acceptable, then we compute the new last index from that. if Index_Type'Base'Last >= Count_Type_Last then -- We have to handle the case when there might be more values in the -- range of Index_Type than in the range of Count_Type. if Index_Type'First <= 0 then -- We know that No_Index (the same as Index_Type'First - 1) is -- less than 0, so it is safe to compute the following sum without -- fear of overflow. Index := No_Index + Index_Type'Base (Count_Type'Last); if Index <= Index_Type'Last then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the -- maximum number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than in Count_Type, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last - No_Index); end if; else -- No_Index is equal or greater than 0, so we can safely compute -- the difference without fear of overflow (which we would have to -- worry about if No_Index were less than 0, but that case is -- handled above). if Index_Type'Last - No_Index >= Count_Type_Last then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the -- maximum number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than in Count_Type, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last - No_Index); end if; end if; elsif Index_Type'First <= 0 then -- We know that No_Index (the same as Index_Type'First - 1) is less -- than 0, so it is safe to compute the following sum without fear of -- overflow. J := Count_Type'Base (No_Index) + Count_Type'Last; if J <= Count_Type'Base (Index_Type'Last) then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the maximum -- number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than Count_Type does, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index); end if; else -- No_Index is equal or greater than 0, so we can safely compute the -- difference without fear of overflow (which we would have to worry -- about if No_Index were less than 0, but that case is handled -- above). Max_Length := Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index); end if; -- We have just computed the maximum length (number of items). We must -- now compare the requested length to the maximum length, as we do not -- allow a vector expand beyond the maximum (because that would create -- an internal array with a last index value greater than -- Index_Type'Last, with no way to index those elements). if Checks and then New_Length > Max_Length then raise Constraint_Error with "Count is out of range"; end if; -- New_Last is the last index value of the items in the container after -- insertion. Use the wider of Index_Type'Base and Count_Type'Base to -- compute its value from the New_Length. if Index_Type'Base'Last >= Count_Type_Last then New_Last := No_Index + Index_Type'Base (New_Length); else New_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Length); end if; if Container.Elements = null then pragma Assert (Container.Last = No_Index); -- This is the simplest case, with which we must always begin: we're -- inserting items into an empty vector that hasn't allocated an -- internal array yet. Note that we don't need to check the busy bit -- here, because an empty container cannot be busy. -- In order to preserve container invariants, we allocate the new -- internal array first, before setting the Last index value, in case -- the allocation fails (which can happen either because there is no -- storage available, or because element initialization fails). Container.Elements := new Elements_Type' (Last => New_Last, EA => (others => New_Item)); -- The allocation of the new, internal array succeeded, so it is now -- safe to update the Last index, restoring container invariants. Container.Last := New_Last; return; end if; -- The tampering bits exist to prevent an item from being harmfully -- manipulated while it is being visited. Query, Update, and Iterate -- increment the busy count on entry, and decrement the count on -- exit. Insert checks the count to determine whether it is being called -- while the associated callback procedure is executing. TC_Check (Container.TC); -- An internal array has already been allocated, so we must determine -- whether there is enough unused storage for the new items. if New_Length <= Container.Elements.EA'Length then -- In this case, we're inserting elements into a vector that has -- already allocated an internal array, and the existing array has -- enough unused storage for the new items. declare EA : Elements_Array renames Container.Elements.EA; begin if Before > Container.Last then -- The new items are being appended to the vector, so no -- sliding of existing elements is required. EA (Before .. New_Last) := (others => New_Item); else -- The new items are being inserted before some existing -- elements, so we must slide the existing elements up to their -- new home. We use the wider of Index_Type'Base and -- Count_Type'Base as the type for intermediate index values. if Index_Type'Base'Last >= Count_Type_Last then Index := Before + Index_Type'Base (Count); else Index := Index_Type'Base (Count_Type'Base (Before) + Count); end if; EA (Index .. New_Last) := EA (Before .. Container.Last); EA (Before .. Index - 1) := (others => New_Item); end if; end; Container.Last := New_Last; return; end if; -- In this case, we're inserting elements into a vector that has already -- allocated an internal array, but the existing array does not have -- enough storage, so we must allocate a new, longer array. In order to -- guarantee that the amortized insertion cost is O(1), we always -- allocate an array whose length is some power-of-two factor of the -- current array length. (The new array cannot have a length less than -- the New_Length of the container, but its last index value cannot be -- greater than Index_Type'Last.) New_Capacity := Count_Type'Max (1, Container.Elements.EA'Length); while New_Capacity < New_Length loop if New_Capacity > Count_Type'Last / 2 then New_Capacity := Count_Type'Last; exit; else New_Capacity := 2 * New_Capacity; end if; end loop; if New_Capacity > Max_Length then -- We have reached the limit of capacity, so no further expansion -- will occur. (This is not a problem, as there is never a need to -- have more capacity than the maximum container length.) New_Capacity := Max_Length; end if; -- We have computed the length of the new internal array (and this is -- what "vector capacity" means), so use that to compute its last index. if Index_Type'Base'Last >= Count_Type_Last then Dst_Last := No_Index + Index_Type'Base (New_Capacity); else Dst_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Capacity); end if; -- Now we allocate the new, longer internal array. If the allocation -- fails, we have not changed any container state, so no side-effect -- will occur as a result of propagating the exception. Dst := new Elements_Type (Dst_Last); -- We have our new internal array. All that needs to be done now is to -- copy the existing items (if any) from the old array (the "source" -- array, object SA below) to the new array (the "destination" array, -- object DA below), and then deallocate the old array. declare SA : Elements_Array renames Container.Elements.EA; -- source DA : Elements_Array renames Dst.EA; -- destination begin DA (Index_Type'First .. Before - 1) := SA (Index_Type'First .. Before - 1); if Before > Container.Last then DA (Before .. New_Last) := (others => New_Item); else -- The new items are being inserted before some existing elements, -- so we must slide the existing elements up to their new home. if Index_Type'Base'Last >= Count_Type_Last then Index := Before + Index_Type'Base (Count); else Index := Index_Type'Base (Count_Type'Base (Before) + Count); end if; DA (Before .. Index - 1) := (others => New_Item); DA (Index .. New_Last) := SA (Before .. Container.Last); end if; exception when others => Free (Dst); raise; end; -- We have successfully copied the items onto the new array, so the -- final thing to do is deallocate the old array. declare X : Elements_Access := Container.Elements; begin -- We first isolate the old internal array, removing it from the -- container and replacing it with the new internal array, before we -- deallocate the old array (which can fail if finalization of -- elements propagates an exception). Container.Elements := Dst; Container.Last := New_Last; -- The container invariants have been restored, so it is now safe to -- attempt to deallocate the old array. Free (X); end; end Insert; procedure Insert (Container : in out Vector; Before : Extended_Index; New_Item : Vector) is N : constant Count_Type := Length (New_Item); J : Index_Type'Base; begin -- Use Insert_Space to create the "hole" (the destination slice) into -- which we copy the source items. Insert_Space (Container, Before, Count => N); if N = 0 then -- There's nothing else to do here (vetting of parameters was -- performed already in Insert_Space), so we simply return. return; end if; -- We calculate the last index value of the destination slice using the -- wider of Index_Type'Base and count_Type'Base. if Index_Type'Base'Last >= Count_Type_Last then J := (Before - 1) + Index_Type'Base (N); else J := Index_Type'Base (Count_Type'Base (Before - 1) + N); end if; if Container'Address /= New_Item'Address then -- This is the simple case. New_Item denotes an object different -- from Container, so there's nothing special we need to do to copy -- the source items to their destination, because all of the source -- items are contiguous. Container.Elements.EA (Before .. J) := New_Item.Elements.EA (Index_Type'First .. New_Item.Last); return; end if; -- New_Item denotes the same object as Container, so an insertion has -- potentially split the source items. The destination is always the -- range [Before, J], but the source is [Index_Type'First, Before) and -- (J, Container.Last]. We perform the copy in two steps, using each of -- the two slices of the source items. declare L : constant Index_Type'Base := Before - 1; subtype Src_Index_Subtype is Index_Type'Base range Index_Type'First .. L; Src : Elements_Array renames Container.Elements.EA (Src_Index_Subtype); K : Index_Type'Base; begin -- We first copy the source items that precede the space we -- inserted. Index value K is the last index of that portion -- destination that receives this slice of the source. (If Before -- equals Index_Type'First, then this first source slice will be -- empty, which is harmless.) if Index_Type'Base'Last >= Count_Type_Last then K := L + Index_Type'Base (Src'Length); else K := Index_Type'Base (Count_Type'Base (L) + Src'Length); end if; Container.Elements.EA (Before .. K) := Src; if Src'Length = N then -- The new items were effectively appended to the container, so we -- have already copied all of the items that need to be copied. -- We return early here, even though the source slice below is -- empty (so the assignment would be harmless), because we want to -- avoid computing J + 1, which will overflow if J equals -- Index_Type'Base'Last. return; end if; end; declare -- Note that we want to avoid computing J + 1 here, in case J equals -- Index_Type'Base'Last. We prevent that by returning early above, -- immediately after copying the first slice of the source, and -- determining that this second slice of the source is empty. F : constant Index_Type'Base := J + 1; subtype Src_Index_Subtype is Index_Type'Base range F .. Container.Last; Src : Elements_Array renames Container.Elements.EA (Src_Index_Subtype); K : Index_Type'Base; begin -- We next copy the source items that follow the space we inserted. -- Index value K is the first index of that portion of the -- destination that receives this slice of the source. (For the -- reasons given above, this slice is guaranteed to be non-empty.) if Index_Type'Base'Last >= Count_Type_Last then K := F - Index_Type'Base (Src'Length); else K := Index_Type'Base (Count_Type'Base (F) - Src'Length); end if; Container.Elements.EA (K .. J) := Src; end; end Insert; procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Vector) is Index : Index_Type'Base; begin if Checks and then Before.Container /= null and then Before.Container /= Container'Unrestricted_Access then raise Program_Error with "Before cursor denotes wrong container"; end if; if Is_Empty (New_Item) then return; end if; if Before.Container = null or else Before.Index > Container.Last then if Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; end if; Index := Container.Last + 1; else Index := Before.Index; end if; Insert (Container, Index, New_Item); end Insert; procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Vector; Position : out Cursor) is Index : Index_Type'Base; begin if Checks and then Before.Container /= null and then Before.Container /= Container'Unrestricted_Access then raise Program_Error with "Before cursor denotes wrong container"; end if; if Is_Empty (New_Item) then if Before.Container = null or else Before.Index > Container.Last then Position := No_Element; else Position := (Container'Unrestricted_Access, Before.Index); end if; return; end if; if Before.Container = null or else Before.Index > Container.Last then if Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; end if; Index := Container.Last + 1; else Index := Before.Index; end if; Insert (Container, Index, New_Item); Position := (Container'Unrestricted_Access, Index); end Insert; procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Element_Type; Count : Count_Type := 1) is Index : Index_Type'Base; begin if Checks and then Before.Container /= null and then Before.Container /= Container'Unrestricted_Access then raise Program_Error with "Before cursor denotes wrong container"; end if; if Count = 0 then return; end if; if Before.Container = null or else Before.Index > Container.Last then if Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; else Index := Container.Last + 1; end if; else Index := Before.Index; end if; Insert (Container, Index, New_Item, Count); end Insert; procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Element_Type; Position : out Cursor; Count : Count_Type := 1) is Index : Index_Type'Base; begin if Checks and then Before.Container /= null and then Before.Container /= Container'Unrestricted_Access then raise Program_Error with "Before cursor denotes wrong container"; end if; if Count = 0 then if Before.Container = null or else Before.Index > Container.Last then Position := No_Element; else Position := (Container'Unrestricted_Access, Before.Index); end if; return; end if; if Before.Container = null or else Before.Index > Container.Last then if Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; end if; Index := Container.Last + 1; else Index := Before.Index; end if; Insert (Container, Index, New_Item, Count); Position := (Container'Unrestricted_Access, Index); end Insert; procedure Insert (Container : in out Vector; Before : Extended_Index; Count : Count_Type := 1) is New_Item : Element_Type; -- Default-initialized value pragma Warnings (Off, New_Item); begin Insert (Container, Before, New_Item, Count); end Insert; procedure Insert (Container : in out Vector; Before : Cursor; Position : out Cursor; Count : Count_Type := 1) is New_Item : Element_Type; -- Default-initialized value pragma Warnings (Off, New_Item); begin Insert (Container, Before, New_Item, Position, Count); end Insert; ------------------ -- Insert_Space -- ------------------ procedure Insert_Space (Container : in out Vector; Before : Extended_Index; Count : Count_Type := 1) is Old_Length : constant Count_Type := Container.Length; Max_Length : Count_Type'Base; -- determined from range of Index_Type New_Length : Count_Type'Base; -- sum of current length and Count New_Last : Index_Type'Base; -- last index of vector after insertion Index : Index_Type'Base; -- scratch for intermediate values J : Count_Type'Base; -- scratch New_Capacity : Count_Type'Base; -- length of new, expanded array Dst_Last : Index_Type'Base; -- last index of new, expanded array Dst : Elements_Access; -- new, expanded internal array begin if Checks then -- As a precondition on the generic actual Index_Type, the base type -- must include Index_Type'Pred (Index_Type'First); this is the value -- that Container.Last assumes when the vector is empty. However, we -- do not allow that as the value for Index when specifying where the -- new items should be inserted, so we must manually check. (That the -- user is allowed to specify the value at all here is a consequence -- of the declaration of the Extended_Index subtype, which includes -- the values in the base range that immediately precede and -- immediately follow the values in the Index_Type.) if Before < Index_Type'First then raise Constraint_Error with "Before index is out of range (too small)"; end if; -- We do allow a value greater than Container.Last to be specified as -- the Index, but only if it's immediately greater. This allows for -- the case of appending items to the back end of the vector. (It is -- assumed that specifying an index value greater than Last + 1 -- indicates some deeper flaw in the caller's algorithm, so that case -- is treated as a proper error.) if Before > Container.Last + 1 then raise Constraint_Error with "Before index is out of range (too large)"; end if; end if; -- We treat inserting 0 items into the container as a no-op, even when -- the container is busy, so we simply return. if Count = 0 then return; end if; -- There are two constraints we need to satisfy. The first constraint is -- that a container cannot have more than Count_Type'Last elements, so -- we must check the sum of the current length and the insertion count. -- Note: we cannot simply add these values, because of the possibility -- of overflow. if Checks and then Old_Length > Count_Type'Last - Count then raise Constraint_Error with "Count is out of range"; end if; -- It is now safe compute the length of the new vector, without fear of -- overflow. New_Length := Old_Length + Count; -- The second constraint is that the new Last index value cannot exceed -- Index_Type'Last. In each branch below, we calculate the maximum -- length (computed from the range of values in Index_Type), and then -- compare the new length to the maximum length. If the new length is -- acceptable, then we compute the new last index from that. if Index_Type'Base'Last >= Count_Type_Last then -- We have to handle the case when there might be more values in the -- range of Index_Type than in the range of Count_Type. if Index_Type'First <= 0 then -- We know that No_Index (the same as Index_Type'First - 1) is -- less than 0, so it is safe to compute the following sum without -- fear of overflow. Index := No_Index + Index_Type'Base (Count_Type'Last); if Index <= Index_Type'Last then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the -- maximum number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than in Count_Type, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last - No_Index); end if; else -- No_Index is equal or greater than 0, so we can safely compute -- the difference without fear of overflow (which we would have to -- worry about if No_Index were less than 0, but that case is -- handled above). if Index_Type'Last - No_Index >= Count_Type_Last then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the -- maximum number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than in Count_Type, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last - No_Index); end if; end if; elsif Index_Type'First <= 0 then -- We know that No_Index (the same as Index_Type'First - 1) is less -- than 0, so it is safe to compute the following sum without fear of -- overflow. J := Count_Type'Base (No_Index) + Count_Type'Last; if J <= Count_Type'Base (Index_Type'Last) then -- We have determined that range of Index_Type has at least as -- many values as in Count_Type, so Count_Type'Last is the maximum -- number of items that are allowed. Max_Length := Count_Type'Last; else -- The range of Index_Type has fewer values than Count_Type does, -- so the maximum number of items is computed from the range of -- the Index_Type. Max_Length := Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index); end if; else -- No_Index is equal or greater than 0, so we can safely compute the -- difference without fear of overflow (which we would have to worry -- about if No_Index were less than 0, but that case is handled -- above). Max_Length := Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index); end if; -- We have just computed the maximum length (number of items). We must -- now compare the requested length to the maximum length, as we do not -- allow a vector expand beyond the maximum (because that would create -- an internal array with a last index value greater than -- Index_Type'Last, with no way to index those elements). if Checks and then New_Length > Max_Length then raise Constraint_Error with "Count is out of range"; end if; -- New_Last is the last index value of the items in the container after -- insertion. Use the wider of Index_Type'Base and Count_Type'Base to -- compute its value from the New_Length. if Index_Type'Base'Last >= Count_Type_Last then New_Last := No_Index + Index_Type'Base (New_Length); else New_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Length); end if; if Container.Elements = null then pragma Assert (Container.Last = No_Index); -- This is the simplest case, with which we must always begin: we're -- inserting items into an empty vector that hasn't allocated an -- internal array yet. Note that we don't need to check the busy bit -- here, because an empty container cannot be busy. -- In order to preserve container invariants, we allocate the new -- internal array first, before setting the Last index value, in case -- the allocation fails (which can happen either because there is no -- storage available, or because default-valued element -- initialization fails). Container.Elements := new Elements_Type (New_Last); -- The allocation of the new, internal array succeeded, so it is now -- safe to update the Last index, restoring container invariants. Container.Last := New_Last; return; end if; -- The tampering bits exist to prevent an item from being harmfully -- manipulated while it is being visited. Query, Update, and Iterate -- increment the busy count on entry, and decrement the count on -- exit. Insert checks the count to determine whether it is being called -- while the associated callback procedure is executing. TC_Check (Container.TC); -- An internal array has already been allocated, so we must determine -- whether there is enough unused storage for the new items. if New_Last <= Container.Elements.Last then -- In this case, we're inserting space into a vector that has already -- allocated an internal array, and the existing array has enough -- unused storage for the new items. declare EA : Elements_Array renames Container.Elements.EA; begin if Before <= Container.Last then -- The space is being inserted before some existing elements, -- so we must slide the existing elements up to their new -- home. We use the wider of Index_Type'Base and -- Count_Type'Base as the type for intermediate index values. if Index_Type'Base'Last >= Count_Type_Last then Index := Before + Index_Type'Base (Count); else Index := Index_Type'Base (Count_Type'Base (Before) + Count); end if; EA (Index .. New_Last) := EA (Before .. Container.Last); end if; end; Container.Last := New_Last; return; end if; -- In this case, we're inserting space into a vector that has already -- allocated an internal array, but the existing array does not have -- enough storage, so we must allocate a new, longer array. In order to -- guarantee that the amortized insertion cost is O(1), we always -- allocate an array whose length is some power-of-two factor of the -- current array length. (The new array cannot have a length less than -- the New_Length of the container, but its last index value cannot be -- greater than Index_Type'Last.) New_Capacity := Count_Type'Max (1, Container.Elements.EA'Length); while New_Capacity < New_Length loop if New_Capacity > Count_Type'Last / 2 then New_Capacity := Count_Type'Last; exit; end if; New_Capacity := 2 * New_Capacity; end loop; if New_Capacity > Max_Length then -- We have reached the limit of capacity, so no further expansion -- will occur. (This is not a problem, as there is never a need to -- have more capacity than the maximum container length.) New_Capacity := Max_Length; end if; -- We have computed the length of the new internal array (and this is -- what "vector capacity" means), so use that to compute its last index. if Index_Type'Base'Last >= Count_Type_Last then Dst_Last := No_Index + Index_Type'Base (New_Capacity); else Dst_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Capacity); end if; -- Now we allocate the new, longer internal array. If the allocation -- fails, we have not changed any container state, so no side-effect -- will occur as a result of propagating the exception. Dst := new Elements_Type (Dst_Last); -- We have our new internal array. All that needs to be done now is to -- copy the existing items (if any) from the old array (the "source" -- array, object SA below) to the new array (the "destination" array, -- object DA below), and then deallocate the old array. declare SA : Elements_Array renames Container.Elements.EA; -- source DA : Elements_Array renames Dst.EA; -- destination begin DA (Index_Type'First .. Before - 1) := SA (Index_Type'First .. Before - 1); if Before <= Container.Last then -- The space is being inserted before some existing elements, so -- we must slide the existing elements up to their new home. if Index_Type'Base'Last >= Count_Type_Last then Index := Before + Index_Type'Base (Count); else Index := Index_Type'Base (Count_Type'Base (Before) + Count); end if; DA (Index .. New_Last) := SA (Before .. Container.Last); end if; exception when others => Free (Dst); raise; end; -- We have successfully copied the items onto the new array, so the -- final thing to do is restore invariants, and deallocate the old -- array. declare X : Elements_Access := Container.Elements; begin -- We first isolate the old internal array, removing it from the -- container and replacing it with the new internal array, before we -- deallocate the old array (which can fail if finalization of -- elements propagates an exception). Container.Elements := Dst; Container.Last := New_Last; -- The container invariants have been restored, so it is now safe to -- attempt to deallocate the old array. Free (X); end; end Insert_Space; procedure Insert_Space (Container : in out Vector; Before : Cursor; Position : out Cursor; Count : Count_Type := 1) is Index : Index_Type'Base; begin if Checks and then Before.Container /= null and then Before.Container /= Container'Unrestricted_Access then raise Program_Error with "Before cursor denotes wrong container"; end if; if Count = 0 then if Before.Container = null or else Before.Index > Container.Last then Position := No_Element; else Position := (Container'Unrestricted_Access, Before.Index); end if; return; end if; if Before.Container = null or else Before.Index > Container.Last then if Checks and then Container.Last = Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; else Index := Container.Last + 1; end if; else Index := Before.Index; end if; Insert_Space (Container, Index, Count); Position := (Container'Unrestricted_Access, Index); end Insert_Space; -------------- -- Is_Empty -- -------------- function Is_Empty (Container : Vector) return Boolean is begin return Container.Last < Index_Type'First; end Is_Empty; ------------- -- Iterate -- ------------- procedure Iterate (Container : Vector; Process : not null access procedure (Position : Cursor)) is Busy : With_Busy (Container.TC'Unrestricted_Access); begin for Indx in Index_Type'First .. Container.Last loop Process (Cursor'(Container'Unrestricted_Access, Indx)); end loop; end Iterate; function Iterate (Container : Vector) return Vector_Iterator_Interfaces.Reversible_Iterator'Class is V : constant Vector_Access := Container'Unrestricted_Access; begin -- The value of its Index component influences the behavior of the First -- and Last selector functions of the iterator object. When the Index -- component is No_Index (as is the case here), this means the iterator -- object was constructed without a start expression. This is a complete -- iterator, meaning that the iteration starts from the (logical) -- beginning of the sequence of items. -- Note: For a forward iterator, Container.First is the beginning, and -- for a reverse iterator, Container.Last is the beginning. return It : constant Iterator := (Limited_Controlled with Container => V, Index => No_Index) do Busy (Container.TC'Unrestricted_Access.all); end return; end Iterate; function Iterate (Container : Vector; Start : Cursor) return Vector_Iterator_Interfaces.Reversible_Iterator'Class is V : constant Vector_Access := Container'Unrestricted_Access; begin -- It was formerly the case that when Start = No_Element, the partial -- iterator was defined to behave the same as for a complete iterator, -- and iterate over the entire sequence of items. However, those -- semantics were unintuitive and arguably error-prone (it is too easy -- to accidentally create an endless loop), and so they were changed, -- per the ARG meeting in Denver on 2011/11. However, there was no -- consensus about what positive meaning this corner case should have, -- and so it was decided to simply raise an exception. This does imply, -- however, that it is not possible to use a partial iterator to specify -- an empty sequence of items. if Checks then if Start.Container = null then raise Constraint_Error with "Start position for iterator equals No_Element"; end if; if Start.Container /= V then raise Program_Error with "Start cursor of Iterate designates wrong vector"; end if; if Start.Index > V.Last then raise Constraint_Error with "Start position for iterator equals No_Element"; end if; end if; -- The value of its Index component influences the behavior of the First -- and Last selector functions of the iterator object. When the Index -- component is not No_Index (as is the case here), it means that this -- is a partial iteration, over a subset of the complete sequence of -- items. The iterator object was constructed with a start expression, -- indicating the position from which the iteration begins. Note that -- the start position has the same value irrespective of whether this -- is a forward or reverse iteration. return It : constant Iterator := (Limited_Controlled with Container => V, Index => Start.Index) do Busy (Container.TC'Unrestricted_Access.all); end return; end Iterate; ---------- -- Last -- ---------- function Last (Container : Vector) return Cursor is begin if Is_Empty (Container) then return No_Element; else return (Container'Unrestricted_Access, Container.Last); end if; end Last; function Last (Object : Iterator) return Cursor is begin -- The value of the iterator object's Index component influences the -- behavior of the Last (and First) selector function. -- When the Index component is No_Index, this means the iterator -- object was constructed without a start expression, in which case the -- (reverse) iteration starts from the (logical) beginning of the entire -- sequence (corresponding to Container.Last, for a reverse iterator). -- Otherwise, this is iteration over a partial sequence of items. -- When the Index component is not No_Index, the iterator object was -- constructed with a start expression, that specifies the position -- from which the (reverse) partial iteration begins. if Object.Index = No_Index then return Last (Object.Container.all); else return Cursor'(Object.Container, Object.Index); end if; end Last; ------------------ -- Last_Element -- ------------------ function Last_Element (Container : Vector) return Element_Type is begin if Checks and then Container.Last = No_Index then raise Constraint_Error with "Container is empty"; else return Container.Elements.EA (Container.Last); end if; end Last_Element; ---------------- -- Last_Index -- ---------------- function Last_Index (Container : Vector) return Extended_Index is begin return Container.Last; end Last_Index; ------------ -- Length -- ------------ function Length (Container : Vector) return Count_Type is L : constant Index_Type'Base := Container.Last; F : constant Index_Type := Index_Type'First; begin -- The base range of the index type (Index_Type'Base) might not include -- all values for length (Count_Type). Contrariwise, the index type -- might include values outside the range of length. Hence we use -- whatever type is wider for intermediate values when calculating -- length. Note that no matter what the index type is, the maximum -- length to which a vector is allowed to grow is always the minimum -- of Count_Type'Last and (IT'Last - IT'First + 1). -- For example, an Index_Type with range -127 .. 127 is only guaranteed -- to have a base range of -128 .. 127, but the corresponding vector -- would have lengths in the range 0 .. 255. In this case we would need -- to use Count_Type'Base for intermediate values. -- Another case would be the index range -2**63 + 1 .. -2**63 + 10. The -- vector would have a maximum length of 10, but the index values lie -- outside the range of Count_Type (which is only 32 bits). In this -- case we would need to use Index_Type'Base for intermediate values. if Count_Type'Base'Last >= Index_Type'Pos (Index_Type'Base'Last) then return Count_Type'Base (L) - Count_Type'Base (F) + 1; else return Count_Type (L - F + 1); end if; end Length; ---------- -- Move -- ---------- procedure Move (Target : in out Vector; Source : in out Vector) is begin if Target'Address = Source'Address then return; end if; TC_Check (Target.TC); TC_Check (Source.TC); declare Target_Elements : constant Elements_Access := Target.Elements; begin Target.Elements := Source.Elements; Source.Elements := Target_Elements; end; Target.Last := Source.Last; Source.Last := No_Index; end Move; ---------- -- Next -- ---------- function Next (Position : Cursor) return Cursor is begin if Position.Container = null then return No_Element; elsif Position.Index < Position.Container.Last then return (Position.Container, Position.Index + 1); else return No_Element; end if; end Next; function Next (Object : Iterator; Position : Cursor) return Cursor is begin if Position.Container = null then return No_Element; elsif Checks and then Position.Container /= Object.Container then raise Program_Error with "Position cursor of Next designates wrong vector"; else return Next (Position); end if; end Next; procedure Next (Position : in out Cursor) is begin if Position.Container = null then return; elsif Position.Index < Position.Container.Last then Position.Index := Position.Index + 1; else Position := No_Element; end if; end Next; ------------- -- Prepend -- ------------- procedure Prepend (Container : in out Vector; New_Item : Vector) is begin Insert (Container, Index_Type'First, New_Item); end Prepend; procedure Prepend (Container : in out Vector; New_Item : Element_Type; Count : Count_Type := 1) is begin Insert (Container, Index_Type'First, New_Item, Count); end Prepend; -------------- -- Previous -- -------------- function Previous (Position : Cursor) return Cursor is begin if Position.Container = null then return No_Element; elsif Position.Index > Index_Type'First then return (Position.Container, Position.Index - 1); else return No_Element; end if; end Previous; function Previous (Object : Iterator; Position : Cursor) return Cursor is begin if Position.Container = null then return No_Element; elsif Checks and then Position.Container /= Object.Container then raise Program_Error with "Position cursor of Previous designates wrong vector"; else return Previous (Position); end if; end Previous; procedure Previous (Position : in out Cursor) is begin if Position.Container = null then return; elsif Position.Index > Index_Type'First then Position.Index := Position.Index - 1; else Position := No_Element; end if; end Previous; ---------------------- -- Pseudo_Reference -- ---------------------- function Pseudo_Reference (Container : aliased Vector'Class) return Reference_Control_Type is TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access; begin return R : constant Reference_Control_Type := (Controlled with TC) do Lock (TC.all); end return; end Pseudo_Reference; ------------------- -- Query_Element -- ------------------- procedure Query_Element (Container : Vector; Index : Index_Type; Process : not null access procedure (Element : Element_Type)) is Lock : With_Lock (Container.TC'Unrestricted_Access); V : Vector renames Container'Unrestricted_Access.all; begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; Process (V.Elements.EA (Index)); end Query_Element; procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)) is begin if Checks and then Position.Container = null then raise Constraint_Error with "Position cursor has no element"; else Query_Element (Position.Container.all, Position.Index, Process); end if; end Query_Element; ---------- -- Read -- ---------- procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Vector) is Length : Count_Type'Base; Last : Index_Type'Base := No_Index; begin Clear (Container); Count_Type'Base'Read (Stream, Length); if Length > Capacity (Container) then Reserve_Capacity (Container, Capacity => Length); end if; for J in Count_Type range 1 .. Length loop Last := Last + 1; Element_Type'Read (Stream, Container.Elements.EA (Last)); Container.Last := Last; end loop; end Read; procedure Read (Stream : not null access Root_Stream_Type'Class; Position : out Cursor) is begin raise Program_Error with "attempt to stream vector cursor"; end Read; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type) is begin raise Program_Error with "attempt to stream reference"; end Read; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type) is begin raise Program_Error with "attempt to stream reference"; end Read; --------------- -- Reference -- --------------- function Reference (Container : aliased in out Vector; Position : Cursor) return Reference_Type is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; end if; if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; end if; if Position.Index > Position.Container.Last then raise Constraint_Error with "Position cursor is out of range"; end if; end if; declare TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access; begin return R : constant Reference_Type := (Element => Container.Elements.EA (Position.Index)'Access, Control => (Controlled with TC)) do Lock (TC.all); end return; end; end Reference; function Reference (Container : aliased in out Vector; Index : Index_Type) return Reference_Type is begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; declare TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access; begin return R : constant Reference_Type := (Element => Container.Elements.EA (Index)'Access, Control => (Controlled with TC)) do Lock (TC.all); end return; end; end Reference; --------------------- -- Replace_Element -- --------------------- procedure Replace_Element (Container : in out Vector; Index : Index_Type; New_Item : Element_Type) is begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; TE_Check (Container.TC); Container.Elements.EA (Index) := New_Item; end Replace_Element; procedure Replace_Element (Container : in out Vector; Position : Cursor; New_Item : Element_Type) is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; elsif Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; elsif Position.Index > Container.Last then raise Constraint_Error with "Position cursor is out of range"; end if; end if; TE_Check (Container.TC); Container.Elements.EA (Position.Index) := New_Item; end Replace_Element; ---------------------- -- Reserve_Capacity -- ---------------------- procedure Reserve_Capacity (Container : in out Vector; Capacity : Count_Type) is N : constant Count_Type := Length (Container); Index : Count_Type'Base; Last : Index_Type'Base; begin -- Reserve_Capacity can be used to either expand the storage available -- for elements (this would be its typical use, in anticipation of -- future insertion), or to trim back storage. In the latter case, -- storage can only be trimmed back to the limit of the container -- length. Note that Reserve_Capacity neither deletes (active) elements -- nor inserts elements; it only affects container capacity, never -- container length. if Capacity = 0 then -- This is a request to trim back storage, to the minimum amount -- possible given the current state of the container. if N = 0 then -- The container is empty, so in this unique case we can -- deallocate the entire internal array. Note that an empty -- container can never be busy, so there's no need to check the -- tampering bits. declare X : Elements_Access := Container.Elements; begin -- First we remove the internal array from the container, to -- handle the case when the deallocation raises an exception. Container.Elements := null; -- Container invariants have been restored, so it is now safe -- to attempt to deallocate the internal array. Free (X); end; elsif N < Container.Elements.EA'Length then -- The container is not empty, and the current length is less than -- the current capacity, so there's storage available to trim. In -- this case, we allocate a new internal array having a length -- that exactly matches the number of items in the -- container. (Reserve_Capacity does not delete active elements, -- so this is the best we can do with respect to minimizing -- storage). TC_Check (Container.TC); declare subtype Src_Index_Subtype is Index_Type'Base range Index_Type'First .. Container.Last; Src : Elements_Array renames Container.Elements.EA (Src_Index_Subtype); X : Elements_Access := Container.Elements; begin -- Although we have isolated the old internal array that we're -- going to deallocate, we don't deallocate it until we have -- successfully allocated a new one. If there is an exception -- during allocation (either because there is not enough -- storage, or because initialization of the elements fails), -- we let it propagate without causing any side-effect. Container.Elements := new Elements_Type'(Container.Last, Src); -- We have successfully allocated a new internal array (with a -- smaller length than the old one, and containing a copy of -- just the active elements in the container), so it is now -- safe to attempt to deallocate the old array. The old array -- has been isolated, and container invariants have been -- restored, so if the deallocation fails (because finalization -- of the elements fails), we simply let it propagate. Free (X); end; end if; return; end if; -- Reserve_Capacity can be used to expand the storage available for -- elements, but we do not let the capacity grow beyond the number of -- values in Index_Type'Range. (Were it otherwise, there would be no way -- to refer to the elements with an index value greater than -- Index_Type'Last, so that storage would be wasted.) Here we compute -- the Last index value of the new internal array, in a way that avoids -- any possibility of overflow. if Index_Type'Base'Last >= Count_Type_Last then -- We perform a two-part test. First we determine whether the -- computed Last value lies in the base range of the type, and then -- determine whether it lies in the range of the index (sub)type. -- Last must satisfy this relation: -- First + Length - 1 <= Last -- We regroup terms: -- First - 1 <= Last - Length -- Which can rewrite as: -- No_Index <= Last - Length if Checks and then Index_Type'Base'Last - Index_Type'Base (Capacity) < No_Index then raise Constraint_Error with "Capacity is out of range"; end if; -- We now know that the computed value of Last is within the base -- range of the type, so it is safe to compute its value: Last := No_Index + Index_Type'Base (Capacity); -- Finally we test whether the value is within the range of the -- generic actual index subtype: if Checks and then Last > Index_Type'Last then raise Constraint_Error with "Capacity is out of range"; end if; elsif Index_Type'First <= 0 then -- Here we can compute Last directly, in the normal way. We know that -- No_Index is less than 0, so there is no danger of overflow when -- adding the (positive) value of Capacity. Index := Count_Type'Base (No_Index) + Capacity; -- Last if Checks and then Index > Count_Type'Base (Index_Type'Last) then raise Constraint_Error with "Capacity is out of range"; end if; -- We know that the computed value (having type Count_Type) of Last -- is within the range of the generic actual index subtype, so it is -- safe to convert to Index_Type: Last := Index_Type'Base (Index); else -- Here Index_Type'First (and Index_Type'Last) is positive, so we -- must test the length indirectly (by working backwards from the -- largest possible value of Last), in order to prevent overflow. Index := Count_Type'Base (Index_Type'Last) - Capacity; -- No_Index if Checks and then Index < Count_Type'Base (No_Index) then raise Constraint_Error with "Capacity is out of range"; end if; -- We have determined that the value of Capacity would not create a -- Last index value outside of the range of Index_Type, so we can now -- safely compute its value. Last := Index_Type'Base (Count_Type'Base (No_Index) + Capacity); end if; -- The requested capacity is non-zero, but we don't know yet whether -- this is a request for expansion or contraction of storage. if Container.Elements = null then -- The container is empty (it doesn't even have an internal array), -- so this represents a request to allocate (expand) storage having -- the given capacity. Container.Elements := new Elements_Type (Last); return; end if; if Capacity <= N then -- This is a request to trim back storage, but only to the limit of -- what's already in the container. (Reserve_Capacity never deletes -- active elements, it only reclaims excess storage.) if N < Container.Elements.EA'Length then -- The container is not empty (because the requested capacity is -- positive, and less than or equal to the container length), and -- the current length is less than the current capacity, so -- there's storage available to trim. In this case, we allocate a -- new internal array having a length that exactly matches the -- number of items in the container. TC_Check (Container.TC); declare subtype Src_Index_Subtype is Index_Type'Base range Index_Type'First .. Container.Last; Src : Elements_Array renames Container.Elements.EA (Src_Index_Subtype); X : Elements_Access := Container.Elements; begin -- Although we have isolated the old internal array that we're -- going to deallocate, we don't deallocate it until we have -- successfully allocated a new one. If there is an exception -- during allocation (either because there is not enough -- storage, or because initialization of the elements fails), -- we let it propagate without causing any side-effect. Container.Elements := new Elements_Type'(Container.Last, Src); -- We have successfully allocated a new internal array (with a -- smaller length than the old one, and containing a copy of -- just the active elements in the container), so it is now -- safe to attempt to deallocate the old array. The old array -- has been isolated, and container invariants have been -- restored, so if the deallocation fails (because finalization -- of the elements fails), we simply let it propagate. Free (X); end; end if; return; end if; -- The requested capacity is larger than the container length (the -- number of active elements). Whether this represents a request for -- expansion or contraction of the current capacity depends on what the -- current capacity is. if Capacity = Container.Elements.EA'Length then -- The requested capacity matches the existing capacity, so there's -- nothing to do here. We treat this case as a no-op, and simply -- return without checking the busy bit. return; end if; -- There is a change in the capacity of a non-empty container, so a new -- internal array will be allocated. (The length of the new internal -- array could be less or greater than the old internal array. We know -- only that the length of the new internal array is greater than the -- number of active elements in the container.) We must check whether -- the container is busy before doing anything else. TC_Check (Container.TC); -- We now allocate a new internal array, having a length different from -- its current value. declare E : Elements_Access := new Elements_Type (Last); begin -- We have successfully allocated the new internal array. We first -- attempt to copy the existing elements from the old internal array -- ("src" elements) onto the new internal array ("tgt" elements). declare subtype Index_Subtype is Index_Type'Base range Index_Type'First .. Container.Last; Src : Elements_Array renames Container.Elements.EA (Index_Subtype); Tgt : Elements_Array renames E.EA (Index_Subtype); begin Tgt := Src; exception when others => Free (E); raise; end; -- We have successfully copied the existing elements onto the new -- internal array, so now we can attempt to deallocate the old one. declare X : Elements_Access := Container.Elements; begin -- First we isolate the old internal array, and replace it in the -- container with the new internal array. Container.Elements := E; -- Container invariants have been restored, so it is now safe to -- attempt to deallocate the old internal array. Free (X); end; end; end Reserve_Capacity; ---------------------- -- Reverse_Elements -- ---------------------- procedure Reverse_Elements (Container : in out Vector) is begin if Container.Length <= 1 then return; end if; -- The exception behavior for the vector container must match that for -- the list container, so we check for cursor tampering here (which will -- catch more things) instead of for element tampering (which will catch -- fewer things). It's true that the elements of this vector container -- could be safely moved around while (say) an iteration is taking place -- (iteration only increments the busy counter), and so technically -- all we would need here is a test for element tampering (indicated -- by the lock counter), that's simply an artifact of our array-based -- implementation. Logically Reverse_Elements requires a check for -- cursor tampering. TC_Check (Container.TC); declare K : Index_Type; J : Index_Type; E : Elements_Type renames Container.Elements.all; begin K := Index_Type'First; J := Container.Last; while K < J loop declare EK : constant Element_Type := E.EA (K); begin E.EA (K) := E.EA (J); E.EA (J) := EK; end; K := K + 1; J := J - 1; end loop; end; end Reverse_Elements; ------------------ -- Reverse_Find -- ------------------ function Reverse_Find (Container : Vector; Item : Element_Type; Position : Cursor := No_Element) return Cursor is Last : Index_Type'Base; begin if Checks and then Position.Container /= null and then Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; end if; Last := (if Position.Container = null or else Position.Index > Container.Last then Container.Last else Position.Index); -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. declare Lock : With_Lock (Container.TC'Unrestricted_Access); begin for Indx in reverse Index_Type'First .. Last loop if Container.Elements.EA (Indx) = Item then return Cursor'(Container'Unrestricted_Access, Indx); end if; end loop; return No_Element; end; end Reverse_Find; ------------------------ -- Reverse_Find_Index -- ------------------------ function Reverse_Find_Index (Container : Vector; Item : Element_Type; Index : Index_Type := Index_Type'Last) return Extended_Index is -- Per AI05-0022, the container implementation is required to detect -- element tampering by a generic actual subprogram. Lock : With_Lock (Container.TC'Unrestricted_Access); Last : constant Index_Type'Base := Index_Type'Min (Container.Last, Index); begin for Indx in reverse Index_Type'First .. Last loop if Container.Elements.EA (Indx) = Item then return Indx; end if; end loop; return No_Index; end Reverse_Find_Index; --------------------- -- Reverse_Iterate -- --------------------- procedure Reverse_Iterate (Container : Vector; Process : not null access procedure (Position : Cursor)) is Busy : With_Busy (Container.TC'Unrestricted_Access); begin for Indx in reverse Index_Type'First .. Container.Last loop Process (Cursor'(Container'Unrestricted_Access, Indx)); end loop; end Reverse_Iterate; ---------------- -- Set_Length -- ---------------- procedure Set_Length (Container : in out Vector; Length : Count_Type) is Count : constant Count_Type'Base := Container.Length - Length; begin -- Set_Length allows the user to set the length explicitly, instead -- of implicitly as a side-effect of deletion or insertion. If the -- requested length is less than the current length, this is equivalent -- to deleting items from the back end of the vector. If the requested -- length is greater than the current length, then this is equivalent -- to inserting "space" (nonce items) at the end. if Count >= 0 then Container.Delete_Last (Count); elsif Checks and then Container.Last >= Index_Type'Last then raise Constraint_Error with "vector is already at its maximum length"; else Container.Insert_Space (Container.Last + 1, -Count); end if; end Set_Length; ---------- -- Swap -- ---------- procedure Swap (Container : in out Vector; I, J : Index_Type) is begin if Checks then if I > Container.Last then raise Constraint_Error with "I index is out of range"; end if; if J > Container.Last then raise Constraint_Error with "J index is out of range"; end if; end if; if I = J then return; end if; TE_Check (Container.TC); declare EI_Copy : constant Element_Type := Container.Elements.EA (I); begin Container.Elements.EA (I) := Container.Elements.EA (J); Container.Elements.EA (J) := EI_Copy; end; end Swap; procedure Swap (Container : in out Vector; I, J : Cursor) is begin if Checks then if I.Container = null then raise Constraint_Error with "I cursor has no element"; elsif J.Container = null then raise Constraint_Error with "J cursor has no element"; elsif I.Container /= Container'Unrestricted_Access then raise Program_Error with "I cursor denotes wrong container"; elsif J.Container /= Container'Unrestricted_Access then raise Program_Error with "J cursor denotes wrong container"; end if; end if; Swap (Container, I.Index, J.Index); end Swap; --------------- -- To_Cursor -- --------------- function To_Cursor (Container : Vector; Index : Extended_Index) return Cursor is begin if Index not in Index_Type'First .. Container.Last then return No_Element; else return (Container'Unrestricted_Access, Index); end if; end To_Cursor; -------------- -- To_Index -- -------------- function To_Index (Position : Cursor) return Extended_Index is begin if Position.Container = null then return No_Index; elsif Position.Index <= Position.Container.Last then return Position.Index; else return No_Index; end if; end To_Index; --------------- -- To_Vector -- --------------- function To_Vector (Length : Count_Type) return Vector is Index : Count_Type'Base; Last : Index_Type'Base; Elements : Elements_Access; begin if Length = 0 then return Empty_Vector; end if; -- We create a vector object with a capacity that matches the specified -- Length, but we do not allow the vector capacity (the length of the -- internal array) to exceed the number of values in Index_Type'Range -- (otherwise, there would be no way to refer to those components via an -- index). We must therefore check whether the specified Length would -- create a Last index value greater than Index_Type'Last. if Index_Type'Base'Last >= Count_Type_Last then -- We perform a two-part test. First we determine whether the -- computed Last value lies in the base range of the type, and then -- determine whether it lies in the range of the index (sub)type. -- Last must satisfy this relation: -- First + Length - 1 <= Last -- We regroup terms: -- First - 1 <= Last - Length -- Which can rewrite as: -- No_Index <= Last - Length if Checks and then Index_Type'Base'Last - Index_Type'Base (Length) < No_Index then raise Constraint_Error with "Length is out of range"; end if; -- We now know that the computed value of Last is within the base -- range of the type, so it is safe to compute its value: Last := No_Index + Index_Type'Base (Length); -- Finally we test whether the value is within the range of the -- generic actual index subtype: if Checks and then Last > Index_Type'Last then raise Constraint_Error with "Length is out of range"; end if; elsif Index_Type'First <= 0 then -- Here we can compute Last directly, in the normal way. We know that -- No_Index is less than 0, so there is no danger of overflow when -- adding the (positive) value of Length. Index := Count_Type'Base (No_Index) + Length; -- Last if Checks and then Index > Count_Type'Base (Index_Type'Last) then raise Constraint_Error with "Length is out of range"; end if; -- We know that the computed value (having type Count_Type) of Last -- is within the range of the generic actual index subtype, so it is -- safe to convert to Index_Type: Last := Index_Type'Base (Index); else -- Here Index_Type'First (and Index_Type'Last) is positive, so we -- must test the length indirectly (by working backwards from the -- largest possible value of Last), in order to prevent overflow. Index := Count_Type'Base (Index_Type'Last) - Length; -- No_Index if Checks and then Index < Count_Type'Base (No_Index) then raise Constraint_Error with "Length is out of range"; end if; -- We have determined that the value of Length would not create a -- Last index value outside of the range of Index_Type, so we can now -- safely compute its value. Last := Index_Type'Base (Count_Type'Base (No_Index) + Length); end if; Elements := new Elements_Type (Last); return Vector'(Controlled with Elements, Last, TC => <>); end To_Vector; function To_Vector (New_Item : Element_Type; Length : Count_Type) return Vector is Index : Count_Type'Base; Last : Index_Type'Base; Elements : Elements_Access; begin if Length = 0 then return Empty_Vector; end if; -- We create a vector object with a capacity that matches the specified -- Length, but we do not allow the vector capacity (the length of the -- internal array) to exceed the number of values in Index_Type'Range -- (otherwise, there would be no way to refer to those components via an -- index). We must therefore check whether the specified Length would -- create a Last index value greater than Index_Type'Last. if Index_Type'Base'Last >= Count_Type_Last then -- We perform a two-part test. First we determine whether the -- computed Last value lies in the base range of the type, and then -- determine whether it lies in the range of the index (sub)type. -- Last must satisfy this relation: -- First + Length - 1 <= Last -- We regroup terms: -- First - 1 <= Last - Length -- Which can rewrite as: -- No_Index <= Last - Length if Checks and then Index_Type'Base'Last - Index_Type'Base (Length) < No_Index then raise Constraint_Error with "Length is out of range"; end if; -- We now know that the computed value of Last is within the base -- range of the type, so it is safe to compute its value: Last := No_Index + Index_Type'Base (Length); -- Finally we test whether the value is within the range of the -- generic actual index subtype: if Checks and then Last > Index_Type'Last then raise Constraint_Error with "Length is out of range"; end if; elsif Index_Type'First <= 0 then -- Here we can compute Last directly, in the normal way. We know that -- No_Index is less than 0, so there is no danger of overflow when -- adding the (positive) value of Length. Index := Count_Type'Base (No_Index) + Length; -- same value as V.Last if Checks and then Index > Count_Type'Base (Index_Type'Last) then raise Constraint_Error with "Length is out of range"; end if; -- We know that the computed value (having type Count_Type) of Last -- is within the range of the generic actual index subtype, so it is -- safe to convert to Index_Type: Last := Index_Type'Base (Index); else -- Here Index_Type'First (and Index_Type'Last) is positive, so we -- must test the length indirectly (by working backwards from the -- largest possible value of Last), in order to prevent overflow. Index := Count_Type'Base (Index_Type'Last) - Length; -- No_Index if Checks and then Index < Count_Type'Base (No_Index) then raise Constraint_Error with "Length is out of range"; end if; -- We have determined that the value of Length would not create a -- Last index value outside of the range of Index_Type, so we can now -- safely compute its value. Last := Index_Type'Base (Count_Type'Base (No_Index) + Length); end if; Elements := new Elements_Type'(Last, EA => (others => New_Item)); return (Controlled with Elements, Last, TC => <>); end To_Vector; -------------------- -- Update_Element -- -------------------- procedure Update_Element (Container : in out Vector; Index : Index_Type; Process : not null access procedure (Element : in out Element_Type)) is Lock : With_Lock (Container.TC'Unchecked_Access); begin if Checks and then Index > Container.Last then raise Constraint_Error with "Index is out of range"; end if; Process (Container.Elements.EA (Index)); end Update_Element; procedure Update_Element (Container : in out Vector; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)) is begin if Checks then if Position.Container = null then raise Constraint_Error with "Position cursor has no element"; elsif Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor denotes wrong container"; end if; end if; Update_Element (Container, Position.Index, Process); end Update_Element; ----------- -- Write -- ----------- procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Vector) is begin Count_Type'Base'Write (Stream, Length (Container)); for J in Index_Type'First .. Container.Last loop Element_Type'Write (Stream, Container.Elements.EA (J)); end loop; end Write; procedure Write (Stream : not null access Root_Stream_Type'Class; Position : Cursor) is begin raise Program_Error with "attempt to stream vector cursor"; end Write; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type) is begin raise Program_Error with "attempt to stream reference"; end Write; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type) is begin raise Program_Error with "attempt to stream reference"; end Write; end Ada.Containers.Vectors;
with String_Utils; use String_Utils; with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with AVTAS.LMCP.Factory; with UxAS.Common.Configuration_Manager; with UXAS.Messages.UxNative.KillService; with Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Fixed; package body UxAS.Comms.LMCP_Net_Client is -- The initializeNetworkClient method is invoked by -- the initializeAndStart method to perform -- LmcpObjectNetworkClientBase-specific initialization -- -- @return true if initialization succeeds; false if initialization fails. -- -- bool -- initializeNetworkClient(); procedure Initialize_Network_Client (This : in out LMCP_Object_Network_Client_Base; Success : out Boolean); -- If m_receiveProcessingType == ReceiveProcessingType::LMCP, then -- the executeNetworkClient method repeatedly invokes -- the processReceivedLmcpMessage in an infinite loop until -- termination. Otherwise, the executeNetworkClient method is -- not invoked. -- -- void -- executeNetworkClient(); procedure Execute_Network_Client (This : in out LMCP_Object_Network_Client_Base); -- If m_receiveProcessingType == ReceiveProcessingType::SERIALIZED_LMCP, then -- the executeSerializedNetworkClient method repeatedly invokes -- the processReceivedSerializedLmcpMessage in an infinite loop until -- termination. Otherwise, the executeSerializedNetworkClient method is -- not invoked. -- -- void -- executeSerializedNetworkClient(); procedure Execute_Serialized_Network_Client (This : in out LMCP_Object_Network_Client_Base); -- The deserializeMessage method deserializes an LMCP -- string into an LMCP object. -- -- @return unique pointer to LMCP object if succeeds; unique pointer with -- unassigned native pointer. -- -- std::shared_ptr<avtas::lmcp::Object> -- deserializeMessage(const std::string& payload); function Deserialzed_Message (Payload : String) return AVTAS.LMCP.Object.Object_Any; function Should_Kill_This_Service (This : LMCP_Object_Network_Client_Base; Msg : Any_Lmcp_Message) return Boolean; function Should_Kill_This_Service (This : LMCP_Object_Network_Client_Base; Msg : AVTAS.LMCP.Object.Object_Any) return Boolean; -- a refactored convenience routine function Has_KillService_Subscription (Msg : Addressed_Attributed_Message_Ref) return Boolean; -- a refactored convenience routine ---------------------- -- Construct_Client -- ---------------------- procedure Construct_Client (This : in out LMCP_Object_Network_Client_Base) is begin -- from the default ctor This.Network_Id := Next_Network_Client_Id; Next_Network_Client_Id := Next_Network_Client_Id + 1; Copy (To_String (This.Network_Id), To => This.Network_Id_String); -- from static elaboration (see top of OpenUxAS\src\Communications\LmcpObjectNetworkClientBase.cpp) Copy (Get_Entity_Services_Cast_All_Address (UxAS.Common.Configuration_Manager.Instance.Get_Entity_Id), To => Entity_Services_Cast_All_Address); end Construct_Client; ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out LMCP_Object_Network_Client_Base; Result : out Boolean) is pragma Unreferenced (This); -- by design begin Result := True; end Initialize; ------------------------------- -- Initialize_Network_Client -- ------------------------------- procedure Initialize_Network_Client (This : in out LMCP_Object_Network_Client_Base; Success : out Boolean) is Unused : Boolean; begin This.Message_Receiver_Pipe.Initialize_Subscription (Entity_Id => This.Entity_Id, Service_Id => UInt32 (This.Network_Id)); for Address of This.Pre_Start_LMCP_Subscription_Addresses loop This.Message_Receiver_Pipe.Add_Lmcp_Object_Subscription_Address (Value (Address), Unused); end loop; This.Message_Sender_Pipe.Initialize_Push (Source_Group => Value (This.Message_Source_Group), Entity_Id => This.Entity_Id, Service_Id => UInt32 (This.Network_Id)); Success := True; -- per the C++ code end Initialize_Network_Client; ------------------------- -- Deserialzed_Message -- ------------------------- function Deserialzed_Message (Payload : String) return AVTAS.LMCP.Object.Object_Any is Result : AVTAS.LMCP.Object.Object_Any; Buffer : ByteBuffer (Capacity => Payload'Length); begin -- // allocate memory -- avtas::lmcp::ByteBuffer lmcpByteBuffer; -- lmcpByteBuffer.allocate(payload.size()); -- lmcpByteBuffer.rewind(); -- for (size_t charIndex = 0; charIndex < payload.size(); charIndex++) -- { -- lmcpByteBuffer.putByte(payload[charIndex]); // TODO REVIEW -- } -- PDR: note we don't just call Put_String because that would first put -- the length, which the C++ code doesn't do for C of Payload loop Buffer.Put_Byte (Character'Pos (C)); end loop; -- lmcpByteBuffer.rewind(); Buffer.Rewind; -- lmcpObject.reset(avtas::lmcp::Factory::getObject(lmcpByteBuffer)); AVTAS.LMCP.Factory.GetObject (Buffer, Result); return Result; end Deserialzed_Message; ---------------------- -- Entity_Id_Prefix -- ---------------------- function Entity_Id_Prefix return String is ("eid"); ----------------------- -- Service_Id_Prefix -- ----------------------- function Service_Id_Prefix return String is (".sid"); --------------------------- -- Service_Id_All_Suffix -- --------------------------- function Service_Id_All_Suffix return String is (".sidall"); ------------------------- -- Entity_Cast_Address -- ------------------------- function Entity_Cast_Address (Entity_Id : UInt32) return String is (Entity_Id_Prefix & To_String (Entity_Id)); ------------------------- -- Entity_Cast_Address -- ------------------------- function Entity_Cast_Address (Entity_Id : String) return String is (Entity_Id_Prefix & Entity_Id); -------------------------------------- -- Entity_Services_Cast_All_Address -- -------------------------------------- function Get_Entity_Services_Cast_All_Address (Entity_Id : UInt32) return String is (Entity_Cast_Address (Entity_Id) & Service_Id_All_Suffix); ------------------------------------ -- Network_Client_Unicast_Address -- ------------------------------------ function Network_Client_Unicast_Address (Entity_Id : UInt32; Network_Client_Id : Int64) return String is (Entity_Cast_Address (Entity_Id) & Service_Id_Prefix & To_String (Network_Client_Id)); ---------------------------------------- -- Get_Network_Client_Unicast_Address -- ---------------------------------------- function Get_Network_Client_Unicast_Address (Entity_Id : UInt32; Network_Client_Id : String) return String is (Entity_Cast_Address (Entity_Id) & Service_Id_Prefix & Network_Client_Id); ---------------------------------------- -- Get_Network_Client_Unicast_Address -- ---------------------------------------- function Get_Network_Client_Unicast_Address (Entity_Id : String; Network_Client_Id : String) return String is (Entity_Cast_Address (Entity_Id) & Service_Id_Prefix & Network_Client_Id); ---------------------------------------- -- Get_Network_Client_Unicast_Address -- ---------------------------------------- function Get_Network_Client_Unicast_Address (Entity_Id : String; Network_Client_Id : Int64) return String is (Entity_Cast_Address (Entity_Id) & Service_Id_Prefix & To_String (Network_Client_Id)); --------------------------------------- -- Get_Unique_Entity_Send_Message_Id -- --------------------------------------- procedure Get_Unique_Entity_Send_Message_Id (Value : out Int64)is begin -- return (s_uniqueEntitySendMessageId++); Value := Unique_Entity_Send_Message_Id; Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; end Get_Unique_Entity_Send_Message_Id; ---------------------------------- -- Get_Unique_Network_Client_Id -- ---------------------------------- procedure Get_Unique_Network_Client_Id (Value : out Int64) is begin Next_Network_Client_Id := Next_Network_Client_Id + 1; Value := Next_Network_Client_Id; end Get_Unique_Network_Client_Id; ----------------------------- -- Is_Termination_Finished -- ----------------------------- function Is_Termination_Finished (This : LMCP_Object_Network_Client_Base) return Boolean is (This.Is_Base_Class_Termination_Finished and This.Is_Subclass_Termination_Finished); ------------------------------ -- Configure_Network_Client -- ------------------------------ procedure Configure_Network_Client (This : in out LMCP_Object_Network_Client_Base; Subclass_Type_Name : String; Processing_Kind : Receive_Processing_Type; Network_Client_XML_Node : DOM.Core.Element; Result : out Boolean) is Unused : Boolean; begin -- m_entityId = uxas::common::ConfigurationManager::getInstance().getEntityId(); This.Entity_Id := UXAS.Common.Configuration_Manager.Instance.Get_Entity_Id; -- m_entityIdString = std::to_string(m_entityId); Copy (To_String (This.Entity_Id), To => This.Entity_Id_String); -- m_entityType = uxas::common::ConfigurationManager::getInstance().getEntityType(); Copy (UXAS.Common.Configuration_Manager.Instance.Get_Entity_Type, To => This.Entity_Type); -- m_networkClientTypeName = subclassTypeName; Copy (Subclass_Type_Name, To => This.Network_Client_Type_Name); -- m_receiveProcessingType = receiveProcessingType; This.Processing_Type := Processing_Kind; -- // subscribe to messages addressed to network client (bridge, service, etc.) -- m_entityIdNetworkIdUnicastString = getNetworkClientUnicastAddress(m_entityId, m_networkId); Copy (Get_Network_Client_Unicast_Address (This.Entity_Id, To_String (This.Network_Id)), To => This.Entity_Id_Network_Id_Unicast_String); -- addSubscriptionAddress(m_entityIdNetworkIdUnicastString); This.Add_Subscription_Address (Entity_Id_Network_Id_Unicast_String (This), Unused); -- s_entityServicesCastAllAddress = getEntityServicesCastAllAddress(m_entityId); Copy (Get_Entity_Services_Cast_All_Address (This.Entity_Id), To => Entity_Services_Cast_All_Address); -- addSubscriptionAddress(s_entityServicesCastAllAddress); This.Add_Subscription_Address (Value (Entity_Services_Cast_All_Address), Unused); -- // network client can be terminated via received KillService message -- addSubscriptionAddress(uxas::messages::uxnative::KillService::Subscription); This.Add_Subscription_Address (UXAS.Messages.UxNative.KillService.Subscription, Unused); -- m_isConfigured = configure(networkClientXmlNode); Configure (LMCP_Object_Network_Client_Base'Class (This), XML_Node => Network_Client_XML_Node, Result => Result); end Configure_Network_Client; -------------------------- -- Initialize_And_Start -- -------------------------- procedure Initialize_And_Start (This : in out LMCP_Object_Network_Client_Base; Result : out Boolean) is begin if not This.Is_Configured then Result := False; return; end if; Initialize_Network_Client (This, Result); if not Result then return; end if; Initialize (LMCP_Object_Network_Client_Base'Class (This), Result); -- dispatch to subclass, which will call this baseclass' version if not Result then return; end if; Start (LMCP_Object_Network_Client_Base'Class (This), Result); -- dispatch to subclass if not Result then return; end if; This.Network_Client_Thread := new Network_Client_Processor (This'Unchecked_Access); end Initialize_And_Start; ------------------------------ -- Network_Client_Processor -- ------------------------------ task body Network_Client_Processor is use Ada.Text_IO; begin case Client.Processing_Type is when LMCP => Execute_Network_Client (Client.all); -- loops until shut down when Serialized_LMCP => Execute_Serialized_Network_Client (Client.all); -- loops until shut down end case; exception when Error : others => Put_Line ("A Network_Client_Processor task has failed: "); Put_Line (Exception_Information (Error)); end Network_Client_Processor; ---------------------------- -- Execute_Network_Client -- ---------------------------- procedure Execute_Network_Client (This : in out LMCP_Object_Network_Client_Base) is ReceivedLmcpMessage : Any_Lmcp_Message; begin This.Is_Thread_Started := True; while not This.Is_Terminate_Network_Client loop This.Message_Receiver_Pipe.Get_Next_Message_Object (ReceivedLmcpMessage); if ReceivedLmcpMessage /= null then if Should_Kill_This_Service (This, ReceivedLmcpMessage) then This.Is_Terminate_Network_Client := True; else Process_Received_LMCP_Message (LMCP_Object_Network_Client_Base'Class (This), -- dispatch to subclass version Received_Message => ReceivedLmcpMessage, Should_Terminate => This.Is_Terminate_Network_Client); end if; end if; end loop; This.Is_Base_Class_Termination_Finished := True; loop Stop (LMCP_Object_Network_Client_Base'Class (This), This.Is_Subclass_Termination_Finished); -- dispatch to subclass version exit when This.Is_Subclass_Termination_Finished; -- std::this_thread::sleep_for(std::chrono::milliseconds(m_subclassTerminationAttemptPeriod_ms)); delay This.Subclass_Termination_Attempt_Period; -- subclassTerminateDuration_ms += m_subclassTerminationAttemptPeriod_ms; -- if (subclassTerminateDuration_ms > m_subclassTerminationWarnDuration_ms) -- { -- UXAS_LOG_WARN(m_networkClientTypeName, "::executeNetworkClient has not terminated subclass processing after [", subclassTerminateDuration_ms, "] milliseconds on thread [", std::this_thread::get_id(), "]"); -- } -- else if (subclassTerminateDuration_ms > m_subclassTerminationAbortDuration_ms) -- { -- UXAS_LOG_ERROR(m_networkClientTypeName, "::executeNetworkClient aborting termination of subclass processing after [", subclassTerminateDuration_ms, "] milliseconds on thread [", std::this_thread::get_id(), "]"); -- break; -- } end loop; end Execute_Network_Client; --------------------------------------- -- Execute_Serialized_Network_Client -- --------------------------------------- procedure Execute_Serialized_Network_Client (This : in out LMCP_Object_Network_Client_Base) is Next_Received_Serialized_Lmcp_Object : Addressed_Attributed_Message_Ref; begin -- m_isThreadStarted = true; This.Is_Thread_Started := True; -- while (!m_isTerminateNetworkClient) while not This.Is_Terminate_Network_Client loop -- get the next serialized LMCP object message (if any) from the LMCP network server -- std::unique_ptr<uxas::communications::data::AddressedAttributedMessage> nextReceivedSerializedLmcpObject = m_lmcpObjectMessageReceiverPipe.getNextSerializedMessage(); This.Message_Receiver_Pipe.Get_Next_Serialized_Message (Next_Received_Serialized_Lmcp_Object); -- if (nextReceivedSerializedLmcpObject) if Next_Received_Serialized_Lmcp_Object /= null then -- if (m_isBaseClassKillServiceProcessingPermitted if This.Is_Base_Class_Kill_Service_Processing_Permitted and then Has_KillService_Subscription (Next_Received_Serialized_Lmcp_Object) then -- reconstitute LMCP object declare -- std::shared_ptr<avtas::lmcp::Object> lmcpObject = deserializeMessage(nextReceivedSerializedLmcpObject->getPayload()); Lmcp_Object : AVTAS.LMCP.Object.Object_Any; begin Lmcp_Object := Deserialzed_Message (Next_Received_Serialized_Lmcp_Object.Payload); -- check KillService serviceID == my serviceID -- if (uxas::messages::uxnative::isKillService(lmcpObject) -- //&& m_entityIdString.compare(std::static_pointer_cast<uxas::messages::uxnative::KillService>(lmcpObject)->getEntityID()) == 0//TODO check entityID -- && m_networkIdString.compare(std::to_string(std::static_pointer_cast<uxas::messages::uxnative::KillService>(lmcpObject)->getServiceID())) == 0) if Should_Kill_This_Service (This, Lmcp_Object) then -- m_isTerminateNetworkClient = true; This.Is_Terminate_Network_Client := True; -- else if (processReceivedSerializedLmcpMessage(std::move(nextReceivedSerializedLmcpObject))) -- { -- m_isTerminateNetworkClient = true; -- } else Process_Received_Serialized_LMCP_Message (LMCP_Object_Network_Client_Base'Class (This), -- dispatch to subclass version Received_Message => Any_Addressed_Attributed_Message (Next_Received_Serialized_Lmcp_Object), Should_Terminate => This.Is_Terminate_Network_Client); end if; end; end if; end if; end loop; -- m_isBaseClassTerminationFinished = true; This.Is_Base_Class_Termination_Finished := True; loop -- m_isSubclassTerminationFinished = terminate(); Stop (LMCP_Object_Network_Client_Base'Class (This), This.Is_Subclass_Termination_Finished); -- dispatch to subclass version exit when This.Is_Subclass_Termination_Finished; -- std::this_thread::sleep_for(std::chrono::milliseconds(m_subclassTerminationAttemptPeriod_ms)); delay This.Subclass_Termination_Attempt_Period; -- subclassTerminateDuration_ms += m_subclassTerminationAttemptPeriod_ms; -- if (subclassTerminateDuration_ms > m_subclassTerminationWarnDuration_ms) -- { -- UXAS_LOG_WARN(m_networkClientTypeName, "::executeSerializedNetworkClient has not terminated subclass processing after [", subclassTerminateDuration_ms, "] milliseconds on thread [", std::this_thread::get_id(), "]"); -- } -- else if (subclassTerminateDuration_ms > m_subclassTerminationAbortDuration_ms) -- { -- m_isSubclassTerminationFinished = true; -- break; -- } end loop; end Execute_Serialized_Network_Client; ----------------------------------- -- Process_Received_LMCP_Message -- ----------------------------------- procedure Process_Received_LMCP_Message (This : in out LMCP_Object_Network_Client_Base; Received_Message : not null Any_LMCP_Message; Should_Terminate : out Boolean) is pragma Unreferenced (This, Received_Message); begin Should_Terminate := False; -- per the C++ version end Process_Received_LMCP_Message; ---------------------------------------------- -- Process_Received_Serialized_LMCP_Message -- ---------------------------------------------- procedure Process_Received_Serialized_LMCP_Message (This : in out LMCP_Object_Network_Client_Base; Received_Message : not null Any_Addressed_Attributed_Message; Should_Terminate : out Boolean) is pragma Unreferenced (This, Received_Message); begin Should_Terminate := False; -- per the C++ version end Process_Received_Serialized_LMCP_Message; ------------------------------ -- Add_Subscription_Address -- ------------------------------ procedure Add_Subscription_Address (This : in out LMCP_Object_Network_Client_Base; Address : String; Success : out Boolean) is Target : constant Subscription_Address := Instance (Subscription_Address_Max_Length, Content => Address); Unused : Boolean; begin if This.Is_Thread_Started then This.Message_Receiver_Pipe.Add_Lmcp_Object_Subscription_Address (Address, Unused); else -- replace if already present Subscription_Addresses.Include (This.Pre_Start_LMCP_Subscription_Addresses, Target); end if; Success := True; -- per the C++ implementation end Add_Subscription_Address; --------------------------------- -- Remove_Subscription_Address -- --------------------------------- procedure Remove_Subscription_Address (This : in out LMCP_Object_Network_Client_Base; Address : String; Success : out Boolean) is Target : constant Subscription_Address := Instance (Subscription_Address_Max_Length, Content => Address); Unused : Boolean; begin if This.Is_Thread_Started then This.Message_Receiver_Pipe.Remove_Lmcp_Object_Subscription_Address (Address, Unused); else -- remove if present Subscription_Addresses.Exclude (This.Pre_Start_LMCP_Subscription_Addresses, Target); end if; Success := False; -- per the C++ implementation!!!! end Remove_Subscription_Address; --------------------------------------- -- Remove_All_Subscription_Addresses -- --------------------------------------- procedure Remove_All_Subscription_Addresses (This : in out LMCP_Object_Network_Client_Base; Success : out Boolean) is Unused : Boolean; begin if This.Is_Thread_Started then This.Message_Receiver_Pipe.Remove_All_Lmcp_Object_Subscription_Address (Unused); else Subscription_Addresses.Clear (This.Pre_Start_LMCP_Subscription_Addresses); end if; Success := False; -- per the C++ implementation!!!! end Remove_All_Subscription_Addresses; ------------------------------------------- -- Send_LMCP_Object_Limited_Cast_Message -- ------------------------------------------- procedure Send_LMCP_Object_Limited_Cast_Message (This : in out LMCP_Object_Network_Client_Base; CastAddress : String; Msg : not null AVTAS.LMCP.Object.Object_Any) is begin Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; This.Message_Sender_Pipe.Send_LimitedCast_Message (CastAddress, Msg); end Send_LMCP_Object_Limited_Cast_Message; ---------------------------------------- -- Send_LMCP_Object_Broadcast_Message -- ---------------------------------------- procedure Send_LMCP_Object_Broadcast_Message (This : in out LMCP_Object_Network_Client_Base; Msg : not null AVTAS.LMCP.Object.Object_Any) is begin Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; This.Message_Sender_Pipe.Send_Broadcast_Message (Msg); end Send_LMCP_Object_Broadcast_Message; ----------------------------------------- -- Send_Serialized_LMCP_Object_Message -- ----------------------------------------- procedure Send_Serialized_LMCP_Object_Message (This : in out LMCP_Object_Network_Client_Base; Msg : not null Addressed_Attributed_Message_Ref) is begin Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; This.Message_Sender_Pipe.Send_Serialized_Message (Msg); end Send_Serialized_LMCP_Object_Message; ----------------------------------------------- -- Send_Shared_LMCP_Object_Broadcast_Message -- ----------------------------------------------- procedure Send_Shared_LMCP_Object_Broadcast_Message (This : in out LMCP_Object_Network_Client_Base; Msg : not null AVTAS.LMCP.Object.Object_Any) is begin Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; This.Message_Sender_Pipe.Send_Shared_Broadcast_Message (Msg); end Send_Shared_LMCP_Object_Broadcast_Message; -------------------------------------------------- -- Send_Shared_LMCP_Object_Limited_Cast_Message -- -------------------------------------------------- procedure Send_Shared_LMCP_Object_Limited_Cast_Message (This : in out LMCP_Object_Network_Client_Base; Cast_Address : String; Msg : not null AVTAS.LMCP.Object.Object_Any) is begin Unique_Entity_Send_Message_Id := Unique_Entity_Send_Message_Id + 1; This.Message_Sender_Pipe.Send_Shared_LimitedCast_Message (Cast_Address, Msg); end Send_Shared_LMCP_Object_Limited_Cast_Message; --------------- -- Entity_Id -- --------------- function Entity_Id (This : LMCP_Object_Network_Client_Base) return UInt32 is (This.Entity_Id); ---------------------- -- Entity_Id_String -- ---------------------- function Entity_Id_String (This : LMCP_Object_Network_Client_Base) return String is (Value (This.Entity_Id_String)); ---------------- -- Network_Id -- ---------------- function Network_Id (This : LMCP_Object_Network_Client_Base) return Int64 is (This.Network_Id); ----------------------- -- Network_Id_String -- ----------------------- function Network_Id_String (This : LMCP_Object_Network_Client_Base) return String is (Value (This.Network_Id_String)); ----------------------------------------- -- Entity_Id_Network_Id_Unicast_String -- ----------------------------------------- function Entity_Id_Network_Id_Unicast_String (This : LMCP_Object_Network_Client_Base) return String is (Value (This.Entity_Id_Network_Id_Unicast_String)); ------------------------------ -- Network_Client_Type_Name -- ------------------------------ function Network_Client_Type_Name (This : LMCP_Object_Network_Client_Base) return String is (Value (This.Network_Client_Type_Name)); ----------- -- Start -- ----------- procedure Start (This : in out LMCP_Object_Network_Client_Base; Result : out Boolean) is pragma Unreferenced (This); -- by design begin Result := True; end Start; ---------- -- Stop -- ---------- procedure Stop (This : in out LMCP_Object_Network_Client_Base; Result : out Boolean) is pragma Unreferenced (This); -- by design begin Result := True; end Stop; ------------------------------ -- Should_Kill_This_Service -- ------------------------------ function Should_Kill_This_Service (This : LMCP_Object_Network_Client_Base; Msg : Any_Lmcp_Message) return Boolean is use UXAS.Messages.UxNative.KillService; -- the lmcpgen C++ generated code in class KillService has these static functions: -- -- // Subscription string is namespace separated by '.' followed by type name -- const std::string KillService::Subscription = "uxas.messages.uxnative.KillService"; -- const std::string KillService::TypeName = "KillService"; -- const std::string KillService::SeriesName = "UXNATIVE"; -- const int64_t KillService::SeriesId = 6149751333668345413LL; -- const uint16_t KillService::SeriesVersion = 9; -- const uint32_t KillService::TypeId = 4; -- -- bool isKillService(avtas::lmcp::Object* obj) -- { -- if(!obj) return false; -- if(obj->getSeriesNameAsLong() != 6149751333668345413LL) return false; -- if(obj->getSeriesVersion() != 9) return false; -- if(obj->getLmcpType() != 4) return false; -- return true; -- } begin if not This.Is_Base_Class_Kill_Service_Processing_Permitted then return False; end if; -- && uxas::messages::uxnative::isKillService(receivedLmcpMessage->m_object) if Msg.Payload.all not in KillService'Class then return False; end if; -- check KillService serviceID == my serviceID -- && m_networkIdString.compare -- (std::to_string(std::static_pointer_cast<uxas::messages::uxnative::KillService>(receivedLmcpMessage->m_object)->getServiceID())) -- == 0) return This.Network_Id_String = To_String (KillService (Msg.Payload.all).GetServiceID); end Should_Kill_This_Service; ------------------------------ -- Should_Kill_This_Service -- ------------------------------ function Should_Kill_This_Service (This : LMCP_Object_Network_Client_Base; Msg : AVTAS.LMCP.Object.Object_Any) return Boolean is use UXAS.Messages.UxNative.KillService; begin if not This.Is_Base_Class_Kill_Service_Processing_Permitted then return False; end if; -- if (uxas::messages::uxnative::isKillService(lmcpObject) if Msg.all not in KillService'Class then return False; end if; -- check KillService serviceID == my serviceID -- //&& m_entityIdString.compare(std::static_pointer_cast<uxas::messages::uxnative::KillService>(lmcpObject)->getEntityID()) == 0//TODO check entityID -- && m_networkIdString.compare(std::to_string(std::static_pointer_cast<uxas::messages::uxnative::KillService>(lmcpObject)->getServiceID())) == 0) return This.Network_Id_String = To_String (KillService (Msg.all).GetServiceID); end Should_Kill_This_Service; ---------------------------------- -- Has_KillService_Subscription -- ---------------------------------- function Has_KillService_Subscription (Msg : Addressed_Attributed_Message_Ref) return Boolean is Descriptor : constant String := Msg.Message_Attributes_Reference.Payload_Descriptor; Target : constant String := UXAS.Messages.UxNative.KillService.Subscription; Pos : Natural; use Ada.Strings; begin -- && nextReceivedSerializedLmcpObject->getMessageAttributesReference()->getDescriptor() -- .rfind(uxas::messages::uxnative::KillService::Subscription) != std::string::npos) Pos := Ada.Strings.Fixed.Index (Source => Descriptor, Pattern => Target, Going => Backward) ; return Pos /= 0; end Has_KillService_Subscription; end UxAS.Comms.LMCP_Net_Client;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- I N T E R F A C E S . F O R T R A N -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992,1993,1994 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body Interfaces.Fortran is ------------ -- To_Ada -- ------------ -- Single character case function To_Ada (Item : in Character_Set) return Character is begin return Character (Item); end To_Ada; -- String case (function returning converted result) function To_Ada (Item : in Fortran_Character) return String is T : String (1 .. Item'Length); begin for J in T'Range loop T (J) := Character (Item (J - 1 + Item'First)); end loop; return T; end To_Ada; -- String case (procedure copying converted string to given buffer) procedure To_Ada (Item : in Fortran_Character; Target : out String; Last : out Natural) is begin if Item'Length = 0 then Last := 0; return; elsif Target'Length = 0 then raise Constraint_Error; else Last := Target'First - 1; for J in Item'Range loop Last := Last + 1; if Last > Target'Last then raise Constraint_Error; else Target (Last) := Character (Item (J)); end if; end loop; end if; end To_Ada; ---------------- -- To_Fortran -- ---------------- -- Character case function To_Fortran (Item : in Character) return Character_Set is begin return Character_Set (Item); end To_Fortran; -- String case (function returning converted result) function To_Fortran (Item : in String) return Fortran_Character is T : Fortran_Character (1 .. Item'Length); begin for J in T'Range loop T (J) := Character_Set (Item (J - 1 + Item'First)); end loop; return T; end To_Fortran; -- String case (procedure copying converted string to given buffer) procedure To_Fortran (Item : in String; Target : out Fortran_Character; Last : out Natural) is begin if Item'Length = 0 then Last := 0; return; elsif Target'Length = 0 then raise Constraint_Error; else Last := Target'First - 1; for J in Item'Range loop Last := Last + 1; if Last > Target'Last then raise Constraint_Error; else Target (Last) := Character_Set (Item (J)); end if; end loop; end if; end To_Fortran; end Interfaces.Fortran;
With Ada.Text_IO; Use Ada.Text_IO; With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; procedure Program is begin -- your code goes here end Program;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2013, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.OCL.Navigation_Call_Exps; limited with AMF.UML.Association_Classes; package AMF.OCL.Association_Class_Call_Exps is pragma Preelaborate; type OCL_Association_Class_Call_Exp is limited interface and AMF.OCL.Navigation_Call_Exps.OCL_Navigation_Call_Exp; type OCL_Association_Class_Call_Exp_Access is access all OCL_Association_Class_Call_Exp'Class; for OCL_Association_Class_Call_Exp_Access'Storage_Size use 0; not overriding function Get_Referred_Association_Class (Self : not null access constant OCL_Association_Class_Call_Exp) return AMF.UML.Association_Classes.UML_Association_Class_Access is abstract; -- Getter of AssociationClassCallExp::referredAssociationClass. -- not overriding procedure Set_Referred_Association_Class (Self : not null access OCL_Association_Class_Call_Exp; To : AMF.UML.Association_Classes.UML_Association_Class_Access) is abstract; -- Setter of AssociationClassCallExp::referredAssociationClass. -- end AMF.OCL.Association_Class_Call_Exps;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- T E M P D I R -- -- -- -- B o d y -- -- -- -- Copyright (C) 2003-2015, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with GNAT.Directory_Operations; use GNAT.Directory_Operations; with Opt; use Opt; with Output; use Output; package body Tempdir is Tmpdir_Needs_To_Be_Displayed : Boolean := True; Tmpdir : constant String := "TMPDIR"; Temp_Dir : String_Access := new String'(""); ---------------------- -- Create_Temp_File -- ---------------------- procedure Create_Temp_File (FD : out File_Descriptor; Name : out Path_Name_Type) is File_Name : String_Access; Current_Dir : constant String := Get_Current_Dir; function Directory return String; -- Returns Temp_Dir.all if not empty, else return current directory --------------- -- Directory -- --------------- function Directory return String is begin if Temp_Dir'Length /= 0 then return Temp_Dir.all; else return Current_Dir; end if; end Directory; -- Start of processing for Create_Temp_File begin if Temp_Dir'Length /= 0 then -- In verbose mode, display once the value of TMPDIR, so that -- if temp files cannot be created, it is easier to understand -- where temp files are supposed to be created. if Verbose_Mode and then Tmpdir_Needs_To_Be_Displayed then Write_Str ("TMPDIR = """); Write_Str (Temp_Dir.all); Write_Line (""""); Tmpdir_Needs_To_Be_Displayed := False; end if; -- Change directory to TMPDIR before creating the temp file, -- then change back immediately to the previous directory. Change_Dir (Temp_Dir.all); Create_Temp_File (FD, File_Name); Change_Dir (Current_Dir); else Create_Temp_File (FD, File_Name); end if; if FD = Invalid_FD then Write_Line ("could not create temporary file in " & Directory); Name := No_Path; else declare Path_Name : constant String := Normalize_Pathname (Directory & Directory_Separator & File_Name.all); begin Name_Len := Path_Name'Length; Name_Buffer (1 .. Name_Len) := Path_Name; Name := Name_Find; Free (File_Name); end; end if; end Create_Temp_File; ------------------ -- Use_Temp_Dir -- ------------------ procedure Use_Temp_Dir (Status : Boolean) is Dir : String_Access; begin if Status then Dir := Getenv (Tmpdir); end if; Free (Temp_Dir); if Dir /= null and then Dir'Length > 0 and then Is_Absolute_Path (Dir.all) and then Is_Directory (Dir.all) then Temp_Dir := new String'(Normalize_Pathname (Dir.all)); else Temp_Dir := new String'(""); end if; Free (Dir); end Use_Temp_Dir; -- Start of elaboration for package Tempdir begin Use_Temp_Dir (Status => True); end Tempdir;
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Cc_Set_User_Certificate.Convert; with Tkmrpc.Response.Ike.Cc_Set_User_Certificate.Convert; package body Tkmrpc.Operation_Handlers.Ike.Cc_Set_User_Certificate is ------------------------------------------------------------------------- procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type) is Specific_Req : Request.Ike.Cc_Set_User_Certificate.Request_Type; Specific_Res : Response.Ike.Cc_Set_User_Certificate.Response_Type; begin Specific_Res := Response.Ike.Cc_Set_User_Certificate.Null_Response; Specific_Req := Request.Ike.Cc_Set_User_Certificate.Convert.From_Request (S => Req); if Specific_Req.Data.Cc_Id'Valid and Specific_Req.Data.Ri_Id'Valid and Specific_Req.Data.Autha_Id'Valid and Specific_Req.Data.Certificate.Size'Valid then Servers.Ike.Cc_Set_User_Certificate (Result => Specific_Res.Header.Result, Cc_Id => Specific_Req.Data.Cc_Id, Ri_Id => Specific_Req.Data.Ri_Id, Autha_Id => Specific_Req.Data.Autha_Id, Certificate => Specific_Req.Data.Certificate); Res := Response.Ike.Cc_Set_User_Certificate.Convert.To_Response (S => Specific_Res); else Res.Header.Result := Results.Invalid_Parameter; end if; end Handle; end Tkmrpc.Operation_Handlers.Ike.Cc_Set_User_Certificate;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- Root package for the drivers of the STM32 family of MCU pragma Warnings (Off); with Interfaces; use Interfaces; with HAL; use HAL; pragma Warnings (On); package STM32 is pragma Pure; type GPIO_Alternate_Function is private; private type GPIO_Alternate_Function is new UInt4; end STM32;
with Ada.Text_IO, Miller_Rabin; procedure Mr_Tst is type Number is range 0 .. (2**48)-1; package Num_IO is new Ada.Text_IO.Integer_IO (Number); package Pos_IO is new Ada.Text_IO.Integer_IO (Positive); package MR is new Miller_Rabin(Number); use MR; N : Number; K : Positive; begin for I in Number(2) .. 1000 loop if Is_Prime (I) = Probably_Prime then Ada.Text_IO.Put (Number'Image (I)); end if; end loop; Ada.Text_IO.Put_Line ("."); Ada.Text_IO.Put ("Enter a Number: "); Num_IO.Get (N); Ada.Text_IO.Put ("Enter the count of loops: "); Pos_IO.Get (K); Ada.Text_IO.Put_Line ("What is it? " & Result_Type'Image (Is_Prime(N, K))); end MR_Tst;
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- * Neither the name of the nor the names of its contributors may be used -- to endorse or promote products derived from this software without -- specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with AUnit.Assertions; use AUnit.Assertions; with Util; use Util; with LSC.SHA2.HMAC; with LSC.Types; pragma Style_Checks ("-s-M"); pragma Warnings (Off, "formal parameter ""T"" is not referenced"); package body LSC_Test_HMAC_SHA2 is procedure Test_HMAC_SHA256 (Key : String; Msg : String; Mac : String; Textkey : Boolean := False; Textmsg : Boolean := False) is use type LSC.Types.Bytes; Converted_Key : constant LSC.Types.Bytes := (if Textkey then T2B (Key) else S2B (Key)); Converted_Msg : constant LSC.Types.Bytes := (if Textmsg then T2B (Msg) else S2B (Msg)); Converted_Mac : constant LSC.Types.Bytes := S2B (Mac); Len : constant Natural := Converted_Mac'Length; Result : constant LSC.Types.Bytes := LSC.SHA2.HMAC.HMAC_SHA256 (Key => Converted_Key, Message => Converted_Msg); begin Assert (Result (Result'First .. Result'First + Len - 1) = Converted_Mac, "Invalid HMAC: got " & B2S (Result) & ", expected " & Mac); end Test_HMAC_SHA256; --------------------------------------------------------------------------- procedure Test_HMAC_SHA384 (Key : String; Msg : String; Mac : String; Textkey : Boolean := False; Textmsg : Boolean := False) is use type LSC.Types.Bytes; Converted_Key : constant LSC.Types.Bytes := (if Textkey then T2B (Key) else S2B (Key)); Converted_Msg : constant LSC.Types.Bytes := (if Textmsg then T2B (Msg) else S2B (Msg)); Converted_Mac : constant LSC.Types.Bytes := S2B (Mac); Len : constant Natural := Converted_Mac'Length; Result : constant LSC.Types.Bytes := LSC.SHA2.HMAC.HMAC_SHA384 (Key => Converted_Key, Message => Converted_Msg); begin Assert (Result (Result'First .. Result'First + Len - 1) = Converted_Mac, "Invalid HMAC: got " & B2S (Result) & ", expected " & Mac); end Test_HMAC_SHA384; --------------------------------------------------------------------------- procedure Test_HMAC_SHA512 (Key : String; Msg : String; Mac : String; Textkey : Boolean := False; Textmsg : Boolean := False) is use type LSC.Types.Bytes; Converted_Key : constant LSC.Types.Bytes := (if Textkey then T2B (Key) else S2B (Key)); Converted_Msg : constant LSC.Types.Bytes := (if Textmsg then T2B (Msg) else S2B (Msg)); Converted_Mac : constant LSC.Types.Bytes := S2B (Mac); Len : constant Natural := Converted_Mac'Length; Result : constant LSC.Types.Bytes := LSC.SHA2.HMAC.HMAC_SHA512 (Key => Converted_Key, Message => Converted_Msg); begin Assert (Result (Result'First .. Result'First + Len - 1) = Converted_Mac, "Invalid HMAC: got " & B2S (Result) & ", expected " & Mac); end Test_HMAC_SHA512; --------------------------------------------------------------------------- -- RFC 4868 PRF Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA256_Prf (T : in out Test_Cases.Test_Case'Class) is begin -- PRF-1 Test_HMAC_SHA256 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "b0344c61d8db38535ca8afceaf0bf12b 881dc200c9833da726e9376c2e32cff7", Textmsg => True); -- PRF-2 Test_HMAC_SHA256 ("Jefe", "what do ya want for nothing?", "5bdcc146bf60754e6a042426089575c7 5a003f089d2739839dec58b964ec3843", Textkey => True, Textmsg => True); -- PRF-3 Test_HMAC_SHA256 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa", "dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd" & "dddddddddddddddddddddddddddddddd dddd", "773ea91e36800e46854db8ebd09181a7 2959098b3ef8c122d9635514ced565fe"); -- PRF-4 Test_HMAC_SHA256 ("0102030405060708090a0b0c0d0e0f10 111213141516171819", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd" & "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcd", "82558a389a443c0ea4cc819899f2083a 85f0faa3e578f8077a2e3ff46729665b"); -- PRF-5 Test_HMAC_SHA256 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaa", "54657374205573696e67204c61726765 72205468616e20426c6f636b2d53697a" & "65204b6579202d2048617368204b6579 204669727374", "60e431591ee0b67f0d8a26aacbf5b77f 8e0bc6213728c5140546040f0ee37f54"); -- PRF-6 Test_HMAC_SHA256 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa", "54686973206973206120746573742075 73696e672061206c6172676572207468 616e20626c6f636b2d73697a65206b65" & "7920616e642061206c61726765722074 68616e20626c6f636b2d73697a652064 6174612e20546865206b6579206e6565" & "647320746f2062652068617368656420 6265666f7265206265696e6720757365 642062792074686520484d414320616c" & "676f726974686d2e", "9b09ffa71b942fcb27635fbcd5b0e944 bfdc63644f0713938a7f51535c3a35e2"); end Test_HMAC_SHA256_Prf; --------------------------------------------------------------------------- -- RFC 4868 AUTH Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA256_Auth (T : in out Test_Cases.Test_Case'Class) is begin -- AUTH256-1 Test_HMAC_SHA256 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "198a607eb44bfbc69903a0f1cf2bbdc5", Textmsg => True); -- AUTH256-2 Test_HMAC_SHA256 ("JefeJefeJefeJefeJefeJefeJefeJefe", "what do ya want for nothing?", "167f928588c5cc2eef8e3093caa0e87c", Textkey => True, Textmsg => True); -- AUTH256-3 Test_HMAC_SHA256 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" & "dddddddddddddddddddddddddddddddddddd", "cdcb1220d1ecccea91e53aba3092f962"); -- AUTH256-4 Test_HMAC_SHA256 ("0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd" & "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd", "372efcf9b40b35c2115b1346903d2ef4"); end Test_HMAC_SHA256_Auth; --------------------------------------------------------------------------- -- NIST test vectors are from -- CAVP Testing: Keyed-Hash Message Authentication Code (HMAC) -- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/mac/hmactestvectors.zip --------------------------------------------------------------------------- procedure Test_HMAC_SHA256_NIST (T : in out Test_Cases.Test_Case'Class) is begin Test_HMAC_SHA256 (Key => "6f35628d65813435534b5d67fbdb54cb33403d04e843103e6399f806cb5df95febbdd61236f33245", Msg => "752cff52e4b90768558e5369e75d97c69643509a5e5904e0a386cbe4d0970ef73f918f675945a9aefe26daea27587e8dc909dd56fd0468805f834039b345f855cfe19c44b55af241fff3ffcd8045cd5c288e6c4e284c3720570b58e4d47b8feeedc52fd1401f698a209fccfa3b4c0d9a797b046a2759f82a54c41ccd7b5f592b", Mac => "05d1243e6465ed9620c9aec1c351a186"); Test_HMAC_SHA256 (Key => "17b52858e3e135be4440d7df0ca996f41ccb78b7d8cc1924d830fe81e0fd279c131ce3546303e95a", Msg => "e0eff00f3c46e96c8d5bd181283e4605348e3fa10b47945de3dcc159ae86e7bd3fdb13f2ada2c313fce6a69efa49a470689b1ef05aab778ae15dd35fe6fd1e3a59d351c68cf8f0ffd968d7e78b57377afcc9dce3fa5db1f06f6985c4414c0fcc780030f49fef791a6c08edc2a311080c373f00e4b2044a79d82860f0871bc259", Mac => "c4061427764f979468ac422891dea9ca"); Test_HMAC_SHA256 (Key => "7c67410e0a9e3d7ae4f3d04eff1c2716891e821c6ec1dc822142ce8d9949b1449a1a033a350f0ba8", Msg => "bfd166793abdcffbbd56df769150d1466c18a67af452c7e67f86ed741d163ebbd874b9d33a91d3671099620b6eddbbd0f31117164eb73ca201db59f1650131cbef5c7b1bb14089fd24da2919241fc9303c02def424ea861d88636bb90b13ebc38cf177f8a8b139e68082fa46bcfc428bd054c1bb7dd3ed7e9b86ed751736b6cc", Mac => "1a0d427e79a7bdca7b11579339d0ff77"); Test_HMAC_SHA256 (Key => "b2c450128d0744421c3f31fab37bbcdfb5a2ff2fb706d1f7e23c4886992c7d215c648ff8edb2eb59", Msg => "f6989ebb07aadaeef970f0b5ceb806ecffe77cc20f3c221a6659a9315dff5881961900e68efc320075edafd83de320c6f18f0892489af6d97a2effb252b76b9284ebaf6d42089c1e0a5cd509c20b86ff060d5362c1768f89fafaaf65f1b0fe656b1692984a567e1260c7499085b79f5fe7684779a25855f291c5a192637177c4", Mac => "f0d7c63677033ada0b502a4e95b20e43"); Test_HMAC_SHA256 (Key => "a7744321d73938b8eea13754909029881bbd727439fe2731b1c67b7083eb7b5d33adfcca65f5d189", Msg => "71299ca3daff2331082db370bdf8ceec227b71bdc49c3b14dc3fd213d3ba83e2058828ffc6414fd5a2c99891e9c85f316c5b9bdd810a067b4df97f7e4262acfee642e30ed6534b4a0b3b3eaf5d03f2b045ca5985e7bb45c7503cd03afc68fbea9bc09579141d5fb7cbea6d73208fcf913830715dff98401f6d708ef009b5b8cb", Mac => "f6302c5fd7c8495e233b5d6129f361da"); Test_HMAC_SHA256 (Key => "795a0ba9b02984cfce5e7395fb94d98fcf12ae5db8a06e239c9ad439bf42e523e65a31c3bdf356cd", Msg => "8b4aa20de6c1f051d11ad50ba2e4fc4ff1ec478455f9b5b96fb9893d2afca969402044c101ccb73c50e2b2dfeeae9690fb64222ab9c94fcd943078785fa8bed9e174ab6390bb16a29c8146cb2fd65a98f44de752d6b0e42f0af2c3df4f65e162742d201c1bf5d22bbee1daf8efc30d0ce491df2632173b8ad9e9b29b819cd8ac", Mac => "fbecae19c2ce766d286c8ce70133b669"); Test_HMAC_SHA256 (Key => "aa41b5222efdea882cbebd11d343000ec2ff6b2f7bbfa746158ea54f32d534ae31c7d3b7a5fcc373", Msg => "3274a0326682ba59d6c47db4164e3e9937bfad4199c6507101e5305aeb75d2bf22eb68558d59496f4c389fda04645f0676687f6757fc631b5bcc98cd947bc4d9fae8ddb14bb09a7f15f4270c105c1de0b25bb1abfeb52ce39d3f9baf2fe6c704e3f3670d458e95d158807f10e53d5f6d1221add336fa9211ecc7a1c767bfc286", Mac => "cec1ed7aa0f1cbd6b7f667a079a88577"); Test_HMAC_SHA256 (Key => "aaa449923f0cd3e6a7e74d9c56a7eb6a3b4c3dea97e6a8400e5517fcff54ee4211b640280eee415f", Msg => "0486d2647e2cdf7bba36c8f3ff9e2941001c706eb1a44cbd582f638ee7be4482899c9ce07be4ac381d44fa4649004718e33ac273b1707b746d461a731986d12c93658f216908773aee4690af8eb0be275ecef122f7ac9c94859569d21b1f2bb24a6813eef19e28ca56c5f1f776b474b69a6165412b5f9766c7a5b6759491385c", Mac => "ae73b3740a7a8a07223635faaef0ba71"); Test_HMAC_SHA256 (Key => "6c13d74ed004ee92adb44b755be92e8440434704a1c22790b788f50406e0629aea80de53730b0d99", Msg => "fd5cf72ee0779aab7daa27d5c8a8d31f4082ba47741e7e73c6e631806fbd7597c337e101b609a73ca0be744e3dac9859f827677069f4dfa91c008b739452a62a8f3f84e98cdd2ea08bba4d6614cd49107aacb1026100de457e36d3da9e78684eeadca88f69db77fec60478c554f12d6b4f7b60a6652ac27074efd35c9616012b", Mac => "4304f9864598f801c6aa1a692aabb8be"); Test_HMAC_SHA256 (Key => "12541d81c6958221c44a958ecd7f48c08a89a8687d306c2f3814c93ecd498e0485456c33d5fc950c", Msg => "31f51d395a06885efc34032349bc635cd4b1004ceafcb1c426a2f88b4045790226eeb1084e09e41c4ab157c19d2ec027cdbcfb07b98efecf2d130fffb47835d3ad6eec22a12d1c86d4b94cbd1a64134fec94d071bbc69b2a84d37cb4a572da25efff364ffc7b19e4c3d34ade6965451d5bc0e95299ab711d556aa572bc3c5141", Mac => "edad94e7c30813be7c5ac58df418d8a8"); Test_HMAC_SHA256 (Key => "a1e8cf95c6d729507661fcc687156922c8975645e5f36eba8a3069eccb298e96c498767c7c741259", Msg => "48bdae9d81f1beaccfd00374f522f90cfedd8e3dd93be13947104a89f75b9a48ee1ba48f2d64fc308eb1fea7f07c124d930c2fcfc58f9edfbf680129caca9389a686b17b2b219ad3312a73aeaeca8ea81e9deb4f28c0ffd87e2cb5110542b39736a6de49c45120fc7ee269717835f3846537cba548f98d8c4c036e29efea80da", Mac => "d78d7d266cf83add4355e7395b63adfd"); Test_HMAC_SHA256 (Key => "c7e5ede152c50a935e76b59979e08638a09cfffd01ac7008056a18ab8ebf8d347e955e06788ff6ef", Msg => "1e1bdaa984ca68730faf61c697d5fb15955b28992d69bae86c68cbc9ce735c4703083c04f2042cd0ffce407a89d288e6b731f06075b66530b90d396f0b2fc91944215d6396de4f4ecc92707cd308a7427a66db00761813ada90adcb6a41aec096acd046c76401b140062b8737d61a0516562b11e38750e87c3c87c47a01b0c40", Mac => "b7de3be2fae6ab41aa6386b8460223c6"); Test_HMAC_SHA256 (Key => "6ab37be64f4b1e032c5a43dc03e4afb65c6ab1329fbca9c4c10fc766224f158eb6b7b85d649e7319", Msg => "490700ea587a001c7162f0946f7ca6a5e3655c6e09ba4c13fa7e7d4e22bcdc27f56d8effde9b85d378c751bf018939c10c768bc0754630cd9a3783a8c8ac6486f41a8711ac2412b14d05680a752f3fc6bb31f9949ede3170bcac9426455af211aed69429aa5dd13d56e4dc7cb3b7e03a5a604ff16bca7786c7a656ce7f0eaf51", Mac => "380eaf65a9be83322508498748504b50"); Test_HMAC_SHA256 (Key => "785a1189381824a8131e885ba4b23c2e94e3dfdc03652cc32a9cc1963ff72452997f077315b0cb67", Msg => "5bc93a655f35d346f9e96e96e9bb560178dad04ea46259917d2d30a2cfed14cd01774fcb3d62f3f1d2d164a8d68d161d0f57983a147cd2d4afa98b2686012e7efa6dcd36503366e60ecb65d8a8ee6bbc5cef4e9d5b4e6114298bf5bc46381fe50e52bc8dded1b38c787e7a0ea905dc46294bf961c2018eb9b47a764c59b9716c", Mac => "b452d180b9cacc10cb012f48dd19e4cd"); Test_HMAC_SHA256 (Key => "394575dded531000e776ae4adc64c4affb5b220ac5a96ebf1f72d19fa6aef00c42711e5dfe6fcf84", Msg => "b733d51a7eaa4b6bb0e378a218caa6ae7475a3f32909184d34d7165264cbf2d8c60753b861cb89d12498204f1d95b52dec3109f8760a54d6de0edcc8b1dfc52c607c2b86f41f6e7ffd61cd2ecba43797e1b25d71a7a20c2d5ffcba335a1d5f6f6cdc860c9d6da37f2186a7c88bc1d2f43d42c8e72399e858a1e9d91dc94a65a9", Mac => "3f6417a99d7186bc36e6d0d61467360d"); Test_HMAC_SHA256 (Key => "14d45ca2a3d4977dab2b7d442c6f9e57ce348e0a6a808bb3cc7f6002b87789912afd98bce26ad8b3", Msg => "0c294a318b7c1e884649fe54e4a87285e42f868e3d0a8519414e05f9c78b236089a11052cbd4cd593e22327b23d33569b35369f9bf3dc5d694b8a7762106184d5c5a5241e1ea805ddc46c4c92ae87efabb0ccc263bc24dfbf1412b90e77e589c4bfd17e615e7bffcea5ebb28400dd6a0c403b6fdf8c1a5ee2191982e601a69b3", Mac => "28f1b663213043c4d4fb312bd36d85fbe62c8008ce82aabc"); Test_HMAC_SHA256 (Key => "2a0466dd515d2f48fec5e78e22bb22c606b09e8184691c5177a46e8c70fed24dab147ebc41e97c8f", Msg => "d60812433098c44623159153de7cd2721b349f685c43388a74c2a3d04a8e972ada4199177c61657369d78f907ba26a8934cc29d3029d4415c1101e3a8283e4c48bb2b8639fe60fc67f6a57b1b03fde507f10efcb43683e1ae223851b962370e1f144b74f1f9189e66cb831dc05bbf46e03e93877a50dec40dde5239a0fd5022a", Mac => "7c2e5f1fdbda3c153536ec7136091eba0ba525b950bfc84f"); Test_HMAC_SHA256 (Key => "3a4182af8c3914d1df57b6321fa5dec68748ad746e0369bb64fc2d9b7dc3dfb3ed9063a7d5cc0ec4", Msg => "3db052695a599813309fae5cf5b19690d3e1e63b3caac1487ef10766978bc9b04a00008c728e7ed397712433bf6256d2865eac3471a8ea5f8011333d02777941ad8c384deed864d47e02a03c364bb086245b3130de40875a16b418296f9eb8698fdc63767640325c0ed8883d03738cf3d460ddf72b7981816a611ef186096c6e", Mac => "dd3334fabe8d0d51084c1e99a2a7fa8548c4cbbeec854fb4"); Test_HMAC_SHA256 (Key => "56e8ada1ebc8706b94f99bf2290365222f6619a7fc3161151cd0c566f4266faaa5dc31fa34f8c9ae", Msg => "9ae4b799989bc132e5a50c4fce6d6e44e2940c6ba7dbb8248b447d191d7477c77d5ce83a111889177a171ee0c77d4d74e8c5b0d565ab292e504976157880050ddf99094f6e2ccdcae84148681db6f39360e1d7f83a75ea8a60aa9bcae398ac46a7e44060169f3551156bb36e37e005a9312ea85a8f03a240a5af15c2c786147b", Mac => "bddd77019ee3e2a16e65713089b23f0ef13e5f3ae6da5052"); Test_HMAC_SHA256 (Key => "1e6d00b386bbbfb7f44001c5915448a516954d7a2ae8f4e9eaba807dc98c034a9aae19d1eb4ad624", Msg => "009f5e399430038250721be1796535ff21a609fdf9f0f61266e3af75d704317d5506f8065c487218e99eb4c3d4546c4d607016901138739dbdf437a5e6f5021a47d69211ad0237eb08768734c2c952cb4f69d94306273a8a2ff62fc85deff88afe99962030683a43d683fdfcebcad1c11718b8e080c53421e370fea6e3fbfa17", Mac => "7794f8fe7ace77512eb98a5459aaebe28ae1e8c62832b5d2"); Test_HMAC_SHA256 (Key => "e2127a48f615eeafb927ee53222f5004d11dd2d3a22e5377826b43f08174586a297b82630e932210", Msg => "1dd28756d292e5a4f3537e88777933335a64f79a4d50257aac791799b083f450e61ac946dfd6dc7e29613d947fdb9d433d7d632b177dfdd1093274e8917944cf1d576a5abfe0bed528578346d4963df382b0c224e7d6942aa3776ea074ab1df1aad2911bdb7834b2d77d7b27de72ba4a11453c0e2721938c61902d4bc0e328bf", Mac => "d0119cf3ad1dd9e917ab325c0b85927819ed606084542944"); Test_HMAC_SHA256 (Key => "ee0a81a8bd52c9b1422083522d37f8071896ba625ffa22ad32a4fdd1e85c837796b6896ce194f74a", Msg => "0c245de3b250c33282ea1a02d007f03b34ed427631283eb614db4d521f555136e7e42b4cfbee8134c63dbe3bb79b5a8b9f9f5b9f5ac61cfab1c54d197f1e3ba613f251eed616df952d691b88a16466343ef2d0f63882ddd2d55b8a6786308b2257f5d7b38af166bd7f1339d2d8899c9eda8fa86215850ba547450c267eb3c914", Mac => "335ee9a4c96bfcfc38c76f7ace6c84adfd0a57a94efc23b2"); Test_HMAC_SHA256 (Key => "d4254694ca38676404cc2cd6a444f61e230c188a9f92d4ad769287bc1397203808bfd6cd5dbe1b7b", Msg => "d106a9aec442fed61629e77566f789b28c2c2c3ec628878a12f73d37da6ea7ced677d4b12fa9ce51e01c1fa2627b94cc885a4124a8cac55afb2bd0f34642e2faba8c55f319d19d111bfbcfa9102960e5c6002fbdad41c62339a1dd7e88d5205a45ec335ecce1f27e8f71fd72b82a746610c5fff31fb5124e95006fbfe84eec55", Mac => "5adf1391c94a60602cefe1bcc610060de90a4b7b8822db1b"); Test_HMAC_SHA256 (Key => "61b83d7ff9b82b32a89225eacd7c9c25807c8dbac8cf56610e88c875d2797df99d566bda3718ba73", Msg => "96560a07f7e398fc739648ce9a924350fbf9b45239ae7c7f626026867dc41d7862211c71cf12e77bb78839afdd0efd9ea251c0ef1bdf6749672f1d7340e290b9cf485d92c526c881a7b6b13969f0c4043f08ef65b03819fcecbf11ab5f2ac4f786d2b4b102a6a5d5eb2a99b266c0ff4b7a2728fe1f41fa639819e877032422fa", Mac => "312cd3f6c27e3ece5ed08f1020c815277f7e98bc3bcd0248"); Test_HMAC_SHA256 (Key => "adf13d80eef135f3cbfe63ac19e8679b98c01dfd263d72db335e76d47551b31ddd94bec6c95a0b3f", Msg => "81b8de7e17cc5ffdce4f2213b561d67d244ea591aab5c37f47e946d7db97384bdfa9eab7536b8c5ef7ecfb76bea8dae88063e451ef58804ccc9396f35b9ca2a3145507009b25a539f256ad8eeebcb40fe79807a6b4bb3f57d6ef15c7f49277fb8884db63d744d3172655e1602be78d7ac2b3b698e1272629cec3695a8fc3dedc", Mac => "a80b1a06ed13f5579a785f7965ab180908a07f152ea81e2e"); Test_HMAC_SHA256 (Key => "f870e26dd47b20d386f63d12458c46d795fe0790bdc81d2e7c025329f8842bc5f74dba955126b93d", Msg => "f4d6aedd9a34e0a1822362714d4e81794b53b266417678c16a97887bbb612cc96bc5e532b3a654e5d3d65a5155427ff09569906381138cc49e3fc2384c5d33c34abd3d617c487b52ec6ee7b5105f41584b7eb5cfb512b8c31f3f338d5236e30398a8ff927e801c8ed7d14fc5040d915a737967d166ddc266f68023a357530431", Mac => "68934f2d0de64c4e4eede0b1d867630da790c111371458d5"); Test_HMAC_SHA256 (Key => "cd4f85a044eaf7c5a9850d0d708f0905049dc27718679a8f3713af3ca3b756d95c19c50d7fb90ff0", Msg => "bbf96d794a6a062fed76429a8b395e5664c6b1b0a26bdf083137507ad1bae0bd6a0cd84a9f111ec1a5faa889560f36b781ac4132858a2e141e40c8537e0aeda0a0c8878fd94abff9b0ca6d9fefbad20ffac189cc6000bba9b09993768e72f1de053663901f9d519db3ee77217fc29826760a71c55b53ed8e8f49972b287a543f", Mac => "de9a7e21d30725d253fc4d09a3fd21530d788795d672c057"); Test_HMAC_SHA256 (Key => "e6e97a286f575855cec8a0f4d06327929d41f81d3fdaf9f65ebdcc474d85f4974b08399c02d14d50", Msg => "99140d978b2e37f32684f3bf075c4678fe4b3a95fc93df7532af9096772b7707eab95420d9827970e2ba19f75877c395e9c32ac37def2781602b018fa454ebe0c10dce4c7f11498516c8f74c9318f0e57d7d92c8b95c8199ab94ec5a9e5712e0663805834384ae1a09d612277ee6d34e04a2fa0c7880f3a55912d95e2ddbf5ed", Mac => "61a0693f740c3b121238cc904e98c671563d506780960a00"); Test_HMAC_SHA256 (Key => "d763c6360763561ed2bf47749080549b6e2db87514e1ee1c85a0bbd346eb6e3cc29267cbedcad67a", Msg => "41677677d9b19e249d4488c3eb18153d5b705002ea6aae4258d59560ce421aa4c45e0f30227f3d35a57cee6685c2afad55a4531d2af33b29ffcfd51358bc63a726f9fe28eb0dda8b1ea2cbe3d196081d915030ed8e508a08fc0a9194b8f5b0dc2fdf4a497c83fd8ed05d282217bdaaf3d81bed595daa2448152fd0cb361489ad", Mac => "014d599f9490a22b69824f8cce92f30c0542cea92b621a10"); Test_HMAC_SHA256 (Key => "a4b540971d9bdb20b47e8282cac841a86fd94fff27b4eecfeef893cb7b1347e7c2b24d69bc7b0543", Msg => "50ee2389b8b70182548ccd7e82de8496c6b3602bc99efc7ca2efba77552762d099af0b51dfc93f718fc65a27957a33001cedfe70995371650c3e26228313414bdfba523cda9a7d9f49c5d83e9f6f1415b3a560acc33c8aa4b807678fab4d7605a979c0f4b314023709f10e6aa9a76ffd12444c884d408f5e2eb04565d8bc4825", Mac => "431d287099550ba9e523dd1308b0514cdc5faddb04ebc4c1"); Test_HMAC_SHA256 (Key => "9779d9120642797f1747025d5b22b7ac607cab08e1758f2f3a46c8be1e25c53b8c6a8f58ffefa176", Msg => "b1689c2591eaf3c9e66070f8a77954ffb81749f1b00346f9dfe0b2ee905dcc288baf4a92de3f4001dd9f44c468c3d07d6c6ee82faceafc97c2fc0fc0601719d2dcd0aa2aec92d1b0ae933c65eb06a03c9c935c2bad0459810241347ab87e9f11adb30415424c6c7f5f22a003b8ab8de54f6ded0e3ab9245fa79568451dfa258e", Mac => "769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a16605ac8b"); Test_HMAC_SHA256 (Key => "09675f2dcc4783b599f18fb765583668a0fd8ae4096f6fcdc60d4f35b4130fbefcd542ffe7459d2a", Msg => "0cf2198c31376f5c8915660137725f2bbc180a986e5a7bda27fa81593a4a339bab92cbc39fb2b8581108ee48c794812d845a72ce8008c9e915d9e330bbb90e9136aa53ba0e6693dd4046d6b03362dfb9edfa04c887153cc5de677aab8c7839d517035879679c29727e96c5426324a2575fbe678d6cc7fef5eb6cebd595cfddef", Mac => "6b142d4dfe217f1881aa0e6483b271dd5d43f70b85605953a0fef272ddde46ca"); Test_HMAC_SHA256 (Key => "cfd4a44910c9e567507abb6cede4fe601a7a2765c9755aa2cf6ba4814223811a26a8a1ef499cebd9", Msg => "3fb301cb4092f9623aa5ffd690d22d65d56e5a1c330b9c4a0d910c34e391c90a76d5401a2d3caa44b8c5d5aef3e928b90d2ee233e9f9a2cec4a32cd019d06a0dc1fcb1125f5746a4fbd32169ed7bf0e4fd065fa7c8ac97c366380484495f5c5b6850dd1c9d8cd6694cf8686e46308ed0ed1f5bdf98cd831339771db63de5a7de", Mac => "20153bf8ea2953c48251ebcc4161f8b6e28499e5c76c24014cff4a9e2f62d25c"); Test_HMAC_SHA256 (Key => "5448998f9d8f98534addf0c8ba631c496bf8a8006cbb46ad15fa1fa2f55367120c19348c3afa90c3", Msg => "1c4396f7b7f9228e832a13692002ba2aff439dcb7fddbfd456c022d133ee8903a2d482562fdaa493ce3916d77a0c51441dab26f6b0340238a36a71f87fc3e179cabca9482b704971ce69f3f20ab64b70413d6c2908532b2a888a9fc224cae1365da410b6f2e298904b63b4a41726321835a4774dd063c211cfc8b5166c2d11a2", Mac => "7e8cba9dd9f06ebdd7f92e0f1a67c7f4df52693c212bdd84f67370b351533c6c"); Test_HMAC_SHA256 (Key => "9da0c114682f82c1d1e9b54430580b9c569489ca16b92ee10498d55d7cad5db5e652063439311e04", Msg => "4953408be3ddde42521eb625a37af0d2cf9ed184f5b627e5e7e0e824e8e11648b418e5c4c1b0204bc519c9e578b800439bdd254f39f641082d03a28de44ac677644c7b6c8df743f29f1dfd80fd25c2db31010ea02f60201cde24a364d4168da261d848aed01c10dee9149c1ebb29004398f0d29c605a8bca032b31d241ad3371", Mac => "cdeacfcebf46cc9d7e4d4175e5d8d267c23a64cde83e867e5001ecf26fbd30d2"); Test_HMAC_SHA256 (Key => "aaafd08fd89bebe239ab65bb190b86d49c5d39faa50b1109f7dc8b179bc693f0810449c36a68041a", Msg => "44131187c07a8e3979254b0c1d1cfa8081f0beb8890633744932af3f6987c7eace6e153876f639dba46b1e9f3e2a7fe673b3a954a00082cb7516ca9a54d9a1f1f924499960192ee1e3b623dca4a9efc92a6608d34f769efb5912db5267f06a6b0f5d3610458c74347e2ee32916425213ef2f649d5c1090ea3d4f6bcf6b752a3f", Mac => "0c19ab5d4ee7b64396eff7b2ca9efa5ca7369c1a1ed14952445d2fb5ece9473a"); Test_HMAC_SHA256 (Key => "b06f7ca7a5dd8baf2ca940811edad87a33da666dc427bcf4d54a8e03520dd5c399e9729d39be1494", Msg => "32b45fbcbaf262bbe347360bd6076c43dc26ba9573fcabaea14595de886ccc793b09157dd0a85d74b6ccab9c49335446a45c6e7cb64786e6997c96ef1e4e3123ad6101db4c6a731dfd36b1be4deed1c92a994b25f5e2b171d81b9a335a83e03230c40b2056c00c7c5f8d2fb70abe4b9615e53bd756569217072d8bf362923f6e", Mac => "a9c9d3993fe7ec4c2033ccf3b73b3407cd999d67455b43a75d6ba97efda3be63"); Test_HMAC_SHA256 (Key => "2dff35c2fe5039123d4c5d9feb7d5167e3e959b31841abec1e5b18b0ece2ef25e04d1f8d030d9b1b", Msg => "14890f3b2ee63746c8249909013571a403eb54273760090db5959b06ff59acfaee6d0c4aece58b5964d10b4b771dd90cf1b63d947bee4f6a12220d67b79aabbd68b02a3850352cc33b10072d4c28182df2855aa418b236239c659dad036155be6b9c908bc09dc38c3329b538e81ed710ef9fd3de7671673f3da5745f4a785204", Mac => "468d8498d46afe74a0ffb541b847bac724faeabd48c41322bf534b284c4e9fe0"); Test_HMAC_SHA256 (Key => "9794cf76aeef22963fa40a09a86bf0e2ba9f54f30f43bff09d44f9d28cfd7b7a45002797cc1437c9", Msg => "3e8a9030eae1bb6084cffdb577623c4cf94b7aee3d3ca994ea94c12acd3e1194cad6d2ef190e0219af517073f9a613e5d0d69f23aad15a2f0d4e2c204ab2f621673325bc5d3d875984145d014bbcb1682c16ea2bdf4b9d56ce6da629ca5c781cfce7b1201e34f228eb62ede8d36cbfdcf451818d46721910153b56cfb5053d8c", Mac => "29973999c4ec891154b83ebe5b0201cf29205d68e7be2c1d59bbc81658d6668e"); Test_HMAC_SHA256 (Key => "c1d60814376aae39c4111246353485958f95558fa38ffc14e4a0981d76249b9f8763c4b3e2ce4ef5", Msg => "97d29ac5ede94c0a5071e0095e6102123d1726132f9dc102672ab87b1cec18abdb04096c21d3fdb129742d250389460fe63b5f79c77c2f912a8f7d4f39cbd758139c872366cac35a40fe248322825adf57481d92832e66057f80e08964be993de6a0fe31e45806cb3c17ad6ae4d2a44a374647a88c3acf260d04c970c74ec720", Mac => "50db0ecb5b31524a6914264930abccae0da07f01a2bbb9408207156f8e8a340c"); Test_HMAC_SHA256 (Key => "ca5f3eb9308604f9fcc2af1c6a3175cd8a75045593b473bd7ae37933c345ddb0982e2dd7180db31f", Msg => "8734e49e3e629deb352c77f58ff4dcce2af3b1182e7d896ae68619f6cf66ed69efd95913684ab1484d51bc06b47a67d70d48b7f9b27901bdbf8c5d2d238158f1f7e0e9740ffca742cf7938b5400c0dd063824c6bc6040e905499cb2671ec12cc47507e085a01e5a163acd2495b32367fd6aa5ab492a518ad50b54b28e23084c2", Mac => "a5772a3da86365b46638f1e97037fc0d8351d2e19ed929f85448ebf4e8379a8e"); Test_HMAC_SHA256 (Key => "808d7aa9aba6a40d1bc43e9b932ec8e9273b892ffc0a769e4f7255f3b83c224bb090b23952ae9616", Msg => "61c5be972faa61f67bcb332542c0b8a7c74ef67cdb95d6f65c8acec8fca8bd6043e31677d8de41e6fc5d3ebb57fd8c8cf723490b96329adb1b014da2648cbd6043e9f6ffc67e1a2bbc72046374612a50c854c8565af03b6a1eedaa2319caec1368bfa65783f4b46dc3f0cb4622545c9c43c9bb86b237804a6c382e72a2cc1222", Mac => "5f1b8de0e3b07da6f9ce1a494be5712e54ac16080bb4f6d5373620d86d5ea5c7"); Test_HMAC_SHA256 (Key => "d8b994bb8df02d7803ca2e09d601b918d6b5bde90b611bebf70e078d1ac7b152bc4c2528e60b70f6", Msg => "b31d11cb4f5c572ccf3405c65cbd218ee8abdc08b6c82e5d1da2baaf8980f7a9c29b915a718b0d43e000adae01b29342b29b28d53f63bf81281c76fa252f5d1e6896dbce224c4dfd4802ef0697140043d6bb21db5b84ffdbd001318937be64f52c76b5d06a875e8191a4957627cab1b8dc758fc3121334949cb9b303c6155153", Mac => "8e44d685fa79395b4761cab89688e37509e69ad007a2794c8c0b4152b67036ea"); Test_HMAC_SHA256 (Key => "a89bbaa86a339951ddcd37799e21b5d1688e4abedbc72daf7cc9b5adfe10be34c00a504196cc7bac", Msg => "3ad17308cd259688d5b52c32d01a3b868bfaa4758bdaa5ceac34a1f908ca24e71a39224924d17f00cda4d4d50fdd716b50549e71cf5f271c42ea17d5becac32fd64e0a1b0717dc5f542af9442d44fb8f956e97b384d020458aca4cb0b6413b2ab637b5e73f9fb48cb06f22e6f2f6e3dca27016a272d89830ccfdcaf3b9d895c2", Mac => "905d55da5d290d023f6940fcb904c50e70181c95000eb1e6a33aa01077692736"); Test_HMAC_SHA256 (Key => "a9560fd61746d7f986b691f070c920256a535c21a64ab5a2bd771aeeab7119681bcc4761e68ee230", Msg => "46eb5059055d3345c1ea84a4ebd2d7cc53361707eccd70e7cfd86bda83585bfe7c7ef937e1634b7e93f9ca7c6a42c357c2bffecc362c9e7eab6a488d91bd876b65376feb7a74819bfa88cf542736610fe763d6fa80c94ecca0f08855a05a485909fefc9e58f99e44fe7fdc55ab17779dcc08e9bc530e4a79b65274593a996671", Mac => "9045dd3fa6e8f2ef7c57b03932d244186caa1bc1d4b694c47e1f2901d9eba193"); Test_HMAC_SHA256 (Key => "f987eb83a3fd6d94ebf3626b7d34fec23ee06c63dfb4078cb38bcc97bd250fda0e286ecd4e64046a985bdfda8b", Msg => "390a9dc2ea20221c5993c581892eb4b04364294fad919c451e83376531398a4c18ea808c334a910ae1083aa4979baa172f3ebf20823930e238630c88dfe5632b3b4042f6dd92e588f71529996fe840e13212a835cbc45ef434de4fa1ecb50fd14913cd481080875f43c07aa93a9dddd5f5e7ced6b1b88d42b9fce8f87f31f606", Mac => "0b3b220ee7a4fdcb0d17a5c8b595b981"); Test_HMAC_SHA256 (Key => "ef257132b7be124ea0886d587765e8e70357959cf39ebf621420c3f3c70e219fb3c5d349b7f2deb222fa26fa27", Msg => "f90768954cdcbd5705f9d318fca6591787af840a921fbd06f24b979ef612034f3f64c71cd2012c756c83f75d169f9bccf8a8ad52725498fe69c3927edfbdcf87c73cf478172ace3a1e6b446a181e8aba00209894a5d2db01001d2acac5b3fbdd3897d7f142df0b6dc4b9a1862bac8ea845202d185321ecd75f6046c9cf7af116", Mac => "a17d0e0f021184a3937222de81be627c"); Test_HMAC_SHA256 (Key => "2cb8e269726b75e3a6258541251f6e3c5184c5e6878decea51eae315dc656115acc224818ee9851ace474f51ab", Msg => "c1d80128fa208ba18bbb13424012ea651ee75e73f796e94c3b9aa9e911521040a605dd67c5254bfda9d088c60f9c68958f945b6f2b7e9ded2960ace21e42ff3e4c34f5322d930c955089538764d3225493c7089b119505aff4cdf93d46215d2f586d31d15af4353229ec5cce683e7e69d2874d3ece628a5944e97942b07992db", Mac => "da4571749322008e73dd436a13c5f11d"); Test_HMAC_SHA256 (Key => "1eea906ca11432655750a4e1af21eb1e03465c6d6f3b0fd8e20391077525d965fcf57d7edb1426ab1c3a42f2be", Msg => "f57ea84caaa2af18dd7efdca356b9625f9e70d3a803a9d31e95976460c0a5512af49570cfeea0f4f3581d69ea07f62a5c59d9b81e07ea9838f8f5231cf33838e271d2c9c23fc511e045e5fa2b6cebcbf0240a19c05b02cb1e105b1d2b23b5269c4c1cf0303209f0eb2de3fe060a2cafc1898ca91d9174d4445823c2f9d6ce92a", Mac => "20cccc1ea0a8a89b3bc5fe3d5a9c2b24"); Test_HMAC_SHA256 (Key => "b2f1adfbbde4dd9a9674166ee08c2f4341072475b9b80b1032ad4a3658b408c1aa1fe12ad1c5deaa3149a49ebf", Msg => "33ca6eb7ec1091b406cf64495ccfa2169f47b3b590477d4073537c14c05015d51ba527b3869ae4ebd603df906323658b04cb11e13bc29b34ac69f18dd49f8958f7e3f5b05ab8b8ddb34e581bde5eb49dd15698d2d2b68fe7e8baf88d8f395cfcafcdff38cf34b59386f6f77333483655ee316f12bfeb00610d8cba9e59e637ca", Mac => "5eeec5bd9583ce715d613d4c04a702f9"); Test_HMAC_SHA256 (Key => "a2617206e2b382078fddb0af3743a69a5a7484eecfff6cd96288443bc21ab79f9bbf7d70ff4edd6a0a85704ec6", Msg => "74c4ca4db1aa812b4d75852c6717146351e83299448ff84d52262ff99d991d97c74f9f64a90d78e44817e926049882491343373f2e3bb6d18a30f8e30acb16fab34d5ffb6073a736b79ce1a25b2df16a6335bba90c4d8072aac36a14e5f7659c2104319b3ea3b529824d9729d3a009cf2a04e660448efd399b25ad1394e3b285", Mac => "64d5ad7697a29529ca3ca4ff65e7d735"); Test_HMAC_SHA256 (Key => "7af197b78a27038b0cec128001ce6bb7dc02c0258956f62ead678676301423f4f9329d48f881054e6adf12f358", Msg => "68bb5b6289907589f8d91e46d44417ea80bf6be10245f52ba9f82211f371f810ad54571a5c277ffedc64d32447ccdd7d19ff91ba914ad6bc5ac0424c6a8c250d2b85caaed803f9642af1c098352474dd8cebf224ace82a33981edf53c04aa84927773b88c5cdeaa52baa6e0b65f4e4f024ad15881dc7fa78ac3a808dbd5588ae", Mac => "c4fdcba979357f639cc6d89e7970943a"); Test_HMAC_SHA256 (Key => "96ab1d64acad8cf69651c13e4eb42d7382e38019f3a927771ba6134c12a1bdbeb2206793fa35a4a3b09a1a8d4a", Msg => "900e4152131d8c4dcc38a9e8647234dffc7ce88ecbbb65a8089d302c0a2efc95aee62852f9c58875fea368af02c1ce7cdfa3009ba62246c188bdf18ef7309cc00848b2a71cf531d9bfa1ad26d0c097cee3a8bff2e3a31849fc43bb14b7f62f5467dae83ac5d30ddfd7da7f351698163ecf332e7bca6862a82ada97a694a93db9", Mac => "ea411f749902bb0d2fa36e07e694da8c"); Test_HMAC_SHA256 (Key => "582c13a6c4d497e4edf69bde35beaababa1b068ed168af20b04cc2f06adf0478210ebfb27640cddb453af27790", Msg => "7159ecc145a3f919044c851a4eca428279626e68cd8fa4c5f4a7f932acbc44f3bfc0bd3535edca94c86415e09815e22120dea0d869f7bd887d8dbf751fad91acb9641a43962514e2516a1c838e9e0575e73b72a72a30a423c18590d97141359e488c2c74d011810c89a6c189962f5487b7bf0d5c7701009da7d794e50a40d9d1", Mac => "7a699c1ce4e323fe1b9ff6dea2038aa8"); Test_HMAC_SHA256 (Key => "baf1d8aa12f5ea6264d122938593a8d677c82a37ebed7b43042680625e334c674f9f8a666c3a1bc54fca019698", Msg => "939bfaab9f60369542928b1490894259c22706747f0c48215b08e1e59ed6f95a460728c74f3cdcf43198fb3dab75c9e4bf560bacfe1d6da3057f213f48b4c9ac0e739765bd1db2025839dc50462053a755f9f478fee8a626eb83f617b686ff0af4c78dab726c8264be5b7877e9f2a74a8cf9090109d4bd5213fdaa9571b2641b", Mac => "e2a380effe8de7d29948c5d9d7bb39a9"); Test_HMAC_SHA256 (Key => "735d943cc93f783050c7ccb09acc5a6f60af4efbc8919793e7c39038857ee00621d59fc535e7babcbc5998c5f0", Msg => "29ba205089b12e8be5b422faf99c3d69aaca324eeb732db8e13c148245070dcc0b0c40ab412bde2039806247ea3917d194a4dab4a38c2121d6c63cb7a007dbf6cff9d1f66b8d1759e192147e60871bf784ad363e326122a3c3a99a89640dd9d2bca85a98d07ee21e2410c006232e53c4c10dce525f993825ef0cb76158c00d49", Mac => "54e871ae687626fee5669ce20cc48041"); Test_HMAC_SHA256 (Key => "c782597141b52135e34d240df67b9bdc274f2d41e6866e0f0da3a6fec241d3a09ea7f1960f9d7803fa7e2741a5", Msg => "f7321718bbd3b401fb5d72f2e8931a5ebb18d2a1ecd4f189a59912157607687c4aad51719a702da6e031708f4faaf668c1999779f121fc99ea6db0f1bf967a027dc7ebea5e9f33e23fd6390c5424ea6c1b5ed0338ee3e7449d36adf1dbec790578c90d086f266ebe0095f4f161c89d70b1afa6582de15d92a63d319d33d10b8e", Mac => "eb5b96d2f51d56464b95da4927ec5a64"); Test_HMAC_SHA256 (Key => "498584e364f632184bf26a253d0e81e146730963b785eac1d5c2b51dceec34e3f16a464c1dece9277a4e99d868", Msg => "cf25d619fb46bfbc39557914dda02d767ac511120d173b787743b35b3134cb943b33b36955534810720c2d6f6a261d26efd87fcfc2323b8426b8cda2965098cdb35e7c35802daa17d191b78601caf06be4aceecbfcfd6a48f01f52eb39ee1b201fec5a02e49c8ed93f2b40e10c554f4e4187858c24416dcbbbbf69bb84d8ff94", Mac => "020d5aca34d8c7066ef5d8c9b3429669"); Test_HMAC_SHA256 (Key => "e4298464a0457dcf98ef09cc00d92238d06d9a7574b46769c5773ec939a4639756f2bfe96dc833ed845c2c2a94", Msg => "e2a26ca137027066af856453d2a4adc4d5d0c9d5bf068f8acaa4b74d0c7b9c9e562541065d98924c17fcedec68bae1c5fed636127a7e2d9bd0e3082df047cd47a6574816bebc4fa36ded4a4cec47f271665f586f149729d2a7ef31c6e61e1fcf98e288baa4942ed477ff8159a672662fd41438d4d7780c9616713a023528199e", Mac => "0d700ca9ffc418b29fc8e316acbc1abb"); Test_HMAC_SHA256 (Key => "28ae9e327911b76898af1fa0de56069e0d8b67bd2813828f87b88dc42a49a74d4ee30dc13e6f90ff6c6c4715c0", Msg => "3b9a4948d67dc894d70c9ec37104a7147e22bcccb98983c22d648b21edcc986a06ec3bb8b263a648cee9bf388e36738f70204d7e6e0347e67865e01921da6ee59926b6cfdba2ba9c27e1d216b392fe0c9ea87b9b25b994ac19a4bbbe9077d8e6dc90e113b902ab97ca3a00e347e2f192f0056daa4574131ef8694597a36b7e73", Mac => "6696e3812da4807f05b84a29ad9143ae"); Test_HMAC_SHA256 (Key => "9117cf3ce9f5c6e19752bf0b1cf86a78ce3adbba87dae1399a2a937b0b722ba3ff92183871e84e282774e10de4", Msg => "935a3c27249dcf92aedac8dc76d22ff7742e5cee57711778c92afdcdf36e26b8448504ee6ee48e9eb25b9e495e9098d494ac4ddc4c541f499cdb652638b611b0353090ac125ff1fef8564a78419c57f038dd65951fe06e8377b986947b407579eec1a60a16f540db0931921027deb472e8296bc2d8fb4e4ddf2c27c0c6f49c3e", Mac => "4cd095ce641f217f8b5f355152eed00b1d9fd721a08dc5a0"); Test_HMAC_SHA256 (Key => "363b32accfa593e454cc3ec83b9d775a0dd027b017ca2ff863c1fcb9e6215b5cfb2e8fea10eba2179f3bf88061", Msg => "548564e5b7370426d575bbe8175b48c244dedcef3daf7252ec625fb777d02a5cb9ba9db0f2af1c5abd2f367d43107a3aaf218c77e20e78df6783452aa994ce9f635dcdd759e539c34649d2f11516fa0a53f6c6a0e58f5526f6a86040348d133e3cb51be252a3016a560ab6caf3346f3a1aa4b2f0affbb12f8218d8808083a240", Mac => "646abbd426255d2e369b7ac9eb3c3af19c7185ecd28bd82c"); Test_HMAC_SHA256 (Key => "134a50abffc94d8540d7ec939b7a28b10916e505ad90843d08b4b51770d48c27beb2d8d548a1b0a50fe64ebb39", Msg => "dd802635f714060381d2ee1dfb50f2daacc637598965fa7158ead3eb15723bef95904dbd699dc99e054f5e19228d29696082792f30f1d565f1c8409359f7bb4517820cbcb6d5bee4c5596986354433bf02b597b1160065786a460a5f6e4a1254ab7feb9aa666ecbe081695ccfd1c19c2da861945023bb3930a8ebbb91b124806", Mac => "3d731839c004ecef8ab60fafd811d0bbe6e306f7cc802bdd"); Test_HMAC_SHA256 (Key => "c83ead9a131a1d7d126b88642221ece7d3a6ddd6016ecc6f40d089d47e1407bce3cd6068fc6918d91906a640f3", Msg => "e80a112713b2e0aafddfdb71c091141719e1501c1ce55ee526d4a804146a08bab28eddba76335d306f7c2d0278232f56b11b9b543074512df3806d5c19341c2c52d0af7a95c3eebc11c8af426556a7bc13377ffd32762afe647f77260882e2c8b118b0eed6293b55cb0d8ab8eff12451287d269e8cb49461611bedea481d0298", Mac => "0a4f17a280f9017f1435cb8a11738fda4f14e3f222f06b86"); Test_HMAC_SHA256 (Key => "430a7dbd62b3b3cb6a4b2024bd796048ea60990d8222f94228a26093e88f59acca9e4fa2a616fe8e3992277b79", Msg => "7e5d6e5e9491a965968a08adcbfbbdb19949f00903f7618270624e74aeae975036002079b2ed7755bc33b7a3e9a7ac0f066f3703a171f4c1cc0b1baf1d05a4f1f9c4af3d12c022eb2f38944c2c246a3d416b3ffc87568a3ab7447a7135a025774e11e254bef0f35176ff68519c583f64d2a3d09abb8c6915bb753562ff67620a", Mac => "5007afb09312d144091f2b35618c26714bab8784d8be35b8"); Test_HMAC_SHA256 (Key => "4953408be3ddde42521eb625a37af0d2cf9ed184f5b627e5e7e0e824e8e11648b418e5c4c1b0204bc519c9e578", Msg => "fc0624c9d2fb237707df2c7bd9090b031329835432d99304c575f8691a2df35116584cf3650b9726d4ebb6d1fa3f9fa31e4a600455d7604beb15e73104a5e08583f2de222bc15e1f04094c450104c8c6df86292b508e428f591ae50bf940a6710b7be13d6d43ffc862e0f4bf357f0cd42086e8b36b25c338d82dfbdf3f26cc7c", Mac => "08c4699d15dcaef9e99556ece73793e006c86d25c8be3fc7"); Test_HMAC_SHA256 (Key => "da6d09682610d23a666ab7f63147a1f05db8b3cfc2c12de3415290b9067803ec09d5f53ddb4e04e69f031d2c56", Msg => "e35dc1d0e414ae0e586ebec9a44c1918d795db378a89177d0b521c8ebadcf6d2b2e73826ac5bf9d121db1db9af9cd6d7be7869e8633e3665854df3b63e6138a383ac400b0829eed85e2d0e325e3fdef3cb29cc5b334f82061640201a4b8bc8c59ed460e7be26930b578b199c7bda395646d18cfac263034608532b24a802b022", Mac => "66a57a169d8d0ba263dd954b342919f4622592eed20c1981"); Test_HMAC_SHA256 (Key => "22f6c7ddb0e46ecf627aebd9ffad6f36682ef5c98791d25e82af8d333449f0b7ddee5f91181e69e40eaf9dd1ea", Msg => "dc4354ff557dfa58b17a0e38f63a61c20e0fd1eb6cac102cf37fa77913413a7735cb0dea592bc76cfdf7766541e1d4374a8cc9b9e49e30e76b17ded8ebe1e0f086a7055616eb9da814537feeb94451cd62b203fe39379dfe12623b069351553d9882442dd5e60273be3732bba38c60ec202b89a0b49eded7b009c5ec53ba21c8", Mac => "7959e5367720f3af55ae91843397134032ee73de6a8db8ac"); Test_HMAC_SHA256 (Key => "2e2b999290c9b4a3760c4bf767ae44b28a8d12461552cd39095088291dafdf0df7c9cfbda2d4cbb53dc20b15f0", Msg => "36581b498cc8b9ea79de28ca91a9cd0a87e30bcefe73b9e59c37d3a860016f2436dff37bc9a086879993c4c14d92b6614a3f01c7848e5d1a9484492f0c3efeac0734a16d04bfbc26f4d9ef4a9124e32cf22f80655cf460755ca583ad12a8444cd0e08be8e42e450fb137112f05683cb3a638f06f2eada83e1922e7e91d472a4b", Mac => "d39eefe024ce0b545d77ce327f0731c5581095ca734c21fb"); Test_HMAC_SHA256 (Key => "089aa37f72b2962c18fa4e9858ebac2fc1655ff41ba30715a76d9ac3a88f0740218b1a3ae18ba057bd99cb111d", Msg => "45ae84fe11078713bc87c465e8d88f0b23e2804a6a3e19afebeeaa5a0f4c729db84107c6c8b7f838e251b0c174599d27f5fa92046baf6ad431fbef4df75bfaef0a79dbdbd6a2fae8a97abff4b9eeb078696bd95fc84d71195a9bbaeb1cf12989c2bdc7e643aed74b976ab9a7bf800e26079d1d04880276a4f035d4dc86f74893", Mac => "3accf0eec5b26ea6c936323b42636e5899f4bfe7e7cbdf3a"); Test_HMAC_SHA256 (Key => "4e1ad1054c00b6cdd0267739c8c92994a4af4bf373ba066c48bcb483e38da0e58d5b0c59444279f3181c228ad5", Msg => "f6f83ff6ddf386bdf3af9409ef5cef16acb376182322f57b9729f76f0f04dba4098a2a526d55287dc023a9779a7c26a65a951087187564f3db5680a20c4e35ed2b2e1dd8c1ab2f4f96bb90b02342ac8a4aee86a5455f4c42dd8c2fa3dc6272cec4aec08fc13cc2bcdd40f1bc73f6a94ae6867f77922ad5ee0392ac7c6588b9d0", Mac => "55adbc7d757e6904448ebdbae5a8773a1781f952f5bdeec0"); Test_HMAC_SHA256 (Key => "36e8128355a3dc7ab3fcb28fe93c8e695066334f6610b398737233626cbdf28717ae88cd70626c5d4c6cb9773c", Msg => "25c04b857a224389e8a2a304e1bb8ee1b352e4cf5c3cb6e99f01fd9557df8bac0c1241dcc453834b1b9fe97d9639377835f2902647a8e6fa820db5d653a9f12d73233d65bbbc5d7f391ceef9835154f34b15f592344fa5a2e4dd607f5b913f358379a5e60864b96c69a11a40500ace9a1f427bdacb3ad927edfa6756169e5d0d", Mac => "22950977bf0f3fb8f4fc53ad2ea2c91d936aa98d06ce067e"); Test_HMAC_SHA256 (Key => "ff469d80d2dbef999d7d4815d123cf50ee9c2c23fa2e9aab2c7e3d4ce8afb7f5f0cef6a5d86e4f2eba8fd1392c", Msg => "6c15d1686e680c5aee2941900dc9af9d2503b3b6a5623f5c1c04873c939dfd5320be8055b858d050457c468cf864c2b7e1b7e43ebd097ffe0fa14a1c7280d9312d9fccab087747705ec6a2c47491616c096566132ee365ee587c999cb478b550ba3d1e3105ce57016292bcfd27577405c696a1fda1f8d973201ada82018d79f6", Mac => "646031963fc8bf827a30924763dca11b589358e7029daf1b"); Test_HMAC_SHA256 (Key => "93fd8e208a1d6052388611beb9f047fe91e33afd4bcd74ae6152d5fe5ce3d9073c921e861a24208f0c68477f49", Msg => "b99a110bee03f440f15145e28d32c340297fb810efcc36a82e3da171fc9b6d981fa629062eadbd93f35df07614d72d00f205868bd22df9ad3bc6f2b19e8b12473dcf2f7a45109ce33dceaa1ca49d6e78d67ac5f1305b9662740a57f76f32d3e1d9ba2a4e7c531998994d7bbc87af100f9d867e2c527d9531a3aed72bb5b838ce", Mac => "00aafb9109999ccf61f6689b7405ad2fa54129c3bc4e67b8"); Test_HMAC_SHA256 (Key => "f189baeeec507e945f0c4d628a0d0548eedfd254b11faf25458e29a3456466ed9fe76793f83b8a064c7c534cd5", Msg => "c821be1cce09579ea899899d24f8329994c2c839cf0084e27857c688837fb5c4f4f72527eaf7bfcfdda75b37248eb153ba4d31dd418d2fea473643c0c9e1f0ebf591838e349d3ef868f1b67772777a71f8cff5b0654696fe31062ef2628a99095355a0f8b4e41e41d2e162051899d519d6b0dc5c42130047bd2f4dc55761f745", Mac => "1c8b29577349cf99f80ca11477f401f61e0b1a4d6974fc61"); Test_HMAC_SHA256 (Key => "b763263dc4fc62b227cd3f6b4e9e358c21ca036ce396ab9259c1bedd2f5cd90297dc703c336eca3e358a4d6dc5", Msg => "53cb09d0a788e4466d01588df6945d8728d9363f76cd012a10308dad562b6be093364892e8397a8d86f1d81a2096cfc8a1bbb26a1a75525ffebfcf16911dadd09e802aa8686acfd1e4524620254a6bca18dfa56e71417756e5a452fa9ae5aec5dc71591c11630e9defec49a4ecf85a14f60eb854657899972ea5bf6159cb9547", Mac => "737301dea93db6bcbadd7bf796693961317ca680b380416f12f466f06526b36b"); Test_HMAC_SHA256 (Key => "9fe42dfac92a4a136fa7c9f6e331b5d3a61aa73035b53a8d2517be43721b31b215a96b9bd43798cb5e8febfa97", Msg => "f9660fb784c14b5fbec280526a69c2294fba12aea163789bbe9f52a51b5aebb97d964f866c0d5e3be41820924fcf580db0725c7f210823cf7f45a0f964b14e5555070d1c3ddb2c281a80c7fbf72953031a4e771d7e521d578462cafae5a02ac8eb81f082e173ddadc8c41d964bbfda94f5180c8da28a8ebb33be77b0866fa798", Mac => "7786c155d10c741b63ec650b7b1aa3bfd71ac71881ad06ae98fb082f17e0caa0"); Test_HMAC_SHA256 (Key => "98fff7b5f77326c24471bb9c317490be1febad28e2e825afc41c3b97cc03c963405ce3ec68dcb7b19523b76e62", Msg => "64a78a4d6fb8ff3813df8dc022faaf4415e4df2949e16467683c6c47242e5a6b2c02610e5877528d2766b2266ca41000442a956c4b73dd6b10260570c6f506673cc541f50f0f5b021e864a753efab03e2f7c689acfc35f928ecea6c522cbc5687c38518bfa48c19ede887d33ffc23806be21803a3c9793e5ca7c75cfa1783f77", Mac => "c02c6022ee0de099e3027850be95a29ce800118ed3a97757dd8ab9e60f69a005"); Test_HMAC_SHA256 (Key => "8d649e5ccbb8bb0032cdddbbe44ed0b5bbbde78a30c0f8437bbca985fca5ea08da15c34bea9b5086d2550ae16e", Msg => "a7734a0739d51af0ac2c4039dfafa86f36fc06c2355d0f654d4ae938f52fe0a5fd6f5ac71fa80dd2d8396faf76016ee6716a62c1fea640afe23910e684b8a14c47d07b98168915b441cc48668724043074c14275edc239dc09b4d5fa2255652b2c9e94c046019a608ff0b3a83b9ed015e6098d24273864b769c120bbf68f9408", Mac => "13e0834e4dd72a2ef7872249bf895da4432329c6e8ade8665d702ba33bb677b0"); Test_HMAC_SHA256 (Key => "57958d7e4c73fa606ef405d77ea4977ac96b8813fc1210483a037e7b6c502ceed8f7b22bf6655aa37e38d495c6", Msg => "0b9a58cd96351a135c559d17e82ede3434a0caf0befef5dfdf138ec5586793fb2ebe4114b9e2cfbff7a25bef261b253a9136fb7faa72f4cc59e4617f947c01ab308974bdf67ff25ffaf83d9c28fad44520786a94441b96100e42ccb0a8478c43b604d90f7695edb90c602b651753551d886dff77b4804472a835b7a2bc509c8d", Mac => "cd251e66c421bad1b37cfebfa3c04ef30b8be4e5526b10fc48fd5bc5d6f04bb4"); Test_HMAC_SHA256 (Key => "6d32ba0c063774bf8d0621b208d72095f684faa33ca6f3dc62fbdf95ff0c3733720c6c34d3027b6f2a2bc29cde", Msg => "e5804b099ee4b351843adb9c9e3c231773256e6a2070d697a9e29e258dca677f9d88a7970d4c58cecc20ed1811298a5b37297419ca49c74fe216679dafc938a656cb92bafb78efb31f24e71c2d5b5f994f6dfd82862adfd2faeb8c408fd22aabb852f2bb90f1e2c6274cb1f0195c089766f9efee7d9c86e79a69f557526da555", Mac => "9d283d8e8e473a16162d186e96355b1885370e83954dbd08622dbe64f0aac695"); Test_HMAC_SHA256 (Key => "6b97478fdafd3a85d0d9b339971a70c2fd24d542abd3e20eb2bd630f67b86668719df258204bf66201ee80acaf", Msg => "8b1d4523b6e457f856e5f09875d389eb6587223e53477ba01f49878c6c731ec9f365f28f1cb9c4ebcf89d8648732a6dfa958d2c0152b5e52fae81f69eea26d463e421fba82cdb78f75e5d92304930256a54376a6ea107a995642c45c6f1530a914bdb4ed11a696abf100dc1b147b0518014ff639fc80373ddc605fac1755cdbb", Mac => "6ab8f69868b4c87fdec9a031045b34b66660212f687a83d561bc4f9caad59fff"); Test_HMAC_SHA256 (Key => "89c77d79de98df18f0cf29a9316d6dc46b61eb7af7f1e2de2f5ca6c525bef3c996338194193fd85b9c6e66a811", Msg => "ff8662e9af3a38d3efc0143138fa619a57d569f61e29b3895ae08f2d055befdebc11787c7379d9cd672b5cc25442bafbe804348c78c5df02f30840a114e818f0dbb681783de43ac81b2140bc71c69effd07185cf0eef9f003c60a144d89520a944bda563774103ccf3ece8a9f64fb3aff564854646719b8c1d2fdb9db92cac12", Mac => "4746e6f151caf29b3534b2f493f7cc1308fa119116d251481572a1b53a8a1b3a"); Test_HMAC_SHA256 (Key => "08cce7d7f3ccea0212cf0299f27f3d3f393a97d3dd71caf1954e67bc8d9a26db5edd7ac23dc7693372ce9b040d", Msg => "33ab861f089bac0e5c886f66adc568ae7ba331655a371de7475e269138ff2725f7904c702fdcc62ac703c31d70c29d8a7af451c8ec59342ed397e133da7e76d41b90003635c1338d9f7b5f3c3ce59f3e2f6554c4f064d11f9f5158e199e8463f4ab48aba42d25bff8af92b0b38b7d69241fd20a28fde5e84539473e39dc4fe2f", Mac => "2c723282159ceabc5b367b95cd807f249f1dff7f9ebf5ba179a43081454e1b05"); Test_HMAC_SHA256 (Key => "1a2e86f6ab2db235e5d7f00cf438680fe5b442dcb1f8c3ae7730b92f097a1a8eaa9be8d216f2576ec3aa321567", Msg => "5a2240f64fc704ce9f8ed33d019e4155cb46747a659e3421fe6b42d67f44eb84bdf3dcf1f31e38886f27e85b8b503368df238e1bb511b515bd59fa2c032bddb31d0ddefba97f8f19f7daedea027ef055a52c61d00bb1ec2668c57677e632b180e339ed1c5931310b9d718af34d70a3a4832b96a04fc702db65785ebf12a18c73", Mac => "22de07c3055a8935b52bb2c85a9a6b7ffd4038b5db4069c07e9e86ee1b171d25"); Test_HMAC_SHA256 (Key => "3270b4e48d575f0312659a6202adbc4e877d69298de4090ed47278b4433fff95802e844fbd73fd4ad5532b9b97", Msg => "f407f815a33cd450c0b72a378f00762788f91bc44f09f93de67a41d2222088935b3c1b6a689f935bca13a90b28f64b7ffc28ef278b28271b1a7975a45f4b61fe3657ca5c950b7a2dc2e7fd9ec327b26017a222aba3f29183efd5d33a92d36136eb21acf412c6b14d0efccef849d9d451412e5d587fb060fdcd55029ba401afc2", Mac => "dd1a8105ab753d83d90ab39adbc748940fefda05bedea7eeebdbdf54b02d9ae1"); Test_HMAC_SHA256 (Key => "c704d5793539ef3909bdaa7c29e9c0a0c441814c37bcd062325f6e2e16107be4a2aa3949cf4d14b0f8f8df283e", Msg => "dbb84fef130f929805b0876cb4646a046330bc33ab1cf1e9ca3869573ee1a1549341ab007915dba719b3c4e8a94b62163e6d99dee2cbde2ae74135467b125b417c7544978d50c80c694399db77e878109f59a8335df3a326135a0d50a4bde6fc3e5c03fb7747bf919c68ee8f45c312bc2dfdd279411ba7a5f78dd9bfe16baa4a", Mac => "441c7fdaa40e50bf1eba073509769b1c0942f3a16e1e183435819d3b5f8538cd"); Test_HMAC_SHA256 (Key => "5b2cced47045bca47512fe226c1f415ef127a209bf885b8a76f5a24f9c6bce61e166bc3ca75471ddc14a001c7b", Msg => "1de00288a6e93930070183de9d9ed0ce86f6cc0f64b7bedb5df8af24676fd06fc2e516e5c5e827a7dec07963d5a4b825502d696f9c0ace8baaf6092058e78304f2888f51f9ea4bbb2376c720a2276a61a9f691712d9578abe95f5e69a490e4d2b6b1b7f3c9576e12dd0db63e8f8fac2b9a398a3d9ebe86e3201df726d2d1ba82", Mac => "15c62ce7a3bfd5b3b3856d6f47cb19bb7030dc469e35a27807511f81ea83091c"); Test_HMAC_SHA256 (Key => "0d4dd35f90f0a10d7d8030e9919446f3d5e2532472bcef0cc5db84bab65c48dc46086f2768d89ef912b8a23d93", Msg => "2937aa2ff7c942bf7dcfa670154e988c28177391969db4995804ba1a647acacfd0ca56f63b2e7fbc6965d8f62d066d118c14044c1fd2a224b9d951104a67216f03fa6dbfbb1e5f0f9283b6b7d452c74620c1c2bcc9e637fa7cc8d97623bc81330aef76f1403feba1414fc91bd1daaf132b4737495b7e7c01e9fbd9b3b720f303", Mac => "d5596bcc39af2782df1cd9fc8c37a8f96789275422f511280971d8429a8cb661"); Test_HMAC_SHA256 (Key => "5ef946b64ff80e4df8ee98a357f07c825c3acc434d0f994069c0b88ccc0ac5e192a469d93f19d9615fd49f6b69", Msg => "dfa3b06eb1e30b47ad9f0bf0f441fcd94856ca8b1f4cb88cf6795582e860ad9c7f30bc2eca8e289bb0942f78831addeed934836097fb664e4e91b47acb5fbc49e9a15d6baa25bfbe864f42700361b46586f9c7d869dcc2444df17685b291743ac5fe7d6f78303a79d8d82d209c9fe804f9ae7d39be7435359ca385ecc57c3d39", Mac => "223dfaf583140a769c805c33f1f30bfb2f0926b088f55439dfeb4f5a9ceeedf1"); Test_HMAC_SHA256 (Key => "79f87734c46c5a11d86aedead22ed3ea01577ad4ecdf42969650e12000350676f0cf3c04f10a11339baf783914db6d35d7b0d77bb44ab22c18f56d0b8f9d918b", Msg => "509a0a45a1512b5072474b297f9c1a8c24890016144468504e245fe94d065d437fef6232f9f34500695549b44ceff29361d417e85d353701e081117aa8d06ebe058242ca8c23f3341092f96cce63a743e88148a915186ebb96b287fd6ca0b1e3c89bd097c3abddf64f4881db6dbfe2a1a1d8bde3a3b6b58658feeafa003ccebc", Mac => "b5b0c43028e81628dce82517fa36aa29"); Test_HMAC_SHA256 (Key => "eae255d9e083268f896429ce36645502aff9dbeaca7159f93c7d51fdaeefdbfe14c396693a5ce46e9f1157a687e866f94ca165bff5f7b425092236d2a6a004cb", Msg => "c28f6a09ce076ef270458967fe19d46e6f6b2cbeb6362bdc4fd55684177e984a600cf0814501665c3bcb4353e94681c83a8381ebb0c8fcdbfbd73c0eca738cf2e121edd46b2c0a0292eb6e2c4e46f5107a7780572d0eedb9473847684a4039ac6c56c9caea90432b9e2e72bad422168e5ad093c9d612e7c05c7fde5c40ed89c0", Mac => "b84003c417a472fd2935341962744330"); Test_HMAC_SHA256 (Key => "42521bc3f168b2b3434cb4e44d92f526b41c5f10bfe0a0e6b0eb20c055a636e9da599b86e1ed1f78d4f69a837af126afc9c98beefca1fb00e5cd00948321b2b0", Msg => "5a600c468ec22e42af5ba93eb79452864ebe469a86f83632c85201800f3288b553f7bec649ddfe704920a27a8f65d13aa755985a238b3cdc8fb0cf5ca7e40295c7603a27a25ae69837290f9801aa30896ee2493e93e52f031ef626de8cefb1159ce4a9f003038dc061be1920742d1a7b8bad80cf3eceb5b05d6c2d8f261b3f3c", Mac => "e1c3c6d90820511c8d685c73bb757ee2"); Test_HMAC_SHA256 (Key => "81b5f12a64f3c347902549a1fabd39ea1d9efeabed3851880df40dc541d23f0926507d62218f7a8a95b1d76959853bda6966a5b2db6001ff1595fa8d3edf10af", Msg => "04369f9592b00626d15b0a4b0ee2f92ba0d086c16d016ce7b05654b4f9adf90875118a656f2d50011707901982ebb387f3a4a49759f37a17183957ad0c778f6ecb780dab2b4df30e05fa81e6386f38c0f0ba3f37287a050d6d97287ae53096c391d5f20fcff73977239ca55c3657d1fd1f781f48e28057f136d890c28cc25432", Mac => "5f840796e0d35c807b3d715727432e68"); Test_HMAC_SHA256 (Key => "34f5d28d58364da4b95a48c07e01b0a99c5ace173ff2c9216bc96df8e3ab2ad54abd60308857da336f11986e9f21d1cca6e438c66cba7fd6cf17192f8ad745ab", Msg => "59a6b0317f130f6248e746e396cc684b32b9a0eabf15c50bec1f2f76ee8dc9392e7368a83e675ba312e344176deb26c799efbe4d5bf2175b26ec59478f6de1c7018497f9b2df7ca6d53383c712dfa24833cc280d209751330df21898f2474c9d3b9fe62ac1c39af3faa0acfa6cf0055568178632f44b9c1809f81570ff633243", Mac => "5a33b8f7cdba999ed61fab3869b8f1e9"); Test_HMAC_SHA256 (Key => "cec8280c87170f1d4836cdd77abb2a34410b8d5351d96d1a03e90920a71a59ca1ca344b49f9d1352e1c226d75c74e555e601fa268725be8c88d0f094cc2aad40", Msg => "952e93853e9579c2fe353dc83203d34f04963fd64880a095a4de6eb4f42e00baec615148ff31030780b5a4df0833316a1735d8a8fedf02f4fc7f9136a766665b8df727021cfd3f78bf4226e74a5de2ca98cbcea472419af2b341935eaaec2435c0179d1b5ba034fe02024a48c128ef59cf7fa7346e4f6e78134bfb93c7674232", Mac => "aedb7ea80734d1a65723da4f3ba18f86"); Test_HMAC_SHA256 (Key => "9f65a426106db99dcb2130be14839241d4a92c8becc108d2c9521b8238c5c0df7c2365ec9f20848c0559d6e847dac3103ee31ce55dec0c3644e64c2993c497dd", Msg => "7d3d9286c1fa057175c33c556d2c4b87fe46d1b764727d6b6172d1ac27c626fe7835f1960caa44c8334198bfbba2c970148e62d0b2b71b45b3d5a05bc2f694b93b15d6538fef03e1eb123c8f143729f696d13d4b1de63cd6231efba6cb1a68840d06c925147249a4e45db02f40937200cb3aeb8e6da7e905f8766bf40cd9a846", Mac => "9f19ab5e517e884cc1b1d3124ec9ca50"); Test_HMAC_SHA256 (Key => "2edc66bcca9f99ee1366992fd0f0f954d3d4c5ca2115c2d053f6f8e33c0f6e7acca135f43427a7cf4b2df11a3165cf2d32f89797ed1a7958b5e105513757edf8", Msg => "188a7fb0222c9d8e19d057ab22d71e0356c4f8d1184179aea663eefcef2edb85a55ca860925a97152f94f90073f2a2fbe9a29a370519156bb854a5314264afac48291c6f265e509a86d5604632047f2426c1ba60ea4ae6cc1e88d63a5695d129297b42a5853fb268451ef44506169fc736a8c2156dddd2180187e7e0d5c92844", Mac => "03243d10c48609e8f4182638c23516a2"); Test_HMAC_SHA256 (Key => "f987eb83a3fd6d94ebf3626b7d34fec23ee06c63dfb4078cb38bcc97bd250fda0e286ecd4e64046a985bdfda8b01b34d9dc0cf2ab3bf5168ef64963bc918f5f4", Msg => "e105ff11481159c52baef5de550898214e1d9a90da2d9083c36b29fad8f956323613ae76c68b103807758a600e2379e4cb54f2998da86149c857700517232bbc7d8b610df0424d5a18df751e54d6d380fea73328f055dc51461a721f66591b333ed4e17ecd1f5852e55580bf2f09ec1c6f7f24e4091c49c4c51cf7f1cf836fbf", Mac => "03364863690c439b306a2967daa2418c"); Test_HMAC_SHA256 (Key => "5a35a2909aadd278b810b101ed44e1548ddaf9ba8c882bb142d9243f6b23348672baaf99ef63938e6e0b6ad472b972c7b9c2fc82c23c12f48db45c37a224451c", Msg => "ba527305604ef5581850b222fd192e6260c3f20eb30d8f04a5f4e1438f83915b0febdd22f2d69ca958f97c6e12e88fd34f2f06cf789e3ce458e4f6518060e988ea337ce2dc9ad0920f7bfdd8113d9f77e8dd9268f83ef9d027c185303e16f4db9252d7aee54199fb87fdbdc6c0bf673473f61e40fb96d0b059b31647914eba3d", Mac => "d360c381d230d21cf828782ae5e389f1"); Test_HMAC_SHA256 (Key => "96da746779ee441651fb9ccd2da621eff4091111f8fb795cce92a8335ee7e31636195ac724955bab0394c672d5e5c1fb12ecac7140eb58bbc4807313f86f47f4", Msg => "198b79d09a3dfdb5d41043e679baba6592f3c751cd7cbb0d1860029f6e7a9c56f137d2b03a9d217aed8c7b399044afc99d282544d5c2ce26d8065baef3dbad8739d78da7d54a9e789e7f8f35ec3e9597aa9519b2add9ae1944e7454911afa44517f4147d134d5af41070e9a236af5618e3c30c62fdc94131868a293a70ff69d9", Mac => "3df86c710d782309023d65fccdb91db4"); Test_HMAC_SHA256 (Key => "43aae2621459a8d5b5cc919445f3dabc0165d136ba01e58187d5ffb2b73f15b90951fce5207a7dab3163aca3ff1875d309687830018e17628111ccc8fae8c0bc", Msg => "bac0889281fe55dae17c45079bc44f8976508f5a92953c26f940daae77bfb16eac037d7d5f8467b615863415e29bbd63806a9f169eae33737a82c1f5b2dbf0f25856817c44343d86aea22c47fc3e08e4d8d8f14986756257749a644513c70240e641fc55d914c091d35995678eb51a51a722efbaf1f2b21c0f112d66428acda0", Mac => "83467cdf51f59916b492c5aba554c606"); Test_HMAC_SHA256 (Key => "fa235ef9f48a666e2e55dbc448ef934de0d22ef5c0ecedc75548c8b364eaba8ef8fb605a9f26c2c8d54171fbc130d28f1f06b9da7e6e3971ab4abbee6d994ef1", Msg => "da32314c22dde556d886ce2dde1291f1a4c1ba14aaa95b694063f57e91049c2cdf4e576c1028c66c6a4c07e39b40d9a1fc87026a1618ef04660f9b8f5da3b215ab58f562bd75e01684b98af8794ace8ddeeea8ea467de1c65797efd3cf92174fc5b6d4d532ad7c7aaf3521158018b5ded25e723b41c179d69d61baf3eeb91301", Mac => "0d88a7f3a8369888b4c3223499412256"); Test_HMAC_SHA256 (Key => "bf248c7c6101e6e0281c8955e5cc028d98e5688d3f36d754f05620bd26a1bfa6597d0e52d1e2b80cbb196f0d7dc3e2a0471ee984ea840392ee34039fde5506a4", Msg => "557f845dc8962ae11561f63ff9f7a9fd73ad5da479f1d1c3e9760236c292fba894e4ed5735398217b6b06f9a951d49ee34ac99478ac732ff1939c2db2093a89011ce0586453316dbef78c1ab4f2c6d8f285517637357a24d55176ffa4f612e2bb587f471614b8d34a8ff13fa8debbfe635ef007f9b6acab4855a311cb7c43682", Mac => "84ac389ad6e42798a97784941bb76fa4"); Test_HMAC_SHA256 (Key => "8b4c9c2783240e19128fcc2754c47d68d6acb3365999cd85d3351c74b7b94422765fe5c346197bf3228383491216e030ac9f7cf2dbf03216dfd6ecec954b0866", Msg => "dac416df793ee5fbca992682974a0c2cca63eb49805df0a75e1410b628133eea8f12e1614bbd85c66ab7d075e8dfb8df7fd2f430c0b1b03063248567dc9ea8852fe3620104c8c0fffe3a8b7749827a9472c7a75a7cd5408c301d7fcdb4fcdc055f408106cce8fe702d2b3ed1e2bcb9114b4dec0eda5206836c07e52ed9b44032", Mac => "fc38c3bddbc320bf7373834f3c83ac67"); Test_HMAC_SHA256 (Key => "a5fd99ca57c1fec8159a798792426d296fa1b17d539241de3dea335819b7ed0d92c596d72867ca2f8273924e058f9391a5ab8522fbcfe7d59817f1509afccb6f", Msg => "5cf3a5202df8706f6bff5bf2590de37c902c7ffd4e6c8ea611288e4e658a8e15fa51e647f9d22583983d4b1ced2239bfff346556234cd22d86b140530696a04446e4cac4013a720e9e32582e05e7c0acb2b4226a073e22cfe7b4c2258055d7406833ba61ec373f5aa566ebf24c62618ace341e01a34866d65cb97e8c7cd01c53", Mac => "2c2bc8c87017f204c958abd9aab2beb6ac67781d8d9d804c"); Test_HMAC_SHA256 (Key => "30bc3e321a8978e235fa1b550064b82eaa0c107525eacc827cad6f1d66ff88e31b092cec663aa3aafc4462140c68390417f4cede020a4a736aa2522537d2394b", Msg => "c1263be423e7888eaceccfef26f0b5aaefe03f3ce732dde98c78a7f66435e6199cefd62eee85aa2bc8c3d156aa3478b6cf3750c71155917207d23f3b7082acbdd4de3e536857721933eb21136ff502ab324971614d806ebe7491e989a0a23d3eb21dfabc5905e73e358b478c3ddc5c735e3e2a72645b7db61edc2d49bd3aa186", Mac => "d722b57c48128b37ba38770cbf4660697757bab95c00c484"); Test_HMAC_SHA256 (Key => "c189ce5334f670ed2815607ba9549f07682e11f70259dee3854019a431b3a0ad7bdd439f58772817b73c6dca4f9d10d59cb50c4e247fc51fff47a614965e0932", Msg => "a5deb712fc3bb9fbaf1398698b5696600fcd61ac68489f26a0f8ca32121a3e8c21d5904529662208b67af4a2f4dbbdc1674f3bfcdcbec714a0922c7aef63b911afd495345fb853fb4a7ac6ba00bb17cb063c148ecdffcbade1a958a5632bfb82b9a16ee9847a755cd2dab6ba963ccb05555c96682154d479cb05f5bb55b82c67", Mac => "3d6305ad9dcb3a50105b92f331009a3cb03ca7ec36882fcc"); Test_HMAC_SHA256 (Key => "085ecb69492deaa704e25aeeabb7b7795fdcc807b3255f2fb30081f425a9c7990ea104b7785c288c733965965ab8906057e8c99d291e5e7325eced197b51c9a4", Msg => "2dac1599844d82a79c7cd1669a1c6976267f655167872f8b2e0c5059717e8651fccc1770638466613b3bc4fc892f880e7b2b625856abecdab0418251df3754feb176b9a95ea6c7e6ba972097afe00eb2ebc6d344d65f3ab6c7f7724f77b21cfbb673a34b5cfdccbc83588e3cf37723eade175f1eceea41a9dbf5c85e213607d1", Mac => "35fa859b3e4a793b2329652cc61f9f68816fed67fa402e1b"); Test_HMAC_SHA256 (Key => "f5a07e3741f03174c6efcb1f9f186d1f233b367073c56e814f4204db2e203b048db6a0a387853fe4a6bd161ef903cab46671993942de90d71f60fef1e5102807", Msg => "067ef2ee1e95ca546882e2a9d441dc563235198efeb52be97dc7894f092b8718a89c8571e4526602d7cb44ce86cb615a70a2611166adb7e79c1f5e3d0101c904cc781c2657479c21319464f56fef5b41429062a9cfe0d27a3a3c259104f5f379989b21d3207b55fb9d66ace837b4b054d189841de15762ec7fa44814bc0eedbd", Mac => "aaed7dbe184423f0b4c9ff72dcf4557ec123b49682fc24c3"); Test_HMAC_SHA256 (Key => "887c37f1f09920ba51885934af50a4b065e9e2160e971ed8a676cd26ed5554610cc7cbd17b78019a22bec0ecbf70527b87fb432f10b2691c6e6622b49d37dd3b", Msg => "d6fc8b4b72b7eea80b1c6f53c11a52510f920527feb8f95598bdb120a0ab1994809018ca83de68674412a6656794a51686de08656ee110608ca4b2f3a22fedf6bea75a6b6dba05002c3e7bdc1f1424970653d38a6ca29c4a21e6e66feb1ec09a798a79b698136a7daae7173e536477de75378f1e5fc5461b41ca741be33f3c86", Mac => "51ac4d2b5923a5df8ec48c14ec514a0629f8e385a9ea4985"); Test_HMAC_SHA256 (Key => "e9061ef9b298e47af4bfe35903d22e2ea4cedb85c53e5ae16b5e0501eb7ff7615dad22044e909c71b5903afc283c604650ed17079ba6600b303fc97b28c33d5e", Msg => "5e873df5f280723dadd718875684592a7b2c56916646bd874d7c99b1c9546f5c890f867a48d286e6fc0345f051f6dd1555c9020e758c920da8a56e43ea7389a5ec323ef00a1fe7ea7ddcabebd215979d9a64f0006472c8b1e860d06b85656dceeeb80e5f20b0bcd19729f383c12bb049b3c6cb6f1b4087fb757368338270445f", Mac => "20dc2be5c7f0b2fa8eaf026c152a09cadbdb82e52538b393"); Test_HMAC_SHA256 (Key => "78bab2c40d60d0770c5d2bafc455265942b0d932174afe255b6c0ed4f1fca7750df031dff408c1e403bd3de2f375c2955bf8422f762772ab27ece35e3a6d6ecf", Msg => "c2925d3d09cfab81f32f769d61dad5a03aec0423be785a7417cd7bf331f7cfbbcc893385d09aeecae00ee628311714079dfa357cf317c26e922423f736b9200c111198611e0f7587b27fdf57549fb094cedd28cc84e3e37f05d10784e0c9c2a7b9b1f4979b342800900ac9f46f7a938ff61d47db18e4a3f1985c9161d7319fd4", Mac => "da713e318a9e5b4b4f1dfe0a2af0837d70fde54442f264ff"); Test_HMAC_SHA256 (Key => "a2f1635f239f03be853b26aee7b8035a5f267bf0ebd7a8ebabc0b8984d21fcd3c8693c124d544ea67a56e63dd23cb0aa6a119ce9e43e7a5da1f6c65d33d1c5ef", Msg => "5c32698a0a56b9aabd41270ec1e475c5f965bdd07366a7843f8adf2f8235c7fec694691e94deaf2245d9d6a5159f203079a2c95eb3ee3d3da3ae88f8e0f20eb307af7cb75307fecf6ecbb3f1873f5e21a51d5e933bdce010fc31539af0d71c53c88c8b9b6f5c0e79e121a53c404b966225dd62b834b8f7c3f31c275fdc6c59a6", Mac => "5ebf7b7d25b0ff498322e4264bda56f7512e9d4ce3c9d51e"); Test_HMAC_SHA256 (Key => "69f533836771a3cc0087fc2fce7c42318f24c76acbf8f139b8693db65a7484e8ee777e3989438426fd729a3bfcfbac3f800318ac69f66d6268d7729b1dd46b22", Msg => "70901c61c43a67e647b5274e55fd3a934b0b8790eba58470027afc67476e0fa087337a76ff1918e60a27a944fc6ad32e4d8d66bffaaae404286041b40a26e71b06defd5813aee9c8660b13c24d16ec855b2c306ec5b8686f0c4cb2bcdcf1c4c735bb2f6fc8a0e174a489ee2f11aa9080bc0f6c0715781697f667d8e78577af8b", Mac => "4f0a78dbbe767218eaeac0400656c4b4b23f908a9e7f4708"); Test_HMAC_SHA256 (Key => "2daf08cdc015bf361f66be9cfcdd6aa7f1003db66fc95e23f70475c88cf8bdc268495b74ee1deecfe07e67d1d2001b4cdea316e99afab26c478d693a4b7de818", Msg => "a85ee973c99d8da60d745894990b24b9cad7e450be0e4369175e883bfbdebdbb5f45106e865a797bc4ab9d048882f3b69a15259fa0fdb940e7e9f0e46094ee30e9f41cfaceb5cb5f90e51a0fe5f119ecffd02ed4117eb8ba10acf3fcb7b61cf0cdd5d5c0aa96ca79f88a955eb73fdf828370c8961a7989ff190d582c062b8d26", Mac => "e6e7baded94fd4042c2d3ccb586d8ca983e8033e4ccffc68"); Test_HMAC_SHA256 (Key => "65e35c88ebfc4c425d0362c5cd125ba40a0aa76516347840da281a2419ee82fba364292fcbdf1b6d1a154aa9453b29625d6a76274647575a6ae3a934aee09509", Msg => "7ba8ff928460a47c78aa938519d33978d7172ba2975c0d2bb421b2a643b184e69c9c2713166759fe11831db23a7c184c0a733b0c90cea2ab712ebcef2da1ad7ea31af0f0d81e4127f4bfbae38dce3c91284d1064fd23cea7fb137e520ceffedb9a09a44e52eb23a02848b3419b326cf03a8cf3d367c359c75bb940f56a0240a6", Mac => "d9eafa06a75b5b671be1b1f1e6296f17f71ff467417b7837"); Test_HMAC_SHA256 (Key => "84d5824f5b0deb22f4476578e8d0dd192bdb87f93019236a54897e9079923b15f14fd31f9f2adb7f58ac862c8f936aef3225875fcfc58510fbc43d08f4797b72", Msg => "20dfbdc107b5e0af83b2d16021039d0269de2d27b40bbe6c3ea492597c19e589b076230bbae95807317fe8a5b22e802a78184c652d0e6b490053a0dbf8a34a4f8874966d637cf33a9173c6d5c31a5f9fe47c2c9ef0742d24096fa8abc8731e04d1617db1aa77978fcd18d3b8fbd023a7d493369da545ee448180149293914bf1", Mac => "e7928a55a3e4274394d81988a08196e07d5a5df047140690"); Test_HMAC_SHA256 (Key => "833b09f3a7e41110f35ae33acef5c9a76ea93119548154fb154815ac60892c1b3dbb839493b5e0d9ed68c5757dcc954d621bf778263e7f508b848cc9879a6c02", Msg => "62d432e97b1214a94ab922b6bfc7f0a32f0e9973a737b0b67f067af532e05a506d8a8c66653316756eb5fcc2ca18b43cbe57d95ceb67244fdc769757dc71fb6f0ac88d2eaf75f5edce3b772cfd2b6d32746df5f4643de7388a340afa03c9870f62179d0800e1975993d3fbbb020a05ce78d75303b8c0e2b9b0c839a650f1e479", Mac => "b4c5612cb1c1dc4333450daae500cdbcfe3ee1e3ef7a0d61"); Test_HMAC_SHA256 (Key => "5efd2d24a034c9cb778e6730c3739a2e48abdfdb0e2c2203073083d5f38b59db813c7730b742afed93b195e4f3048591b2b5e84d140bb2c564342fabdb9300ab", Msg => "b08f5e5926b68f1c18652c7f7fc593fb3c3f5370fed6331965bb77be681b5e2bf43cefe2d5c8f50dda6949b634954f3a20acc3fbc640b65660b3d3d59e08e7a549f3a14a28329691202087c69e88e7283ab7989a94d5f69b827516786e6a4fc0f9dcfaf9e49c779131b57118854462acd18959b4313dfbd11526c7119eea9f66", Mac => "3d0a38dfe4a8801ab9f9dc1446c535d792393ea8d763db4d"); Test_HMAC_SHA256 (Key => "992868504d2564c4fb47bcbd4ae482d8fb0e8e56d7b81864e61986a0e25682daeb5b50177c095edc9e971da95c3210c376e723365ac33d1b4f391817f4c35124", Msg => "ed4f269a8851eb3154771516b27228155200778049b2dc1963f3ac32ba46ea1387cfbb9c39151a2cc406cdc13c3c9860a27eb0b7fe8a7201ad11552afd041e33f70e53d97c62f17194b66117028fa9071cc0e04bd92de4972cd54f719010a694e414d4977abed7ca6b90ba612df6c3d467cded85032598a48546804f9cf2ecfe", Mac => "2f8321f416b9bb249f113b13fc12d70e1668dc332839c10daa5717896cb70ddf"); Test_HMAC_SHA256 (Key => "ceab398e4107483ede64ce107c9270e6022778b61f6a258d3b7045d4ad8506d32ece0a738d2cb948a562dbce8d7b66f30e6694d65ae439cffaa454af09abe449", Msg => "6dde9ae867e2feb367008a975d7853ed8f89690f3c87a1107f2e98aa7736f477a527ed64956f0d64c1b23361b261de78688ea865fcff113c84817e5b377e829cd2d25bcf3adbc06762cfda736f5390d01a49079d56e969f03313e6c703e3f942bb87ed0f9c4d9f25120085b5dc75ef5d6d618da0926d3293568dd7d8238de3d0", Mac => "2d3a760595f3fb19293cc6d23651222a9f5a4f02284457a9c1ed4c43ac993ca5"); Test_HMAC_SHA256 (Key => "6a6155dc4d59c6bf46caa3de09666326da308c51a23e6ec342bd12b227376e8a1f11da906b58c8c515bdaf0d84dd48904dc6fd614cb79f5ef4285757e30adf72", Msg => "107bdfb55c601e74f6505015a5cb87bc0eb0b2e7cb04594fbeef8e0fa5072007eed21183cc854a188a128ecf2062ad8604dffa924236fea9cf5b6e001acd5bb0e51ba95e53a7c21b42aa8b89da78983f66069c6f63a923c6d7208394e5d50f2d9d608f8f194ded45c51f318bfe94afb2df2b7fc657e42e6f7f47b3152ba7a547", Mac => "6dc2b05619ad5458ee3de70b0c1649b3788e1a5312e8924b5486905506970881"); Test_HMAC_SHA256 (Key => "ce97ded47e101a6d0aa1041138093586046524f54345ec9e860550c9415bfc002d2c0d7beaa4d4dce985d71d89bf19c680429c637d1023350c963c28b93c7e05", Msg => "f62796faaa333dddae596f98cd4de3931ed90710287446604a158b575b4901fd8d841e8697b4df85131c555c246060f75ddcbbbade3a38b7c0444d25b4f6d00de6d8ff47288bc3a54ca1366ed1b2620ec3ab4c0bdc6a313bef880f3587766705cbcc4124a4dd72a7228f1ab61c6a704017eec2ed692ab7549f8ad86f1bf14e4b", Mac => "837ecd647e03fe8df9a92c32dcbc87d0734851ffbc17376e03218cce9cbe974f"); Test_HMAC_SHA256 (Key => "554e344537a09659920c19b40f2850b07235c3c7209993a6de905c82db1e5faff148e16f2883ce087c6da219e0bb892d8272c591515b5163bdb0c4ecbd1c7730", Msg => "44e9a1f1437791963c1a3e0aaaae24affc3b405844d16a5233b6e5a145c4358b390c305bc4bf585f864f68333dd12d4139a69789105a109e92cc0cf1ff8fe2527891dab4b4fa8731f457574e39f8687fb4969dee7e3af27889590cf8d74415c9e9c0c6867bf0c5146e7c32e306ec7c7055557a0ff738b7e700a70d3e33a975f7", Mac => "9cd24a0efa26c107738f5335526b57d8c93e54fef8c1babbbbb2d42f3a1d03c6"); Test_HMAC_SHA256 (Key => "76d8e0342011d2bca953b26ee200e56685b721d50ed4dda7cd3a05633a50f153884998e67da901528004fb7df4090e1ec4c0b11f3f10bd4727842215044fd9ef", Msg => "0ebaefd2153de2c70537ceb27e5ee70105ae85bd4da38462b4abebed11dbcd36ade16d808f3aa54ffda5897a3fd74780a670521fcd2ebf231f60ef7d999e6e94d1b81be038ec89b49c5ca65bf1bf9a675056f2464021fe16355477ba5605652e8327401797bb569fea456c7f1b7da85d0c48af592de60ae3fe6dcecfcf767cab", Mac => "1cbd4f923d683ca38aca6cd0ad81151062fd642b155b2a950eb551ca8216b0ca"); Test_HMAC_SHA256 (Key => "731ec9f365f28f1cb9c4ebcf89d8648732a6dfa958d2c0152b5e52fae81f69eea26d463e421fba82cdb78f75e5d92304930256a54376a6ea107a995642c45c6f", Msg => "d98557504a21fc3a434c780c328ec239cf8d7c26f58d6ad7b23329c79a8e1e176058aceba778aa1215cc14e5a92600714f94d4d8b2e5b7f45268453ed6f787eea3342264ad13cec78d990aecd5e30f79a069024a6d846d132d2ef0479a093439cba4218205f951a2d53ac4ea5bcdd599e9956c45cd73767c6a0c92ac8ecd0d40", Mac => "4f2501d2a88cb13046a6549f90e4ea924773408bb684025b5126a8fc21f48670"); Test_HMAC_SHA256 (Key => "cc38826523a9097e0f7d075a3a039a70ca1e2b5590a6443e820ba1c16c3b89dbe2c65f37794074ad37e81f0a4786100ff19ae1bccab2eece281c6786d9bda3ac", Msg => "6e09febed308baa41a8b6e0f7fab61808c9c8471ea32eef178a4888e9a910a77d44026e2972c02ac5ac0ec3fed5f4ab90aa7cf4b2ef7f5dea62ea7fdedb63def35c2ae2344d301d2818105df4f78420299c12f25ae43a60e5089943f07c5f51abc15004982069e5db75721b54cff33a261700cc8151ee9c89c3bb91c92c51942", Mac => "83b1403389173568588e5b6b8cf9da180408c79f91d054ac5cd99de0b728ff66"); Test_HMAC_SHA256 (Key => "62c1d149567f05a0b76c4fd32d1f365d170cb165cfb38f922f1716225472eb36a127327007f8f5c08479ca7beac4b0aee26f3bb130bbf1ff390ef344c2a4e0b8", Msg => "7af390cc4edde0f3d496137d0cacd0876b54c909dc5ce36705619742cb42989418d4b6fcdbd80256512a338f843b48b711c06f582dac2607ea5ca038b7126a5726a54e14f37778fe41a6d7532687c6166a50ec638c14600006f51134d29566dc2dcd21bb9ba289122b74c870fc7992cc006a07d1007cdb79e192b4dd25b1d34c", Mac => "2f1a4c2bde7c8bdd7d8a9b6315b19ac654266120c652fc24ab19e00ac11c5461"); Test_HMAC_SHA256 (Key => "af81e327525f3a9104b7282959a0f6600fad7efae7709bb8b33cde34b12f830c1770a342efb6abe3250a0ce7dfcd34590cfcbeb840b3e59cbff03f9cd89aa870", Msg => "75ed3ae9085bbf2d034b864d7f87057c2d0b12c7395feb0375237903b3ebd60e724e0c8fbe3a200f518a4f61fedb971c509b794f6e62fe6f4186f894d9ea8ae50d16ea51628d66812f5aa50afeed30e634253025f5ae7ae0428dc86f64f949db8e6d5d96befb996ae4e312b04664d8c223d2c0b396e9673dbe6173fa1cc21cd7", Mac => "579d35cef5b6f8468c8285829861e93587c8dee5791208406a7f4bfafb70abfd"); Test_HMAC_SHA256 (Key => "17a5baecf916634433dcf133ddc2dcdfcf4a680e088928985138c01d1d09eef3b437cc6290614f14079814c72bb75c45eff255968bb29b7421a1feffa00086b2", Msg => "7809e59ad48aeb2c6f03de775b1371b7f86926ae0b87098e10c69e19d29b18073818cba862b6e4caf45158ddb2741a554ed791507d2649795004e92cc25065db8ea774b0432a457399816daf062025108dc8b210d75124d284a8434ec314c7af20bdc7f99e6e74ef069a07347e9df8b05d4571353e91026354b896c9fd6da64c", Mac => "810d7bda3421589a7dd60597447edf2b987f1e7283f3c65890248712c80969c1"); Test_HMAC_SHA256 (Key => "e09ad7d2ff8d559a26e0454bcbfff844e8d2415b07872bc59c93e73698f308483bb8f3212ac29050c1cc46f9aaa92732afcc67accc0e139689acffbe878f01fa", Msg => "4745100cec0406cffa146350ee12213330d192123af4a1bafdbc5c98801eaf6ecb19724a0346a7b9d6b1fc381ae798ebb0501392afbfc6b8be48462dc2522bb7baec1605e665f2e42f1679b6c383fa1f00a35a01937b5aabe1f2174da6e0d7afdb680223de886fb9cdeee1b1320dd236e6716f492f4fe3fb2c61d8df73f03bbf", Mac => "055ee0ade716231bcaa0a7d18161004127a37e7aa12773433a376073474d3d58"); Test_HMAC_SHA256 (Key => "fd013d615c6ca959030a520e148808a07e27d38a215634d53486ae8be43a856f3e5dc6eb4fd9874a8a6570276a9e7b25585af7e1ce39d325bd7d195f2c1bb951", Msg => "91ea78334108ce6261ddee5d98045bb307a6e8f3d0ee65c1d9bc7d28cd9edf3264fc9cb6e592d072e9238559616cd42eda584d5200729adb619f5ee5740d632dda67f5dce34b89a054fda301685df6f31416cca78f19a8a7124a2a22dd7834847a934b4a451940152cd20ffdb4bd07273c4a2b9a86c9d94e7323a9860ec89860", Mac => "eb5aaa4ee702ff7b5324bc72c98fe87df6d9cc342b053ebce6cbf27fdea0eabf"); Test_HMAC_SHA256 (Key => "62e3a735edcd87fca0dd1d2797cc0e574160da9ac23f60e39501a5b77688d1287f947a0791922556f5b50afc434818bc83433968931cd752c9df9f04d8818531", Msg => "ec638734d336b8da6dfaf3da9e18c7131494fcc0709cd3a9a6618e9ba62533153c958e44345a7531c3eb503a22a5d8bf7c1d1e1d0ab5cfe07d6db7349cfc859d2e20cee81a325462cdfd8747dcd04c7dead2fe82cd96b2a4ecefc070eb067f6c8ba94f09cbe6ddd354d9a2eb13c2adb7285aa3d8ff68045cbc8faf35dd6aa9ea", Mac => "26db47a48a10b9b0b697b793f5c0231aa35fe192c9d063d7b03a55e3c302850a"); Test_HMAC_SHA256 (Key => "abc9ccdfbd92b6919a5d6c6b5a765a39662ed90080d3549204dfaa5f6d70d48e1af8c84d53369d658765ef11d7b38510d9f431f99598f8cfd4da73d59b3b75a3", Msg => "ac4756b851fc8866b9adfac2d02599148e0db7757a62b1e06d26cf8c99556b79c91a5649ea437752cbf3b5f121961821ce1a2a4c635da461e3e14626cac707d04dfb6ed1e4ac40f106ff5ba03304e28a38e99a6daf6d9427c5980d1440a99296c05168f5441e2a6af13ab4760f55407855e0cf7f667ccb5d9bb2eafd03e455f6", Mac => "0e445d77789a6947da70848dc4da5dc9c125869bb6945b04304bde93829a75d9"); Test_HMAC_SHA256 (Key => "07c358ed1df3b06d47b5ec763afa07a6677ca3a722524e6103c1056d8c56f6cd0d318adbc5a4a3804afd23a62b9fadf0d358afa8b0eea0f995fb865e5dfbbc5ad2a4f26acd76", Msg => "2aa1d94ec83ce7c3c75c6bc847759b085234fd44b407d8f80ddfe93c243556e87e4be8fb30b4743ef1169a24732fb2f5f416042b10c3371dd9d20dda29844d58370700ce69f7df5e69240df77b96027a0ecec71b904f690b875da854de05ef047c5d898d1c0d116c580e2a0906b271dec8e5b0dcdfb2550a40092270eabf2533", Mac => "b3a189a17e8d9e986cd31bbe01b49fb3"); Test_HMAC_SHA256 (Key => "ab8dfba4414e6986513a9767af5eaed9720811c4b38040b991f3fd8278b0adfea497002ce0cdd48594b5578ffe1c6cafc0b4513e9bc47ee07a1dd011b250e601881ecca2f430", Msg => "d1a7086d134c11a8a3204e019f52843e89f2d01a02a88a94d4a66e8d36dbfe924c6922f7ee5a1225aa8e75340cf8cbbd1c0b08e9296e81cec5f70cfc11d763523b12ca174433f246073d1c2877e4812828fdf2e41134bc8090fdce3faecd1e54a58948f59f3f78b2c1148b05687d712ab2b2d630416001513b9efc7f9523f53f", Mac => "7aea0e2d93e9a6a3004117ad4a4a72a3"); Test_HMAC_SHA256 (Key => "fc68be1e46a7ed0d4293c6ebab8d7546a7b6e95d495f7d315ac1d8df59ee112cc008176289b1515bf1c281db7c40ee23398cc2c247d9b1af98e3db95f5dff46e42ada2530455", Msg => "eefa0d62254597bd67c87e00fb35f69c5cb2dc09f58d9d14292b547b964232b79b482319172cae1874431deae585df51ebf92ab81e6ee57e2a6cc492186ab540cf417b4adae1983b6b4371f8a09fad9806dede755c52638399a58de1300f00ae92cc5c1ef4ce1dcd53afc053b6e92818b4493f6a35a1e0cc7dbef5916699dcaa", Mac => "04c8f6ebcbf13fdd2ab1e5c5c25bc7ec"); Test_HMAC_SHA256 (Key => "6e9ce34b4fbc78ea92d3d14592e1c0725bd053d70f4c599b89d4215a3f11851d6d67278970cbfb566fd40603411465c88ba890cd290ee099d0374fcdf1dd8012e017ff50352b", Msg => "56dc2b84da28f94847f598980ebc2d5892274e1639d0b7ecc24c3ea8d968092be8b2fe0f313c7b8d1a9c479dc737c95eeec078b9e7fb934103c7125e1f5bdcab79d03a9cc2e08c6474ed3b166544ee0a9da4018264fa338da06f9e2c5ea4edb4af3cc973b59c9496fdee5a4a0f6c042244dbcfb9d855fd98404ccb5abecca20e", Mac => "c7e82b7b2478c319194fed944fb7c772"); Test_HMAC_SHA256 (Key => "91e87e19a4a4af9b2068f842e624da9a21e57c40cc4d4df57541ebf140e144792ebdfbb49f450dbb1682b4ef3d048b8f291cf38ade4bb69116f9eb713e6a1aa0c2efa0158a59", Msg => "3a51f6fbfef38724347ab1a4f7aafb7a999aee9b890a19e87af6585dc16c568bff9a5148012b1da5e4d46c207d294c1bf8b6f18dbe4bb5f89d975d9b23f89ee84a92e0385b9f41be0c05ddb9eb2e4dee00146d56ae9b6214db24dca9515f996b63602b34d3f6fa57f3388cd80b6004dcfbdde95e21a329247dc65ef113474ffd", Mac => "589afd7086a58d77f046c59a419504a1"); Test_HMAC_SHA256 (Key => "1abf71698a7d52b41caa5c26558d46e8cf27a490d270168c23e4c0c4213efa7b0d844876aa438c61061c7a6e977f4d3f89b7b806572720eb99d308ae1d22cd8d38e293685e8c", Msg => "aa02f0b377f161ee60b0fbd6c56a537c0358cb8da62b63d5daaad203239cd6ac4ee8c892a8fb73256d6a264a83d8085c681bac706a9ae5de16f9dcfdf2f95f2d6f997c1b19824f4011a118abbd169001be4d7ec2226a85cddbeb4027708891f8f35e35d6334d9c46329ff880daea9573eb3768093863eaac13c6270906131114", Mac => "8cbd8f921c55d36e5b7db27f7891def1"); Test_HMAC_SHA256 (Key => "f8dff7f41b7e3ef6d558dcd83d344db5551d410eecb5a0bcc2cccb29ee3125c07dc8d2a25cddbe9b78b8e1542372c2caba073afe84ab7befde6250c595cba74f943c4cafbf14", Msg => "72d18951da90b1f6d908253e55da1b5b476d6a936cd6e4433efce72422f92fcde3c3ee795f0b1f0b8065174f6eaa5d83039abb1680c695af7eae7a712726f97ea5feb6b9dbe1bdd1537e157b78e699fe063503f5be754a505ebf2e9dd0a31086a2cb089ab6da32503b9a4848db5776d5368669b990abaa2fc6792a2f873a1eed", Mac => "1c649a21afe336c72c4593cb3d3c9462"); Test_HMAC_SHA256 (Key => "9fb4d6fcd697d4522dc7e386ab41dd9f8a637906e0fe123b7facabc719643172a84bffb50ccda872f6edf0e306d91bd130c26b0664eae4046eff52f71ba78de99d5cfc35307a", Msg => "eb6b60d0858d6f87f5b9ba7fc75acba8751784ef886061700047fde7f692d868800e5751d5260c7cb1b338b9fb168e7ba6853ad1d5a2229842526cf0e0cc40ecbff0cf8e30db94f22bb8d9c9edd87e09e506f6e3d11492f625ba02c2aca1195f71bad06ee0d48e51296ea697e5c921bafc42bf0dc6df38f07028c746a238e929", Mac => "9ca6f24c476e59b5b068c37b0383ff4b"); Test_HMAC_SHA256 (Key => "ce3a2bec5ca00b544e8d392ed309e9ee5d48d185eddd8b33902a3b9d291b711f721451633e27f133018b028b9149b3f32e39d20bc12d3468616c589e1b62479ef395be4326db", Msg => "36b5cf31af37c90334f2f4adf6a918a22eff5e3e54dc1a4f9212e8d47841fa05f1f8b093761c6930818e9a5245081d349c48cb1e41714ce73fae2eb8a91835128cdaf213229297f548fb0ad732ca38c05ed5ace1c67a601a5a3fd3c0adb65b9eefa4bd391b61fb5971826dc427b6134d5cee2a0d4dc1fdf1cb0efe75ede315ae", Mac => "48fc1d0123e5c7f686d74f5903323f9b"); Test_HMAC_SHA256 (Key => "b127e4819e172ca09868c28636dfa63b2eefd1ead22dd3f0db04bb3366aa37b53c52fc6956a46845a16a6698fe8c939e8d3e9f512b78f58339a69e2aa0a262fb11df313a92e7", Msg => "f1ab8fda839d00f0477d1ab6f3badd421834fa89a4ab8075ab77b738677a4cdf7d54af2a81d5ba9bbdb893cd2e8ed307d0f8e8111c19b846ce4b86ebeb111abf034e1cd3b3b4c29c6f7eab477e620a4c46c10646ca22610271de58d6091ccb340b009e7e21205f1ce53829cdec1ec83a03f81dd1b8acc4d01d98f5a0c884a865", Mac => "41fe6d923bfb13fcec839d3c272383a6"); Test_HMAC_SHA256 (Key => "a04b6205d7e712aff28a8d520a79547e41e42800001970b383f8dc9998a7482aa387e3ece6669044fff68c8cb27d5165e9cfbb4ff97a6a77274067cf6bca0a64749a1bedeb42", Msg => "6bfdc8539fe6bf99892c1c36d521f7b17c224ee3837755fee57a0dcecefb183e09e4cc1dbc19862253a2412eba0c67d2cf0ce61117668767af0d7c0a868c376fcaa48310a037cd6d1865c25060f4205638f5c5aba5a40d15ea915a34b4fdf408958714b3b3083b80c2bbc8252fa1ca459e23133997fa8e107c4cd2d4bf17f60f", Mac => "b6aa4e0beccfdd37588699435e2d40de"); Test_HMAC_SHA256 (Key => "beeba7959995358a1c238dc2f457f3c0aa6f47372f5f3471b85fabf1cba590589a74b385915501002ba5fc99094f684c45db476804a808f14a75fc42132609f69fc5a2090dc8", Msg => "b551096a194aee8992991325de92c9597c4d1c156c57b47036a7f93f2dd47be6f585906e43283fd8e4e75cb101d7f5e7a173eddb6f4ae7b7bef46502ca4a317240d7fd010189464223ac7ef6391969dbd5abc8c44bf335eeb72d4e92417215b79f2f974adcd5cc7058d2bf1b11c1eedc20ddf4f887bc65bd293afa161ab3ee5e", Mac => "98323e25ea0635d6abe384e8960f373c"); Test_HMAC_SHA256 (Key => "e7747f39b1c6c0157a9128c012391e5148200ed5006a193986040a6a22e48cbaed929b86e2e73915381462c4f0e74160aa4aa4d4bc0dae0485e5cbf8ffb4e93d940ae68833ec", Msg => "868bf010b6e26e4c1f91f0614ff42bc1403087c33b7e229af6c718880072024f5e7abce977c36c782daebf804deb7654298e22ce83652b43ad8917b6ef34094c29d28800b95b82989fdf91d8df637cf527eb014db2d8d2546c74ddd257ccd04c2dbeddbf4752bb95bd4eedd1cf04468d846fada6907e1eb67bb0f14200e15f35", Mac => "591d11b2bd18f982bccb6b3a44f760a3"); Test_HMAC_SHA256 (Key => "2f95c1d1d94db8ce7bdafc8af1b7e48fefd96b7ae8f733f72f29caed5db42df6f2248a123f9c4a9c836b4f7d54df7a9f405e71a5b5b29fd91ea57c654fce0ec723aab07f63ef", Msg => "852f420342b4bead2e714424eb0f287f077602047f40553d816d6e4e76588f8540e94d33c00d37ba9c63b8e83f393f8321b69c254858ae4a0fa23ba8260e1fbfda49a9b0969f4252aab44f834c7659bcdc4f6be96d9fbc7780698eae124d5641dab61d23cc54269de1cdd19e1aafbf52c3aa37f5f5fcc9ea5e2c310744fb7e34", Mac => "3d4a25554afa0abd26f72377c7180e19"); Test_HMAC_SHA256 (Key => "addfd600416f8511f3f07b03df2248b6bcec047003f49317546c26a4172f05d45f0c8d20136174f04fec550c08df6853ef3290af983d9c48dc86c6f87cd88000069571f9fd4c", Msg => "01c6d5c0272b631c3f9d1c0687f7c1496e77e1479bb9fc8f31e6e8b252297453e2624c7e8d1f1c3b0bc8f862a219fcb0edd52f1bddb9ad63fdaf06eafa45e1c5625de513ac26d98d794b095f196aec3751c7059b5b42077f2f863c17018427ea0b2069288c29e13d118f17a6f3d0db0321b4296e1f3a500c4fd253e170cc90e9", Mac => "2d2ac1291e545de46a42ce6c435518f8"); Test_HMAC_SHA256 (Key => "058f604e53051a0f8550de16b7245fdad3da639a6cc3c84eeabcc5dde8027390da488cc7f30772eb461673a32b7a4b4be47feaa2800878c200239756b9e0e807f964d037ed39", Msg => "a74100cf30cd26416e9878739dfdb3c1fa569d6427ca8ee9d06630e18f6f83db0df7248f6bafce5ce0fc21f5a34da2570bab04fef492a65866ff5c7a71ca72125b36ee9cfec716d96b53327dd35c9328a89dd498ffe3601d391e344de2b8e7f8d925e75fb1bc05a058c53475f6d38d1e1854979c0e66c62091ec41c3aae1e877", Mac => "08e3a1718c6d1cdef2c0c67660f7c1e8a45963e5ffed54a7"); Test_HMAC_SHA256 (Key => "986e0d3c3e7645e493d35962291d979ddf09e8a610d5a73d0ae7b397c2b1c35ec6d7fafa7294bc0f675abf4639b8655168814929922b179ae675a202dc4c305623f01865db53", Msg => "72c21be6f0c4df7cc8a53f9226f36146f9ec5bea9c94f3b7b604a8bf5f05f72484ddd7888c6986c43b6c87ddd727ec348a2ad1fc086929f17192bd47799e71e1c6a7c9c49af9adcbb16b699c6df0f8da3069829d09bd231f942ceeb81be0320c01c5fb83619bdcf9f24aecb72e750fa2b35177b3e9b86aa7e57945f88df3c10b", Mac => "b579eaf7706976152b1622c17fc47c5db3802aa3f46f6a3e"); Test_HMAC_SHA256 (Key => "7a41ca8776a3dde0f5c7d029f28a9bcd3c4daad2ccf9d604563f95501e256d6e0dbeafc304386185701d7c201fd258d8526464b013831a8bc8cf3292095316d5af4f97352d3b", Msg => "c7627c9a6d1e7c41c18657b598ac29b28c4d0ef047008af7feb329353b58624ee0dcc1b369594676718c085d77891d35e3adbe6844d5a7d2dccdbdd15e0cf39bf69e6ed58a61e8614074527740edbdf7bbca7afd2c2b80b6ddbe0f73ad7a93fc1290cb275a9e2aa936267e2b7840cfa11c8b8ad78569df4c0a6c6744b10b0a19", Mac => "53f3436a128fd497c5cd1a534558d6a6bdb5f086efabc6fc"); Test_HMAC_SHA256 (Key => "ee36e5784fcb43427be072aaa968ea52bf3b73f55d0b45fb1d996d4a1928725eae32399c805b26e3bea38465a8df27b54e6a4f209a18d041906b70d0d50a91bb6e6e1078cbdf", Msg => "8419330710968fb40ae915e66548f1ac445509e361f583abaf5f87173e7346295f4e3bfd0a1bb0447c2b85f424492d3ec047f9c1c4dd99fdfbb4e00a70bdc7898fc7b5dc8851fd92f49ca825bb0576e835921f3b8fcbde0171cb3054dd96da775bad290b53e07d86ba6409e2f025d492e95d03ba8c665b9f58cd025d4da785d8", Mac => "5a841e55fb2250c431fa397f1d0ec858b2c4a08e40dc897c"); Test_HMAC_SHA256 (Key => "27e1dca4978d2a05d3f9cabc29cb18c76a210b4eee825d37d915ecf59d1061a0c0740f4be0f81e92f442e872d45da35efc68418e8c8b949b9430b6498f6fa8a32dc9394e561a", Msg => "57d73f3bdcaadf51fd61aa65a01dc75638546dccdd899a1da25a086d23c05d1a5d93a157c34cf6168e0f832c54e9b2afdc569ba33106c0d6f5e0fa09f848b350099d56bc0c0604364d6f89ae14ce8e767aab0fe87adf104f4b9c8c05edadafd803ff45b2e061717ae488a2350956c371b95cb2e3e39df44f4d94a7a82c79b779", Mac => "dbeefbe2f550671d7fcd3d5bd66d19ce9faf5e6b29308ef8"); Test_HMAC_SHA256 (Key => "b415314e151701a503b62a5c8b5dba5ac357235a533fe2f634b85f04b85f1426cbfef29d7803005eaf3046684593e9543cb9972e451f258383e977bb92d6a1a9c8744b61ba90", Msg => "0c8404fe10870fdac0e8d21c99c73d04a78b6d4c8fd3cfb8d3ae87ee520e13880e7a2b683204ec4b547b36a1f7e1539d541fd9885af8d15af33c188b893e0627c9874e21a6cc25e9a11ea7404861764cfdffa4e7f9ded33d918f9a96b7c82b70c31433d174c902db313aeca1952fef392b929613766b1c88350fd5b6e493ca8c", Mac => "95beb7fcb2b8d049adef7e0f33a7792c8d71e10b71ad3efa"); Test_HMAC_SHA256 (Key => "e04e9731742a767445247fba9701ae17fc9acc451b8c4ff3af307c5fd3cece277c0d9b5d47aef5d9757acfd3337960b11f65cd1d095e025bf6dfe0d96bf19e08e89f696bb2a9", Msg => "fe1c33cadec693cfa53250d906d35d1e2db8df4300be8f2aa505600b44a063c60e91e7777ef4e44bde7a9a930e197517810234ad88d44a0ad30f84d734cbed08a7aaef69900bba794380ea7cc98363cce264807046866eef30cbd2661d4db2d9d14f92c79c73dd01db2d87bcc177f1e458c60db3c23dc283c52192e0878e7ae2", Mac => "2f8d11fe7f6c07bdd0d33dfcb3fc7dec51fe2048d1e8db44"); Test_HMAC_SHA256 (Key => "bc3732e901768fc9b98303d599110be8236c5151780022796d1b22c6e0f43fbe4debe3709c126e0f3dede3e17776e157fd64d67ec3ad6f960f4a53ffd33a105d3ac955f48112", Msg => "023004dff89f0820892be15fb91dc4c498936bfab92320eee6c117d412e3006c8fe3dd8382a411bc9378ba90e941419455d730facdaa435b1da9c1b4d9620cae966a772259ff59dc50ec609fc0ad276a3fd40afa23ab39903a1b0bf4bccc95ba7d8e7cc467f80708284e789328a89dcebe51a201a36e2915a7e09c9ea26bc219", Mac => "f51032cef423d7846270d8bb43f7d8426e392fd92b753a57"); Test_HMAC_SHA256 (Key => "d2229832e4000614fac6db5c0a235e49217fa4a9a831f9aae7f282eec79120dddce9963fa211ef0a07d21a782a5ed85d633ed8b8838d1f885d64aee185955f3e579c11193bd2", Msg => "0d612e1953e7cfde5242fae7d51c8152d2a4a7e44de128fb7a467ac4228653ae47aa6b1f0b608365ce96a6ef9747afbdb5950b15a619c0783777aed4ed3515fba4cd5854760001d0de6e04201d644826ddf563a9154ca64c2c4059c16129473a6af27e205b705008caf29de3311a557493eb38086322e061a1ca02f3460bf153", Mac => "a87d01c705415dea8cb9f0e2b6663b629f88a5ce793ea8a3"); Test_HMAC_SHA256 (Key => "043899af301424ed13d00066c0c37a448591f27371a284b314d2e7ec866a94c1ab502b67b47a13b8e9a86183a653fc27a4e0fe607a1a5d6064dfca224219d9fbe4f16372843f", Msg => "62908131c688711835177348434fdd1016941788765b50752430716e6dfe4f3dfe8b2588fa4241b14a35fdfa3562f1ed303567fbf74f0f63dc86f5555f2daf570095dbe951d3c9644fc47428f24fb7f603eabd9b2e60bacf58d1d85c33fa75830fb68b9bf3c56ffbeccdbf1aa59e95f538ba01b14415b782401904cb0eed0787", Mac => "97f3b4e61b5885dc4c7f69f79a07d7a40c2d1d2e3936b91b"); Test_HMAC_SHA256 (Key => "b5fee466f106d7a526d468468a16981251815a022073a402c4d7c5f6244af9fb747b3befacd85a3339674faff2f1ce174d661b6dd37d1fc8d19bbb5351f65c9848fad0ff11ec", Msg => "4745100cec0406cffa146350ee12213330d192123af4a1bafdbc5c98801eaf6ecb19724a0346a7b9d6b1fc381ae798ebb0501392afbfc6b8be48462dc2522bb7baec1605e665f2e42f1679b6c383fa1f00a35a01937b5aabe1f2174da6e0d7afdb680223de886fb9cdeee1b1320dd236e6716f492f4fe3fb2c61d8df73f03bbf", Mac => "1fc68ed1bad0898d691970b530b54cef7c2733a7f1ffd276"); Test_HMAC_SHA256 (Key => "fd013d615c6ca959030a520e148808a07e27d38a215634d53486ae8be43a856f3e5dc6eb4fd9874a8a6570276a9e7b25585af7e1ce39d325bd7d195f2c1bb95122118809c7fb", Msg => "fc0723c3f84de1178d14375c3307f0babdbb2086813f6970b8f477fe289ecd3900bcc4a60315d077e89406030155db741c002fbfa7568ada1709a5298ad12c39aabcc2b0d5c646847ca9546cc9f60f9485651e953869f5a49208560909ea17d4c4b025cbb887c9a611fc2a7fd3121484c191f7ef7ea23338f2999288ef121672", Mac => "10ab06d732cdf46a1711dfab98e136c4e6ed856ea0678efd"); Test_HMAC_SHA256 (Key => "05915a68f16938d7c6c5d4326904e0f3b89acf4d7063e01a4e38581575bf0e4910872dc9385436a218b7440e4fe294ea95bb446aa22f5b0c4cc90acaef83329411dc25fd462a", Msg => "5a40298e323ce97549d4c820b0a77cbdefeaf6ca9bad947a2b60985a0795d934e208b8334adc56497d2704ce7fb1fb6a69f94e3404791c1b962b0a86fc4cf037f960d375ce76146a0bade6caa4f705b5471da6dfed04a9eeb02e1623dc83c73d4852629ae7938ba09a6f575b48020367315fe6117fd4a4b91e70a57bcec3c50e", Mac => "aaf4fc8d00177a99d1c895d72b3a63e7ce15f1bc3946f338"); Test_HMAC_SHA256 (Key => "b05f0e3bbb12b9351c465ad5eff31e65e55956c5f4e4ca684d53509f8f199d1a3a035aab661c7b4eb5cecc678649cc4a6b29bf00de52ff492f1f93ddc1bd02f776d169146861", Msg => "99958aa459604657c7bf6e4cdfcc8785f0abf06ffe636b5b64ecd931bd8a456305592421fc28dbcccb8a82acea2be8e54161d7a78e0399a6067ebaca3f2510274dc9f92f2c8ae4265eec13d7d42e9f8612d7bc258f913ecb5a3a5c610339b49fb90e9037b02d684fc60da835657cb24eab352750c8b463b1a8494660d36c3ab2", Mac => "edfc7a2815d6779681590f3855e668f2c2d44e64c773e711"); Test_HMAC_SHA256 (Key => "3714707839daf79122c782416351385e88a81d31c9f641d8dce538e90e63c95892a2ea9b1962ed0ba372f48e9474aa730ae2359d6e4e66e449ee33b859576807e58999614d2c", Msg => "aac4256339f6377a4fe225d50e74424c80e0f96d85d162c410c3135a93ad397bb8e4e7bc523cad3d93706d2c7fc46a8aa0e8a232fc205e1744a207cd4e3f3b4bc54620ef20a6f8c2d052f6febeea50cdf49796549a3742f025ba90bfcbcb90633ab37902897b40916f516953b32e1e9ce3b57edb495d37d71bd25739f2995f4b", Mac => "ac38d22527983468cc48efbf64cbe1307022327207fb7f94"); Test_HMAC_SHA256 (Key => "c09e29071c405d5e820d345a46dbbf1e0f8202e92de3ed3e2d298e43aa4f846866e3b748990946d488c2c1ae5a6e99d32790d47d53d205481a497c936bf9ba29fa9c2821919f", Msg => "ea7240529980076d3b028a083ebc4e24efdaa06c9c84d76bf5b2d9fdb842e1038e487f5b30a5e010cddb4fcdb01ffc981eb0fcbc7d689207bc90ad36eef9b1ae38487a6dee929f3ff929f3357cb55253b7869a892b28f7e5fe386406a2776ed4b21d3b6e1c70cc6485947f27e9a5d8bd820380b9eced8e6b865206541be39fdc", Mac => "49ae1c4a7a570fde47f7517ab18898b1b991d03cfcf8c45bb3615b5f755da682"); Test_HMAC_SHA256 (Key => "bce50cdfff843885d4f364d69f93bf58a2322c707b82e878eec96d11e5db97bbb54606a3a3ccc3bba716261070a6f759a70ed3cb785fd1354fe56648df11863669b70c803b7a", Msg => "93b7ef0e470ddfac6aef93c0dcd37b8f1c4baf5eadd978e3bf0512fa0baeb099ff9ec1061b6172479b5674db5606ffa7e6b5173309370e1647054aafd5904816bad5e1523032cccd4d786505e241ac83a484911189666f287553d6a8164e8dcb0c85d75c4e29f624c97ceea64a2c8b0c9ddfa560f70fa3ff91183e4b968f88a1", Mac => "37f9f32918308210849dfebf8dd456804babd6845af07218f9d9be9df9743d55"); Test_HMAC_SHA256 (Key => "0cb35a02ddc8c7fb7c93aeab77b9318118b0fd449524209d879a1cd69d5439e192741f9c5c64a353a774e28681c58ced576783ba20bea51ed82ae50e30e6a147843130900dac", Msg => "21063443bf02ffe9f813dc6688920d036041a2a3a63a9956fc254a2c05ae03472537ef3489c93c7c68517c7588094c5e033434ab4b0ecf9e6c032c17911f73adcac6ccfd0ca57c427ae85127e2ad41d98bb94e5f2e6aad2e42ed26f87cb1bec6971c9446517c0966b6402321a06834997f3ab66756377a2f064d0277cf4e2bb9", Mac => "5c258ba6241f65c2ee5356bb47332236baea227857e29506165861a4c7379c51"); Test_HMAC_SHA256 (Key => "cddf76f985d6797c9fe3830c210567c5094fb979343fd5a1804c239a2ebe9a0e8ac283b0cdbe802c42e2cc5da800c4c1d89da72ba7489ab80e2aef0488dfa69ebc8434b95c11", Msg => "9724c0d5c989e5adafcd7527fee269ea14c0aec3ddb62596f3fdee9b0993e6c689466e877c0f6fb4aba29bc40343f53d3edb936fc04ba263bf00ac0fa7c816cbbde4ed09025ee2405a9d9229ed360b2ece058c20db7d8d28e43cff000fe2d5627a24c3c1231c463805e3e4c08462b5a50b65223bf4f1edcda8d872d6078a2c73", Mac => "3c5a9ac2a0fa2f58825233ff676bedf93d8845a409a42a05a9ae5218cea14680"); Test_HMAC_SHA256 (Key => "731bdc9fb219f3667c9a135ecf34c7f52cf638c39c554f1ef1691ae84e5a71ace915d9e91043a8ae6a7b6a6780b684f77b0417072f7e279d597cfdf02508c97bf4928c505be5", Msg => "12353bca6b0f3d545ec4b470c69272f72bb5589793e6ca769a226018c5acde83145567a1d6fbede5c150ec3142dc58f81246d4a00acf242a381fe51432447b7eaaf84c8d43222c0da3a0175aca442680a21cbca1d7f70097e82491db7f7d75a5fea552555a8de0122c3d9eb105d1c4d802c17963a1664706d3bacc345360b240", Mac => "f15a210fca2cefc4d92bf14ff572d021463bcc28f60d034e87222dc6076eaffe"); Test_HMAC_SHA256 (Key => "85806ff2a642f729d28ded0734aef4f6a3f0bb32771e77729b4391cae4b49bd0a15089fe74071e576099a44d22a0e0e3c5d1450f717f68628460b4eae3945f5893e39c5e8347", Msg => "df073817d8687293257d7ed1816803afe292d779f34e14b0c5ba6e0ac1e6c3b9e239f4f02110f4a430a71e906a3dcc7b0b7325bd9cf63600b25d4544d8556126cafb3e61e4894095d935d647a8560929ccc9559cb393b77472c707fbb7ab8838ff16be71091c7fee8aed4d0022fbe3428f5b0e1f216ebe946dc05d3746305f79", Mac => "6c63bed6c6082bfb085cf2426ef3d0dea97acd717a57ff0aa624d0b803f2ea14"); Test_HMAC_SHA256 (Key => "f13794e5ea5e27507a7bad638f8eb8b86ca5ad73b5a17424c63c74ef494bbfea084189c6fff5dfb2b6a5967cce3a81f9d9cde7a86f6b33927e15ee74e10beb20344bc121e754", Msg => "cd3f17355a1e254b9821276141a850f0b71cb3cf4824a803b01c71d8dfc31d31fd33ad1cac1776a98d18c6fd0598caa241a3af21772208d36f5270f4437570f963c8a323dbb41755d948f72369e7672b843eb0a849799d448ab7252e8abb496d05e44074715fd2f6849b02fbf6fdef3488d6fc8b45922fff0832d7af3efc7234", Mac => "d08563dad7c32c02b305b87fad504918fd566c433e98a1367a3dbbadb26e9b64"); Test_HMAC_SHA256 (Key => "e3d0c3abdef069e6e4fa35015797bd8a9d64bc9b75f20b028b12cca04a4fe80ff1bbbd88e9ef1003564d499fec88df4503671188eec5d7d089dd18b812c41db43a3746f77b97", Msg => "934dc1ef76993aa82061cf67aaac7714f12e25aa8f6f54840a2ae3d84af32481511d300126db7dc612a5b2ac0fdeb9c47eb316541846781e270c8ee5f6731c2e86c94e4482594c7e75d70ec43bfe7250b6778cb2c2fd3d176abf07ca5c051ffb9a17c4c0735bd059b2bd8db81553c94100412dce73dbcaf63a0af58f63f15571", Mac => "5717fc337916d66b4e292e69d507b1c81663d8140536670f3e70e33b04c83ac3"); Test_HMAC_SHA256 (Key => "51bbdf37124cee0cd5830e9d8f4b0ecfa44c8b1bb86a6433c18f6ee961ab694d74f93316e5833c44c5e83a039e5d1ed104f246e36e17f4c5445eff423982c883dba9707b68e6", Msg => "c84394086457d8fa900a57f18ea50a93be16f06fc28b5532de40541da5959bb6d2646ebe7491ef644ee39cb87d1219625b213094a4ed163dd707ef80dfbf9564f38195cdbb657babb4015071d58260c973fb418562fc10d95d67fec8a77f0bddf342121b82f906368b0d7b04df1c682ecd4c2b2b43dfcd6f370888df45fd8689", Mac => "3e0212e7982f43fc303d5e8457d2ab630aa257302ac489c74976cc5678823931"); Test_HMAC_SHA256 (Key => "e95751c99e14bed0dd9ba102f48e5e440519c53208e03ab7133613dad99042db7239347f5a47f9a8bbcda428ef52f5d7408235e4f3246268864c8c4135d27f1dc302a2d57695", Msg => "36bda8d33b3bc10f367caf71c5ed387fe5f1493c1d3bd2aaf97ad78cba3cc5704c0c02ed78dec72a5bae329f17639720c8f91817badf7511d99e257c68bca5aef6e0102a8e36f01f2f1553327be0227db32aafd8e31d8d575a1ca4145da7842e1d7ffa11e60be1f898fb3bb15b2b81a08fca370702bbc285663b7edc02c50cf7", Mac => "d965907e6d0f926a7ea719464b1034a5879c865a00d4df0342b2d4f4bde0976c"); Test_HMAC_SHA256 (Key => "9dd10a4c713776700f7e7e0a710a014b923bf228234daf5e807c8eb3e26cb97fd6c93d6cee2a5d7ab63c2c46e91c5b8be5044fe95d2a76e54ee5dc323412f92f7db6ceb03ee5", Msg => "3722eaa433830abdbcaa9177e373bab05fcb8fd82fc3afa581e34f08d3c07f5f58d0aeec9d7e71866c7a808ef15301251b470a9c455a612c16a586e8a5f1f3efe184a2e6313bd0a657d901319a9f44eb241db807a9474f3f49cbd2c8b8a225859ce5cd7b36e3af8545701a482780086a42f4a1ffa2b30144e3fd3b9052fc9e87", Mac => "9c22961d48d0651bd592fd369129e44822ee22d35c142dcb6b60a725bf177c85"); Test_HMAC_SHA256 (Key => "36bbb59925c6432139c7cd1bbc2b1b05c4010e09645f797e230131b2ad3468e7c9f2369b8b4f790dcb14dffcd6a941b262383341c80fd90d6d46fc8a81a25c47edba482c8658", Msg => "03074e714d5eefdf5b714381d80e694ef37c2647b374d8a38a6dac2a2e1d11dfa43c6de19d8b0e93061563fbdbb46c683cd86f58c284ed981399d4adb457f6731f21ba04168011db366bac3acfc66dc8f3281b7fcde159c5343cd9d98001cd719d3e9ea25e47e1ff13fc87055d4a53b741f592857c94067216dd23763a227e21", Mac => "a6109ba372c4564f4ed8c875619ff5bb64d503225197ee9259dd50264eb1f4ea"); Test_HMAC_SHA256 (Key => "ffa63ebba8239b6896bbec6af1c7b87b9c69257a0d146c0d5c4e8b8a99b43a18633f1f11b6c745ab05c5cbd8895dd96ad89cd87bb9fee30c373378ecf42274dcc02f3ef06ab9", Msg => "739f460034249e805aff665d6248a594250695835aa24cfa5d9c9b962f7d374abd0d163f65c51cdeb687f72b778d4854eba00389548a180fb6cd5390dd9580b6a1ecd4f8692d88b3eebbc77c42f2cab5105e425e252bf62e2fddade2c5424ed6a8a446d249422a268b029df9c96075de1baa19a8d56f2d8051357234ef6ae7d2", Mac => "c580c8e0f6a1f36403322f7b0ae3d06dd2dfd16ebc6dddd205704e97dc2998e2"); Test_HMAC_SHA256 (Key => "30be326c2ffff6d031affdab0a27d5a8cbfc4ba9dec626ad522615f77307e56d9e23f73e53c9f2c78cdeb5b84d2390727db5b3b4f4dae677d5fa7b161eec81b27d743bd56609", Msg => "082e7b4cde8914bf07c288441be643e408f6cb5ca932f67e9b975bd54ca706885468708009afaecd4d9ee846ab6c0d70a364c5a24131a766f558ad219e06e4f7e80c68e9d8289040a586662fca865ab459c037bf92465596b4281178133e7a806b214dcd747b24e0b681ea459fbd9276d31108fcc3f968d781106f20d3d62fed", Mac => "a51f5988a8f0f3992f549ea7f8c370a06d5ae8d65880067997536385d632b206"); Test_HMAC_SHA256 (Key => "19fb88775a517bfedeb2cde7c9455ca58d40d150b0a47ffbd0288e42e4725822c48d130eec98b13e7cbb044b846026f97f9f18531df9a9fe464a99c75bf9ff7ebf72e80796d6", Msg => "892525a0f02aae7f2264cb024632f11e8adbdbecb7d0c7080832e2373c94014cea02914c1542d1d000593fab43524fcd1f3a63670f6ff8509f1b1da881fb2abbde65ae27ea89a942bbf7fcb65b611d6e1ca20fb62b00929d68ae979e7595f6800d55637b98869f9cfc43eb6bb5e9c2ca281cc720340bfdb70bf5366340edce65", Mac => "974752b18d0dcbf29cc6104295e041259622cb7733cff63dbcf6808b15a5ad45"); Test_HMAC_SHA256 (Key => "815c2a911aaf0f8498706110a95e6f9c26c3ef52a3b13781448cb03fd2c887520df4a55144f8e206249b7517ce48afe52c11eab584f4bc0e4d5d706142edb6f0b67a99e82757b2d015d5", Msg => "8b7fdf792a90218f91998b084756f32ff81488466bcd66ceb4956702ab343ca59c15bdfd405f7e20ec61a36e0933f55fc49a357f062db0b6a7b613cddfdb812efdfee3eb5b617f02918ecde0e9f6852313d8fda41a64b2b5972124a7258ce8901402f84a62df4dbfe6e8b064cfe6cd044d9489bf8ebb9552ec9c4399658e9952", Mac => "7966440df79b13e95c41346eb792f3ec"); Test_HMAC_SHA256 (Key => "4809f31e93423cabf44cddcad23da7d7aee734d311fc7babc276a1bd3d35139861ead10369350d421d0af4944959cc006fee3f51b996f66031836a9134f1f7a0240a339e5e077d366c99", Msg => "6e4abd414dca21a6ad433146986273e2da952ef613cd1f9a0a836ca644f9de19d6c24abc77845002d9fd48333a447ac936518d1bdfc043380fd26316fdb5f6ec0f05b5dcef92c3d5e16498b854fc3db9b6ddbf098d4bdeb2c45305c2420b7fabc21be7eade7ce0e76c80071c0e13267a0540ab0846f758ced00d3bf13c84e11f", Mac => "d7baa0117d008af786c2bacb38b9d386"); Test_HMAC_SHA256 (Key => "1ce3f5bce2b176bf89eb7015005ed1ff5177a4746cf8ed7226efd49381e906e02e6359e95081af1683031c381d744b63b4a41d00e059941e4142f009c42c171e23783addabcdb640420a", Msg => "b6acbe5df01480614143c94790974c82d046352124f56a0246861042293152f7ddd65d22b491afdfa39092dfea21e318f70f18bb882f82671136ce9c5dcdd27277e8878bcb535146898d87354ada2fd2f694096de5c2d06944ecbca8bb2d4b444c8941807f81edfebce5af32f8eab716947c0f1f81d5dc70a94fe14f8a7644d5", Mac => "7588b290c3adf86198354e3eee4fc06f"); Test_HMAC_SHA256 (Key => "c8fcf6fcfbf498b33d3ecf12588a596d9fecc79ed43384fa4976138446ef9861ab0c9a8cd6c407cbc72878e2823ab706b5017f949bdd82032019b01846bfb758c7b0c6c3fcf397bffd4e", Msg => "dc058f909e7170bee56c4dfde862b4314f68314a9717ccbbb79bd42d0407db7552eb02c45c29771e66043b0e207a2997ced4346da67bf066790d542b96b0be33eca737f26e23f84dbc5b2e52ffdefb261428bd3eee7492d235d21c8f3379818df15eb6809d06fe322f98ad314d3632c46b8d542436abbce93311b4c3a30a2e6a", Mac => "99066156163139a8735711534c022937"); Test_HMAC_SHA256 (Key => "8985c5dbc6725a4e1ca26f5667d6da4938a8d542cab69a6938023075ee99846f5d73bbb8f49bc74d4b8f384aa1ea55ad88406c5ddf4a666b01439e973c91f41685a81d92692c3d734755", Msg => "48ca2fb5b7e4f471a20911af6a66158e45aef700ec0262ce941350dc208adaaf95a84e2cce2983a2716f690b21dce48ff580db4a29f48c4f148522ed5a958931633f81ab0c3af1759c007e72f92f5dd41c2f65e1c21569f664c7c4cc6a6135fa9cd8eebbd9dee7f20b05786b5a262764a004bf4c1d2da2ca6d215f01b6b68713", Mac => "0bfa572019e6d0f987f79b03ad67ad09"); Test_HMAC_SHA256 (Key => "e243c480ff1de35ff7bbb71963e145b20dc43b31afc1d4f4fe4ffc46e733b53419f3b99cc38c60869f67c5b72f8a2484470c87e5cbcba2caba61fbb26b534e79178c2f71980af1b570d8", Msg => "7e8bcb42e9c0015e96f4f802520a15cccf3fb280540e7108b251cfb97aa8fcd86d1eea5d340aa3f65234e14f5639d89155315729978e0fca914732b513374138c3c01f74cab36964cd740a1b1f59094d3554a6115ad2a6e5a3e2ebf3269a479367b692101383faaff1fc9bed1532500957f1c8c203a0dc62d2691ffb199ab7f1", Mac => "ec8356beca9d87dce7d010de113b9fd5"); Test_HMAC_SHA256 (Key => "2293336d9fd48570e6515a4d7c4985daf0e1230d6b6bd06589e71b8567ca3723fefff320af2cebf81e36005d4407071fc08fbe4f6e0804a43b7f491d389043e8ed71e283ef328721b542", Msg => "7d70d5d8676518e8f4ccfb3660bfc14e20aea6c775a616b342d21d3a1b421f819eebc9d106ef47f5fd1fb7e3b2bede9f2c881a5ddef398e67bb5c73c0b860d813f27b81501a337ff50d58a8e4b2af73f8ba9ffe2b63090f951007c61d67b2a34072d8ced810a50cd94f65b7e528b73f7e6163b9f28e265b56eba23efa4a9de61", Mac => "b7a1d83414cbbde7a7738c7e77cbfe3b"); Test_HMAC_SHA256 (Key => "d30c4a44e6429bb5a319252763da22b8593b7884c4ca9124698f677441edde996fca574374f08230a6b273f2dfd2f9f172a22bb3636a435bd70ab070c9e066e0ffec79453c32ea66b860", Msg => "20a0f85250a95615b7a40f25132af070aa388d86df777bfb03c0bf0d6ddf8787cd9718e6bde708b9998cad4e91c7d58afc60b719efeb2ac80f4a152ea3732792ee74c809bbb44fdf397b753809b409f796f2e6dfa5b223f82de08935689c4a532a3def047296934d3e794f2da47af57f1ff501212753cc5604880369e3e05894", Mac => "495f4ccb0530c7b1f03f3285faaae818"); Test_HMAC_SHA256 (Key => "cff586fb91a1e9d43c36a76a4dceb9e123df15670324d1c75fdb8c3b58310a8281fb1e33e6a6cd514d71b01fbbd99a363a557bd4da448477f6248cabb804b320df3c45ffc05be17e8b61", Msg => "e37e9da1ddfe11a2ff6a95025d1970fa1c2997bb7974d0010cc017ec4e36410c5a16dfbaf0a865afbf768ccfe4b8f446ae100ed6a477396fc9772b011e9c938e6925fc8335fef5481af36f163e1e66091ca1c476849b827ee35410e3c5bbf71b9813bda3b3e908969749077e74310e6aef46804122c6f255e4be8d3b4b7db4db", Mac => "836034775fc41e033c56ecf21d1874aa"); Test_HMAC_SHA256 (Key => "ece40441a168c83e0e356e687788081f07f4b299726c5f8fd89fd836ed84017157355e455700d78dacbbb8efb459fc0ed5bbcb011bc8410522c0716e37cdaae4badcf9cbc6aaee031522", Msg => "4b7ab71376d83edc4149b74ab10b7c1b1b6fa9ce977f2d63b2e321626306591e4174393bf287ca6ee7420d84467d90a628423edb05787bce6cbe71d2f89aa4237fd3cd6e8c1be59410f180ac54c65c47325f3af7857aec12deb4b0b379aabc026f5f1ab52cdeb6d72420b6c8c22f0986a18c432affcea8b66f8d860dcd7ec943", Mac => "43385c80a077720fbb417848e4fa0138"); Test_HMAC_SHA256 (Key => "a3a9c55995ea04d6ac3a93ee579f6e7c966ab5edaf1801472377f86ae00a1f97b8adf02e127c2dbcdff27334d04e127dc63b1c2d8bafbc95bf14c9fd15a69b30bf1c1e3c268a2473df86", Msg => "806e9111c731be67707d49b9e4248e82039608dfc6fa1645227eff6f30eb349b8c7cd6f6fbf0785550de26259049a6a55474fd536ff736a3d1135ef7ab43d3ccd413bf316c35df7ebfd289426b1eed7dc62f9b107a0f45717210c6a3fa5f646621dc52ab6229794a840179f7bfccea732070e7ff2f69cd16ce1c405b64686fd1", Mac => "9014a5bb17057eb39ab9fe59436e6c9f"); Test_HMAC_SHA256 (Key => "ccf7c4e2a8e7a27c7bc54422214c880e7c2582d0680b1395f02dbda8c2d3b539e0453a5e99e92657b8abc316fba1dfffc6ef23ec19e9a074c078ab6dc9bfebaf3bfeb01b05b686dc350e", Msg => "85a438185205f773b7b39db2a71ee86aee341f9b2285a2edd7a5c53913d2de4b02d79de7ea309c09606f3771bddf9e5fcc66289cc5b0ebb97f89899be18b4c389afa769b11ecd22e9fad8f38fd614ea5f8eb7a066c0ed8d86fd25f09cd2a49b8b5d36a3db17fc169db334d0e4fee21c2dc8bbbe1ffe892d11148ee8abff6fc55", Mac => "e4c09bb7f5ee13351baf8f4fe7386711"); Test_HMAC_SHA256 (Key => "8a81d2ad65585e1e1383783faa17f460c39560ab730f95657d8c8c71c5ae731608920002cbf8068e91a446435104879d2712e9104a7c76493e02fab64b2014482dee8e780d44ea88b021", Msg => "18915f3811cc77d3d9e41d543f3bbdc827f5781cddff193da94f4b7da46d0a39c93258b84fcf31573712c0e321e5d34763188d675c605a4b069f2880cb65d5bb9ab7e3c039107382dda6718cf8ee0c9f5262699d5b8298a5c019c7803cc1b53cb1a96a167796269ef32897156c5f4e1a1b5d7486816eb994fe458e459e899402", Mac => "a43a35e87ddb24ac3420c60c99090ba8"); Test_HMAC_SHA256 (Key => "8281addf9835f1308be680dfae2dde6c52a58b698c9ee3d3391643a240e56d9f17372e76893f3e0cb62a67125b52e9db53b51e6a5ea55ad022c115b56f234c34c7db24ec1e9cd153deb6", Msg => "48dd9054dc7703793557e492fc0fd0d45db0de0ec48683f1e402b3affef849c9600ba9212c65a4575aab9c52002fe81dd16879f5e4a0bea0b8edc6007462a5e77386182dff056c005da69b7c0b7db97b45628eafcda285eeecf4c5ccb4ae9d6f8938259fe0c1221d45322b36a3600a97c086656307f29e838afef73e4742fa09", Mac => "d02c59ac11fc434a37eded33245701bb"); Test_HMAC_SHA256 (Key => "183b4cda5c0282dab62aa4e48a19d3a5a00aab5524046e45f1085eb70f8f6af379340d9724ad742f3effdf05b3f2493bf6c34b16fe1a3e9d8f3ba063ba80b8a1a7077d8792a8b5d4142a", Msg => "3978b24f0bd0829e22c0596627d9d6d858f1c69b8c19486771cf30d01975aa5fb50220e7a0f85d169f96f24b674ed8a75f795867a84a28715b00d72c11606a95a9634890452c537b963c58095ae9a94e220c081659fbc77b82b72eb7c1661d369d03f2f00454adf58f1c5349089390f32a139f51a7146fae705afe16306d0969", Mac => "c6d5ed018b85568d03fce635a1332e1b"); Test_HMAC_SHA256 (Key => "fee603258582e3a3e8feb886599d4ac405a1634c320e85ea8ab0dc6bb65f72012f82a2e951d2cf4ab2615661b1dac0db520a3d82499f4e1c5430c190ce7ee24b82faf0e2bd87cef9a780", Msg => "67541f77f4e40d143035462505de14a02124b992ec1d0064bd15185d4d30a2696c510919f23b12eaf9f6b4ca497529d81475456ce4a80757d1136e6cf7b48d3f2769e22cdd0de49b72e4db839339f42df245953b3b53eee84a22d1919b8bc375026353b99ca3aaaf05c66457cb739e26235c5007db66dea0900ae9d621fb6b93", Mac => "f914c842b78c3b91fe6626272c04f6bfa39c586d4823ce0e"); Test_HMAC_SHA256 (Key => "832f87d596449aeca656e0e0b4ae92dcd16a66889020a9d2bbc48eee45ccc69b809150a990f993b82053aa425382ffdcfd5e1bb81457bc6f615c28fd7bfbc20df6c9db78d804ca084c77", Msg => "782ac16bcd744ec016ffb6b014e0c8983dfde231fa72c31212349a7766f46240e047723da60350a893ecc7f3e79039c53d6f363fbe5f4c83952f2177a28bc0c6731f312870004ce45547ce93e6ffad26de41a92a289d244b51bc33173e44f5051afc24b69331e97a4658f51677f4cdc506ba657c9ef3f1723023f8e0a0e8aa05", Mac => "c68f215b059881c9f97117b3c6d9d6deea2e0945e3e1972d"); Test_HMAC_SHA256 (Key => "92a0e01315efb0b347666581560b44bc582ab63e8f8ea651ecf72bc3d3c9673d1e02afd0646eebd17b1e40e73b16ed62854673ce84bcf9c83317ee11203ff0e16f53ed7e21e3880c9760", Msg => "7b2f5c2741338d25d8f9d4bb0fa718499ba960c65eeb399fe94b59c23f4e81f5db11a86df583559c02d24d4a7a236ee7dd86db20f82959b065ccf9795174f8d38164e3249749feb192b5e7b395ce77aee948e9fe44903eb24c4adf9e57fe85ac750e5673b0ec510b9289eb1fe811fa43c6d5d388cb89af4ea6af545ad953f129", Mac => "3d516a213a6b8c7e3434138238ca5e339fc21038fb7bfd21"); Test_HMAC_SHA256 (Key => "ce4c926c0922ba36269a20d60dcf08d43a1cea120f266af76f1c8acd883d1f68f09b8209f41f87822dceb39a544aa9b2569ce6a9ab30aefee421463484b8647b112fe48c6bbabcd55cc8", Msg => "8917aa6e1cd35af30eb5c7ac200e54835d4a0777a06a2fa756b44aac85a8252c0e3745ac2f3086a64bfb02dcee8934eb0c8b5e2389e22796fe57896fbb8dea8608338931b17e1c5cc1d7b8dc8dd1f000f45d4169e641ae1c23c6a7d645b12fa001753ea2aaa7643cf6b2b05305ccd0e99f2979f1be6e0a614c686c882dfe3ca2", Mac => "94c47b509bd0c9b7aa95289a00a8a54efd425481307e9ebc"); Test_HMAC_SHA256 (Key => "0649b582dbc59816a8042cac30cee6772a0ed8cbe8e07bd538ecab8a88f3f3dd4da70b35a5c09f1e3a4c523e6a46038ca66b4fbc184957fd8999c3e781ce07afb0eee49e8ca132c13c88", Msg => "1c685e17890ee079ee85cef5ed709356f4199e657aaac0bc85a1d5d5707ea666ebbe0ef1430d5c96e4b8f92d1c614b9121f6d83e56e4af1fca8704a101e51a0cf89d6613631af1aa390cfe177219ed4c10cf5f745cde9bcc728430b4ff48dc064aebada6719c665af56b24dc7900412ec78d792e14014b6a857fa235f20eb5fb", Mac => "9bd70f0386405c04d1bfcaa538b4099abea343c5c4379482"); Test_HMAC_SHA256 (Key => "3d7094e005eaf0b1231cf60536f768e62f79dae86374660bde91a2e2fa94cff531e2536530406ace2cdd187179936293596abd20125ec7944362351b77a40cf7fb131523ed1f8a3696bf", Msg => "9706d7370b66bfa78abb8b25a9d6143a9aadcaa4f60c9baab98717ac8fb3d2fe4e960af7c35b8a44b14ace8217f8680db2bba312c36165ec12225aad33d24efa085cdb1d876b4555bd6aa27013af3e9cd1f33d7be0068275d4c0d0522a3b2f08cd3f92d1dffeb681b7024d1726635c92ff3de206d661baee074bc2c4fb553dcf", Mac => "59526ab645c2c0f464a48e411d111abe9aea19edced55383"); Test_HMAC_SHA256 (Key => "74d72be7fc8f4fd566f863ef53bdb361137cb6d96b79efdd95941161897866997b16710ca552d3ea46fb6b9feb01c1a8ede2a5a53b6613b0598c5aeea9c47d63ea5eda0bfe430926f0e3", Msg => "ff8468cf11d6190cae4a1e16871ae0817214fd441a889bbdf564fdf5779e542686d2d77a2d2d151694898a5730d9715b37c8dac4579dfcb8a762cc2cde45cf63c33e2cb1e4f205858bd807a7ee9a40bda6be31146285259ddd13c1360dd1db2b9e1090fd9eef90627a7ebd8c2923f5aea73d2bbda508bd747fc1019a6e0a2187", Mac => "8ce0b5dde0328c9de6d4acf84ff61b3f7d01f9e9e8e36b91"); Test_HMAC_SHA256 (Key => "94869ff7b6164a24e89ab734f20322421bd31581548139c6b41f6d46243a15a05c02b41e0eaabe376012a759a0a440e6337c437dcfcb2c7aeb7d4bc0731918b6bfe9c68fc65c1bcf8fa8", Msg => "32e5a9f3c3f9576a21dbfed017b961f118cd23f3808f2c2b1d294e35ee2b28432a804bb584a19ceaae08fa561ce820d50a1bcc3fc05b213d15b6495b323c605e98fb8dd7652d72f8d2afc7a701b541d1f6bdb901e3c18a31a8b13be09a205e64833eb782eb06a13c96b8aeea4e8a8e8ce39a325f6f2830aede026aebae3febfe", Mac => "549afd1666a491b7ee9ccf6db2a33b2e3c2a21cfa69a1b17"); Test_HMAC_SHA256 (Key => "fbca586edfa57645037b6b3cd70fc341e4d4ec97af4b3dcbe18b36e9a6210aef531b5a824b6044e023439c16045779735184f43c8a5a2ca171a68ef06b4353092833491286eed76cb3fa", Msg => "4bf841ec0a4211b05f9a45a127bbbbf6434e8642910e8ab11b2a468e8feaf009f096c7388a94a55b2bd0d364906122b71e69372ed33c27607bc544232726364fdb9f4dc587b115b038832b0b908450647452bcdf04dbb47dd0c25f9e4804d6c575db7a9ce7e28a38ef7af59d0e6d6c85acd2bc5d0d315b9182e74009dccbf8f4", Mac => "0cbfe6e817d297b69d5bd7740bb0e5172d86cf870a9c4da4"); Test_HMAC_SHA256 (Key => "624248769dc2742a13e6b69b5e7212ca459b36bf86be5dd8d35273601a1c7a6309a12cc1d2e1e2822b42b46999cbe2ccef9273a311781bdefe1362fc0eec03d978eb92c7160f62e16d62", Msg => "633974ba735a5e57d1e804bcdd4d72d4a9e9df0fb9bf8db2076ef1714a64143f784e39658ad2c0d17f814ab1a3071e4111a5cce177e2106b197df8c319a549b0f56c20ea517ad574f7fe242b1ceb8fa0e560fe232967a92079e337af5dc42766e17d707150b864e54048da52ce5f8c982b01befb58b821792d8af65aa028760a", Mac => "ed1fb08b8473af53d2fe4c607e5ab9639cdd11f728462294"); Test_HMAC_SHA256 (Key => "25cdcc9cb014784dbbdbb13f56ffaa63fa234c916f02367dec0303e8810fcb13b29fec7965190abdfe5c54e2c89909ba97663ba1ab0dd46bd82ad69ae475e7d431dc0c959bd5b522a4f2", Msg => "ea526480a096a4d89306b3cf86eff742ab46e4e9ad991ee7f344dd9f24e896cae619d8c6ec5774312f40e0b77b03dd282e1858ce3d2f8efd776674eb0ebe56c253d0bef4c1bc97cf3d6392519cd6c93d660da36ed9ddf76c3124743d2747407eb8dedfb227ad57d945d79145f04e03a9da8e8c738c8b9f5baae7a43c78699b23", Mac => "4cb070e34b3a2ecb460670ffdd457f23c9a1174bccd35f25"); Test_HMAC_SHA256 (Key => "3ac105a2bd07056d3e1c3ba547359dba94e8f79a6c32ddd532bee4ff37641257d2f192a5b326ac697403f5317145c34bda2de49c068390d00adb9bb48b17efdfd02d3a981b2ae4f43a77", Msg => "f6eac4c4099c3232df018fb3c837527b8021a1a20cbb5d1be5aa5ee5581800852dbedeb38742dd540bc46da844b40bc546e60a4492e8943a3a93ec6a46e0f5b855fdf8e188a0a26a9b9c4cd655b2801c23a9b85800a068c197a43fdbac7eaaeeb8ce9bb6d35e885cd7b0b6a5c3d9b76a5d9232481c8de2984405e1a15399270d", Mac => "e5d5cd2e163ec1c883388f5f01980d3bbee914586ddd5b0e"); Test_HMAC_SHA256 (Key => "b8d9d674cb623d7a449411fef509558992b7f6e314c64f855c9ff2511946a681ebe9acdec9b94732a0f87bff3c5314716c73ea9261cf64bd58c43b5579e780b6fe9ae16c97dd28a40d67", Msg => "c9f902c8c02c5b24bb54e2dbf5c9573bd46bef39ccf15462817eee152b7561f03f8f57884c2b7f5d22e5d60d3a6925c7528aca03588ebc7089ccca2eda7a233e97c01b374a102c3adeba3b2704bb1d11d6d65af0bae731968a73dce5f283153e19b3d83c83866ba336fc9c931b674a02a87a2669bca3bbbcca9baca03a3b3dd9", Mac => "64ae3ccfaa118acc556ac50e53cd9fdf7d7e3f4b785b2e20"); Test_HMAC_SHA256 (Key => "c39ce5407c0c03ddfebe82dcca408c52f26b64027e38edd00dd57079c0f89a825374c46e8d0a7834db8130f038f860d94f7cb773e4d6a20670a6134e0bb680748f882e3dfb31af82156a", Msg => "c1490ae9579828b2d6d2935f417e0dbdfff5d424de5ec50557ddc7c3140867c4af9bc0c7bd6c9e780ba1e341272029642247a84795de5a0ee2495e6fbc029bc2ea47a5584710e40e0e44f322542c4645d62810f1f5a163fcff3e996eb05bf490f9b78145ff6c429d67258ba8d18bad88a200d2ca079028f737244265f8f9bb53", Mac => "0d2e37440adeb6836d7f47d9c516124ebbd64abd435d4c98"); Test_HMAC_SHA256 (Key => "318608b213046a3badd1655c51135c7e1492c6cebc0f2f36e0d77f8b4a987f08a07299fb4451e0be787b50e9c66556c69fcb930542ffddb1df828663fcd1e1b6198103fa8f8ec72dbef1", Msg => "45fcbdb93acd8300ddb88012ceb55950f4da61145adb0d4c3dcda868632f4777ae2a008cf01857670144f9510ff0ad48369d875c50865e590f6e81a6499ba66d922323fc1066616c8bdc8d80c41190cf08ed42260439da28db5faa37767109981c6d90d142c08956a408a465941eec2f9254fa381efb6800ca2989e393b9573e", Mac => "95b0a9f0ed9fc80581407664300488f5223720148618b1b9"); Test_HMAC_SHA256 (Key => "81574323c973540719d192833ddb51f13a52dcbae294aebea51be5f6aa47f3571f5d97facdcf0c7befbe809f44bdc73963d8514e4fd559774bb96087ef8eda6e7c64275d6d96c42b4e4e", Msg => "b9e944e0b42d0ff454f7f8aa24f00e9ee039058ce4094111e39731b6dc3ade2a4acec4cf9c5be078e4f10a72d3d685c1e5e4d5abd92cd07b64dff87f266f0853ddf1cd61d9c637a9b07ab0be32ecac119faf827218b17ad4541a27519477f76ed918089f54b63d0e1e5a92982979ac187764b5e989e066a61b1065340e9cd203", Mac => "514bd18495f6de0e237054b8e3ba1a74c3fada4279ad6b8550f3a14712c528df"); Test_HMAC_SHA256 (Key => "44f71c2317cde52151c84260d1d3c04a28cc15ce5b3802b2e5357e2bfcaf10ab15d77dfaaad1a3883bada502939948234c559dcd95e7e158338fa12ac6fd21874ec2ffabed051416ef77", Msg => "2ac0bb0524c22b902de34ce64e6172d1b2074e159f517ab1abd152622cd10669f03aed8e2eb51c65bd0f38d084e288c532724e512fd558ddd257d2b1d41c5eb6040767803ddbb18b95a035c5d8492d4d35936b7b3630ee20f625b70f8e71d9dcd0efd0e3387d138c1f5eedce32dd88f223334b9a9eab65017f04aa8442179f62", Mac => "ca0053d51f6cf6f9998ff1e0db00b90e82c7b18cb5377acc8ebe9afe20da1c3d"); Test_HMAC_SHA256 (Key => "7edeeb6b63c3b9c836c4843ba46bfebd8ca9a6e205c7ed68a29f9710f50c65ac519ff17ad494d9b0a5041f587b5cd05e5f0de4e8b28566e5715fd5e9b8d6c9388580d921bf39bd8d775c", Msg => "f5aff283b3aaa4c71b13c590771d8bd3358d76988ecd1eae653c2f9d72c9b2dc9fc08e44b2e34ec52dbd245872332e342b5cf945e99344da0bca069ee221b2c913b7b9973cbf50fadad7758b6a962cc7ce640f78f38f0571b19b527ef2d9d09b173b7b64976633cde909be13a56d0df3e64ec019f2eaecdb1d571b27ea1994ba", Mac => "5131ce486de164491b4bbc84e7e461a874a2cfdd769355584a063e306960acac"); Test_HMAC_SHA256 (Key => "6e1b663e808a6986f29956b7b9708066696f9dfe0d7bcdb55696d8bef9b3b7c052c857884d2499fb86039d4eaf604079330ae3e818fa6f742ae49593560c5bcb545bd46d89b22e7f2b7e", Msg => "c0bb12a5da628363a71f1f5c9ce715ce8995e607148d772b669f6532242f9830a1931bd952bd2a44821a8def46b92504b4b0c5da50bc43bfc727cef5e0ef81faaf24390c0c92a4ed43a09be40d78b204bf680db0c288755f439eaa9d2b3efb5352361547ef2919e65479f142d86ae35714856692523b359442cba333ef662ec1", Mac => "665344e5618e0c1fb8758d049409a484fa69b89b009746067ea036bfa0ee8a37"); Test_HMAC_SHA256 (Key => "208f91ccc87965d365cc325d3262b64277f6112b0b9371a4174cee721c2eb32638735ff2a5f8abbc82f24c71d6dc1b9cd2b473375666dac0b789e490c0495569f6a4864e20da0a97071e", Msg => "854b32866273c6eb110e380b8f3bfd169cc87a6f6149c75e5667b305637b0895465c10c134745773c31ab3be071c8215fb9a33ba231b087870da199564619d03765965d6b8a1a9fbb79d0726a3d1c90cb0ae67d3bbab4cc63198dd4e2d2fb81de0ed39ad362043e9b6403d2aab825a6481ab1ea271221eaf614a0716050ee14d", Mac => "42680195f431e71b592899686af630e15996dc718cc29030163d677688a33021"); Test_HMAC_SHA256 (Key => "915794a6c6540f1ce9958c2784cefcc13772198cabd4fa17c88de45c281d648dcbd59a100cf4d8c8d3106c960db7b91f59578dd0045bae203897b61570e6210a2f11a5aff2f3c25163db", Msg => "99494422460ec858a24394f603b1d9b940a24ad9c6a3d1e9e88781fe77afcd139389f7acc057cbba3d328cbf914e2f32667fc7259afc412594645162d4feac10ce45780cf9a400c3237ead50077132e421dc066bc19e176c5f21bd312e98ec29f384af8a187dd13afc2fddf08ea34a971ac0eff36311bd86f1c8acb5ac03f627", Mac => "2ca1bb808448eb29085286594de21e254fb3416f9ab01e99ea33ca83c1d14dc3"); Test_HMAC_SHA256 (Key => "b1a95aa80bac5acb7a18332fc03067600610f376d99e77a272be96063ac5a0ca8d316e6cbe978e575cdca1b8b4a8008d9718a6fe5eb34af12aa0cbd97116d1ceb613b2e3975192b40d76", Msg => "d8efcb416f237c7e05bed9212c543011c39e6a5f25d7e2cba065788a29bce1464d8041676be9fb91216cc76d049806ad943e534a6fd45b10c41bee5d0b005626f3c0e73a9c50d7cb07fc502acb4ec4d2093181a8a1568581a6d793e5101b8613b1f9e6446b20b9349fb69bdfe83f11880ac11b00252508252fe18ea9a0d41a15", Mac => "988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c"); Test_HMAC_SHA256 (Key => "9e4ba7d72b76edee6a6f290ed318bedb0ad88c8411f9c449bd4ffb3a661b7e41e32ee662b552ec4283e57ee6c7c712bec6773ae2c578789b7afa5425c1b6adb3901a4db42da6c0559e96", Msg => "1a0223261ab437a4ac1701b4780776c43f0f8949b3e7a1618c3b4ab6d8ae2aa6921f38a2772b28d415f32905251fd3bd1a235bacfac00a486dceedb8143acdf11b4b611f1229c346f89f21299920b56b1b08f7f4d32511965d7693f0eb326893dd0c096492b6f0427ea450e87d1203146748c3e9e51d9e9183baa42806a0e3d5", Mac => "ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1"); Test_HMAC_SHA256 (Key => "8fa12bc017bfeb6c894020e420c5f76f9080e8733b998ef3a7d0b6563063b66afa3200a82a21f6ba56be003a3924dcbdac1f3610d29079c19213e4e14ae0e009c1ef919b5e60ab4a9819", Msg => "faa6ce40d931f3c0cb4538a82a22f0d4f3221f027b99d3d85dffb729b751e57496b4fcadae5c72404fac2c54949e4c4cde664b948052479abcf59e1aef84bb9f088030473e9505c603c350ad33bb06ed928c1196757ea3e5bf3ec97e0f3c43f638529394f2a65459cfd1cd3d7041c6bcf8db9a91c1e58ec24e2461dc81412580", Mac => "9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335"); Test_HMAC_SHA256 (Key => "c18bc28d496beedb25ca42d1b217bc81891d4c2bbb35380e5bb9bf7e3dbbfd37fef70ef14407763447d6c06e915766430277f124165061236b9fcf057d785199b4381e49a2bcf3ef85d0", Msg => "28b18b862ce9541ed6daf81199f9a331133b0ea3e48ff486c1acc6d5c40e9f8f063b7a15704ba3d3cea76b222511206d47e53c93a49edd8d639b7551b224c3f65aa802189648607e259ab1fa9ea665910435b7dc9a4c28aef8f32cf85f3a23e94a7e8a5945e9736702383261aac15ae571b4e8466da1bd31a83a5291745ba7af", Mac => "0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f"); Test_HMAC_SHA256 (Key => "dfd4faa6b9ebfff6eb33d4b536f3f18785fc33e82ddf3908735d0fd94f1f09666fa8f2667f876611a8d17d3256ceaa7e3ff3e224a11000a5cacb68e6de4dea84d53bea67c3e8be9a5cc9", Msg => "80f20152d12b0a5993a2b17d1f55cfc0c078961ed00cd1c21db36d7a92c339691399eafca830621fdef232b06acd5d33108a5fc8c35a6d5b0eb2ff1bb2598c2d91c094a1ca91e4a5268a16f8b38c57a2aeef6de3a619f869df4ff7c5f5ca8f20c10e082a807719543215653f41ba45746350c855c170f85459315f62a13ecaaa", Mac => "109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42"); Test_HMAC_SHA256 (Key => "c96c04a3bb0816fc47e05913a715fbac9a3ad09db75b48e8013d9f27bbe8532d7e63dbea88bf968f575602f377552e35987872a4e3155ddb8e5cef30aedd08504d4b2123bd7f3af62bbf", Msg => "b11389c7dc20ffd0c4a5f887f2576bdc302c7d2af7089a012799c528fa7f2ce23bb10071b31c83d9e58d63e6fbd04670ff1aa6de4ea4dfe94a9986a35032fdb7ea1f44f2452a1202e517257e97ced627a7bcf06e5476c236819f73daad0d96722527fe527891d4d42c0ce658af97428890da04e1efc56c6f337534d7fb57209b", Mac => "b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611"); Test_HMAC_SHA256 (Key => "9319838432ca096960e2196a06398134ea06e4e8799ba470c54f0512cabb9045f529b6c4e749b6e27626c11df4595bf5b47c04ffcbe218351485f49077405ad96a3f17bcb7b3e21e80ca", Msg => "57e1d3ff5fc4785f9370df2e5abf454579752ea934d2a9bab568d5aeb22ba43e4bc7df9f31366bb40d91ca822026e4e426cc088081732ef993ff7f676c571704a5b809278b50a3778108f4589fa18caa9f0283b3fad0bd594e406b950329d5242e5e5880b53aaa0eb57c66992055c4ffabc0a72ae712de42add2a321c0ca6808", Mac => "4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370"); Test_HMAC_SHA256 (Key => "2914da23e86a603cda1eede153be2431c2947cdaeed6a1ea801d18e2c218220ca682e40f0a51c4c13a31163cb730f83437bb7a88ecc903160956f0d483137d1d145ce948866ad57f2eca", Msg => "6b8db9acdfd24150808a92368596557181d445e5a04e91112db2812b58035d72378d8bc00a1ef75ec373b81dc6f1f0a2ed96f302cf2eac8f42ca3df11e6ee678440a28b0dfab2a36eaf35bcbf3c759a71e47120f6c03292a3d6b9b111488a2259bead9a5e7e2a180fcf1c467947f59271cd0e8360035ce8b287fe2b3c3b95822", Mac => "4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890"); Test_HMAC_SHA256 (Key => "4b7ab133efe99e02fc89a28409ee187d579e774f4cba6fc223e13504e3511bef8d4f638b9aca55d4a43b8fbd64cf9d74dcc8c9e8d52034898c70264ea911a3fd70813fa73b083371289b", Msg => "138efc832c64513d11b9873c6fd4d8a65dbf367092a826ddd587d141b401580b798c69025ad510cff05fcfbceb6cf0bb03201aaa32e423d5200925bddfadd418d8e30e18050eb4f0618eb9959d9f78c1157d4b3e02cd5961f138afd57459939917d9144c95d8e6a94c8f6d4eef3418c17b1ef0b46c2a7188305d9811dccb3d99", Mac => "4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b"); end Test_HMAC_SHA256_NIST; --------------------------------------------------------------------------- -- RFC 4868 PRF Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA384_Prf (T : in out Test_Cases.Test_Case'Class) is begin -- PRF-1 Test_HMAC_SHA384 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "afd03944d84895626b0825f4ab46907f 15f9dadbe4101ec682aa034c7cebc59c faea9ea9076ede7f4af152e8b2fa9cb6", Textmsg => True); -- PRF-2 Test_HMAC_SHA384 ("Jefe", "what do ya want for nothing?", "af45d2e376484031617f78d2b58a6b1b 9c7ef464f5a01b47e42ec3736322445e 8e2240ca5e69e2c78b3239ecfab21649", Textkey => True, Textmsg => True); -- PRF-3 Test_HMAC_SHA384 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa", "dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd" & "dddddddddddddddddddddddddddddddd dddd", "88062608d3e6ad8a0aa2ace014c8a86f 0aa635d947ac9febe83ef4e55966144b 2a5ab39dc13814b94e3ab6e101a34f27"); -- PRF-4 Test_HMAC_SHA384 ("0102030405060708090a0b0c0d0e0f10 111213141516171819", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd" & "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcd", "3e8a69b7783c25851933ab6290af6ca7 7a9981480850009cc5577c6e1f573b4e 6801dd23c4a7d679ccf8a386c674cffb"); -- PRF-5 Test_HMAC_SHA384 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaa", "54657374205573696e67204c61726765 72205468616e20426c6f636b2d53697a" & "65204b6579202d2048617368204b6579 204669727374", "4ece084485813e9088d2c63a041bc5b4 4f9ef1012a2b588f3cd11f05033ac4c6 0c2ef6ab4030fe8296248df163f44952"); -- PRF-6 Test_HMAC_SHA384 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa", "54686973206973206120746573742075 73696e672061206c6172676572207468 616e20626c6f636b2d73697a65206b65" & "7920616e642061206c61726765722074 68616e20626c6f636b2d73697a652064 6174612e20546865206b6579206e6565" & "647320746f2062652068617368656420 6265666f7265206265696e6720757365 642062792074686520484d414320616c" & "676f726974686d2e", "6617178e941f020d351e2f254e8fd32c 602420feb0b8fb9adccebb82461e99c5 a678cc31e799176d3860e6110c46523e"); end Test_HMAC_SHA384_Prf; --------------------------------------------------------------------------- -- RFC 4868 AUTH Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA384_Auth (T : in out Test_Cases.Test_Case'Class) is begin -- AUTH384-1 Test_HMAC_SHA384 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "b6a8d5636f5c6a7224f9977dcf7ee6c7 fb6d0c48cbdee9737a959796489bddbc 4c5df61d5b3297b4fb68dab9f1b582c2", Textmsg => True); -- AUTH384-2 Test_HMAC_SHA384 ("JefeJefeJefeJefeJefeJefeJefeJefeJefeJefeJefeJefe", "what do ya want for nothing?", "2c7353974f1842fd66d53c452ca42122 b28c0b594cfb184da86a368e9b8e16f5 349524ca4e82400cbde0686d403371c9", Textkey => True, Textmsg => True); -- AUTH384-3 Test_HMAC_SHA384 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd dddd", "809f439be00274321d4a538652164b53 554a508184a0c3160353e3428597003d 35914a18770f9443987054944b7c4b4a"); -- AUTH384-4 Test_HMAC_SHA384 ("0102030405060708090a0b0c0d0e0f10 1112131415161718191a1b1c1d1e1f20 0a0b0c0d0e0f10111213141516171819", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcd", "5b540085c6e6358096532b2493609ed1 cb298f774f87bb5c2ebf182c83cc7428 707fb92eab2536a5812258228bc96687"); end Test_HMAC_SHA384_Auth; --------------------------------------------------------------------------- -- NIST test vectors are from -- CAVP Testing: Keyed-Hash Message Authentication Code (HMAC) -- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/mac/hmactestvectors.zip --------------------------------------------------------------------------- procedure Test_HMAC_SHA384_NIST (T : in out Test_Cases.Test_Case'Class) is begin Test_HMAC_SHA384 (Key => "f16ad73790ca39c7f9856c4483202e7f8e0c8283c7d50d6da79cc07d3dc7b76c2ef76100fa3ae2df8083b5a1c5579628f1c8", Msg => "9870007654ebc3d28f883bb832e0b31700f923d9c9b10168e0605971cfb920e848f1c64c5f240a2cf7f412ea7a73bbbfce432eff84fbb49e52cdcbf4c36679bd2d16e064e4311381adb528a0752c8e4443d4a12b6cfe7cd406b40e3f9e9e71f42e27764649db85d99913a4628bd5d5ae49f6a5e6e9810211e35d4ddac929b093", Mac => "79e24a203bf42074e72c8b4a0222aface3e8ce7b4004cec2"); Test_HMAC_SHA384 (Key => "a5709ba5529cb9a1a227f0be448e119a356f92e13efc3463beaae46aa929df4ad1991a3964fbe161b6e5be34417a9c00eb9a", Msg => "4f569d60405663ffd4893777cbc37155d403e2b0f5485da42ca67503579889465198feca5eedcc39c9c53c45cb83f09daf5a2319341b3238334b5bcd8179c5f517cec14c70e6506133dee56712af6c2df2ba8a504ca427afd3632a1f57998360e9216f5040e8f75f5bffba4368eeedede54aa0bb058a43ef551668609fa1cb6f", Mac => "247eb51a397ba369ecba43b95a46a933cff0b1005714f0e5"); Test_HMAC_SHA384 (Key => "187c047e4ed5490305225355fbb381682932245b01dae04df5e456723842ff66c8905bc1ac484ceb7a35bc321d2a8619d5f3", Msg => "16263dd95036128119d781865e4f818a867b5066551e711f1179f616e41cfb7e82fb73130bc427093370fb43a01973c6940b776dcb1d53dea74202bc8a5bac1f834f6d412e5e587ad5b2bc6edb37a5855bada69b0cfcd6f968c719840d43a135634ab4c97fabafba47c54b6dd7541fad248a6658df6203589d31c2d5347de1a9", Mac => "74118d1b4c60c9dd7029829e27987f40aa9fa54b7f9c0c00"); Test_HMAC_SHA384 (Key => "07c64541d0cc4c2385dfc4e7f49da4396d2c4a8ddecec0583db63d7f261bef0fc68af730f780b654ac3847b490c24cfdea55", Msg => "f7457e98685564e3d36b5a9a2359394398ebeb2e0f1dd14d848b6245d52915c5c83481175069c3f50c74219d11abed28e9fcab17db24762f6d229f8728ec98df9b601033a37d6090e9d32627ab382fa0c0bd9bb0d6e13beeff043ee26c1e0d5f77b07313e7fb015d7071b15e7a69c9532416022287baea323f17878028263df0", Mac => "22e16ea2a8a7377389f23f92e1b689555015f2a5f2e3c87d"); Test_HMAC_SHA384 (Key => "365b145e507e9752408829c69c8732da163514b3517aa61df331e474fc2fe5c456810d2facf6838f80dee55d78103bd2f932", Msg => "637d2092a1f5620fa2ca9f65b1a722c9fe92307a9ed62f52d4410e9a8f90e0233328ca929c0720fc61f9cbb3550fee5f544dc9503ca3dd12391f5042466094a1f04e44675d084eda8e1e571ee1015b4fdab794cd22d39ed7d0a5d85ce8ae0d0d215654b7ece234d0b1a00c505c64b2c218385b9a5a50bbc9223c6d8f7e619490", Mac => "a016274a2e3202547be4f9a3830b2b8eec39dcdfd1a8ca7c"); Test_HMAC_SHA384 (Key => "fd0bcb3f7ce9612ed98f7ef27f0908a8a40801197c415b3eac100e040161694c62d0a536030fc09fdc8889e85a44f7f9540c", Msg => "2efa4e54ad137e94bead8e127ffa33bbf778461a572422297feb4e67c4615c2af1b510378be5c5905a2e0d8d24c7982ebcce57b03c83e05e8eb415aa3178007c392002ca986b2d699df9ee23ba02ef098a483b0a124aa4c548bb629cd132fc0a0f236c365b0e7ec88ff679fbc81501f36ace3c5264e33406b5e87c642ff8177b", Mac => "b5d46ee32b82629b49bc47f258cfd578adb86c49966bc91d"); Test_HMAC_SHA384 (Key => "a8de6c601fbd3de3f36fe7e71a99c8648108cba90ca38df0d89ebe34c3f1c9472e09b71f01bd5070f0838481fde40a383e2d", Msg => "e710f78f8a4159c802b3b5df8612177aafe301e62c68bd14b8c3f2e2495d769c8a8963c38c656d0db80172ac09c453d3780b0377b712dd5321183b2ef2be4460b3b10593f988c4c74ff0909971061dc4bb04cfe8e020158adfb1f85c3394f4bf4ace0687397206feaec6372b26a11d5460178ec111580cc3d9d652f576a62dc2", Mac => "b087712d244c70b4686f3bf30db4460adf065df56d874a5b"); Test_HMAC_SHA384 (Key => "01e5be580aa049c2eae411e93600fbb0921b6296d1c85ce85edb3e36da7a6203067727c0e4dd3afc19c814d5967ac4b277ac", Msg => "dcd732ac494218c4e5025da961535c1519716fd24601bd3575ac53e9380d77ed1bcd38e0d90c4a7dd0031162b3e8fc157f121448b05ed55cb4d13c25a07f21ed22abc7bbb62fb2d51d1fb8830ca95b16213f56291af976274934ab0d43805f71d9b906c44973f7d4b59b7a94d35c2220e7405dfcee98499c1c1dc92a89d7d983", Mac => "b0521d21418f6eceaef21f17918a8d95050e2ff17874f7bd"); Test_HMAC_SHA384 (Key => "0e9d0054cf2c1ce99b66cfeb80352db2c7ca6f201b353cd5ed3228a116467b3fbe0b33407dc84c45c1453e7170dec81eced5", Msg => "96ab1d64acad8cf69651c13e4eb42d7382e38019f3a927771ba6134c12a1bdbeb2206793fa35a4a3b09a1a8d4a0087aa0fa5023f7a2584f7df92a69050c6acd4c2f8c3cb6c8e872f7032c820bd288e1934df5a230ac6af486d60d14b6a9bcd960e5eb974cb613d801e41535e6fd44aa839ba112b6a34b2540d391de526c727ec", Mac => "1f5f98a2e9901f755dce5ab0e9e485e3a53c87d7621e7fad"); Test_HMAC_SHA384 (Key => "f755ecfe7773f5fe6a044b27ac3ed6108ffe98092ec69845fe011f3fa68f2756117d11bac114968c66160041af449a486023", Msg => "fea931efe3ebd8f719a6d9a15487b9ad67eafedf15559ca42445b0f9b42e7089cfbd62154160cd19aa086eadd12e6ba93b148d0cfd4da99fce7f5fd5606807f6f11fe97c1d9cacbef67b12cb56fde2997450255fb610943fc60d5228e84fd7fb8b572cec1da85e2c24862dc58bfe04c539262e9ee9a646cd3577efbaf3ebc6df", Mac => "6f08776f8d86fadaf681c32a4f7b7cf639a7cdb5f8dd836c"); Test_HMAC_SHA384 (Key => "79c92036d1d9e350978b077b993ffab6e59f4ba997281a44efe6cea4a77e06368372d11e29a121da330d7d2283e1f713d6b3", Msg => "a62bf0d3ffaff7484b0f493517357cee3635a444097fbd57fe5849ab578b397e2d5b1159b4bd48e6c0c4ed01885d9111aa3c60997016910a521101dcbc791adc11b4fac8ef78d119b53b8b2042ebb05400e088eb220f82a72980d6f3ad026a2e5a1df34739485c8a305c6bb9cd49a25f3f076361a5d058d68c8d1218b28ef01b", Mac => "6d8915109cd5240f4c1e44c5b303aa1b9616f3a256742143"); Test_HMAC_SHA384 (Key => "314c2ab1ad359b1f606372aeafbecd98415c39c6a89874874364788862e0b401ac2b9d2cbe7865fb15650a0a2e8993d3eb4c", Msg => "557e8462a2446b408f2ceb5e9ff9c546c91bc072298cfc57f6f883a2b42021c1ab8076a5972f49c6a1081f688e070c1d37f5ca8c39480870ed4504e49b675cddea0422f89b2e2e7677d8b884863926c0827622fa8b7bf0371c29fefc3eb7bdc9fc52b0e31607c356fae3dd3bef59b83794e3f14489ec5bb46cee997307d8ec8c", Mac => "e30f9c9e38b08f587b79c8a64ba5e928eb6743329055ca79"); Test_HMAC_SHA384 (Key => "865aa6d8aedb7a9de1fc289b0d42361204891e652deba11e79e35f3199b2a5856f0286b0c2ca2d03357171c67a36aac4c3cf", Msg => "c59f8dc2db55c453c403bf91bc44bf882f27a76329d40a320e7389ea8b495cadcc242e4cf0fa2e0bbacd63a489d13f8e8ad1787e2ccf132fd4ebc25fd3866f1a95a6193a1a9cdf2faae55afcc54f30825a5ce60139ebf6dcc915229cfe56073886edf5944385fe47fe144da15a04baed06919bf33772dcc156bb52abf5024c91", Mac => "1e4f3de118bc66b4f15e878655d902d51d3ddec17b5b6886"); Test_HMAC_SHA384 (Key => "c64a74849e9c2f805d89325b5f0472c6e36ba91d2514a199c72aafc775b77d39c9010d7b6c1afb487fb303fe3931c250d103", Msg => "a87050f3761f3d88e5823f3dd3d1439fa7aafddde157222df650d86c5a006b04decc41133c5210caf0ee4e134a83e976c278393d8b0033d66b9fdf7ac9ea0c0c088e42441393f80c39e2072a3c055f20a42ff850597c0c64717984ed47e7b04acdbc3acc236b5d18686552ccd0e00b65f6d724607452179fb2e7af0ffb81bf88", Mac => "c26a8cbc47f328376fb6a315206ffa5b0afc8ef2e7c007e3"); Test_HMAC_SHA384 (Key => "4ebc24048c2d89ecd39db53ab1e85ce317d28cd118b08e35ee650d1f3e90794c9d04ae3e5279d1925d817b8fb9bd1afbdf50", Msg => "acaae447da1dd1ebf0167788ab6c1fd2428a58b14ac4f539d7eb55dce51ee7def6e4ec0afc787fa47864d39ee451bd0e4f1e72e0472f91c8fb08647ba11a631f16dcf900c41e8b84c99bb76156cdd90d5405d4774eba0ff48b21bd7c7aff621654bc9291fcb8fc752ae2a839c8867db69c6606dc280d76a4ce60e9453876ecab", Mac => "05a0fc70e839f7697d8e9a2ca10939bf56c38ed77bd9b606"); Test_HMAC_SHA384 (Key => "c2f2f7985728b677a7ad062dd9605a2c24e7cdfa86986f35b99adcd4634714af8dd5864256366eade83c6100ac0126b6ba86", Msg => "35af2ea167e56c8421cdab1b9fc99be4b85f74c706d43a4947fc3f020350e9517041b54e92cc7c00a64ff6d1c19b7c3eb54a12d33453a45738db9044a14e657a20afea33552c633a34f60f58ad4ff50f8ce5e18b9e5ea9d61534b44b2dc3bd4d10a0d539f72da798936a009aab0e8fc006d7e9d88b1ecf2ea7aeb401efd67a34", Mac => "6e49e4aa01da45cc5ffb71569f257ecf114fe858ba9590afc23afac9c0d67f52"); Test_HMAC_SHA384 (Key => "8f239b06fc6678be26307dc702f854f6a3d0d980f6457304af87a5cc83cae05098eb9cfb3a57a732cf29bc930d92577a6a7e", Msg => "35b127b52a9b4aece978ad17aaa700b547b17eab59da27819ef650ce9f7e5ef18fe3cf0275227a098e99176dec1901af643c3b57a7f9b12faf75c1b05d1cfaba60f12488582280e23be05194f86d9a205b772ab031a4d64eac6e06570931732d6f822e2d1bc3e5e1baf4627616cc5470f509529c3e041d465e8825adeae44fb4", Mac => "4a13783650cb96aa0dcb4bca10ec30ee2a9d3768f2b6f1dc626f99545efdefe6"); Test_HMAC_SHA384 (Key => "299b37b8a63c49e53a6d2d174a9203028626b1ffb564ce5eb547bffebdb51f1ce6f76569ea6dc05f2b8046d4f7d74ed00ace", Msg => "8c886d5c25bb1ac4e1e8ac0c59da0d7f746418a47652b7cb39a048e6b9ea469ad7242596568b7d242adb6bfdf2c33562c3962c682743d79465874da70361e3bb8ac7078f89976c20dcd068792e029acbbd03cfc05de4260dc0237347f422e2f72dd8ddf0c5c72fe0812e6926167f84e3ec13c954211dee5fd1dd826b95168b75", Mac => "a38e187371f1d2517aa4639975e1d2115c288d22968459019f8c7f8623254268"); Test_HMAC_SHA384 (Key => "136933635a4f9252a65ecdb0a266fe7a68e935d597db26f5a6a61e3d78713ca830a2dd6746a158ccdbdfec664918f66effd5", Msg => "1cd86dbe49225fc2f82758f53dfa3696ef66a7645dd284a93d686177e5776232be15504ef508eb5a73e7823e107cc2c1036dcc4e9d1b8af738cb42ba6a046b037e37c07324a694e0677e659de046b3fb297d120f957f7fb61ea9f0d79fbd2fe84488e7b43ec2ff5bbb35289a1522b24c49e0a431acc60befd94b9256ee6c53e8", Mac => "3e92717865123dcbc7be18c72522aad889c29dd2afa16d30f0ad68cd9640bc84"); Test_HMAC_SHA384 (Key => "ade0cf1adfd3a4d83465721f9002c9cfa1ad70220794aae3b9e8b9dba4eba18d954b2e2358ae38a7228e26762c47b1f2a16e", Msg => "97362855760a948f87da5dcf39a888d0f194c75000ff045bd2ef3ecb67b5941007ce9f2d32080503d7e54bd2c644ebfd663ea70dab4f1cf943b69aa5101e33a8db7d1252473d0fee039a8044444b51627364579c227be1d2450990f19f1469bc7a0b29cd9bf2d8d675bea12d9d03e1887ecc7e054eca7a6d41b2c8b9fce05ed5", Mac => "2eb416c1063b6da59838f3a6077eecbde42e4cf3d0f36723122e2d8794128703"); Test_HMAC_SHA384 (Key => "5ff06d199ea158a07130d2ff2ead78eefcb74313354a0b790fd9493f7c9d218d4e2ca0cc9f4d4217700bb7ec9008e628c014", Msg => "51555f744e6369f81b30a4a0514486df254f1279e0c7f1438fd3c32afb68b777dbb1595249b5ac847334798193d1e6a521774abe46f540cb95ebfb03f6ead919e2d73abfd690926901d2bd53405b93c54d4bbd9634d0c7ef06027551d00c5bd9ce8da8c3dd3e432e2fd4191e4228b5c7139511098fa1ab374ae0dc1c73166540", Mac => "3e8de7498a8cbd9df8dc3f5dd825b0ee0899e226cd4c7cce1d3399ab9c558fa7"); Test_HMAC_SHA384 (Key => "7a136c9d47c743887b92ebb6c5792769b0e8868dcb479ceb07cf93a0609ce3cdbf035d911f256e34efc4a2a5b85667270058", Msg => "402aaa22c009335112abbda48e20e9c4828a1c131976839d816d544c4cc5575b17bda60c6acab19ee02b847988c34dad8a28189a0ef8def0596cbedb392f8a77a470858a9c366b7255f3b25c9a5d10b76d793de9eef8fa407ec7522b23e220aa2e69d1031cf56bb7bb2cceb48e933bcc71a412668021e07336a798a4d28621da", Mac => "c0a992be294eb3414e4603e213de66b4ba8af1f10c602cc126b1a5a63ca008e3"); Test_HMAC_SHA384 (Key => "a03fe1eda0f4dceb1f517f17963538fcf913c03ded53f01e36f5d6466e7808c4fdfa384f45a009d21d382128811d7f23875b", Msg => "a2350856c94b669d115dad9213f54fb0effe9adc86298cebe990e865109a8988d01ef79007cb38361ac7e977a1968d96603e24647aa800bfe14ad45911030ebbfe4666894a7bb707bca20edcee3a01164561436f263c75ce67993e1104d39d0a14f67ec7fb248c17e038474962a8563786b01e84f4ad932164c74e1653d2e17f", Mac => "0d0767dad7dbafd8174d1a007e1942af5a5c4e1fe7f85c092b446ba078ccc7a0"); Test_HMAC_SHA384 (Key => "02c1ef58b09ceafe3bc94298c175bee5d875307c8b369d60a0f79ed41d3506710a67c57577ec0d5ec142b3b81278d73327e6", Msg => "b25347513090a731d128b0deb2109986d4948a7dd03ef53dc6f92aac9776269d54cfac98f66a98de4f216fa8409f3ab02d0d95f2aeef03b4874884c4db056a019c98681c46e4eca0cd59ae30d36089101ff98be84ba248c4bc7c735ed8a9afa072f8a26589c44b80331996ffd4192eb1939e93e50f216c754ddb1e03f6299d83", Mac => "a4063a744763458ca4d03ae156394a0443967b2c4df3bf111be045e06be7322d"); Test_HMAC_SHA384 (Key => "177470b4f10e6e95f548296d9b0fe73192a3ffb0faf6a71cd45507c6b7499229c4c0952adc68109e105cc60d580290b58833", Msg => "e9168c659c63b6f40523c90532bae743f24feb2e94814b6df2554365af73300abc933af5213235b8fa89c96ebfbfd196c95e02211204cdc93d5b86a5d64ac5fada6d0d557ac3abd61ca7e1cfa302448ef0be6376a87ea955388c85f11712c7e44b8e4eaa2f80e0f97365595064e908d36e595656df57a8b8edd18772fb34ff6f", Mac => "2b9910ed9f3f57180605b15f33e95d4ef40b09ee7ef7e71340cc4449c35ed86a"); Test_HMAC_SHA384 (Key => "be7a9fd43c1e987ad10b0ca6f3ecd067c961d286489759b89c1b8d17c9f039d392dfd0259a0eae85c9d4a11df1cca87db128", Msg => "7222bc21c60c8b4cc2e4e3e746964a70a7b95440b079c519e6d4f6fe100a7a47f74e00f46bc27b4286a2817c35bff114f330d9f2d844970cd3bb3e3734353b3c6dea382f199c40fc3dca2443ce271e66744ab5e08ea7e0d876be6ef50692a5755b5d2a79d88221a36ec394e31bb4198eb16fafb1d98aeaa4574650e290090217", Mac => "15f3f5e9d459d1cfdec6f183d162ad32bc93864ac7a5ad9c40d8efb11e327619"); Test_HMAC_SHA384 (Key => "d7d2dbbe4f6574402121e53a88295b7a2e4cf2f342ce70aacb6b33d33c996836480e7ed8f782dad8fab6cd973cb5c31bb959", Msg => "a927bfb3d1f4c0b20fcbca263af59047bdfffca8ecbd215e988d7264e0e0313e4bf72add14eba0c3c5f0886707daf5dbb9e1d4ac3fa1d90a1d65b928c4a49ae6abccc7aea23fa99b649bf3e16b3f1c69080b12bbb2662d219f86610991ecb9acf32d00ed24f8c1841355735b0c2bed38d105209ded1504ed457ad3cff0be76d7", Mac => "43f9dac7fb0f505ae19400b4c74ec21e352bf907a14f9927a0e78cd5ada3b5ed"); Test_HMAC_SHA384 (Key => "a60727ae52ecf7fe66e99a8aa3c58879ebf141da5e1792dbc2f5143c286cf703ccd4fd703e93c933bfee5addee1fd395a4a7", Msg => "8cd3b3e412bada22812f7b81dcf7d6937bdc21085ead7bd1c2872185f253e4036090db59f45355e4a48b11b9458ab244a0c16d2fc9cb0585acaef918e95dfc20e281a5241178681ea09ec5da33ccbf9f091f901143fb9b56834fa278b91a390a3a2e7a0f1334fb179cf0fdab50c6e6ebdb7df2767544258a6ff2846d0b92840b", Mac => "9da04e2dfcccd9db25c9f8566879c0aefedf0bf7a934fdb8ff7b8fdbb0568a04"); Test_HMAC_SHA384 (Key => "73adc132087af20b6ead6ab3886c412f52986af87109e45b0f1b3420e569126a99d863de4bd867076be634f9cd556335ff4f", Msg => "5bbeb367c6a6bb49682556772657bb9817c9d33e953cf0c894a6bc87337a701f91294630e2e93036c2b5caaec8958d7b5f1f4687d13ec7ada532ddd72bd88263552c53ccc80c4486333f9229e0b5f9d2891028c66c647259a13bc60facdde1004fcec281a2975e0065c99630944066673ca55f448e36579431ca5f76dd0ff5be", Mac => "12153d31c6c4b874095ac70bdae80b01528d86aa64cdb7ec9a169e5dac2eb0c7"); Test_HMAC_SHA384 (Key => "6dfd83804a57e35a1247807a0c828e54b32eea5f72960169ac23ee2dff88e227ca3cc9a7ec2d2a25cfb34fd4a6c2a779f265", Msg => "0e9913001b537f335e3cf67ac5918f20c01ac83a5eb8cbdeb33ef0907c8182fd06b3c6ec4bec39715e0a1a630abb2811b6d8ad318cf5bb19db36b632b96412a9ec3f5e670b168244e096457711e01251ffdefb2cefd6fe9e683f87f2dbd437d88ae8e45ba2f9e114aa877f9d2126d34963d3ba12cd841bd321036cb82cfb78f2", Mac => "cf51592da0cc19c255abda08e6f460e011556f73b5ac0add69dc46e8ce644fb1"); Test_HMAC_SHA384 (Key => "1ce7e20abbdcd1154d4b536714ff534a01b8e88c78da34d653638c39291fd80ad01f3df02067fa3bfae7907789ad2641c858", Msg => "7cd750b5c9b2bbc3ee955a4f4fa7c956846c8b1b52eaa06fd90a5a300e426c106c714497e70a9b6c22754ad0e1b25f6bc140704b273d2f2a76ce3fef85c1467850714497edea235ac24e8f90f678078825de341c58bc7aee346fcef2711ec72d8ea0f7bcc39a7b1738e8d197743fea3618108097cdafaa467bb4ae40bca216b6", Mac => "729a167f1986cac53ff3e111ff82f2a77b573d0863e1a3aeaf00041a03e1430188a202bdb7e9bfd4"); Test_HMAC_SHA384 (Key => "362bc440e5dac16a4369581c0cb5be45bf4f170847873d6cdbc9bd55232d23b39c4978f93d4a08d15b43690dcac4b8e145af", Msg => "1af3aedaa8fac55157f30642a00258102dbd482198e0f13476411ff59406b4ce80154a014bcc19f48ef31bcbabee6f3c5537fc9f530c56458065e50b1729442f2da1e7627f2d011e6e36a43948632abbc910d5ede2fcb2b2b841c31af08a5c352a80ce25cb85437700a5e9b400c95332912e1c30cd16cd2226be004aa88fc688", Mac => "6467e5a690bd32e157cf8ce674ac630b74ce32a78e8f78415346c00c3060a4a26c40c3e2eabd80a7"); Test_HMAC_SHA384 (Key => "91a8c08f4f34073913e540eb276bacf07d7e6fecf317f2b8d5e1866da3ea4abf159f4e8d5df7f8b5aceea72df7359750fb28", Msg => "6e0bf8d8716cd86b5b00652a308be299715df023eed305bcdc201bc5274da5300a7fc7e4dc79c6632d61beaa11c79359bce329134f1ed828f2d51a712359877c4d3a04e99dc5371411cb3ef5d2a4a044c37483e05aad2071afd5754cd28a399862c315af5b5811c730c54dd21a2bf1a3af976651b687c7e03aaa921edde8a4cc", Mac => "bad0de1a7ab01eb36a28a67d0a9488a873a82770d5a8c30e4253e04af51c31bb131da8aab4ecde2a"); Test_HMAC_SHA384 (Key => "31d63a82fe80439196ad230542cf8c9474deb07b00b20f0b88b08e6538a8ca82b4feab764f083cf57eb8ba168c7beb578f60", Msg => "4e9d424c31a7441f6d16d41caafc861ab8fe3c002d66ec7d5073a3f936f3cacb2b14a9ac5478296b9287dee3a809442ba1f4490c6c820cb8ca87e5b86a02a52751f21f1e806be76fd1e8599623e3ddecb6a36a1ed85649dec25f1cd8bdf11ee889ddac8afea80592f4e14e1d61b1d9c7c1b4a61ebb072a5701a3504078e9be76", Mac => "00da1f3b95139c23cf91730b5aacadb0b6c492a6b08765ca7949c315a792d86bef38e7a747486cb1"); Test_HMAC_SHA384 (Key => "917a698c82f44f19573b645c4879b8730b58dff4edc6a0d321f5f18658a5246692a55b59339741ae59f5fc486d515dfff8e1", Msg => "f51086fe78150fe48bd1415a4785acc05ab80ef00b2975ce7807a4212264b8a1ace80b50e0c2590ef3e421680a704eb2fc6d17555abf2469ad56f287fea578d89c560b72193c7fe596898f1040417e3a1beeff5eff9653c5e0eab1da52c0ea3b4bc34d0c2b69c890fb2651faf2e084803ea28eb20194490a992ba8c4249d56ef", Mac => "77bf5615ec52f706ca746401e9fde43f15605237e550b93a8472fd144fc39e5eca0fe890838828a0"); Test_HMAC_SHA384 (Key => "e3edb229240030c44ecc34c855c176d8db48d138a7615390538a90ec44e43b06e091f7c8fa606a0d91ac93a8bb815ea7dc01", Msg => "5e56f4bdea787d8e6f434fc114d2647b3f86ed3458b33c0ad198e05b639512929a98504193d9477105c7f6367e411186ef0aa34a6b77f8b62c6bbad6d7855a6a0098b1f4f15ce80fa76395021e4e2695cf4083247693eff118ca2fbe45c7ef9c9b3f61fe8b6a271160ff73507c5f6d53e510d5e7016ee9649e9d893b35c299cf", Mac => "12aadfa5bcf4e356330c99c65edd086745e113f1f05569d9ea699db349fb3e6be2199a7007ad71bf"); Test_HMAC_SHA384 (Key => "d5728055ceaca4b0a0c7dea23024dbac4a735c2240c9f2ded4f2053558081b2a144457e2e8154058336fc552f3667d942dfb", Msg => "96bb91b01e68ff49eb74bbaf26b94a269436c1410eb1d7a431a03e0d564a3496c42a55342594b384379b28c7c431eb2ad490624c21d937facbfbae3d4dd73696b0a23e88ff8a4957fa9c45100ee518c985d77d2afbef0e2c1195a1216544d8f5c1eaf4b39292ea4a9c40b992ed1cfa8a0fd3b9e4823b83c36936c0c384d8443a", Mac => "798429b7121b0f1de65c702bba78f51c142b483f96a4dcf12a95686074c1dbcd7d2ec6dfa1359baf"); Test_HMAC_SHA384 (Key => "f54e582e3ffed931e05f2b20a599218fa201118f76473480d1f04f2733079301f610c2d68e3e949010e6594ef132dfb5101a", Msg => "f5d2c18fc109854abfc47f1f39acff2f9b116e4f3594315d3d23d1d5132b599fc908002be3c108c05bf2e611e909a31281b582091c9ce3e8bb4d67daa975551c01553d0e7173db8a3d903d7487db2892cd64b99eb3d3489a035a9164f2e8168aa5a0bf5ff389c44f6d87cc6f9b8a57588905593682a2271c1c34979b75ec6392", Mac => "adeb260f3a38f1bcd2d85f03cf87ecfd4c8a6aa1820e132e87443a24f5a3f8d87124236cde9dacda"); Test_HMAC_SHA384 (Key => "6d2dd39eb5fbb9410e6652259c5402ea0a14e70a7b896a1ac48b144cd88aa43983745edd5cd9a5e3f54ecc23540f2a6aa7e8", Msg => "5820928f8ee262201abd8da3c07a8f38734a9dcbbea22f8b6249bc9d41b0c4117a811415d67a4668637c87125edf9d53560928d98f3f2735a5babf9071fe389a306749c4e20595aff1aa75e41340f8c5716028c409218fd2512efa1a1d1c7df0c2fab7047c2957dc0d6edf81a745a9780c7827f3f4f16e49afccf6a40bb19bf9", Mac => "f59fcfb65dc73bc3d07118f5a5d7d0c2b6b0f61e3f21916f53d5cd6a56307fc1f1f8c5f8349a3b19"); Test_HMAC_SHA384 (Key => "32c0e6b478d33958fb40580bf369ec64e7c853d7d187e9e47d4a878e32504a0f94ba96cac92a5a81db9095c85d4119b9524a", Msg => "1b5cddfa796d6956a181cb9bd2295c8b57d9d2d4b64a15932b1c4e1754c040e72e95db0640510e7516a3defaf117b520bd39fc7f43fdeb3da05ea0d5f6466f1761ae7a712d06816c46d7fb79efa765eeb71dda4ca965e4c3c4d692f8abd2ca059deee1c1a653694317654aa135a215fd2ecc94c3514aa62c7dcc4907da2ef9b8", Mac => "cfebe44a614233360911ff1c0089a94ddb4beb91e81209f71419639957984f13ebb123c6e16010fb"); Test_HMAC_SHA384 (Key => "c83ac14c3aefc2264e0ca5120e806a9d226499bef58c850c135cd22dd6dd359241107b612c83cdb3a1213200874e55d77d34", Msg => "f03c802de9dc4148c3109b96fe2d1fbac6788ebc10e991f4e62eaa2afff36bfb9361e67e6de4642842325aed418998a8eb37c4bd256007fd8cfc06ca081f147ba47da5029d2d06cbb8ad4ce8d9278b6cd2f24814795c302dfda70ab17a51eab4ca99a7fe9f3e90face8a5bcfee8f5ecc22b102093364744be2379d297c12556d", Mac => "e24da31c2549ec584487da6a78d8ab43ceb65b013ddd5a503fdc58dfd5eab0333a4c8c15ea50684e"); Test_HMAC_SHA384 (Key => "4669d93298c70519df3a12fb618216a77b15f57ce65ccc36391e9007af3df2ea2ba086347970256bd787905cb4255568b7e5", Msg => "b63cafb63001021837a13e46410ca942d4f92b2341cda5148ebe849fb438962c0b7f1cc40297201b136109cef6066ce9159825ac41f7a78fa3f29083f5af817bf24d2c2b0ac7ae0f5b1c20b0ddad6823dce655d2ac20ec7f98c6fc851bb7f96153ec0672b25b54fdf71bab745cc846f81129e41cea101cec5582f12e8e18a6e7", Mac => "53dbb4f115e1cb292440d84d583ae02cf07de44b481f65438a95a14b72a3413cf5763b86277adaf2"); Test_HMAC_SHA384 (Key => "27a50a6ef6f71e5903a0ead724b587afcc69a6e1d1c973f173aac0839bdf5f2860afcf78cf861c61ecea00bef4b14e2be571", Msg => "4e9a4f18f6e00790ea2ce7e6473b84e8ed7d649b2524bde5887b7e8a1c7a935abf9765a8c9dea1fded443b0e6039b2ec3d7c957b29334625333bfecffdbd110c21027491ce887ceab255e86b1d8b2268633dc2a98281541804c65bbd276896ec3c8281bd4d041fbd0205f7e3c55a5cc62567f20c78356e26c5c59d3be1a4a861", Mac => "8c00cd98e39787a5c91d20777f1a8bb4f0bab8ed8a3a1698805dd52ff01420459da0011ac4d1781c"); Test_HMAC_SHA384 (Key => "a6990c41a94ef7a358fcf1e05dfd02b41193730f33cb2719e0a72f73bf7b98c07d9887657928898cc059246f3bbeb2d327f2", Msg => "753e66d2913bb74a2d9b3b112223b6ab7217682781a2e3a482771b142fb9bc40bd19c00d0f3e40fd2a698af8e959754df16cf1f4e808e216e2392fce1c9b1532ed7bc28df9391fefa8f0ede8d7591390cded36ca704a8bcab8d8e9d565ac2348edad94dcb9f5fb28907a8a6854ed397cece26034813285caed9d72b070b48b8c", Mac => "2d36562d9dacf9fe8cda55ee2099e2e9c18b8c02dae8a235aedc4748d68d4563e0d93c420e2eef01"); Test_HMAC_SHA384 (Key => "038bb8d2cf699af839d597806b2247edec8c830771c1d580f7a02ed70e40d77d7834aa37f20d82c35221f0bed28b30c5ac73", Msg => "32947d045f6c1dee7dc055edcf1a957a7c536ac488b109f603532cb880cf1cf8c9190fead1a7b54dead20ef138807e766600235697356626a0f7d01874b620c5df609a297885a1efd1ba88eff03ba6f603d4a8c54f012b5c6a548b78aa17f55add33c4ca3a500a5c983e6cf2de933482bb96a119975c8120c93102df0a3ac63f", Mac => "16f50fcc2e87a8d525c4402d45146e2dac1f9e9bb4725aaf90c7df008437e7411974e15b169d599e"); Test_HMAC_SHA384 (Key => "5eab0dfa27311260d7bddcf77112b23d8b42eb7a5d72a5a318e1ba7e7927f0079dbb701317b87a3340e156dbcee28ec3a8d9", Msg => "f41380123ccbec4c527b425652641191e90a17d45e2f6206cf01b5edbe932d41cc8a2405c3195617da2f420535eed422ac6040d9cd65314224f023f3ba730d19db9844c71c329c8d9d73d04d8c5f244aea80488292dc803e772402e72d2e9f1baba5a6004f0006d822b0b2d65e9e4a302dd4f776b47a972250051a701fab2b70", Mac => "7cf5a06156ad3de5405a5d261de90275f9bb36de45667f84d08fbcb308ca8f53a419b07deab3b5f8ea231c5b036f8875"); Test_HMAC_SHA384 (Key => "f86902e5e5db478ec6e278692728a812c4cd8745f90a7d9f7915f5a94345fc12d2770a3c94b01ffb9e0412999eb6261d11a0", Msg => "e0bcacbe96dad6f60e51129f35acd03e12276a91fa13fc15037c75cabb0aee3a19253bb8b35cc0e63208867a032c8f4150a066642f6ff9ea197dab7e9d6da67255c16e051a43bce174a489e85464693006f11a4c61135dce4187040937eb4d1c7eda6e2c315771f0bc6f4273911a07151c63afd3f8c8cec963e4a8f5ef4b8b3e", Mac => "4bb4eb2db2cc921b159b78a2bb9edc1608bb2a1ca9873b411ae30a63386e462f9f69d9f5fc838ff1818748aab74da94f"); Test_HMAC_SHA384 (Key => "0d729c7e630560f8e8dbeb745e021f1fcab754bf6c8af0f4f4bc37bdf3ec653f90f2fac27c0c56fd2838859335e05cdd2cbc", Msg => "009b71ebbb05a82c8c13388f65c4b3b57164c5e5ed0eafae3970f7ce2fce5e53b34913008b6226f272ba3f84671b906f4bbc0836abc1cac1db02dd47440d2572fe6e92bea22e97235999def339443a05d24fdd1303e8cb6113108e9ffca22b110a9156eda571e2056b397ba5834797bf2da4aa459d8a99d70923729e01945a78", Mac => "a7d1b0081f4884bfa7b30903251fa2803d96822a2160772a473568d41ed3adc77c1b4950a22a14ef5b335a2842046cf2"); Test_HMAC_SHA384 (Key => "5405e1f28569138976b03675efcb88ce373e92c84080fe381ea0a853bd2ef8b8d4596eb115557eb5a7009f32d5c49f8a08bf", Msg => "3a7f4dfecb333e44f0258d33d69ceff70ac07e948f5c6acd2ee3ec450db17ce48394447c2b8bd4ac37cd1705070d866cfbfd9bbf851189bc82852a1ecaa13908053cc1a7c17fd514c2eb8277999d027279d132bd45a6470ded21bc3bfb738ea2697facc9b697a9423986b5d1b4d4cbd12c452cd4f8a30b8a19bd8ae4c9b0e578", Mac => "6cb9ff908bb72c45f49da3f4a8c5265983c1f4d811dfc098cc3ffa58aa6a6d0ba18183455cee62992b4c3a6cb53c5c16"); Test_HMAC_SHA384 (Key => "6c075056122218f595bb28753e87ae6334a0adc24336e85bdb8202545cfce30490ce5e067988108c4e158bf6c0eeb4a4818d", Msg => "0b9b52ec0e46793a179589513f117a956fcf98717339373f5010a268d8b254cc7b996b6460255925b59bdd28436d320945bc868d7a1bad87799617fc45f3ff852137e6f5a56c403c12a26d8be334eab9a44cc9e607a95e5e35a03cbf6261605fa47cabe805a49645d7b221c247ed0c6e35884ac4436cb38b2c38f9fb5886dd21", Mac => "58c6f879aa6ee523dc374a01e541f02f4c3dffb948b071468d2b242bbd358d8614aa7fad660348e61828cea1b758b91e"); Test_HMAC_SHA384 (Key => "d137f3e6cc4af28554beb03ba7a97e60c9d3959cd3bb08068edbf68d402d0498c6ee0ae9e3a20dc7d8586e5c352f605cee19", Msg => "64a884670d1c1dff555483dcd3da305dfba54bdc4d817c33ccb8fe7eb2ebf623624103109ec41644fa078491900c59a0f666f0356d9bc0b45bcc79e5fc9850f4543d96bc68009044add0838ac1260e80592fbc557b2ddaf5ed1b86d3ed8f09e622e567f1d39a340857f6a850cceef6060c48dac3dd0071fe68eb4ed2ed9aca01", Mac => "c550fa53514da34f15e7f98ea87226ab6896cdfae25d3ec2335839f755cdc9a4992092e70b7e5bd422784380b6396cf5"); Test_HMAC_SHA384 (Key => "5f76d094bd102281900a1c1973a1d7a6da880c85f8382022e0885d24ea7d83e458637f24391c7afe8eb9151aac47f324e1eb", Msg => "07b2eb870ed51f53b01cfbe9b01469d96f69f7cc03aa8768884b4774bbf0e43dc5e9fb3854f8d1e8f05b43028d0600d05c31f5d3e71209ac5dec0b3d2a48e80bcb8222e6e1887dcd84dffc0cd9e70ba7e75ffefba62bbaa35955b2991e53169dc48846dbdc0d8dc813b00c4dbf3df427b7fdf98e687d0314259026d1bf97d4bd", Mac => "9891feb5bae6e7f517783322943d7074275f405e54412f3f27ab11f5fdfb57bb54067852789b55dd21107c11a809836e"); Test_HMAC_SHA384 (Key => "e339f1caaf630eea2e88fa5989bec005c780464f935d2e6140edfbc20a0975279f3b4e8dde740584defd0bce32b025286b68", Msg => "edd19cc1f4e6185c362787bf3cc3e93a2a21990c4f2380cbf9ad88068e615328d8ad2e9fa108403e807807e0f258064fac58b76430c5c76f9f0b82d8ce788d079b42d38282ccc1556b25b6b7c6d1b5eadacd5e635acd1c2b3ac89f85c0b68dd1de9974b0bfba0469a0357b8ce1b760d55c877452f5c3e6c872edc6548ea6bc4e", Mac => "af65cf67f4b82a1f1ef5ff3c7b99266daff3e134059f5ff26261fbfd6114f13d69c1cf1195b93cc9814255ca9a3e9267"); Test_HMAC_SHA384 (Key => "fa0f033f3293389e5a9312c6046757eee20fda34e4c8b4d8a1ddd2a8f8c0b0bbf7596362fb9edd5c19646d49bd74856191e2", Msg => "ab6d18f2c0756519657eab694e73f35969a324c279d0c994008214c863a12395494383e744c3f30db3136ab1e7535b0e84a2375d2a34349055a44d43828c89f09454816275471c6c00ec9eda1f93e1a8302ee172ae627f2c0dde7e13e5ecd2e353451a4b9d2a6b9e14b04fcb3f5c0d8f35ef2be94b8332cfefd7b11fd4e884d8", Mac => "b075d10aaf54eec1a14ed42d77a9d961452b480bc6f655995dbaf7acab6befbe7bf6945fc0b28ec1898b3a912b539a7f"); Test_HMAC_SHA384 (Key => "19d7b971259fdbdbb4cc0977adb704917d2b3c68b97796df05c26d75349fd777b1e229751db1bdf239def25f0774754b2c8f", Msg => "5ade9519477fbfb754e1427586417618202ec140cfec68ed2517a4414888f988ec7dc3757ef312aea257b78ce05e9f1b9a32606942ce12fdcaab60a55b9cde7549f69e0c47f5fe19d75bc31e055a6c7455b4c090fa21aa8448f146c86cf23c3b5b944d65084b2bffda358eb55dfd842a38ff083d5fadd78b89317f34e554b9e3", Mac => "b50fa5b15b51f7b9eace48a79bbf3e392150fef2448500e56a1b25cd5f41b3b159872985b67a6170503e0ace217e6ad5"); Test_HMAC_SHA384 (Key => "f915e9a8a822b2bc5e67eb34cae85a5178118afff44a130732cc1b862db31d9ecf54ea6b11d0ed3863eab2f34e15aadf58d1", Msg => "9185eaa99394c63ca43f67b663c0f03ea998aa85b1264bfc7c79794473638ae54fce8e4436538fcf2609177b979bf3705c9e3702cb2182e41d858398188fbc2aebbb861e59d356a719c13e1a7da2b7a1531b9d3409f07bc514d209bb9179f3a22df3dc21433ca32c450ee57a5dfac33a54b8e502b2bcbe0827091294294ab6b5", Mac => "c19115c8ad223d0ca3e2eaf0ee5bb33900b29e9a8bcb3d93b9511f3186b2c23e4dddd1be36cb4d43cbb40936126f19ac"); Test_HMAC_SHA384 (Key => "35c28f3bb2ca3a2d3a5089df8b6f3ae27af3f9072dbd31d98a6a216aef2f3253240788f68e11d706a533784aa804bc9d8fe9", Msg => "268a1505739c34e36179ed0b316a33311cd89a28f361189c032b0d033b7882d1917baeeba16bbf5f97d5d7525036543abcc9544d879e7838f8ece91519a899971856cc88ed20d6763d2526a97e1383585df8961c5c55a9a4c075aeabaafc832784c374c39ee302901910e2f7052949f3c60c677dbcaf3147236d64ac379dc7e7", Mac => "b5385799bd110ac1152146e295331f3ff5c2d676765b933869c9b507e0715f73ef00dc42807e2e9313d973fb114f74c3"); Test_HMAC_SHA384 (Key => "c1a8b10b8f7cb5ba8e9c4198b04176cfc70161c8eda3809b233282ca38504f2eedcd48315678d03e83350b766050e5a5da11", Msg => "24a5551bf8c75913467aa639ee6f3a6203c0d8167dd45b942e824b15f879ae553cdf205095382649c78ac011f2be3d860c4a535a8d0d6f166c7a4a5e4bf9bd76ef8ad605f2ac2b19bc7d6e6caf2242e6a2694d6291ad8fb592fbf2ec0b7222d623f09ec376eb108a0d9cdad18d63f188ae67eeb7ef7d627a894b6a49a1ad847d", Mac => "c4ab31ef4d7b1872a0f926db17ef4e4e816c16815d7163566460afca3dfa3af3c6846eb1f6e9aaa08dc14754977b08bd"); Test_HMAC_SHA384 (Key => "8c185fbb4055ddda5111172aaf518688cf85727343c51d718e5a3eae3680b0e71b6a6c860687b50f850492baf7928162e369", Msg => "935848ed0f2851a4b225e6866d10127d533f21bb9e95bd4df3b157f3e766c92fc16b399c8154408122c14ba61dd642662eeb68065a84834531833c34519cc8482b0ac8ae0a806ede5163e2730336e43a8956b289b0e72cd2f20e3677f6605ee05a9bbfccaf9424e4c571719629183f20ede8c7eba7a6011bbcba0d64df9bd11f", Mac => "a0eadb390b490ad39f883482995c790425dd7d01c0e1f86252527f2fa92b948e320a54900fe2b95c588d3464b6462a9b"); Test_HMAC_SHA384 (Key => "1b08c4bc3cb4d58339073f6575ea0eca0b1ed58eb28aabfbe4d374f43f2e62722b72bb35bd72dcb3db897e55a17638e2046a", Msg => "e735bacfd46777da284e5ba4aa638c08dfe8d002dc70ff5b58a1b989053954d1214f18ae47dcaf768c79d73bc76a5aef30dc40cc2d6b43f368e7835425587bcdd33f3496e01fb8dcd23ccaac94a3d4130d6a2184f7394c79ef0af95dc82cc2aa258e754f473a7c5423209cc0b815e3bb9f1bdbf0e4e304351490816e97be12ae", Mac => "2fc24f969c156e34093dc51a683a489a12afe0ef1837d8729a3412ac41de04940331ba226fb54e37c9425edb8fcdeb74"); Test_HMAC_SHA384 (Key => "40eae6b8e3abea17c069f0882649577b1952de40f47c6ac0530a036b2f1a1f714b7b2335cfbe27ff3390f9f05f47653c11bab4937e5673", Msg => "d2813f531ce4931cb290899579e6c75bea8a324db875b440b2463df5ecd90748191b1fa93c1d21d0806742ad638e949e1a0986e53140aa5973e6bc5b0989df0ce66729be628462a824f909dd468f987fb48c0a2fd5cd99c96e15cc4ec3a5b122ff0d6778d541e00a68efe50d68105b647ebec414eb4509f86c7c76b6605606f1", Mac => "3f255480d645369298f7724f42bca1b984233852777ff7f7"); Test_HMAC_SHA384 (Key => "4e589674030c40679c343874d6a2d6256355eb95484e4add84a087cff2c7fee7703a177e4144c941b00f5de2f602750d5e4c4c9ea7c13f", Msg => "e9e83561cf23ffd44a79ee7654c8f3c7802a5a358f2ffa883e69af7d632e0ab1389946c1f7d27eb0a78f1e8935db9845c61758ee4c3ef905576db9222fa22ada1fc32be513e3178066c23c11f5928f0a78019d0f1273c55b268fa5606dfed2ad456fcc154cdf310e2e173057bb7641de3df013e00857c65252d95b8045cb69f4", Mac => "a1227528f8c21cf04c7c9e6c020119bb6ee907a9e1107c61"); Test_HMAC_SHA384 (Key => "d4490fb977fb66aee9f2dc8117b4ea926e507cf34bfaff28b2f5bb2b42b663b46846eab6d4e8992d29fc5f17f92368c0f0a4f0434f0e5a", Msg => "3ab58484ad678e4af118384b2cef66eff7a82b09a8d232add73a5d421ba7abd715c75fbbb06a5f47a6eedaff47fa2dda767008ddf49ccceee1b238e87f7745eb3a3e4ef6e51674b7474241a1d6e98c40c20f9cc935c490f6da9bfd109c5eda4db000995dd5d39740dafbb65a612348c9e46f30f6f5b1436acadff5e4f8c531a8", Mac => "47ffe392039a44404bf63783b2408f85f25dda84e391483e"); Test_HMAC_SHA384 (Key => "dbe1056299fded39ae361a693b75e1c35fb563b4626562c8330e546d1536b6fa9584a3efbf25a57e916dcb4bb0c2fc715ab68ac59c730a", Msg => "522315422009b6a85766d1f9b694ac7a3f160cea83ce9a5a1f708b3f873780c602d7ab67f6b234bd664edb95b907de45bd011d3feb617ce5edbd899f5dd05f2bd073ca3513c9ab28b4b99e43c4a1dbefdc485a505e153b1afd7f64a680c56c45c2dfb8d4feb4e390498d632c60ca6a21a4d40b4663529ea059a0657b777c70b9", Mac => "087167ec881de09e711e3ef401bb3fbe40fda71790f74c06"); Test_HMAC_SHA384 (Key => "05233efb47ca387cb8d82c87223c5a2dde3c0181461775586ce9724c0dceb007c04ab7be73e9f5fb18220ea09c817329190636314cc81d", Msg => "6bfdc8539fe6bf99892c1c36d521f7b17c224ee3837755fee57a0dcecefb183e09e4cc1dbc19862253a2412eba0c67d2cf0ce61117668767af0d7c0a868c376fcaa48310a037cd6d1865c25060f4205638f5c5aba5a40d15ea915a34b4fdf408958714b3b3083b80c2bbc8252fa1ca459e23133997fa8e107c4cd2d4bf17f60f", Mac => "615219d2c623d5f0b4cbb5643bbe62d9027c7e6436060f8b"); Test_HMAC_SHA384 (Key => "beeba7959995358a1c238dc2f457f3c0aa6f47372f5f3471b85fabf1cba590589a74b385915501002ba5fc99094f684c45db476804a808", Msg => "b22d8517c117ca7f2558ff3733c23f42fafd1d30d1d0dd8a339ce570cd296e81d4a57ffb9cea1c236700bbe87be3f7c3778688e1e617738415857ea72240e7e15640558bb4480f25d26c6cf6e8d18bf327b443e24cad5dbf7435015f32676f53df03f00f31b80b4c0fa3fbaaa413619ab38f377b2a1a0503f9b557e124266ea0", Mac => "f1afa54e4a98b1ae4cc1cdee67e42386a36d7c876c677384"); Test_HMAC_SHA384 (Key => "2792a9ced0630f51705317f4920dcd68b367bed3fa4552ce23ba5cafbd71f00e954c7582724afaac02aece77155e4a9d0989f26e858cbd", Msg => "13adde3b88ea960a7740685976c0ae6fbd9286417df2c89573793b67bc9e088ceb7c6e9559d6b8f6bc586c68fb1fc68b417c64d051f54396198dea938946e576a5e375cad9f2861e8d0ae163fa52a3953c42ee9ea8aede775f00bf9023c57d726a6b5ba3b148e8c913df30131a5f2fd5d56d8b722b23827f6e5920253423b6c7", Mac => "49bb81a087bb434af90af426bad3e1ddfd83785f415d0633"); Test_HMAC_SHA384 (Key => "01455f93e0e8f592e423b53e57a4e4db40e85cece4ae2e4a8eab8b748c7fe5267ae8512dc335307964fe0e74f313ca92e0b2f729fcfd83", Msg => "9626bae98c3fc215767776230ac0cfbba413b7a730bc12cf4af8ff67a4c15b67a8e9883b5f666cbc92edbc602fc27aadedcebcf433f2b03b379bdd7b6396ab0cfc26265d0554ffe86187d3653954b03e9d97d6446ec3baa07b76510cea518a43da061db546b283802c6e459cef207a55fb988bffa7d83ae55fb2e382029901f4", Mac => "3604cd38ecc643116b67e173e927af54b3882d1acbed1fa7"); Test_HMAC_SHA384 (Key => "7cf34519715f64da17f163fb9bf0028cdd8f34067fb7d1313d078b447c1a234e2508ddd6b32f31be8b33c36e8c43952ee89e7bd23256d0", Msg => "fa4240b15010ab3b94dcbce24fdc69163fa57ec5ab378f7ff33a31d96b876a0f69ea65ed9d266aefa13a0ea7d1e3a75f5d6203009d7f5a32a4ce80c517315f50409ea5175e23ba323f27f5ec11f20f6a7670d88dd6312818f9b51916d5e77376a4e768f93a0c824e962ad97bb710897eb1556334ff55e37b1b7662934cb08dcb", Mac => "a62d888a3b94108f7094a64d8b7ef34581689f50aae08d63"); Test_HMAC_SHA384 (Key => "2afe865562bd56043eb122e604588301357f1f35bfab7bc274b8110bbbc0a39a863ece638473e24d9709f1ee88f72696faa458909c4fdf", Msg => "77e654866c79866f7841a2fe60071e62ed77c5cbda76b767f1b6b19070878e44b1f00ed50afed7e1f35cb985662436ce8cf54270954647bbe7f96cca7c3317fe856cb0ab54c2a9107893bb8d2a4a7210e879ebd15f29dd3f8e6ed639293ec7823b82c36f106e04e3520e2f7d7222d810492c495400c77fdb2d3a76463e4da7b8", Mac => "39183d83b1b1cdd5ef1bfbc118eb9280c89d56b4a2929976"); Test_HMAC_SHA384 (Key => "c13b8fb78341d426c2248f091b597123d263ffafc7f82da5a55f2f395d1c8ca4d3cf7428d65a534e5642a673d1580e820f98a2030f518a", Msg => "4fc6b2e78759822123ecd63ec36c773494221c2e2335df337370ee024d468341d71316d768a5d1979bfb441ea24c5afedd4c8b1cabaa545681dde46939201912acbbaa748285a6ba49a71dfdc5a21c688794df9ac1b7434b592a7a333cf40227f546d8867e00e9d35677c9a3d375a7baba8281710d62945b24df1727ffc928c8", Mac => "5c4311312a0a6a1882ce939c8ee4285f10ac6acf61eafcc4"); Test_HMAC_SHA384 (Key => "23ebfa07e8183a33de0742decda84f27e7bb3266b6f1ea6c524f780cd7d4efda165bcb328bc3837c904c62afcf449214fde47a4dc6754a", Msg => "c30907938846e570cb36346b5f2791ffe708c61aa4e340c78ba8c40a9b2c5d0b6d7199770d28f424087495f4c6f138fb1af56ce41816fe9027ecb50157183f77f4846cd85bed9a550c9f714b0180d0673e50060eaa2f46fc1d60552bba4c86f67fcae87e1a9dbe4dfe3e2f39b7dd3f8b7aa2fe610138ff51968c0c4f6dd218d1", Mac => "0cfc3607b4e9bc8bf78a81fb78b1448d373bd7c198e5eff9"); Test_HMAC_SHA384 (Key => "72e3f7b20f0001b2f6d621ac38be9ddfe812b49fdae482a8abf023b201d01b45146ff5cf6ec02bf4efb0462513594674787844a69a2156", Msg => "5e9c92ce2d88ff343cdacdc0f1ef30eab51e79d3f7a637d573e4a35fb4ca3b00d78cacc1939cf5b876d9cada710436119773858f22096161b7653b47eb5aedc3059f9d7005c8e495e6752ffa21ca66fa721fccdadef82759f53720885590ecdc6f3e2c828ef412f21517c6c7072a08cecd8a165d345bd0e6b6c21acbfa548274", Mac => "0db147ee434fcd355c5c41cefa376ff135074c624d19e228"); Test_HMAC_SHA384 (Key => "820037b251f283a52f6c19177dda02fe2416060fd593158e96dbe6647a3bde72afbc3325be56514a0f617d24ac4cb8bc4691e6797de82f", Msg => "8746453e63f5acf4c8794ad8219c971442f599260601ab8e36767dc9add35c83ba3cb309c685d2fd378def4d94cd6a65e93056a46d25340d62f301403d4e74a8072781f503c821cd911f55be525a68788db57539d1902a88dcc5cb26bc387a4234b0b5ec61e520cc9dda8514a46c19b3f62b01cc7c6a14666d92e36573bcf6b9", Mac => "77fce55d8e0f5ebf731da846b4b4ea50c0e35d8bca153e61"); Test_HMAC_SHA384 (Key => "a8e05f9a3532bbd1ef24c93d235ce5dfa2f806dcc47fe61bad17640ecff926d0b0238271ee4c9f8e801dd7243e9e60a5a4ef2c4cd3380d", Msg => "ca51c4875c2fb06de814abc6440dd8325de32fe07c4ddb5dc865e0a90d590190bb63e13732fb68f63c4b6865dbe381ba46ae42522e24908d45c24cdf01b730249de1fa3462f7cdb82408d43c0f242885a459f424fee1d74b5a9989e0d6b5c2d079b257a6748da65ca73335706738963b7fcb8e7f74ea763f0ed2e0d313ba7e3b", Mac => "5507bbe3f44c28bda055fd996d45af1284c26a8d39ff1909"); Test_HMAC_SHA384 (Key => "8860418e48ec77a2292c518762076b7a0cc6392ce1c9ee1743789c11807d9d2254313393af536b47b900474f13df1bb8609d38a70599c8", Msg => "107fd2e4bd7a19a4ff6f482d62896da583c3277e23ab5e537a653112cdf2306043b3cc39f5280bd744fe81d66f497b95650e7ddfd704efcb929b13e00c3e3a7d3cd53878af8f1506d9de05dba9c39a92604b394ea25acba2cda7b4ae8b08098ba3f0fdea15359df76517be84377f33631c844313ac335aa0d590fec472d80552", Mac => "512805c9806a4739d04c194a1f1be679e9e50e313fe63ec5d12cfc3cf4b07073"); Test_HMAC_SHA384 (Key => "f15776976b372abe66379961f0787338760a9a75ef51ec4957ad5ca95f5948526394070b9cffc12a97478359e503929a15e00089dffb7e", Msg => "cf857754d18e6b8b32941d69fe4416a128910b6820fc0ddaa7130099e3384eb7aea4ddd634ac3e8dbd42270ec7be230658df88c5920ca99f88e04e9250e661295aa1ea9fffd03e485def722d630116f6288d200e81e72701d2b0d22924a08f89788388f95b82d384bba4e80ef99559393fa5bd8a1413edc82e8c74a587ef40a1", Mac => "6b442d4f5cd3e4bc609bd2096db31f2b2e1e413aabd5db0aefdc599813f6dd1b"); Test_HMAC_SHA384 (Key => "6fa08ac6d358f801de4e18dbdee3d860421d336a0a4e4b697cf0b96019d42130cf7c091970c5eb7e63c888e89a03804ec3b42094c3867b", Msg => "5659b56248400d7cdf101c0e2a6e887b10748f58e3fa3dce3914e340f7dbc62eae71145a2b3f1c294981bd4b0a051f9ee62fa25063411445e6d927b8c9bc2224add1d6651271d41a25dedd4fd8109a5938b88d00fc7f48e4598edd191e549515fc83e5cc255c9d191a2d6360bd186072ae1539b0d43a41743a3bedac1d2d88c8", Mac => "6454d29d2082a32897d3d783259033c1e877ef9060d4a5ca8cb67e3cff73f461"); Test_HMAC_SHA384 (Key => "c696b906b1edae7f82050db23c1f1f9293744fb35cd53b0c438f07fbbc91f6893cd13bf0a8eb0c5a0e0bf9ec930e7c03ace4d1bd913907", Msg => "283a9d5d58e33def86ee9e87d20d7e769d2ae928ed44b99d137a5e1d8c65db2826ab11ad63d1407c2251cbfc7ced3b21ed428799b4a093467c19f6f13bd8003d5bb5fcd91806b2fa29b73009a29dca981907609b0796dfd5724f0a90c9ef7b91107ee44b3c279b53e14756140ac433c468a0fb97b0cea7323e442362fe51530e", Mac => "d5515f18cb9fa799f1064f7a242e53052b6a0917d528b40d4e87ad95822fce33"); Test_HMAC_SHA384 (Key => "68ba6148eb2c56c1b764272b236496d19bfeff2efea5dd60457d8fd966b45d587715b61717dabb460ac202b9236493de67c337f16f22f3", Msg => "da1fd0acfd4ad64d4539fb4a4c69d7ab8cbfd206d2253946f07492abb2962d1214ecfc77b2eda4b88010d49bbbecd613209e64bf5b6cbcb4c2a8f77c43d6965e9b115ee0c9aa668bc3136eee67fb72e6b4bb7f1c3af1c6cecf6aefd38446afd9d8569df22bc9414f75086e4a37ded2aab2dccc2358fc7d1d808422b75d2da10a", Mac => "21f753f59e3a635536f4077dc15ce736e6490cecdefd56bcde91447f03e62c14"); Test_HMAC_SHA384 (Key => "882c0422041c466469ad9c8bbe94749a059ef869cbf43d03fe9dbe4cff440ae7f83cb95670c1a4631c8156bff85bbdea97662552b73568", Msg => "33cd61eb27d7ce4389b95180bf8fa4476ac88b1a9888acd83c4aa183dbca4c4687226ab711336b597b468265acf3f8ca6743c5727e1161c743b6d87640e51d7228d3a03d0d9b2263d2e2c847e4b66f2125bc4048298b84ada553b9a824c2e5f8fc282a0581d99b6778d34eaccfa0b2568b7e232401bebc93496a6da3f02a4dde", Mac => "204f1ca2db1afa72419fa024c757bca17505002b80b55e86c01cae05fee6a26d"); Test_HMAC_SHA384 (Key => "86fb0597fee58d6f6df38f27479c319f004ec141696ba4293c929088f51ffc4ae4f5d4f6817b70d6ffe4c75924b4e0b5577f8ad0fbf44d", Msg => "69e7b951931a4f41ecd9f8d9a857a5966392f2f5b49159d806eaa52ca388a9c912ab3199a33039fd48135d6ca632915e6c541268e4699da8c814de6356662beda6ed72c93ced7012daed24199775845035176e67b0ace1b413e06dd88ff1e8a0ceb3632985d85c48496e3628a3a9e63566e3ee3940e18fc590583ad377af49a9", Mac => "0befe5d0ce9d18f38b890822a8a0856d77e83e93757fa3cef1654027e371d25f"); Test_HMAC_SHA384 (Key => "5d20020a5dd409c7e5344065871e57e01c91a443501dc8bf619890fe231319b5480c3879dee618d319962596539e2970513fb5c0c8eac3", Msg => "0463fc7ec28c9f7e4c90efbe3bf36c8f2c35ab076fb2a601ffc75664b73684a9c2ccdc9754414351975f6a93e966a33944b0f401fd916a91b281b0bc7e7de0016eaa9954393c52222b96ee8f63b290023ec4b0e3131a6fa3214727fdc580477cf1465e3ed94675f7ef7da238129fdaf202ba073618165a3e3461e3b1f6085f23", Mac => "d70579764dc3f19717f26fa40ca089d6262198db1a1384b2380dce8a7fc926e0"); Test_HMAC_SHA384 (Key => "90fdd9cd8ced9b0c7a60cc2184aafab1c93a6d32f7d75c511c2a6090b97d283419c26f5ee0d72b78e70807d247d6148db4f6bbb90d9df7", Msg => "8e7e9bacafae86af937fe46b25b9a41a858e87900a883ccc88bfc9cdce4f2ca7730942d5d369e9d154c861e2eed3f935ea3ce730e9b077032908688004c3922cb9b4cd966ff80fe7772bd4bbd2dbc32ff33d8e3bc51f1a43f01ee0e859199324e7e602968d43411a850f039dd9ba4b3028fa445aa7bf6cb3666af8aed53975b7", Mac => "217d613003f59911efa218758f537633640d7e68d5c0bf0a3268bd796de728a8"); Test_HMAC_SHA384 (Key => "78bca5fe23d54e6509120e05cd1842d3639f1466cf26585030e5b4aefe0404fe900afc31e1980f0193579085342f1803c1ba270568f80e", Msg => "3a9f2fb04c0c42b2dce178313786aa7713256c96c90ce2f2be53d5ff22bf054cdee7c1c1c795b625186f05e21fd7980d360fb5a1f5a1d30ba6feadecf965961afa060ce83f688fa76608b46cbf4375144575cb86d3637f3894d63cf5bc89eadd754537ad1c4b7640aef2ad567d91e995289fd5cdc9198b807024aaa2d1f4a99d", Mac => "d03792fa24355abacc837376d23bb6ed504a87018aced2efa5c97478dd321523"); Test_HMAC_SHA384 (Key => "d2f055e03e94f39e7bbd1d7a1790e8820017cf9997fd616206923660d315275bb633be05a8cbecdd3df4fa543341c22e4b441f2c5750a2", Msg => "d5f3fd629cdeb3144002593009941cb83cd312fb42997ec406304fd19f66e9862fe428e30bbba2b41c402d07851aa2e38599e0379f4a1311f9c8361003d4d61c58a81954e9890048589ce969a2fa58be0106f6d811ffda0731d108ce2c31379519e8d89e7f6f533abdbd943da95dc6af78c35ec4dee05c0e75f4cdf263a49559", Mac => "f4d1a62fbc71184d3ccf6fa3255346d005269d0e5ed9d8655e1013d9a5a9ada6"); Test_HMAC_SHA384 (Key => "3e7c15fe168a67d56f21f95f513e9fb1ccb9a57926d51133391629a016523574ee0b864f33fcb7effaf233a4a4ddf704bd279adf24448a", Msg => "6725cf53ae93f5cdba4b7f5bcf0a84c274cf591931906d20982b70d3829fbb3f9b7cec952198d07de80487aca23ee2b95da8102c4d397ad9cc73eb6c9f95f4447b118f85c7400268a45506d62b902936f5b47183e1ba42a111c781f1365cfa230eccff4b2bf45237f5264600f26620e045d9c343757a8d21700f7c8ad05c9583", Mac => "6f4001a6fb68457ef43a140b5da5db50ba88de93ff2326d25eb92c69f9919761"); Test_HMAC_SHA384 (Key => "b8dfbcdc41f1b7994868eb6cbb8a58ec28baa6ad2449aeb5ed8e3c2f4e391364c3e432e6deeb560ee97ec0a9cdf438ef336252b5e86df0", Msg => "14c5e750576ce3cbdc3d8db3ae68655b6674eb149fdeb1f3a903b4d5823feca1015722cd55140224ae3171c63a782170532762fdf7983b2d7821b9a6743a873808ddbf6541330021d36cc1d60eeee4ab0db38e0631ec374fceebfdf8233f3eba90216521030f044ab4b624ec1215d995fce019363522cde2122729d3769939ae", Mac => "1786bedfdb204f5a4e947cf3980348410b97fa162d89e73a254e3b2911420ec0"); Test_HMAC_SHA384 (Key => "ece8f08f7a942395d29452ba8b298a6ab736f6b17e4fa6f305128fdd95bad39bf9f1434b27e622b223a02c2e2192d7ecea6fd95b803fea", Msg => "2b5c2e7c754f246b7045c43e191d075c54f910a77f8a60ec4d8e4d7dd296b01cda0ddf1b7f76dbc2fbf5caf1ba11a706b4b83801f98340e78d3cf764779eb7b3155bf8c3b2647e925a64d1dded8deefc73983c08af07c13ef7ae96a8437198fa834f61ba36a077a3389ac24cdb1a44053aa20401ca9d4bbb32eb13925d99bdb6", Mac => "11ba8965cfca0d25739c97793afc961cdef0735c021344621ea40adad58ad000"); Test_HMAC_SHA384 (Key => "3abf1268a892877f4267594f3e72814073f8bc67b35683aa5c453e252a5cb5cd4fd7c753c6965e4ce469a28e308a6ddd746bffc714b2f4", Msg => "8eda4f99accbd728c95ea46d31bc0bfb82193ccf128bc7ca8b1c5f65d81edda045be883be1dc9329271ae742de3323383e8fe1cc54143c41a83e8f111c727ee0178f3baee3c7025054ade621ab8ed0f5b905c54e48ca67d3b6cbbffde37e39144e75f05a7a332c86973e29735e751b1a3da46ebeb4565266ffea7790f5e91524", Mac => "c6e34c6379ad0db133962de9d7712bf2bca37fd2221d3e10ca095f1bd24ee412"); Test_HMAC_SHA384 (Key => "304f1de5e8fcd7aee34d5fe5127fcfca0bdd112bb0d9a41f0b5b9cf77d59eb7218a8e0304912ed69baa8addf765925114fc44bb27d4bc4", Msg => "0b995eb3f8d1fb4c1be0a7fb364e5d1b4edf5e3eba5ddd147b97fc8ecbaaf742f87f9f1273950b0824018a8501b3db9bdffaa1b7884b11830d3eee0a5ed9b71e17111ff69d8ebd1c6aaf0587a5ce7703f6c516da98b01cadb0f5eca3dd8248c61056c4a99e437a4e93f200484a27971d3a46a5ee1317665a0ac6de9f702e1202", Mac => "03fc9fc8d4f186e8718475c6a3e8238916efa828b54042932e872bff0a1362a6750563797d3571e8"); Test_HMAC_SHA384 (Key => "9e1c51d35e3636ceaec44d7ff427ca5e98b3fb8c0ca77364096367521bd558e85f35f22e8bf2353a30ecd2013ce3d86dc32f8fb0ffb2a4", Msg => "d77721f0ca5a83eea7821073d40990fb6cf00b36f006270b390bb1deb116790ec33463c29052bbe6e45dc97068a7a5e8198d4d27f857f55f035f9e5b6576ea08ea832f35b56dca97353bb610557a5d30f3dfadfd942e6fef565ad43f26ee516232abadd0a17359098266ffda034a5ddce430543f2b543cc518467b115b475622", Mac => "6321b02d91591009913f8170fb0b5ea6793ee8bb32a3e62fbe11cbee2d067dbae2611420a03fb003"); Test_HMAC_SHA384 (Key => "53a933e5113a62ea85908a388ce7858cfe850e09834130daa946fe18341585eeb6c9fffb5f9f4af715b5989ac71267b9ffe7b4b3b7146b", Msg => "6c37a65405b58eb6d79a0fe5777687975058dcec98ee10ac82ed15d0b5b3e345fe2cc9ec41f200e5b6b8860d51e829c5828be2f61f6a65529f72f6dc885d7eaa2a8fdee98e3e8323aad63bbdd69c47c48491b1e92b99e0c984dc6972f96d28235b2a9054d3e33ff61bbed5fcedd9071abc32efcda3c4a69b9bf3159cf02a0839", Mac => "dd1f092022bdb437755b8900df5d6990c5ddac34ded45d8bbb8a794c928a16feabd0058fca2ce160"); Test_HMAC_SHA384 (Key => "c5f1b9ab6535bc70ee5473555fe070b67533fdc3711803d31bc72afc071742e017efe2c941fd4ef992ab9e3b734f1dbe2ca2f023a674f8", Msg => "25c2449f1885615129179a20929b0ff99812508160ddceb4037c8fcce49c26654251e3de09a04702ee40bae8baa18017e62eeaee69d0c944ceb3284b894c3bba8b9b922b14ad92c1c966260f067db23575c8494ce0ba1f05432a418c265583b32927ba4ce1b62cd6e210455d1d368c9b6d68d5636ca3b7408b69405962c0e897", Mac => "6714fbc0b70c6b0ffb33a80aed3e511762e87c5c9a1bed95b67d03b948b215116a11b94729a38ca6"); Test_HMAC_SHA384 (Key => "8a735e5b19f0aa6c449588ae2c10bb645bd4bcb5a76dbba55910e0448f77d625dfec8a123da330fe1f4c883bdfe95fee60dd58bff446ec", Msg => "980a7fb38f023ebed635d2bbf5d82c2881fbaa38f10e8e78ada3afb268766e11b0aaec87c3557a6ca53f51686fe78492eac732d95cd900a4a25ac6b57fce89533444aaa851db5c68ca855bb34d0bdc3dd352bfac76dc0c4182919dbbcec018784d6121dee09dcdf96e905965374d1c6f6522ba77e41e9b9974d19b8cfd5303c9", Mac => "29e7c7ae061a50c471d5e7fe3faacb772d5fe1fbdc072e76bc4430307cb0f68bf8b064c1ff2a859a"); Test_HMAC_SHA384 (Key => "fc63d7b0f56a3290c3f3f75f3f09579bbb45d6c48842f46ebc500d96316d7e32d171090b11887bcfbce58b62f2b506767052295b12ba4e", Msg => "36aa473316a8b206a22edc8e33457d39ccee612e45b7b186a98b74b9dcce555681aaa7f81aa3a6757172005838109492ec11796cff3342c0353780694fef89f8e79978a89b6b75956d6f37286a91c6d68af7860ad890715fd2f0a413135b1db92f1fc32ddf27a6cd5ece89e612f19e6d6f4890f019f6c6cb485ee79f71399900", Mac => "48a484bf9b7197a56f34b2318fe88a8f133a6553073c055b6410907316be7a08c9eaf2dbb4791978"); Test_HMAC_SHA384 (Key => "65de751a9abf91c5de639338618e3df81e9994cd5517ef7d3cb84fdbf26dee00b4cc1bd953b744e2e5385530bbb041b59431ddc01028f5", Msg => "7197b130fcaf82b3d15a47555ca3ef1338080e09a324e8352f8bcb7ebbf6a3f5a2a0c85a32ef1ae260575037b97c8dc19c963424a71afe0a6f974a2274ddb4695465e8a83eedb93daa636d1f47045b1d35c5b96675f2af4e9e15af4fd119094eeeafba2008f1854d17454614ed8582af6c5d42d8f5f4228b23cea50ebaf1cb2f", Mac => "167601cab956a83d1013e78cae3ea29deb167b921b0b8627934814e9e60566d3cf42766e3a00ef7a"); Test_HMAC_SHA384 (Key => "6e375ba22837129d1af55e6306bab99cc29346e83b49fd76ba9309d3668b6eff0b5fefc619492f4df0c116ec5af1763b5969ef70241410", Msg => "a8fc55fddddf63e81780d2ea6fa51e14fb1bb0c7f24d17dc111595233dd1dd0f69ba1bafba7135e0e9db50c2ea2f9768cb4d37d4de52ae221a694603bfe4dc6d398be6914733b50e5c93f76446547fab0d6749851e9bb851a86f23a1472490eee017bf8bcc4e6bd83851ccb8cb3b60458a10ebc2f951bdd083ce33e51cbc80fb", Mac => "fe9ea791bdb8326a8fad6ebdfa160fe129b36beb7c3f74b8d9cbe43e6e61e7592827a5f16b18d1f2"); Test_HMAC_SHA384 (Key => "8968d657a6b3521038067b70c3aa05b2a3555dd7e7ad27486308ebbe01760b5f5801f92a8033a69424d93e73d807121cad5cd6c803870c", Msg => "1c78cd8373d9b3f3fee9b4a11c574d6b429aad0e4aedb2470d9813393372df0f4aa426e216aff5dd28b1889fb2e4bce09a67c358cd411bdcd6a3c1cbaf6da2a8d7f45208a40200afdb1faaf67e0f8d70e59ce0cc1096c1fd3c177099b40bbb7feaf0b9bdc6dbbbb13ebc806e27e2a8604bc26b34bbf48bf2677e876ceb5512dc", Mac => "f1c322457c2229250661c76555c81c3e8a2fcbfbf37c89ac43940a47a9513437081936c03fd5987d"); Test_HMAC_SHA384 (Key => "a16a45c20c1b98dbd2dc638fb7684690f626db9f9bfe3cff2e6cc62a91d21dc42b1370cd475dff1ab646da06bc1beb652a7436b9c70c60", Msg => "c05e649d3fe1142330ca683ede042dd4a64ac41609e9d461ffc73c628da44c7e99a03471fefdbc35dc27362531f1b162ae227076c3309b37fd4b33ee919d4bb939d1762e3ed27c41d6d55168b19947fdcfed82e39474ac6c1ea5eb7ad61510e545f9121d2ae6ba11c9dc9f4f8583556cb1b4e2a6a43b71c80bdc4b4e849402ca", Mac => "484c5d6cad99563ed7ff8b2b6c1d59056400bb6d29572365fefe82b55b93a3db6958e5893723284c"); Test_HMAC_SHA384 (Key => "ee59b47d837ce466a5c6361ac4f64365ce5007de53372d17e8fe8d16c9fcf409c2de23354f411a300281965025cbd863a17aa8a01ea09a", Msg => "7458a8f4cbc15e390633de7d2b2df46d06dc6cb26d497bc3c8d25afdd0d734f596b5420dc7f835452fccd4547db5e6f84680528a4c7a85d5ffdf14284495a2aa761a05eeaabca4c73808235e77844381c7a1033ed5eb0cb11a834b1aa5cfe0321b7037c0fc74746727cd15c2a102d2b39225c8f79005d7fe20a449fa7aecb437", Mac => "2a18d6e05b4e386716fc5e8b5395c79d04ab1786ffede68ca46d4c1dd7465c6c1b2731c4a1d8de60"); Test_HMAC_SHA384 (Key => "6aa20e80402d8de895c1524f7aff11ea645805588014e1cc46990a6d51ea03fd6e6e28b9f3f3a08152f28d39ed14856f2cf6463ecd29a5", Msg => "c9947b1f99a8f4d742766ff968a250653b2ee24af8eff93eb23dd68e52ef4ad2dd871fc5f5a9b354a3d2e6f55346363a204a29a65294ecbf25003964cd847d61b6663b4110acab648bd5a8515fc6c94c9007cd2c702f3c67659d4b6fec690041de9a983af39a262d84e77cb4950a4ec312cd958359a9325df97ed454b9871b99", Mac => "e568392f545994c2ae2c845cc366ae8949b73d4c46485412f63be61e315ca777d909b2e841f65c93"); Test_HMAC_SHA384 (Key => "dafff4db046073b89d3d2311939d7fc9472b1683e33a80c1ee06964d1e3ce3d96dbd55e26e9f38dae275658587d1b7a43007bfd11a33b9", Msg => "5da17f172c06192b866ebbf35f8e97ec0ff25a1c52ee54a593d6d99a6a71e71163ac087a018c7a2f02668e4ce5524ec0aadd62a4d9fe35ccc54c539c126d161d75d28150bba16cc30df3e1617240c78e9517bd74c91349974a0a32b0c5872ab81b7bb043632f350f2e7d7edd0e40497f590933332a14d92fa97a3e7d8ca76d09", Mac => "cb113d1aba8a763b774833c24f200bf28facdf7d75506cf3c9a16b14937a307eedf32fc640382099"); Test_HMAC_SHA384 (Key => "ef71b7b3ca0f904dc50447ae548096b2b3603b312a5e59d490851b270ee99aef259401bdf2c3efc3b1531ce78176401666aa30db94ec4a", Msg => "b7216e9ad1289c89d8d590f9dd0487c897a28a6606c0388955e5c62205a9448f487f2212abd3f282f8556f405b94bf6dc3cef55a8b06da405a58ed32488aa84f42e3053caf4041d25364e0137490f1633c5393f55fa4b883fe2e2942caebcb156cf42000259810e0b1abea5a7220a612cadb6d1dc9c05bb80810833ad4f53347", Mac => "13194167194dbc07f67581776840ccf1a160c5c465313f53e013daba7d405880ecd7124295e775c5"); Test_HMAC_SHA384 (Key => "2bfa932702a35ad436912ace48999d18c06caa9e680476beb9426d0793d59241315d13ad5bd0218edd1dfee7391058879976d5430781ef", Msg => "e8cd40f84cc8155ea751f0ab617d9f48d1984e7cb0c69f33ceeafdfe03c72d5a69662535c8b722ae527af51d91609d539d6e1b2392a3822141da4ea926f2f6239b2bc5864ad3e51be823bd8421647dfcce55f6e06ed1b06fd4ad36ce1de0b54ee5e6c5f2bb66872cd112f0e8f8ce64cbcc1587bd2c9950a5ee2a5f73d0d99064", Mac => "2d44160a46ebeeef54c3f84cb644224279635fd8997ae5692b4710de8d7d8210e1aea092e62f2893"); Test_HMAC_SHA384 (Key => "bfe6bb4c9b171b93d28e9f8f86b88dbe509c66eed41818a1986d75b616fee4460f5456cd23667c8a9f1738289601519d33716a534db235", Msg => "5b7a078f980bb8919743bbce52fd0ba3c22083d2b0254e28c8d3a05def4da33bd64fb502cfb5d00ce03d49ad168dbe5d1c784a190c7dfa0685908558fe1e37725a4b2f4ebc7eca209c1f5f361b9f2d2393b9911c73f87da24a7a256221f3fb590ef4de3b066e8e16f3726432063a403d4f6dc2a48b9fbd443d17e84200d6d737", Mac => "e82eeb7f4b7415a4c95dc82c46bb59715fda4e0bdaf64a7fb3af3c7058ec7d2a172b8293057b72f9664454e7dee11d95"); Test_HMAC_SHA384 (Key => "4cf54eb8cf7bd421ddb0586ac4fab9c478cdaedd89cc5a195332211f7571b9988419843300fa1ded868d318f48909078bbf1839c8fed61", Msg => "d22f194a1af33cd8cdffe9967f677acb68500d6cbbf77a3f34f58840f0c16044827641dc43d6767ce98f85dd5cbeaa9fc5b28333e7f20df8b281cfa4156055e61555e04a1ceb5c5c93ba9210b2e89f6197f0a53996a2c091d16c3cd908d7059ab2545e5a4c39d6c0f10778f82bee43590993da4571107c51b83c35a6702e56a8", Mac => "830b4a798f85c448b3d54abfee61b376597f65666d83a21052cb3f4466f44747431607bc659c91cb520308fbf4fcdb58"); Test_HMAC_SHA384 (Key => "de281ac95941750111396ad0e152be30ebf8c47c2dfe8bd5562b56c5d7f54c223c8c7135bd1ad51c10490c6d8207dd1c46863e9f0d8681", Msg => "ee6922e96d48b6e0b52a1cc6f3ddfc7b1cd11786237a1fa36ff6cc7b8cf02cb221c43b2622e3b376467a25c2bc4e49b21aea93ba96fd069c78fe4d2ecf11085d632e6472ec80ee94810ba98e53925dd39bb833bfd1657f201f6bddf5156a7f769ef1c55433e50e414e27cfb32271e2e58981201f3e7a31384c87a359c6c13a03", Mac => "a136b0ce4e8239ae848c5dd84a708027b0083efbb61589b2c30764def27e2e1b221ffb4d18af81f27c35dccf0683bbeb"); Test_HMAC_SHA384 (Key => "790bd8d4e9ff691a6bb8c0cd64d68d31195961e2c46363b9e63f44f3dea37590bb3297fa4f4533e784ebab80f42f70c3b39976266ff7e5", Msg => "4d53f5dfe10ca3880f44fbc2d9bf3d1f97479f4f49ac3f432c085d918b47c71bd8e794ecfbfd1562ea7909927aaa10e87505630eec22c10fce07adbdbaa9d65012b0d74f517b20b49e64344ba145165b953bfd889ea94ff85d80cdb5c2be0b52223524d28a8eabc5528de5b4f59735bf2071d785084ad14401fc27414d8f4f6b", Mac => "856c255d058752cfde3e74df1c4a34986e6f7ad5a34a06c157f59d8d6b2039918c4201dd8b2d58617911555802d7c799"); Test_HMAC_SHA384 (Key => "15e3ca0e8d9f69f7bc8f63f05b57586c1cb59eb33ac37d3f54769f667b6bc23a8ae3b0aeb50c71fa6582bf404415ba6f93cddd68c42b31", Msg => "929172a72b23de3936037ed526238ba70aa8a695c04cb4c56500ec5f0fd52e94bf1c97df91cc528a3625b175a4937c130cd589b50d5e8c0b27fc31e772b7684590fc0089e0fb7807f44d12c846da288b26fac30bf7da6a809b2238682cd43287ed77d72d8076f8b759c3c95872bf391a405e7f1fe786f52daab92a6aa5f43263", Mac => "8d6895c2b80f3ff362dfe355252578dfa31596c8f8b028ee9cd1a689807b6207a216e3516f3d782234d65eb1f9597f68"); Test_HMAC_SHA384 (Key => "dfd7e7fa6dc49cac285dac27f0968e1a8bacdaceea5cabffad5247ebe9e402a828005fbab16379e50a0ca140bcf1498b56f021c2b4087f", Msg => "004c38356decec9ee5ac710126e804b8f6d947eaad0ce6a4f5137b2cce7aaf92d5fda287c5f78e723e1ea7c1c56e457d0d634422746babadd19b8df66da12d404ffa650fbd65493aff970740663012df8dee7fe3df20af3d595e2e549178dba0f8ac49745c1c661bb17f5a271016b20600e1bed6f514377a16c525ee43e700d7", Mac => "fd24205b960f569042ec8db3c4e442eaa4eb38272aa36f40327ac9f5e3753d3ee8eeefa28ec5fb1e4e1c8815416515d9"); Test_HMAC_SHA384 (Key => "8c354e398566a4b9bbe215f1ad7b40d70e698710753365fe56d301fa311503de0940a6c718f80e19c163ddc3c68b01c4bb03cfeebbce56", Msg => "a116269f6dc522d0abd6cd740c0879e7902b4a0b9bdfea334b9e7f3f09fdda085e2ef1fe08ca900f4ecd4bcb90e3b7c622e2da3e5b97dffee8c50e82666bfc5c3146ffd77697e5d99026e60e9187d6421e9ca00f815befb9f9d12e565467b332c0653771dfb48af619e88484367e3f232c6183c635b3822a25cbc601fb7a6750", Mac => "36768ec85d992222b67619454918b6ad9369bd002d5a1d08079dbefd35c3ae6d28f0475747afad3c3c64981b20e7b665"); Test_HMAC_SHA384 (Key => "1fd04f50423cccd5f884f5954c19c8a4c6efbbb0342ea24da92bd28ac79687c83af583cc8550f812012ea86422c14bacfd5e3107073028", Msg => "c050ea6c6b8bc0971c1c64e8b8df91397ab8f0a1f2823c004d48a4d8d6b8705fbdd4e8d217eb710b27c8fa56dc2996819a736a323ea3ca7d5c889fb6ca300c8463a0513705c7ef5cdcb50d8ee3091a8fa7a8b4974fb5c8ebd9bdfbb2a6314904391aec453c0880b1c34b6437d566638b29c194772d9e7e724c4e807371a57107", Mac => "7bfaebd1b8b1950274b815c26d4b7d11bfebf2fc1e0bfe4ef0a3e36196ebb64dbea0e2aa0f342c4fa021f82faeca66ef"); Test_HMAC_SHA384 (Key => "5a63fe74efdc2a71b87ba0557452386fc3d0bb31dd9e3a3684c8a584371d990ea9d8787d7180bf2f030c9480df4b9f4908831ba7b8592d", Msg => "5802a9f1d0bf3b1af5aca2a16a6e3988f937b9add7f9a59e29d3e5aec6d0b0493fd0b0841dc661f86924bbd172941022cae9377c9255eabef7dc6d2efd0870c97cdf37d86712f8c45477852b39b92a33744fd91f0faa842041b3cb6d3874d79515158614390bc825bf8c49d8494650640050e7bed6613c6b0f404792ff7bad55", Mac => "ab9aedb3bae00ba8a335bbcd2ca1c610a5e07fb090a5b7058f11ca5c5d884601068aafc2491ffae62db3d5799f6f7997"); Test_HMAC_SHA384 (Key => "52b3069b60f5375f4dc447f866090a3a44c902eba0a6d66d68a9ff9c113ec5fa30806a0a44b7a5f9d61f5283c5ec6715db8a2a2fa329a1", Msg => "503f4f781c453afef8a77661ca7c4f0d622d1959c27c1fb1bcc5dcf4c3836e1bfb15471c92c3260d53fc458d78e1d460c008a759c2792c7d81fd9f65409981e4985546eac7414ea84bba16f5b0eab0f1a68e70e856fce979f66417f79b56de0f4f84b3ab64ca9a17086b5062199ec9083a49ddcd260c3eec4481ad717cc26de4", Mac => "5173199b9551905447d3e220c3301f99006c61d2013a375601fd3b162176adc4dc1ff3c345f81f5b71de718b650aa3a1"); Test_HMAC_SHA384 (Key => "05b2305a6264fb92280197a579b4d336395d5b51148adbfec2a3671589641b530490feae24e42ce6744a355da150c02839d87466b31118", Msg => "27852e97225f7966e2da1e7ec5e615853167878f32448fd964ba43ba14f7eed6a2e4a0952942e9d462f8e1dac6ab6b8df390bbe5517e16a2f548d93ac649bd16de4059fd335fe9d1769e4d793b55551e5b0a3b9a9687712d7d309d729094e392a34262b886de01c5e4746b446c0b58a02f7e0f94498728e4c41d974bb900e6b4", Mac => "e36f45d68614266248a91553c18818c049ec60e233cd5ba37d6cad12d9333962a5d3610f2dddd3c0343cafb82953dd9c"); Test_HMAC_SHA384 (Key => "185f150008c482249b50548efe89c71aeb4e0fbecf6b98c02d6b92263daead6fdabb21809bd6f2e13fd672294e3107b7fd592ea3524bc0", Msg => "f00f1d6331110716041ba25d28fe48b7764238f7c372993a08bbbc1cc1b6a22c9281be9d3014fb3e7fd201acf85fb4c54eb2fe61516bcf3d126662384890c1c2f2f98b913e2bf595aabb0f2f691d499e08bc35ba514a8ee470557a3d541c0c1658a00da823fefc05ccfb534f42e10c28ec8a64698cbadf1769b28c93ad018a10", Mac => "47c51f9c7346bd7b4ffe38b2feca74f43df543916a001c880483ceabf6452f7a3edf9d80bf321e9de27dba18537de349"); Test_HMAC_SHA384 (Key => "4a6e36f56637c7b8f445b4f096c544507e2fdd3dd31e823a575f9aa44848f39f844b0650f0cb7d4d192df2511c33fa35c485621bf391b8", Msg => "bac382a645b43242a8274704a6a2b55905a2993ee59b295e503aeb7a12ed260ecba5973242db64befcd156b10e1a42d42f5cc89a1155404bf21cf2616ea985339798bbd0472a5b2eb58d6e84475dadf4a76a3b6d19bc90d00cd4b551ee35b7214523564afcabfddafae3f743fa73df029654587fa4d8ff34c6eb9e123d98a320", Mac => "f194e972fde5d62f56d5fb99137e0f2f942d0b2a6a22916951ad03bfee22b58287bbce5d24700c6c395452dfddce97ea"); Test_HMAC_SHA384 (Key => "83fb4a69527469aee5d72be40f3c9bfcc94225c57a4bf9be76e9b029c4933260249dd76c5067ccd483d4b9b338fda00d34270963c6f35c", Msg => "2c97ffb7f1937176ba699943c435b3bc481fd8e34ddd75c5c07afb5ac656d8ad516fa73cf2dea3a2eea5627393a7c068ccf819bcf457bbd5e8f99a27608946567f6c1b9aa849b76894c9b24fa19b89206dbcda51a4f5d7a316a5f5030dc0e4aedd18c499bcdb9610d45df09d9718f52b53f2856b06beb177730472b675059aff", Mac => "bc852d73029f8c2dd6115c5949598b9ea613be7601a5a224d46ceae0bdc0ca43a8cffb86d9f322cdc09361868e2345c8"); Test_HMAC_SHA384 (Key => "1b0bb110ef8d7139773117d7308dac5d11ce7c756f071df11ec8ac05d9f35ab4e3cb2789ef4eee873ec5a2620799d7f01b6884dac95807", Msg => "21b801681f2ba3d51ca2347f4bd2a75c5319f25901626459394a397b33816c9ce472cc1eb92652e78b65b2acd01f306f0e0bb546968e225f6edee4418f67c954506e11a423f4c9e27fdd54ac1d514b0d676387482ef07bd19bcac79d68160b9b4ff3f983c35dafcedf5043059c309f3f46688fe6315218b9a8570c172657db7a", Mac => "3dd9d0f426054cabd0dae1337bec5682c0778679a9a3f908c66b90e1c28814bc6b9a61d710b0041a2f17d576a69dd4e4"); Test_HMAC_SHA384 (Key => "c63bff382de2bd2d076538ea88ff5413d11969f50a0df16db12f8405310e0761b7f720da41bbec68f8b2f5c5bf005ecf0c17612ff67efc3890d0e6117607c817a5faaa7d9025ab3570a9f614db93f1319861b88eb2c3c9facb9e0135b356c756394d876a41a7625e1751231f034175ff1eff545b6364c27a09a1bbb911846ae5", Msg => "992a5b8a639ae2b2f7fc9e1353a79e521cfdc98990937290bc932c7bef5edf636e751b6a6999adf92e31704c9ded6631dca9070c4c94d91fbb914108dbdd998bf2f28292d4ac7c720fabb47065f81c847febc15ddf4c5aa417b81c853846d66c8e6b390c8a1b77a6003111889311e9d46d8c9f8233041aa837d065f9f0e1bd8c", Mac => "448abce3c38e7f109073f1513455214d0361ca759c775452"); Test_HMAC_SHA384 (Key => "4359b09328ddce80ccf1d3ec5437aba6a11ae789775f04acdefcf0d8c82eca3ff5c6e96a14c321742b2641763802e04219d35a54a91015052c040902edd97ffd25f618a21f8b12cd9a69c7fa6f1876fd732346f39fb788786e6c3d1a8763d80e9c914522925a29f3e2626c603fa0f53e79b4b44da17ae66b6edf9408dff35dda", Msg => "a57195bff000d768e39ce6daf66e91b31a30fe94429d4c2f222576a136e67b0307d8bc3baa47a51889878f9f66e3e59f9cd6868ca87e6b89e94d8ac7a402fa0e4bd75799fffc68275345ff4f53202114c5c967b9aec1a4d7187cc8ac135905b6fad83080f70869bdc93efe93c50c8d391b7169c45b4e3f3e3819faf98bd5e322", Mac => "f215c988601119873340c4cff6063ff97ceacb3eedc40aef"); Test_HMAC_SHA384 (Key => "9f06fc05d8892b9513578385a5c0292f0b9e9ee7dd7c4d3cfdfe607b147dd8753ff1dd82051452c68dc4adb30da906cf86196db8af3881652e643fae0ed0170f6e6e45a976135e8990d6292dd4b9b144c38b98b6390caee49d53c2315b6db9c19447dd8114cd776784549ffbe03553162cbbc7e96340fc42b192940be19ce513", Msg => "a30c53e81e0b4d5be3a210b432e6f4394ae755297f7a45a08d3c7eba2cd39afbe47787ef23b2350d8d6391e19309b76b473e63c26e82a9fcd73ae752ecf8f78087fda96b07fd7006a2225b76fd534775f9b554f4d072950462ba0cf6c908d5c133a7a1a5f174660ecbe555bb974a0d1f0a530e08cdd3707ed3c3d5eeeb8a9c88", Mac => "bdd3e637be7317f62ffb955f7cc913b65507cc85d298202f"); Test_HMAC_SHA384 (Key => "2f4595e175c07f52d7be52a7a8191818535eb24cf01910c21553a871ef5820ab91be4e478ba263ffbf3563177078d9409c43c8bb8c8ce4c1a9e602239148ce2e6a10bcd177474102e827425df7dacd0e308507f2108565f9d2f91fcf8680e2bb6344c6c75e377f21fc9cd7c164ca5c4cb82c5538a58dfb323992e6bcf588c61b", Msg => "28bd1384c5786b1a689e0f305c5d3e9b754b0bb3f3b55d4faa3339f16080443d778983b0ccc4668edec3051c3309a910f71c8e46e7dce7b46d1223a00c4c6f10ffe97c831d7082de002685a966dfd77bd714deb38936176980425ba5f99661ce090385658223c7f316ec173fbf86d0c55e5a8264a26cf4572bea6966ef05235d", Mac => "39dd7e97281b897fb36ce83afe4c8b06417d05e10460cc88"); Test_HMAC_SHA384 (Key => "ab1cec025ce72c9cc162028506d527e2cd296b9480f2a65fe6adf24bf545174ae8dd471c91c90c70efdd7e4c03ebb9aee0878e74020d7979e0e6d301c4064957dbb98db488a04b63fef65f230e1845cd3d45d1361aa22057cf81ceabf5e269d9ad3a2693ec74d3be16360dd3cf65b3850eeb9ba472b88341da064a1330e26019", Msg => "8c581d3fba1744dde5c8da61c90899ea1e7e1bf96c604e1a213822c7e1e884891deb9060e7df02650440eeae4377b2720e13286d3f56208635f30db02616fe0eb6a5d05ac9c5a28796a18aa5fe6786061b92b69f1b6fc8b04fdab3a87f49a843810d45f509d40d8bc37115109fe0ffed6d842c55a9b42ee098767c76948a6a6f", Mac => "a3f6807e008f8df4f9e1c3e8f43d1403ab5f6b2c29564ee1"); Test_HMAC_SHA384 (Key => "38f0a1720529576df8e0bed148c3e04b79938949d2ca59bc1280171c5f8f48ad7ff600024a7bf9bf5f95e2a31788f9c5b7d2dc1deac69c476e7714840dd77902cf20325d6e73e9650abfe2221ee58b15b31a55c1d38cc36a4148c01d675b36f09037dc8b575950e75f2965564522bec4d3329c3c7764f4aef3bcc5ef5562a801", Msg => "5bac4be719240c6790176fcfeb919cb23af6bbb172f31104b5b46c56d458c2d613a2158b2cf199e7967219a0069497bb37bc33eae73b4e17227dee41c282648737922d82842d17d88a42a40e89a1b39ee4b15d4a24661eaf406e351d1cab4da64fe65c7529c2cc62f5eed9c37b9f3a84c93e037a335dcaf499f00893e8bac35c", Mac => "738747eb57bc8caa2e1b86673916d5a5b94cb87f4d3d9ded"); Test_HMAC_SHA384 (Key => "8424bb05a925a6b09cad2d0528ab8d15a56606f3701aec7498e6fb32dae5ebd7d09c4498659474ff8c471eee3241b6e1707f4b73061ba324052b8d59cbe673a434082f460f781ff2cf287cd4833de7d2097145127eb5cdbcf81a5f0178f1185c1a3123178f1ad212cd18edc005ea4a72d6039dd8c03192c4db7c1932c9510186", Msg => "e197e4a49e73596a1dc14d330f40125b73bfccc4b0e126c1e11d43327008f8f0e6d7386b011fcf9108e053f25bc258224e9ee45f37402374c66c5bdd951e212c0016ceac37942d439161769d240e80869280329825ad3b171fa002194bc3e0ead85d8eae675ad948634b9d7b91adf04fe86e9eb7a2add67093c2222cba7e9cf0", Mac => "6947d49bf9c309b20edbd4eeead6c8a5f78983bc1950442e"); Test_HMAC_SHA384 (Key => "eff520144c1a3c67a3689baee7937452ac7198f1e9ab56b1fcb89cd4ee0c608df98c3e12474663f3fd5fa9aa784c0373d6451c5eb9f73ba2477a6a347682d79886d97af8cf0df873bc66c8b7181a94d288c4e2455913f35a7cbfebb8cfc233359fc41ceb6ad7c58ee9643efd4d65ed16cad531cf52654682a371698983323c0b", Msg => "a00e97afbd3fa6dc67f1c132ae81270567fef4112f25440eac909b85162a85e1f6e679c92eb103ad3aa5239fb57ff0651f5380ccdd7e0c3f81dd50974c3c3135f111a24e9c6bc88733255cc2dc5f5237bf2eb8c60d93e08b41aac1b4a6249b8f19f7dae710543d91dbda37422a0996a4d0f962a8c64c081d7361b7822aca0b18", Mac => "fe025dcfa6604cc3e74a0f0c775926e7a16f7396f9851c55"); Test_HMAC_SHA384 (Key => "132681a6ca18ad6217f1282380eccf9ef901511cb6649b213e4f944bc1010b7cab07ed3c79babc58cb093ccfbb7870ef6e69c4bce89a8c9125f0ad0a65739a20c799839619c7c995ef15b493f25268797b48150461406f6b0fc95e43d9b6f6a09066a97e5348bb5fa99df735cd80a1814924abbdc65e2bf823630dc0c4d20544", Msg => "d714946141393b69701994acf9c2093db8736bfa20a4e3b3cf462b8e654cfda9976acc027f1db39436ebabc3a5ec00fa98890693148408f7eb3981068d238eb921a1a405d5fa7e03729f5a4f33b165aed7c374f3f5e1f42390d124d7eb9882e29e418234ead986fe4abe0b174a1a209f9caa1de269c4917ee5987cc926b6bf6d", Mac => "0505523b6ddbe352de5fdf9f4f9258dff68f8cd4c6825df0"); Test_HMAC_SHA384 (Key => "af7855435734415cb4680725471ddc0f935dee9ddceb4aba2f31fd50a27a7916dd613baad989abdfe88f4458f63df4560e01c6ce209dbebf011f04c2b31446e3e7f957afc0f21c8edabfa8538beba6126846f7310b969dc2148ad8106eef8e78d426f07b93d65b1191de7c3f8e8eb8ebaa16cbf0273eaf6e7158bf635b731c80", Msg => "bcc5300e069ad4f12df78c9de7c667775d9e70ed8d972ff4ec5c72b450814d810e175f0e5f7e57dd097bb7fa3b8ad8e9b8762edd3726ce2b0aba2dfdffd72b4b843e50070ea45598bbbee68a369ba684db36747a1b4ced23226b31aeb84ceab165628b62d9b3d6098ae7a1b59f9ed92e0d07c72c00af92c67c96062d4488939a", Mac => "39341404ab56d3424e7a8cc4c36ec283a748c1d2da6aa582"); Test_HMAC_SHA384 (Key => "82af0ac2ed6449298b517034353c3687889b4de0ddb5f3597b05c4e70cdfd2274e56f75a0b5c6aad4b2b91bfc8e4165da2763d9054c275d9e7fd2dbb6655e87a91d79423d59017cc7cf22c1d227a6d0f6890b0f4ecaf97b878c5636679dd09edb3fb88253447790d866ee8572946622640b14f168bc3837d95270ff02fbe5d09", Msg => "5ff26053b316d68f6de5b455377095681da77e47ee2664a4e552ef1988a57e17d1466b1f8cdd903400a50a90d1c33c9625d6170806cf997a080394062b7eb142029ab46f15d102f385d0600aeeccfdb89119b302b3f98a5d40b27e67b4e382d53b17c4ac179b33b5438d3f2a5636dfb6a99ad99dbc4c3e36d68733a2ec7bf7b8", Mac => "64ab6ba0015c5e2ea69968f4fda578dbb8148557efd3023d"); Test_HMAC_SHA384 (Key => "e06e730847c21b6867eb4b12f6d02142989ceb96ba11330bbe20f92859b63f793ad8cb3fedf22866fe6ceeb7617f434f1147a250f819dbd60f165b2dc600ae41a64d4255357a6ef81aa2b235814f410bc190bc1d3c4c41a987d5a4beccc0fcaa6cf562b2e802f50701b522f51ee9225cefa0c36450526c6d70855b45329e329e", Msg => "563dc6df2882043efc7428278642b2e47b2217ed01f1cbad64199f890ab84d1fa9ff51cbb7d8fb7022cbc3754222dc0d0c4b0cbc887fba1785a149cb8b69a4e011c11a3ff06f6d7218f525ac81b52a0965599216ad72b894a95f8e7903713438f64dc942bb9181cd44baf7d42d45c55ff01453045814ecae381d179d5c1924ae", Mac => "93bad5ef741085993a7fc789c4ab1246cb74190a607e53ab"); Test_HMAC_SHA384 (Key => "e21efc602d0824748c60fc8e96736c8618ef3a96b5f4d30ccf6e4942aba398d0cf082d00af59a98389e8e2628e362a3742c0d59c251bf5e493436809e93115e6e9ab72a660604a7d0534bd96a5d9884c7d9f869ce88d77da3ab001a4ebb3f415f8b0d23a86468fcac8ec951124840b2e9134577e4471e1588b5c1afbf952bec4", Msg => "6db044e59aa24693ab56af087e875f701e64d8173635502bcc4204c22bf0ce1e212efa306b0f565c6eb8887c287da4276547fe3336393d789f93b1d790d6e77c16297a5fd3fb2b11acea34b5c1e3da4ca28b4237c0de85f62116063658cf040bb5686b7ab9acf03accb25cbb320128683cf84b2abb6e502dba95abe66d244d55", Mac => "f08474f9d4b98f704d87dc646019649baecf154e47eecdea"); Test_HMAC_SHA384 (Key => "9918fae56359924aeae4d6111bfdc8c3ae8d7ead087526d95f22473c1f614a318c753826a968c595599e8e37c5b09f74fd77381de266d15d431d5bed463cc9880a75cf9f8ae6e94dc5a5a08d1c9c09abfb978ef8bb9bf0c2c77a8d83fea4df59594046b6ce7b07597420947de76a0e50ee1608a65bbb8eef335e65660f41958c", Msg => "2c46d9a814f4d8d35b0d042524b44be371765034a0c4103135a7c53bd9af0b91a32d412197a1329f6c76f4d593ed113a7458e5c5fb88470353886c68f18c07e3d524b5b40cb599827a2a43a8d6e7d7d1f6fe6bc44da6b081b2e9d58c629ca8894994ff097d1756a40c91b948f788e5d07ed2aad89e0693d0d930c95035c935ab", Mac => "6a7ff320888a5e69c9116e4fafd805c83396d8eafba87f29"); Test_HMAC_SHA384 (Key => "1ae62dc371078f8d84baf9082bbe3c8ee5ece05e8519709f283e19a26ad77468da889f64ab069281ac35b0677a8e9dfaf3c45024efa769d52b48c448865e4e8770e817319f14a97b03609975fdff5b8fcc7e5a5b48a74894d2a6b3608b6adad2c44ebeb3b6f97c827382d9b91dd81f525662288af7e2b8e5059f1072e1c3bf50", Msg => "f54b64fa04379ca25e753ee942d8205ed77f382a6e0605e908f92ab8188e5d8f8a937fd203a50c226ba3b679a9624d76ada2e2f5b4412ce3c7af2b5185a20ac6230b4adab1481d009f9b10a47fdbed760c69e0056c66d88fb2233017a7d98fb9ca9b0d3b958897e4024594914eabc805fdbc79811edcd194d03e8435059cb30f", Mac => "42e2597c6bba6c32e539294bc4842df8cb3842c214b17e47"); Test_HMAC_SHA384 (Key => "14161340bbfa1c4780583796f70731d202eea44297bcd428c3d9d752ef9cf9ec63be5e98080ee9c172675d2b1ddfc2cff7420be71fbff545ede032e832c0c7d1c178b3132edad12ad562ff8d1e698087009c9f42c4ad95250c48ad5f1349a6c4362c59d9b4c49c2ab23065e4820c339f24e4a97c0dee7c7028f890df1b9f5e6d", Msg => "6f24fa08de5244f30173809f1a141a9e00ffc2a9145f07e67726276b7aac25fe56981d1e1e04d548f1dc9473748737dd7fca810917e9b3089d0f5cf944ef73ccc9aca34b5ef6e65ae777557d686d3f9cbe9878038e56f3ad7c0d93c29dc93f5e2e2635948671a0b3490a6cc7df0c596324304e9e61eff15c7ce774cf6b80b13d", Mac => "642abab13c7678baa4460e4b6dec2f4ea84123999576250c98006a8a0a06eb57"); Test_HMAC_SHA384 (Key => "8bcd182e78a9dc1d38ff52958632a22b739e0641aacf2ed8f8f1e4a50c88ec667b622e7607c9179f20fd3c30abe1405003f4f8923d83cecab11d631eb5487960ac720f9b402acdebeb90a392bc0aae4958395bd43f2cced950d385f290b6380127e604c4ab34c9a9a1a2d1e34117b2bd7a57752e3631f7aedffb9049223bf3f2", Msg => "803b54a0a9b44cc935349e9d99af7c5aa600644eff8b3c9dd021a03fbd247b4819ebd46c5967ebc2c80785c87cda84a888f4bab97312ff49e981819ab13b5c2adf546b374b945d8341660b557af008c04b847a271d3729011dcfd6da35e3ce9a3a3dbf0a6783c9940a17d84b7d3b322b58794ca1e542e24ed4d546083062f921", Mac => "bc08205694fe5bcd786c785a0731b7b737a67bea10528bfa33448a7ea93dff0b"); Test_HMAC_SHA384 (Key => "e4f9334635a1a7e89bd037227007aea379879dc96bc2feb8ad0f17aa60a1a1869dba2ab3fd1cb82e5fc1afdae5cbf41840be53982eed1e6f40321769e1e290a09400d14d7db1badf23f0aa4a74839fa20a2e9ee8ac26552418c8ffb3ff8b88e35234f1bdbc49f72270c7ef1a2417f5685d3f4562ee56e9ffbb3a9532c385cf76", Msg => "0dbde20650041f568722bae9e11fe833d02f5d2355e4b4fa7da3105c2c5504a7195eb0851ad32dbda2e72c4f87a7d9bf09e806b1117d85b6b6add56605e402af02a8c66ceacff439bbef1686f61755eba4bc9abb97f6f3dcf2ed38d6ec8dee29d0826be448603b73dc21c3b9b6d5245fa895636b70b9c6143a4b81d466bb91c0", Mac => "1a14d543d1889cd3ead1ac7743944b24f55c30d1f41b220de2dcb4beef915edc"); Test_HMAC_SHA384 (Key => "5dff263e3e98e792b8035e4c74531b472d6c4b8e12cd39cf6cac150c8048f594b77b1932fc8e73a46652664e176ccf3064f142163633960eafdaa31f11364a38dcd3b667374ee24b91685bcc885948090a67a792bab6d9d8956261e2d5cbe94115308545b7803c71836cc52d90c18ebb68f5036c67ff0c14646cd7bb94b0d995", Msg => "a4f311c6e485a66d0a0b6c4828dcb677b722519f93d2ad8147e23ed28bb622460bdb04ef6af740c587004886ffad46c0f32a032b0b10073dba9402f9c4ff6a08fe5e660a557aeb2e120a24005d281883ff0287806cd2141d0010aab189e518d706e4fec2aef5edd03491ca614a3573e96410a544beff1e4aa0bcfea4e15373de", Mac => "950afb4f2f0d973110b4b4799f6d9650fdfe55f6f5e47788dd51566d3bcbb454"); Test_HMAC_SHA384 (Key => "c5317735b9a564d1fbd62bac1e999e61199a09174a4d5e10bb278f7fa30d3c9a300d8ef1834c63fefd3fabfdb91e11fe5996df3806bf1ba0b24df6baa00a68af278414a1b302713b0cbd2b8cdb4dc7156a628720abb48d547c3d428729a5f9d332fed0ec4fb1d7b0b2b875008c0e07cfd264c9784116fa55a05d3b8d45c6392d", Msg => "07a5696fd7e2e98fdde3edae3cd04d5728988e0af0e306d33b49412191c1a4d61e5c509bb3334a760e9dd89e5ba62e8efbbd495883ad1c3c08cfea799a7df3630ec952b6016f262a1909f0478e823c7be9cd846a0cd7518573baa3deb933933a5e563768c780c6d2868efc52dc4cc0477c3005e79249eed7047235f9f8cbcd85", Mac => "027e540cd7894b2043f77f52efe05495a035c3dd71bd1509036bb6b663818535"); Test_HMAC_SHA384 (Key => "383ce7f3187ad66c1d5c982724de8e16299c2fde0a8af22e8de56e50a56ac0fef1c52e76864c0ad1eeedd8907065b37892b3eca0ddcdf5c8e0917dec78fedd194ea4b380a059ccc9452e48a9eba2f8b7a4150b7ba17feac83c61604c3cfcfe6655c2be37ef0ae6fc29072f9b1cfb277b64a8d499dd079ad9aa3d5e9a7ccbec8c", Msg => "e3171cde18158c8e46172c051f11e80b9d2c1e19a1d15d11da036d2de8f38f35c1ce05f654dad5ef6dc1cb4dd92dbd1aca9412b17d568575190527c2db03a3247053c6c7a2a93f2f37c3a32916fcb402ac1fe2f68e7912eb60329f60f5dd9ea0b74d673b4aaa51b66cc5bc8220a9552b0b7395d21e638bdd7532dced7fa60810", Mac => "a4ad6471d8b0566987d13323f2afba3bb218c71f43aeae38ed5722a60e8e2899"); Test_HMAC_SHA384 (Key => "c4d6c342e2dbd2f94c2c758a6c951b38c5a1f10a92afa87eaa48787ca7b0658947bbc13d13e2f2f73e9675cfcfd523cc03fab358ecd981f05f0b8d200d87c7aff0728a17e9396637a7dc224cca8d011e4879457710e6f2d9ee7ed470afeac34685a326b6ad05b6234ea685eaa5e53e945fc6ae5146fd83a220485455d402e2b6", Msg => "5404e7d8e805f4c2343b405a3eeb08b5527e26163bdfe66cba25161b30725cff9e1acdaecf08bafed45ecdc8b15c55eb5683df93d1fa06bbc1308cf00ec3a958d7a1a2f4ac6d9e22fe24b666d3004b69be9c9c420f5a97f54702f039cfab717fe9df912fe6fa47359ad320bc0d9e9039731185ac5ec6422333e16b7fdaf25c7a", Mac => "0115eecf3b9f368cc10c439b985accf2a1b251d74db0aebe3a30f2f0797ce212"); Test_HMAC_SHA384 (Key => "85afbf16eb940e704877b4d16a8284d450451bab31ab0bb6c12c3954af4583fa7225a68245aa5fc5708bd16bcad727027c9e7a4e07edf5e0890037ea3cb4f8523f3bf0059913f48e7b3963e7c59ac08fcccaa0dc5af8c793f7228eb66785889d74586448eeb915f4efe831ec63b397a2c83155fe33b3c9f694f8065f3aa07803", Msg => "55ceb7328ec045967807a80790b5f55b2a66aa1f6d2edc2c9fd0927ba3316c3bbf0c8820a3e6a5fda7458995551da1af278be86891c509cd4252c8a9a8769e9cb2f1a36dd9e9b2a16124c74ddc7aab28f18ad4e45bad86bf34283f5574a652b8b5e5d2c239afb1aa2d0c29d62fb65bf00fcd373cd2cc9b29fdbcbf2610a7d0b6", Mac => "e78a8e4d779521ed3169a7f30ffe84e8951752b6f8da75ec5e024ad00345c723"); Test_HMAC_SHA384 (Key => "c9b74b2ba807d65ae62728882a32c4c0a0b2d9019fb50ced8a2477c5f451f29507cf91ac26866e4fd106a8afc91cab1875a3b26a859d8bcdd5839aa194d921b4a504bfb8456036f4ef8e71397c0bc5188f07775230747e90b75d8b54ec7947306c00db364fbdb6af07658a108b279829b6842ea0e9616e9ef85a50c8445aeb71", Msg => "1435f6f716806114e6df17b4fef3089a61c1f413820675e161ca4078f738a86dd4ad642b070f91e83e60fbd72e93989f359e550d3ed01505e665f7bfdd58d8308e781ac502bea35701de285c7b1cab5a276142a26a8e1b3a7a10bd1bc3b5909c8abda02fd0359e4b798028a9ad3749b37f33443acce78d6766f319f472f7d79b", Mac => "65bf092a7dbb8cefb9f05bbc8bc863b45909144ac9dbf327f3a6544e4e3a37cb"); Test_HMAC_SHA384 (Key => "4079ddf786334e067552706c25de34223844698f0db38e0636c7e4912d65c8ed42e640d5d877d484d1bf9f7547c3a56d7d0767bb15f6b5be8384c4a9c11280834492237230eb0738c89fb8fe28ab4e5136affa6ad64edeb25dd82285492644362fc6af54f459902c4038e58f305ed6d64b824922b883b1e9ae0926ae2b6abb0f", Msg => "8d8e0812bfcc18ca2a17d5f8ae9f42e77ca1336b293003c4023586c6a0b53e37bc52d2794415bb68ad6a41868c6ca6566063a105b28b0e4f6118e3a13776667bbfd59d195be5065291de89c0a6c4ab216ee904fd62b3f38af39f90cc1e86e2004120533b2dc6604f7c7c95ee252eb9124d3a469b602f1c3a61d4758f7e6d1c8e", Mac => "f4915ab7714e2bbc8a7a1f270768fb405fe2513762b2dc02c35f6c04fa957940"); Test_HMAC_SHA384 (Key => "e0ac3f5886bc45db77b92113acc632721b14bdb7db6b341c8806b8d1e9a4dcaad0dcac1542b1ee4ed866a7d66594e121d979ac8e6693639de16d305d6abad2234fa09e812e56c4765af1d4e3807b813e8b46a48ac47f84873e065426717dfd3f25a01e8692d451bcc502b12245a59933f722ae923f591f4268792b154618e467", Msg => "afc595de08e9de221a59d897d5180af3282700e5184cfbf90f12e7bb76118d1f856f0a205aa780a849890bb07483f7a89b1e301935cbf989bfe0e19f54def3877ef52e984cca3534a47747f0dbd370f583f501a784f33f846fef584e0e559b6c405ee78e03d96490d32a72a13393dfa489b25dd62e4b33b1c6483211cdfeeb96", Mac => "0d9556246eb7d1c36640a11584cb1dd48cf5adc66981a24b81897d1db68f0b62"); Test_HMAC_SHA384 (Key => "0bfee65c1f56629893be1addc27564f1e81c6a2d8e5f393849d81415a4300e605b88d8d4ca17d711a414799ce8d6ca28113a42148e45e134710a7fd46bce5dfaf86bffecd7f23ef2bd94995d4ac3ccc83c94a49ee36811ddd5cb7d19e29c5cc34a6f04ab2e2fbfc445081f27d083925bd0f336d47611efb9dbe3b6ebf1e23442", Msg => "40498dd91b8f781e78329ec1950cbf8de15e6ce403c124561e5fbe72546206db89adab9f69ca59c5ac2422259877227dc88463c02d09feb152f083b1e4c79bd57170ec3c701a3da08270db2af70f3b8b943ee04893d97f55ec8f62e6d34e0a8282fa185938656ed7827c9179b9be51e0ccf3ad243f1af16a74a321b92ade9a09", Mac => "1f87f065d03d36b93280b6026bf48a834da01cfafa12b90c7771377f5d895915"); Test_HMAC_SHA384 (Key => "42aecfb0ed85032c792b74e759945c06b1a7154ec6e32ce5b448b6585f75e7e2ab0ee0ecf060c9d0a84820e26b5050b11e1c868a6705c03e630327259cd09e63354a9b6a681a35c133937f034ddc152a5f52f40d71288f28a2501f9c1d9f3a76482ca7343ff9718680d53a51e880d2f9de1108e0ce95c02ad9f946c4ca2ae2a4", Msg => "504ec4c48effad524dcb70d3a2816dc074805a81dd84cfded2bf07b6072ce5f30d2035bdbd2235eedafc53c6f21239e185f307656a2edf806d67a7123da90aa686fec0a75a3d10d1d52493e501a63aa1f78692ef4725475d9a99e8cd96fee96d0211eeea2bfb47e1866ab69796e679e9106384863e120f5ba17d504fdad38a31", Mac => "e6c9f32e14fdb19600870ba8ebf650e40a85fb9a89ce7b48e7cb7e29cfd6007f"); Test_HMAC_SHA384 (Key => "03aa9b8a2aefdfc59f5c779e720e1eb64b60d3d75c0b7738949297fd16dd87fee923b0c9f10e2aea1e1a8e6ae33f0595eacfa50006a1fecb696fef24177dbf0c9a7b685ef7ad360de24991ad2e2117358781ef03635b592036a189c6e5f3b51f7e7a6d5026142bb653b12b6f3bfd7c1d8c3f58e65d80b1c064f10ceb6a8792be", Msg => "5619fdb97cbf05f4174e787d13d2be6f30deb3835589a03228b76b1adb9a0aa348783de241ae7dbe21f52f51a7e41e9105b6282f334e38bf8978741a8d72b7000aab410262caad9f24f224aee144d1fc3ca6943541c3fb08f8536e86399da9cbc13a70e1861b7de148cebe5b69fcbdf8fe37605e26f2d2549bd1c1278624ca4c", Mac => "09628d811b3285dc5349305d8fe6a868b0b9c5d9eaefe4c1f9d5de250cc753bb"); Test_HMAC_SHA384 (Key => "28ffcb22dd9ef0e43ccbc98327f4d215a80520eb20f1a5c4a18db04098a5b398af4a498bf169779c2fa2327aa35622c0d402a6deb9cc1857215c522e53ed719af1a4d90122207924ef525098ee8f2f751ee3c15213a9ca705358ac35ffa02fdcb6b6816cb6ec7ce6448428c34fc6819d50507a2d74ae4175fd2ac53ee5e576c5", Msg => "096a4c817f20206bd71b682920fcd3fba6ad31cac6ebe0c4000287474ed80700b42daf541921b0fe55f7d0fa8b1862a2b95b75188d834ce37b0a0edd0c1dbf4c79e76f4f7812b17c568b4fc746863ca5f9c3ca726e0f1d100c0de0d2ee3636987e1ff43b45fa0d2b01604e56f84e4b4c8d6d99a111963d93db9565ed9b2d562c", Mac => "c1e67187124dc3e16d3df7a39ac7cf2013204549302f66e98e8c3e63b237bd59"); Test_HMAC_SHA384 (Key => "665812a554fe084339553e3cc29dfa8996362e2943c40568788bbc61761bb3c2c132c4cf1bded3aab2e2a6d1995bf7e875a3c8b97976f7799453124ce8256c0c7f23714639f53686091855d56183f77feb8b321a7a0496c340a902ab41bebcd307f3c113988c5a61a5bff050045d21d761b5145430b609d0e5533485682ccb9d", Msg => "8df0a3673278e26064cb6f688022ac2a0f2e997341b6edf29781663cdf765d1265029de768ba759dcb420c900d6df5d57ba503c4a48e5fb30ee6d70527b079647e91614a337acfc6ad877d7d8a272fefdc7e8bfb92072ba5347ef118d4fd9ae7416596987dff176371636937e09981fe9a7fd822f26a7a507110597ccca6e825", Mac => "2031305f71c69ae3ea4d554727f83c7d9c485765968b19796bb0187ce04aa7410302e2fb09cf4b07"); Test_HMAC_SHA384 (Key => "7108c0d1e115bf9d6131dc37052b760bdde7b43ad5b1828fdad1d6b63e6038a85e5a816a82f4e3f7042f297bb5ad40c17cc3f7ef40d1037108ce46336127511301ca2796a97d43d95075ddcb7d246a9af552626b966f454e8328e0718138cd94a18139bc205be92c8b2c7f912639fa7d8fbb7d169f36511091062cd8663ab412", Msg => "2c723d78a66c536494cdf37da0e43e2e171a09c79dd5327e209c34b40a7bfa79bba9f151366861381a2dfde5d501b94c1427db667dff5534a12a52022cef0fe95fddec97c1b2c353117c783b7efed1d01b5588b58ddc9fb4064cf402782815c4025855d1af1320ba5f038b0805a42fc413ee383d3333b905384a433d54edb512", Mac => "826a2a11380c260873663815ff5e02201a17dedca1b20c613d0dcc019095b444fa0e96c8b2df5433"); Test_HMAC_SHA384 (Key => "96391b89b1d2d11e09c44a069c698901bc159fb5084034f29ae7633a822fcb81734ce231bda18d717b28eea70e157d3bcab65b9fee9ee38cda02818e7c63c7c20c6dbddef9207973232df06f4aa30ce6c6caff12794fd69803a2510c349df2b8c76654994d96beab679bf867385b5d891a193216909d369e7d8f7abe932573ea", Msg => "b4e7da4b48d74985480b4ecdac6cc6de523192614ded901181ccca1d6d19eecd4704ff694ea349575c369a83baafaf043972edfc7e5952bf9efbaa38eb2e06890dca6af254b0c6f44c0b27b692d62fa7e79fc365838a03deab987fb58629a7e72dc084ae0107a6a541135e2ddce82d1083407b6503888cb4d22cb15ae714bb2e", Mac => "cead49b07d7a98bc40e3f9e484bb562fac1bf5296f6456f22196a4570924252618cbe524a249c477"); Test_HMAC_SHA384 (Key => "0ca2ed9ccda936e0e5fabd1eeed393b4219d516a767c59a40c245eddccee27504a2b8ff8ebb8d1bb4dd302e3e32cdfcde03fc9e557e20ed2a01a6aedfd33cef87d105f0d21bfc2d43e5097f922e843ddfa11f38cf454def0a00aca449c6fd1ca70f865c1b7e79292801c834af32e484c38bad64894fb4f67d59b84c8f1c9b930", Msg => "4f472914ce9cf0ac7f663c06f3be53a1c2b1a188da40ad7816ab4b4113f0126e3f8e1028328ebd5842c42e0c51538b1cea6fc30d8d677e3546e2542084683c332925478fdeea8e39a9756877c1f2e17da1c268485b7ac8cb2f2f5a495cf178023695341179b84a95dd00540feaa53d0b0e30f803ed837280f81ac5824190ae22", Mac => "5dacef52a951847b5b26922bf7cc74c4ecf3708da5005615a6df512fc0edb1485bd8efb840c90fd0"); Test_HMAC_SHA384 (Key => "0996b05111989bfc10db56819c2cc6464d52e95dc3fc0211ebf7f7bf7fa4f7e8ccaa5f83b8e8df9803aed90acd2c09b5592a6bb810fa5914c9abf4774780c65203a0a6312c0fdb4ceddd8459ee9e37a51d1ae863ae450c446071ff4803c2a3d337e24b0376f7d74155d220160669964022882706a5c363c83bafdedaba52d693", Msg => "e0ae386c4a7222433f63230fb8a59742aa66c69b2e712155e000c99e84d2514af07ec5c92607eb56c0b0c87291126691896bd513d9397075580861c9258868638ee2d8d6314ce21f61dc151fcc99264f5ad8edaf58c6b1ffd541a5324cecb2208482777bb56a8f04ec8c12feb0645ee3e6541757f23f6c5a1f539cc14126b9e7", Mac => "a93d059bd930f765514c55d0013d96bfd55abbb0c0432e898bd20266b64605f07fb9824f6c50f129"); Test_HMAC_SHA384 (Key => "4f36c18e476c006a2d8e603e12f719738f6f262d065da3202a387aa5c23f3e0daa6a57351aa0605a2a2acd2f9668d12dbfc27f2bf3e22f2eee202382a13e6a0a325605d4431049f07718848332d0e317a1429335fb582736064f3a56dc69550aefe213944b2682d41b41cd616f9718d83cd5ac74a42754df78ac0648fc27c6b6", Msg => "d32f136a92049bff883fd5d1d649162da47fdced7032bc9fa5f29be3700c2115cf516b2ceb1900e2a78807167910b76e79370e40b79bc6b3d2338521c6d754c006035282cbd8a939ab63c2ff6d22b5d51cc4048a5a3188dff7caabe8c2f2d8b59fcd3032da477f4cbb596e555b88faaab5ae249300fcea6a3d4077000c64973c", Mac => "42311c23850d5e3460fca8d6870127d01ef4932ca6899632b92c895c0fcbb44e03abd9e5e753b983"); Test_HMAC_SHA384 (Key => "3f318aa4d4fccb3758f58d2d05826c40fc4d38902d9af99876d830610f7560f525f7cd17c5498431fc529b8e3dccbac90254db86b6bd4d5fd3aaff22485cfb391dc8316959ed76c02464ccc82939e4013ef9e18e470c5f2f5745b46f19b8751f6fcc3d025891a9ca1753a743926ff1cff865d412a62f36ee4cd1d7b24b32d78e", Msg => "22d3f7d1a1858d4cbec9324a3e1dfbda03abfe12dfcbbfaeaac8ebfb92e749f4b3a5edaae841afe9e07adb18749a2a6137b3f1124f29994384704fba9717fc0bd5067803eb04fb47fc7cd439f1805d1b110e2e77d19291beedad362fb73528faaf7d00a655d659b03b5583755ed77c51b6431b090c0f8f660c0608239b48b40a", Mac => "40a610d31345105029767e5843d46024239d903a744fe37ac4acc7a984330afb3e388462db552d78"); Test_HMAC_SHA384 (Key => "5051b7f8c9c7e9e1d0b55d0a05426ef23e0132e6e5c5fe759bb72c2521a51b64799d78c148bbbc5c7f3ff69b3ae2cb1fe96bbbf7ad7da61305b38efba9ef9ec1b6ee6b330c207b56f4b7041007fef5254bed3a659efa3c235831a8e82c8772694f6c19b7dc9f2cb678460dd0323ef5eaacb0389780e5cb8cdd5b035571189f46", Msg => "daa147d9448d45d7a0b362127cbcb318ba4e57608930078b94afefe97940bc3f7c66f7c87dd6917927dabf896bf308312cc29bb13c28e79388ad66338f1eb97f197afafc25104e0a23e1b968634b37facee908cad4b54b4ea56fcee9a44325b318a6f97d2581a310fc91f9b64e0d68fc068a44b5371d5b4253bfd0119ff52764", Mac => "4aec1c3858a3ecee3a73be5211e0b12331a502c4b8dfed805f0b2ff6fb14167eddf5cd2fb1048ccd"); Test_HMAC_SHA384 (Key => "7cc8dc6957f74970997160de77a2aca2721a4af337e2f143c3102f6eca99f5385a6756f6bcab8c8b9b753c966782fbeafc54103f7f887b278965374388b1bdb662c8c9da5bef603238e512a0a4bb7dd8d4e6121567931c0b903afd1c7676bbcedb14bc7dfc69ce4db9e96b63f6f63a5541f6d8deb5a8d9d71eb80a625e91f969", Msg => "9954cc20df9ddf553407ab15c6157423a2b247e9d5c83ab2d10ef519132271c103d700471cd08e754c4e26b99e46b8d516b719d7dc3a4b4c9edbffb12f27582a7486f27780cb2323fe0a80fecfa9a3cef5ba2c42b0880627e670ecdec8f32b0eb309a99654b726c610e3c2cea368bf760766891097dbf3ab7478c48a28ad72d5", Mac => "9a23a86d0a12817e32816a5ce93c9a0e80f01862d06c5b4d53d5e8329202d30e5e3d0117cd44951e"); Test_HMAC_SHA384 (Key => "06e7210def086f58b210a7010668e0d25c52a4421c1f4f4832a3b871c9e61331561c1676d9d75b83607c06fcccf3a73dd7a362f0569e4ddfbc181906e01ef5ed0085af3505201c700836bb3616329575309d6708964a038b46d0f46ebf3d61490a09346ffb497ac6b5250dd66c8c711f6f27fdb0658b3bf5d6b291d1eeac20ec", Msg => "4b1a16d7a190920c470b13f5916893f06da3af78849a5b018213d423b101d6fbcd0310cf142ed5f09c0c14e5e9e48ac5bf3c36e5359d0db30b96f0e23d03dbc8d8905f040d7852638493c505f38f36bbee7d07b401902f59fc2230758ef8499915c7ecbfb5f7722da7a60e9cd4f0ff9aa36e0a2d0ffc28b9fcc07c23cb688737", Mac => "4121e1c375037dffba6eb6814d1f512a81d6009cce96562ca1f460cdea0b8a59d0a3e3c1950f554e"); Test_HMAC_SHA384 (Key => "1731bef761d689a566db84e07996b85523ba1bf7197f1c476cfd7dd300d961fd3f24a6fe0e80742b00851676ca630937f8c8532dde0416bfd06b658896fa56131a3e59e36472c8b7c8e8bf0c5eaa2de2b3602bc3be748d021675b74162b9b335104780ae4af3acd125cb25a81cb24cdebe4b4bc3a319a896a4e41b044b5e9dec", Msg => "2726877bc4282dbda4db6564fd25c8bbbeca5cbad39affd7a5e8091ee13d2d847b4ea079f22c7dbcd5bb69738665737b3e0f3dfd514c6142b4d10ec8bc2af29528ab5dcb62a8a37d02e9c2c1945844069bfd67a8d62c7cc2c1fd8d445ffd42453723059a9c0665a7324cb875ae660505dd7b21e4e8a11700d653cdba5220e53c", Mac => "61b98a431a1b55c2652520f2181594ad39273da29c4ba1fd7902af99d234f5cb24ce75f41bf0a5b3"); Test_HMAC_SHA384 (Key => "c071c63d6574232cc3183b2171ace81bbf4cac24e16df5854fb69f366b12bb9864038f665b39dde9c563696c1145b5f08a0a0f217edccd88a0b3d801ab6a677048180db0329df6cc987b6e72c3e8a2a4f821abb1a000c864a6d1eb7b2162785a3359490130caf53c03095219cebd389fd13688bd8d016d8129b9e28b141f75c0", Msg => "0f66d0b45095ae1b59fd2db7780135a1f52156f8fd1e5d29df5f256d7b94b093f69976ffb39dfdf37f83aa0d0c88d711a12726e90f3a14eae761d159eaa74f2ec1639817ef5d66c00332ed5212fafc3a6427442b6eb0f76600709639c0c904c5d78cde05ea1d0f0c4cd29e8e729dcba2a7eb5bc600cb302493531c14e43ff7e1", Mac => "06c3568bfa7c4af9d6f2900c80afd15d6880056bd42d38620fcd956d36555688f2634ce632bf2006"); Test_HMAC_SHA384 (Key => "f5c15429b2ebf430282b8e92b0c76162a4fec17416ec6a65c2ad14db42c5470e81bf7188721536290250076d4b70f6f20a8ec83453c04c9b833decb977c282ccfb346d8b8586e31f24dd886fb3f240a052b842dc17406f5300d9e1802c7bc6ae4b666fba5406a41a761a3b1e5015e97664c457f5c932789521c91bbacbb9bcbb", Msg => "1c72ecfb8439d9ae3ed4eff8fff3aea771692ec3852f11b90aacb6b87f33af5c25ce768a593a5b9b2132c1bc05f18a9420f2d02876fad6fc88583e7b266b7c9985668ab79150ddc7844f99b0b82501f4b9fb31909f5e0f249b877f53cfdfd66d63c2924bd583487b90b1dd9ec199f90d660cb9c3a763a4776abfe1082296a71e", Mac => "f5dca0801674ad8f4654f195437367b1a9bc5afe198b85bf539898c6fe946fb0ceb19f590e68aa04"); Test_HMAC_SHA384 (Key => "fa90796c79d6a728b50d788e35b9345b109e5f8f9bd3821d44182fe6be693fe85fd45eb3c687ca1dc02d57376d7bb7809e05f85882574eb78241131e69720ccec848ee3999e720b62289c3781c15f0c115f24053131d92287a7908622f675385fe9731e4391e3359a2c8c4398baf67873c0c4068954ed6d7f569179a5a719d75", Msg => "bf92a10983b14561f1491d3b837724b4ad7105d91ebe847544a21a280edddfb9f595aead3d90831978a627b44d761030775982cb1094fb2110d2ce4411d10e0e555badb60978e5a2cbe2d77c6bb97388ee789735d9287bf2acd34c42ac3c1713e5cde94c70d135a5f2e375bb65a614641bb78c3fffe0cc901f8fdc4b6786c36f", Mac => "8dd24a94d6dff09273336c22b17f2bf5a040e16e08d04dbe191d8ad084ffa4e52abf6e8111c0b642"); Test_HMAC_SHA384 (Key => "733abf560d9f3733e221f37bd6219ebd8cc9889486a0f1d68e5b830e55f7202d5b04de7c0e4450d536740813906a59c7b960622d4e90475e5201c2c6d0a0dbd9c192f3022fc907dc9bd533a59dfd75f0ca8fb499da7401fe0b071c6cc0283ad86e8b05d0b856e5b1d9ec7e1943037a9f85fd88c27275a42080189ae96eb6c592", Msg => "76556fee3b6a456a0c64558a00cd88df726730c85428f796c58315ede6e9c76dea90fc926d7351d9079a3f25209b936006611f653c2cb01e16d940e982646c4129ab289ab774b18c76b2c33422040dd8f97fe2c911ad318eeed5b73e547d732e5a2e5accc0774dcb82344881ad11dc8d7249dfbc79b4622e7800e3b4033ec47d", Mac => "4213b34ec9ead8721f33585d1231393b38d1c1fbe59ddbfe2f2f2206910e38d1c964a71a92959f3e"); Test_HMAC_SHA384 (Key => "b619d9d07461c11bc9fb66117d61ed90001366bbffdbff583556777584b0d65244af5c7bdbf3b7358d7c791b966cc809760e57398d1896ace72d26cc59a6904fcd92365edafb8af7986c7d90b2af3bfdbcdb1593c78fbe8e3378bbb0c519152bf9cb51c19a02a12a8fd35cb6f8b3ac337a828711d6c8e0c4c13e1e6af090cdae", Msg => "5a81e711adfe5077dd8c8b57c95e8e1f3de39f4fc448c523bd3e7c72b1fdacd6e489dc0d2a34a39ffc6460c1cb962b7a94a30c04b5426a75ffcfc69f0c4ba934d3a3da2e7935d56d6b9079a2a97b016d653a35c2cc0ce19124f887a617c951ce4e58493b4209cc294f983cc20b16f63fd52e8451b1ad13bf5342275079818deb", Mac => "8b4258be4c094aa4056f332ede8c733772664b088ba22ef8caae7cefd77eceb35e83af8d9c1283cbbffe4a372b699c21"); Test_HMAC_SHA384 (Key => "e48825a5503a6afe0bf9a240c67f27acd4a8f6993834645e03c80c72dd370cd2e10071a3ae18ef19bae9d697ea9a4118609190cd95361907a7fa1b58f499f3f5e79b935f12212f437dde399e3e6490244aa1f5e38ba9be2433b6ce924f6cc49e9f627321a5df9343fce1b59deb647d9a3ae00b234414ba7b4e020d67173be693", Msg => "8561865ac2ce12832746f82584a4b98e7f4c3ae2410e18196f4e3b475c62ae207d3cadbb1d490096519888db2f3f18e13bfb86f62216015cab8ea491ea734cd3b791a7e45e4f8e0b98d7955bba77e0372d4738161e0d5d84765d9e6a0d05a88e1aa89c5defa864e9e349462e8f14b9993d7a78cb9dbad69aba0551582ddf6958", Mac => "ec780a915ec7deeba2c8c9e2ab15c9762a3eb18fafa2d48a554ae1fe6c4459da1a54e2d58bdf06fea0740098eebbb699"); Test_HMAC_SHA384 (Key => "b9280949918c582fa63ac4c68cc7a0e74971435e08035aef12f98397f9e51713161146a736666a18918c95fafc536c325f5239b368ce3b8b81dd412300ca77c29ebc7f542b93c36a80130a81b4444a879318bd9b4b4f37156998b7c604f93c813870dad9d7db0c2d5a154ce21e62e1f0cd0df9a0194ff794b1730e076d380f56", Msg => "9b1d9b8060067187f19e09e2bfe17c11d0092dc1b7b25b06c43bf2e5786fa7153b65430651a43f230b8b92553af1c7c8e90852f14c8724d0f3087d7243ae02bb270c0f6203424e3dea6989bf1032bcbf82c96f7a140042dc9ba9cafb5d439be5c6daa69b5d28c65df600952828ed847e01162b65f964ddb225e78087ad769b1b", Mac => "f9bf35de6f3888828b0acf7da8d2a8848c292a5ab9e6e2e3475d665d398e5ab424183e9beb4db0d7accc6315c53bf0de"); Test_HMAC_SHA384 (Key => "1dd0942297cba8157069925114b832018fe31f35450ef6e2e382f22a950abdde7a9c8642553c5410851e9abf370b0b04da05af9ad32e373f72e68eff2534b0b4ec67bfce0dfd545009c3131bce3e826f2e4a1baf90019f64e6deae85df2295f65d77674e29d44fdde6a024ee431a3e4975f888fce54ed75b25b27a46299e13aa", Msg => "8428a75382510207600c10573c4c0f6056a74a0b7cfc33d7c559b2d9821cbd017258299e357abf24032c932d9e7991bf853259cd6b914d00e71de7b76dcd514c7d702f991a4cbfba7e0625150cc20098868a414280f43de515ff012ad83fe5d50d3a644a1a112a5038636f166e6e8474c077ab72a46c2c0eb5c9a53aabb8a225", Mac => "8d032500ea94fd8686b465634d74047db687a1d1e56fc17100f40ea0f7e3288efbd016daffd5d3c32fc6988996292788"); Test_HMAC_SHA384 (Key => "3dc1c0cf6978292dc6389fe87e96335dcbf493165b528940f867c45f68f0db4092498f2fe33a516bf01304d75dfb03f2fd8566093a8481acb821ae5e352a4d90b4ad08d1dac65c3f98b554410a3398789f07a7f27bd461a11935c80c350b0745e916b41b16c3529005451a8e4ee7fbd5f9a1df38e4e9300964cb9ad22f3c1345", Msg => "b5e3eefd6fabee2f84ac6b7b98ca4493a1ef4e49410b49ad54591376c5e31ca4a5481a637ebdfe31e45226434e77d42524bedfa219e2a8e3bb0950db484628e2c462699f48dc262c9d2e7e750a5216e16985c735804b93b58fb3de8c26dcda6d39b8447b76104e66d6c8dcd77365f20f99cc6dcb1f4cf26af8df255105ad1b8f", Mac => "40d43eb4671e6840050be5fc38c2709eccfcc47388c380afd52331dff3868227377550420ff176ff97088cbf9c5aaa05"); Test_HMAC_SHA384 (Key => "abcdb92d96bd11e85ebc4fbd6f17dc8417701e188cb59bf53153620615a6a7b8bcb4ad53231ce98afe49645144eb61eeeda84053fb0ea2abb7cdce333d23534b3a97efcdf5eab09d8c4b598180ca0733740f14b5324c3ce5ef70fe51d09e454caddd48421411af48912af7f72c9b177b340d64e73b55b2cb62a4bc09d7fec6e4", Msg => "b5ef6f15a59e24f357e578b50c0f6016e9c0b70c54d1ca42a15b19c9ee125c0b4bd5c5001f8385a4c70f91a87fd7a66786318a1d7d4796531026719ed9111e89811b39d029f57dcf08048a3955b6e50d671741c61b9ffdd3764eed468bfc5dd09fea53ed8c9c155c63ebebd2555626efd4996171f58107a819fe162acc7a22c7", Mac => "3802d4c92f767fda5187cfee5eb73ae20b6bce00e8cfdde4879a0f8906ccba8a0ae3d4fb4a7f1188c3ae9b1910bd07cb"); Test_HMAC_SHA384 (Key => "56cac4042da649666fe7b1efd4f70f72b55435891687d728e35aee787a465be26a2bcd697a44e43eee59978e0536d39fc65d641bfcf819ac801123c8b605bfcf5a3615537d015fb6caf04dfb0e30a8d6f84537051dfcdfe33ea10d3bce73595aaf5563683dc601f88d139dddf6cbd83fd17473ef7e7c70f8a8737477c97770ac", Msg => "d292a7d9a314845d0468665d59ae01891dccaea88b59bd989eba0d903c8adba9ae40d89d540b7ece9701a38a1e794f8d45b5cbc7cbc5fa60caa7ecfaedb3b136dd376b79fc5ea7f05656eed1d5b196e4b40cde4335ef3b5e97f5ec41422dd41a46bf89f503d3a9cb29ae6dbbe41e8097501911a233a12798ebea34efa5bfee5d", Mac => "375d68bebc28b9bd0d7108bcb9cb779df000d15090ce6b188ebd3b80cab50c431929ec374c693ca4f08654ab378f3648"); Test_HMAC_SHA384 (Key => "a797132ce5971a3a9152f0e3521f9de381406a2be0c53ae189ac1da7244d23205df66eb096d28b84d80f03d3103f2c6378ff454e53d7c206dd62e59782af8e2c4ee654d5a52fd48734cf496527945e3d9c7440565871f669b9c0f5edec29ef9760b1ed227b779d4c8bdced21ffe6d87bd7e780ca59597e11060d7631cc85ee6a", Msg => "30accaec827d47ee5aa21603cf62b6c3ee29331cbb7d47e97334c5c614e437231f9cc6989dd15b78609b04a98b2299b355529f1609d76ce151458c80b59664d65fda158c212aa4a8b9de5761530062314f00c22d45a86a9246539da0655a9bab76d07f6f166f68a4ecd1d7d22ee458676698650776da8723d9c6becd2d1823ca", Mac => "3ddf47cb13e49e5cf054bbcc073636f30b05dc9ad979a017cc8401d3f1f7f83e3034c41db41942a671b3d3dd706b3619"); Test_HMAC_SHA384 (Key => "657fcef962db04bd269ae5fef2cbd5e6558d072946d235e8706394d4cd250796769a926fbaaa121b6da42cfc82808474dd672f9362756af252bd8cded78d39b9ddf4d99e24824844934fcf25d03e54df0d83cdda2563fb2be73b54b8b1c4419d429589cfc9ea0dff41a3b7c20190adee8febca47b6264e5bd8e8d4aa8552850a", Msg => "989d5d6083c85c2b09be202c60f1277b8c5e471fca623b812fd05b218d42ab8896ac177e4437fd7c784cec64e1eeac701f4e7e682899a419eb152402346cca50d0486c0df11f7194d4519448a070e68592de12d7579ee56ab9640ec27eee22ac8d97e375532ac15965f4a13e671ddea32c388dd31e18065ee1e5a0c93370bb85", Mac => "4f1283e5446483a4f8237650572c8a7694d5f8e34086e81cea1f5bcfea345e33dff699a36aabaaf95fb2e0ec6e0e3b03"); Test_HMAC_SHA384 (Key => "900f404d396f4bee526db4c9be701896a60d85bf1a203b15fb1cafc1189fd67d974a9f0497cfc2c6134bb8e109d70a4ddc59cf56f8a17050b4b1af867c5be8732f129635c6fa183e3741b64d98b2df9c8887b45bcb7fcb5e34312c13c8a0a0b6200f2cc80f17d8bd85f6b4f5b32a1ded703f3db7dce5d1a743452f50449587ae", Msg => "7eaca1335bbbc419f930bb7562b9090f50023d84f7346cec26bcdeb98e4d08e26128ba42209b9a3baec7d19ea8a704cff94e8624a870cc8ff524217da5e89afd9ae64d25a676beb1a1e39aeeb972a8d70aa0fc7d6fac6eac97554acb5be549044e6ec0a5965418c6fb0b7e2d3e22db6eac810756f2ef3a8a33d7c36c584bfc3e", Mac => "52c63558050e88a4a934d389c9d973f9901f2db74428d642a750b67d890910d7028c26dfe1e76010a9b12c95dbdbbecf"); Test_HMAC_SHA384 (Key => "3a9f2fb04c0c42b2dce178313786aa7713256c96c90ce2f2be53d5ff22bf054cdee7c1c1c795b625186f05e21fd7980d360fb5a1f5a1d30ba6feadecf965961afa060ce83f688fa76608b46cbf4375144575cb86d3637f3894d63cf5bc89eadd754537ad1c4b7640aef2ad567d91e995289fd5cdc9198b807024aaa2d1f4a99d", Msg => "dce5adde1d996c50f9b061ff8777f9b0450343475d675596272bec73eef9520df7988580bf1f95a685624e3008b117f692c21a8c35eba5165594d05d67ed6122f7dcecb2f03a3fba183efd5dda3988844884247560b75aa88e1c9bd573642652e5982c9c37523134ba2cb5ac837914016f33ab2b65353cf3dbaa93059cc66a46", Mac => "27808650572d339546aba818c11e07274bcbb7ef5b46f5a2917d7a7014e3ba58b5c162d2dc4ba6986eedc62a061b981e"); Test_HMAC_SHA384 (Key => "407cca4b390ceabcb37c48dde081d1b53ef41075ca30fffd71bc1da2c72ac02ffb3ead290b53e65834fbc382ade6447a9405a65a29ee340c3a83600fdece12776630403691bbbf9bffdc5918e83d1f480ee90030f0b29bc641d052af98caa04d699aacf9340c1e8dfc673126fb4f092894ea48828942dc336eea1a0d5ee511b8", Msg => "aea7ac414ac7b81df547ed95800cb443ae141cc731a2710cd59c10cdfc3179574abea690a1f39c3850323f6f87376a770ffe3fbc37e1bc1112028f3ddfe82cb6c96d1cacd1d7984908455638014da36486e3b2028a7c34d15f7428a029adf512937ab69ec0bbd5d98549dbf8d59486907c8a1da110bb00d325bb83ffc1c8fcf1", Mac => "a205326b6c4959d91bcf22e97ed4b447977e2a3af7e1f7db41e493521ab6a218a868365ecffdda6701ea4dee48e61bf6"); Test_HMAC_SHA384 (Key => "c8d18c4707df3ce945f3d7d58d39e73ade087abddac37978c2fd3643a2e04432c9cf8b5f7c4a9be9ec12413c658e5893c76ee2bc3a8e581b1e1d3ef241fef9e0556ee5a7a1e8a332f645b0d6e5283cd82f99392f7df0b28c51f55e983d45757c53f8c2a7dc80facb4dd44c2976cf390ffdd2a69f0bb12fd145cdbfbcfe7d5d11", Msg => "09e7dd407526d478b4f6ff64e4cb92bde8cca38bbcd9254605cd193ced0003322d119b4e6be2c635c7e3c470b194ab14fd4514a23920142c3e6a6eb9050606ebbc3b99df19b7ac55efd3c211ff18d2811002f89f42056b199fceafaff3cb0cdddded3ebb27ad6e21534d610e7660f04b4a8cb84b7e8f1256508046e75e57fb52", Mac => "cae7cf6fcabf725e2c23915795a8ec62262fb7c7cfeaa93def9079e7dcdd7bfc82eec904312a588c03ee87c43df6f702"); Test_HMAC_SHA384 (Key => "8dbb6cdc769851fbe90dce3183cd19e9cdd7893076a6fb7ee0a874d3dff20806bd32fa5a81e5245370ca99c8d5968a38fee966628781450fdbae8733f705b8347159b78ab9e71888a0d1c67916ceedef381f17588ac595d280f1204144bcc09eb318ed92a806f4437e0a9d6ed0dc0bb68361e33b07d9b16fd95a87254d7de7eb", Msg => "8dccd462fec7423d3ae5abf8649553170019058b4a8a05d6cc1c456f2fa3db685256b34e99d381518864faa4908144272896ab4420069516326fb8d1db308a5e6928f94554c15dd0d12dab6ea5f0eb55379fec6beae73667a9d04033c443e395facb0f0fd798bd0440c9241b4ceb30e955bc30ca4f35cf0f59c8455f92e7ce57", Mac => "5704dc3750e47330ad7dab4910be0cb5f7f74dbe78f5c9a19ad718e71aea72171fa2a5dbdf7cb5579beb97930177474a"); Test_HMAC_SHA384 (Key => "25fb23a07e55306e77858cce34f09edf6b49dd8a74548862a0f097cfcc54f16c3699dfad8f79c1c5515600c7527d430b9aade6d371d3a82ebd18a31d8b1d82f5ec85ee0402b549775ad79f7b7c25d9a3c164348a65aef2b9dd7550cb6bc5b7cfefc936ed0091304d3b125234db6fc8708b77b1f7786ed0cba910842093d3fac1", Msg => "97710070793d827315be46998cde98ceaa8ac00b1817d6d4d3ded806dc2afacf32553dfefd2d437d0c9c621b8189f78fcbf9fdbad57ade2d7dc188eb4892c47054e0c3f28e36fae6245531c63e1fd612e9b3969553da2fe93ea27f3daf48e156e65bbad4931f4fb74730da212967dc5dea01b421fbfe7110fdc8e5837915fa89", Mac => "13706c202ea2e52d614c90dad127e72ee959023d9ac45d1c1266c67b63810d43c44067c36c5417fe8487980b703d8809"); Test_HMAC_SHA384 (Key => "e62c2ce5ff8e3d465d344582f2dd566e0d29ddd6205184cbc614563a04f524c3cfa328c7cfb9e9c363a75edde5f056bd2f97189e5ed346a5d60a077186fd64f36d41f3805ceeb324fe9b383a17890839091e44d19c958b37fef51bbd093f39a5c5ecd4372e96651137f619bf0e0e328ba2a7aa9663fe1a2848bbdb4517226b81e18d", Msg => "7ac240b4bde64b6b514237f122dd773a6adc2f2d8304a449fa7bf28ee4cefd9b7538a914ce224e4617e6660eced889f65e879ca2f440456b8ed4a149559b3af62cb9335089a0c60083d7f1592df96b822300ddd862c34f8e5dbee0964d12bbc5c8cc4632956a9ddfbf9c3e9be8470626e0cf5c977696acfb8ec0173f743a6850", Mac => "984e2dc5dd3274865d0a658e1f6d2eb0854db75e1e02937b"); Test_HMAC_SHA384 (Key => "4bb97c7c53368716938c836519e20d6484a7e6a1bc794640e046734280b191080db7bc128d92540d93dd980d6ffa7717a2b1a2e29519e6de8abcb976d2f61392409e7f61dfe87155e08ada6fd61efabc26c87520b818aa52f3324028e92c0115ceb7ecf0af0285f660db7013b7183e5df73587e18f3e39a305ef2fe02d1b06969e4a", Msg => "4fe1a8510ab36b97c613d309b5b7ccb243b328e7029d3a88e3efa082acac6098a647376496c02d98ef106d8a46c754f006f4c8e76545cb3b976f4fe241d04cc9305311d44b95d820c6469c8b99d12f76313f87c965585838ab0ce9c58c12208655cfdea9107993b5b27c0912961d84cc2a5d0d94e9200b08898e133475ba0158", Mac => "f2722378f02bf8d104b3b50c77d132fa35ac86e4da34f1c8"); Test_HMAC_SHA384 (Key => "9f0f91c95ba3c5a4a867b84e5f61a81e4cbf60c433c65cda100c2ebca3e7209a2c251bcb74fdc7640c46f40ad9e73904d18fda94ffa6ef88cd83c30c82df7bc20a89f815f65cfecac36f95d75f8baf79e9e20c81b8fd5beea0f7a2c170e9df0dbfa5f04ee9a7b0fb5448635ff83554a41e20bc3167b5e63611d0918476ed96a3d5e0", Msg => "a24f0a863531d225b7cfc907fc7d87b47ea06b61acb68d158496f40a63f80a561c374cca4856461bde42bf3f0456311a24247c5a4173daa08c8416e0329af90a79b806ea0bad674d914e26658403a06e408537925be5480a34d15d87cf13a3d0e05a9eac253d1b02f97d663f278abef8fc4906d1a015bd9da60430c6e16beeef", Mac => "fe1f2c8f6af31f96dbef868d461631a7d159d47f6d081eb8"); Test_HMAC_SHA384 (Key => "560d76c1bdde2e56ff54567df6713e4e243c1a42f7fe62fd4bb1786a31b68c0defc6bd95482b80b1fd30462593d6591d57c807c1a0910309540d08d3ad1dbf333d9fe30a309ea3dad2c548d8511a1743c3e979f56afd59383716ceda8e98fa8449813247ff9d5e7886fda3beb6a540697085b605dfab2c2ffeb611a85b8e03a81a52", Msg => "5a62ff7ac98a6bd1324596741a5554b7193f1eff8e3965ca914926ef29acbf26bf7501cad37686deee63444fd83563780acd4ceb66da036f26fcb645132a96b0f751e5b4543d501d56bd80c30702ec0dc249f1b4eaba24c9db8fe7fa21783a11e93ed4bdb4a77395539b705a0f84967c28fb34e081a071e19949e095bd605451", Mac => "5030272dedd382ba3dc06d2eeab9e163a325ed293bd6ea3d"); Test_HMAC_SHA384 (Key => "58ab9d7a7d912959917c3416046bce4d8c8c81341a5de1da0c1165b1a435754bb993c461ac57e0199e700888e0393d76ab599b6212e8eac634d3719db6810a2171b67cd967b804d3fcb1352f635503dd56c41aa60ab2747162c52abf633e8a79e8dc6beb96fdbd101307641073064707f397a308ea04a662fcb0392191b61dd885cd", Msg => "f83e9f155362ccfd8d228911abf7b5c71d29cfb1fbfa5a528e20863012790c2abafb5a0cf5eaf061f04d0a895ca27f0b71d1e92c335f06c0f4e45e401abf261d22086554e5c655431a620cba1d5c5b56ef3df70a7dcdd6ff2585dc9e7647b7eb374d0814ab60c349144ad8cf768d13509d55407661ac94b829ed4873ae7b873c", Mac => "2090dadd774fe71fd9617b2595309e1a024694d295bab147"); Test_HMAC_SHA384 (Key => "26bb5e3c7ca428929e0db5d1731c28df597f038500f499197f0fc75aa138df9b80f3e5245664fed58f12250c23eb20c92288b21091b3138f74269d812c96c8d203f0588406e3d551139e3c9232dbf45f281c03f84a348263900a4e57ea9a0159d73c21253329974f503b622a49f48ce993c25d04d581d0defa4243a4844b7278235f", Msg => "49a46c7b476b17bef5395f08ec18bb496a188ab2ed944a1a01b60aa1563d2293157e218f74a907e8894eb54b5b20a1a23ff8ce39621dfc1fa2c21cd0a2d006101de66e1a7a9e14faa1133c380ea05eb623ea1edbc3207ef11c8153ccc41ff6ad08e33b6681d2a7bee88edd162a205a4dbff462e238253a5818fc98dfe5b35830", Mac => "8d93d5f35311234c1ed500a0baf3a64cbbd20608015ff59a"); Test_HMAC_SHA384 (Key => "1a4e62c8a51715ca8cd3c745ac05bff02a48fe5f9fe37d32799eb58d9ed464c852ca8f675a3fc34c6144a12b9c4e9a3faa8af63bbe701b84ff9b0c9d2fd830e28b7d557af3fcf4874bb7b69f2116388090d70bff64a600427eeea22f7bee0324900fbce9b8752fe312d40f8a8485231da5d94694daadb3d6bf3e7f2cc83f67f52829", Msg => "4715c0ef816030e7fdf591a65e40ac9dd9eb95673101380ae5543579a81cee5d11e0dd14949a2cfab1167fe86b9b15fbfccd0f97c7d20fab8eb40536e506460ae6cbdfd02793284ce9e79ce292e7e7595e3241e05106fb4e70a957ae30079dfb2f9c6b2822944d630e318d9bbc6e4d4067e2d24ab7e6237cf3fad3ea72651bb9", Mac => "965b9108e15614b899c23af2712058eed518965019ed8ae2"); Test_HMAC_SHA384 (Key => "c20eedfbffd65f8ed00a0ed925a994627d0a76e5b4669ff61c970de8d01fcbee456c1f80225b040052fada9e57925d79e1e5d4069fb48ab6558482d32fa267ab5565c2f1bfb370604bc652a10c30466fe51d56f957d930889892d661e55e97ed18803e177de789f6e2f7ddaced8c378eb33c668585dd78b30d47725a9b5b44fab945", Msg => "ca72a059551913018f1082fffcd93014a277ec636b3894e1cad3dc07a1b24cca639188cc7648d4d4dbe5d77c10fe9f293546e6406f5d94978aed852ae2f28b108359b7ad8fcdd428e0ce351fef03b19af4d1eb3e4f2cd7c427ad79a951e5f02673f2b462694f1ce7e7f12352608f6b4f274182c5d54c654eea3c42eab73482f4", Mac => "29d3481d3a4ffc24f5b832cdfe7140058d8488aca2011aaf"); Test_HMAC_SHA384 (Key => "4f52b7f2ef19a88156ea68ea5f4053a9e893cf18342bd4e28e35abb92f17f54c6201f073e6c4f6ad94e846cd41f807f0e6218ab2fffcd0a230a74cf32e1ae974ddb84fc2b62562bb6c580c37cff13df3f0cc30ce86d6ef38901f19e73c31e3cb08a15d4527e3f79426624390cfd0fc9a4ebb48d392623a8cf6c69bfe2104ea3b2ae1", Msg => "03785732aad68bf0a688c39dd97a8ca6d48a9cf99a3db45ca6b0cb0430d26863add1504195d2610e68e5be77f3382c37d08bbc302ce3abbacc83863b521891f8bd346a2a30fdea55f4274cd5bf1f91b9378922d5b2edb81340ad790aeb3b64d23d88ee1603c0ed6a5134b6dfc69882d5116e1711b4c2a4100818ec9a82a3a69a", Mac => "fa89fad64a287027aa65c4389641c7d413566e92fee79be9"); Test_HMAC_SHA384 (Key => "39e6d49c3d5d23d2746d15d616bebf3cf720c6e6012a71cae22002f5021a47d0b8636ca3bd201357e132a680fc5dec9b28a9db932d08ae8b3d3a37d7e2ee754b342a69b94fec26b50412289bcf77e6d4095faa545f15a16783d22eae21e18464150174e6db0b837347d440307655d56f0409db307f9773e81cb19282a93c9ca4c3b1", Msg => "5d20020a5dd409c7e5344065871e57e01c91a443501dc8bf619890fe231319b5480c3879dee618d319962596539e2970513fb5c0c8eac3a71ff99962779cf1d7e916566d0e29d121c5cec5d7302a18ed00be9316f3de8c669a64c2a960a588f9c8a42690f6867cda7146e8ce27aa6a7fb27606eed9df6a235a42d17ce7162744", Mac => "eba38453b3a787ede274e9400435b1a11b4a751bdecd3b22"); Test_HMAC_SHA384 (Key => "732b4a0b9be5c5e08cfdf90afe1c800a7a77486c6b9841aa7861584d114ea95548faf0dbe3e541f5af74fada1739f546f4750220a7db945b6697ba1ad38f5117d3e979459dcd45b4116cb7b54c41eb4079969292e94ba21a67d34c96c57f2f7abbffcb91f22638e65bed17e5c5bbcabeafe3e00a5a6ed3b1231cf60b10a5a945a944", Msg => "08ba7f516b9cfac0c0f625d111b8031106f91b77098ec09aa9db96203ce9527ac9b9c1cf25d80c355b343a27512ef634a9f093f4e6014d40d016d2a2192c010b40d3f1c4b6cd35a740d75e8f9cc7c20d67d77c5d3e41b498240c212a2325cb8736b1161a67a2fc7e35889af138aaee060856df9a5a757d086c628ba1a4fd3b56", Mac => "2bbb7e600e9ad59bd4dd2b47714309ed53f0f55e1741ea8c"); Test_HMAC_SHA384 (Key => "a36eed3e91b717f21d56aa25036a5e7ddd74bb3296002fcd21885e306b95b9d78e27525d4757ee42aa3b5ceb140a06ea6280c6806084fb608409dbb6dd320b6846b96d9cdf91397abeca4f33e1b6cb42674adaf200c6cd20a3996c427f7e8da833ece50241ad1d23c0cc280452b5d50c5698a08e5f0ece94e4ffb9db39c3681ebd87", Msg => "fdab2a03a7a1b55fe050da9d5f661f7df63c07c3685b89dd7c40c1c54f5ce629ee5f7cca24b6ca2291528f49fcacf119eb06b69170f3b677451990411b369d36306122d12093ca66fd655307a11b87a943e26e834956c2b75d47a334c3bd8cdbea3986e1413e9b744b108ea1f6bcc975295897629c8c93e5ec526166eff99b60", Mac => "4b5571d4f15c3896ac39caed4d7aed73fa6ba7fe84afa961"); Test_HMAC_SHA384 (Key => "eebb4ed3f628aefddf7ad08a9679aca962dd6de66bbd17447c4a6d8c08bd12e46b8eeea373e7d3641f58615aa6cc27e3bbbc0a5f10a2eb4219b1846812c393a943933bae832ca702fba1f06c2cff417d348039654c01900b96b6fe5c161d58e2fd30fd992edf70fffbbd466b2ffa439f5291c0a028c24fc67bc3a20f1ab3a9b822cf", Msg => "f186cc9a3877e2de21e274f0cf6a67b5e72f2b6df5a33d2e0b99f191ab9f6eabe68efa3fc65f7831ea402e3e70e7cceb1827aabba5c152a5877c3ec5b878e352e4bfeed0cc1dcd87ec3271335bc552fdf45bb4aab3082913618658d57484fc49314030b71358e9c670dec4375aaa02d3c4f4d0a2e522cc5ee2dec627a76cc378", Mac => "95a4986acb7cda7e95775adf7ed7388e0c7b54bef073e5f3"); Test_HMAC_SHA384 (Key => "350ed4bcc51bb92c5fcc6435688ae8ae2afc9f9c657eca4b06cf799e3609aba396d7b56ac9e2e818348c6e3701e175506aca90bc348459b779515cb6ab6e30fbd644e76625e2a98ea8ab9b10544c05274cf2b57d5fb99e41d167c57a5e5a5e9b7cbf3157e10543b64591b36969b4e25b58dad688ec04e11295787d9156b67bab10af", Msg => "4433ee59b964f1cd20212245d5e95162c6837a3b78f1ecf84ba0aa9dfee11223759dbccdba43a5b943068db673469d55624b4d43e13985d5b94002e53414fcdddf9d06118def35529f7c84bf838877df7bdeffeda0c29e732626cb1be12198c1089c92cc3a4fe9bfbeecd10b0f99272898a458e3bc727ffa19b9cde60eef2ef8", Mac => "b53f7ae9e9c677897739b85a8188d35c6db029703b6b5153"); Test_HMAC_SHA384 (Key => "7464290c01b494fdd96cecb8a07110f04dadd5758010fb5815d46050f906745c3c42edaa68bebcb812893fb9ae15b83aa8f4fe05b0df724555fc35ecd561985233d4d41e8bd4fc6aa3de2f22c2e912adc5337dd06f3f75cf011e5bd50aef629581a2473211013c5cb4f025bd83f30693cdf2bc9e6639ec3c41c33ad341b8bb6f4d34", Msg => "25dd3a089ae04bc7cc3e97eb85e6647847a45c3a3e45280974fb414c440303bc1184046b38bba3044255e4545f1c7b0910d626ba236a4028e44594c492fc6f711033f98addbdc4274605a69cdaacc4431f73f07c835c35f1950caf1f7574a01289b0c16f722fd6b83f1585cce0dd68addd43618648612eedf0183d65d7b1c127", Mac => "e0f9223c3fb6ddbf6da7e51b5d7ce9368cab016c4cb34a9b"); Test_HMAC_SHA384 (Key => "f3ac4422cc724378100d7515ddfbf3fe340002b7976c43acd69c2acf26c3b18173eb4eb6f73622540c6a73dd3eac5c4ea58cc34772428c6bc7370c0accc8c1feff4640d2cb416e2a5d06f35eb366ec69f5b9e0020923f6086216652318182ba93ec702be701a90c0abe9dee261b00b16cd9042318596e9494e401b62333d594ad975", Msg => "04a3c1e89eebe7b99ed3bcdaa3cafed8956ee8da93acbfde2d29a845d4e1bc928e0f5e6fef4cccf144faf51c11e38baabe1e58088d33d5a2cf7ef96058d94f7030754b478b09dee2fb2f4852e50a2e77322dec0c46b82ce336c4b87235028c8f509e30785c6a44162c385c8307870fc958634beda886eb2ccac38c8455a59c76", Mac => "07f73d066eee1780fe9488ca2f024ed56600920f6e0c728640d1f6b53b24002c"); Test_HMAC_SHA384 (Key => "6f67acc56e8929e491df252d3c8d497a6fe7a662f6d691bbdf7db15d311c5629db340c4aebec71bb00b343090227bd5b103524afba829d66710a41033b087330ac15710211932a7dee4c505bab57ad098a3cbaf3dc576e01758254615deee088c85203734848fd3342f373a89fe6c18dc34191b4c31dad93d22b1100fd9745391933", Msg => "4f34c874a909e1a3ec1869236116995baaafba7b02bc8b54c6bce76e3582a354742bb633d4539ca35889fcc572ff888e0e862462d1ba4be5a37aaf0e6b9c207d19deaf0eea1f13aee7cf4c6db0a486d5778e3f7a4feeacd3a703594811a4118c4935fd2d72d40f6aa2d3a244a16b5ad8eeae52eb03be76c7da3d2d46b0043c2c", Mac => "0cd3c2f7ae6353ec7d70ce932f3980cbafb77159b2fb7a5c85a1cbc3a566ba86"); Test_HMAC_SHA384 (Key => "6d82e6fb6ac5ad3b3121ca955176ec0c91ffb3d1358416117cd102126d68437ed373a8ff87fc620bed60ae02c101b476143caec9919b4cfe054b57c91fd096e874f7eeb6c50cccfe854ec80d96a0820b5481d08bd43e1c606d6607b2787f525255f7ff4baf5eb3ba00d25fdf57ba1f7359b7633c85d74ce0bd0c59f702dd4263805c", Msg => "95be84de7f82fb79f493b3c7e378300f094836d76558dca8ec16e2117f3544ee1a0b0feb4e377443f1861bce1418ba3a35bee598b6a7281b8e3c531d3f481563085ccca25b729c4291d0be61dd2f1b1b7e1d1a0939a0b607071cd33b0b76d253c67a630d8e7a9afd3c38468b26077e3b4d2c7c31d78aaff4bf7f0b72cb09a444", Mac => "6ce9ac951ad8b75b3c76fc7e82b498258a58544cb4ee50bd5c96138f37b1fc33"); Test_HMAC_SHA384 (Key => "54e6051ab2d16e9654e96a1d91fd16a49c3c7377a0fa1a200fb12b8a37468766168e3fce6f114c281d0e804ea8bfbcec16dd642903671089f4a08411e957e3ad316a1fd0828db45a494896be3f3f67643db6ee4c5154c5f51127517d2fe9f7094e828d6714cd0ff2819f94b67f0680d5bacefa2ab14aa12b0e517a1432862d4215dc", Msg => "6250c2a87119c8b62794baf18496af65722d0b349d25f53984d10cead1085583e56d7861b8f32dabe0a1f138ef93fdad024278e69705ec989fd7f734d55a430e4d1cb7be5019efc66782ea76b6bd030d8bad2321373334411df5d9d8085e5c54c2e6e888e293f84fe5bf0f73801daacd35f772ad25b9b77c25b31a9f131b899f", Mac => "9ca65056dd811103ff8b38efc557d9759e0b7ee19c7ed557aebf3b6fa9a438df"); Test_HMAC_SHA384 (Key => "13ba5f52beddcbce4a797694eb05caf10463ee0490b8482ac07c41bae5cd48f391091932f99b3f689e15d7cc2d8098cda3ef104bb45b30066eaa0b571a11db1e639c45fbba0bdec1f8e0ed2745b673c139d4682f42024895469cce4b89e4ffd5d09c6b15c7d5b0bfa0023f0efd5063b5103a7f19005797bd8f7711fdfbefbd002131", Msg => "7f471a900ee49f2cfa1d3eb37c951d810c349364d4cc3b5b64fc479da75517dd16bc0bcd2b0f95e1190c9255ba6eda71c958150c51f7d14f6564d2bb12c7a96d92c289a1c20d5576d75dfdf14c8b0b431ef2794f3c19c667399249564521c4a45b213c15bc2408739bda298d1a34d98075c866357d78412b494e527728ab8f09", Mac => "a7d699dc5cd3405ff692db8a910db64e2e2504f6a3da92a65830a748bd89c2fd"); Test_HMAC_SHA384 (Key => "c8608386aa689fd9fadc56b98ccec4e2fdfa050cf3fa9dbfa6b91769a02aedaec13aa8ff8503486e8a42e6c04c0b98c433bb95e4d12f9afa64338c65a33d5e5bb75c3580876bcab8388a103af4cf18e7eb3831d998e4533e4683be67d20cde1cb2ae72333608ed610e9c1c4f0d810af02d592113d28391345392f698b6fd3599bb17", Msg => "267aa69989d062695016065f0282791ccf578a7f231e27107b33cf9f78844928319697facec9261853dc47e0b9b3e3ea435869330f410c7becd12ceb6b2011fb39ffdf93ab37c6709b127aca731de334872b15c3a89d8272f5e16ec5f539a4ade3be68ac49a4ac39d1bf87665746e2c042d8757715bcf2bf416d7f753e566a06", Mac => "bc0c2deda203839165de872fc54df9300e31957e115483a57c0d370f3404213b"); Test_HMAC_SHA384 (Key => "783f153f2dcf9a582c3776ca094984112081a2a4d93813ce2b1b22b95fdc08cc172710368ed8f9cb216b9c100fb3cf917dcf887bbd5b4666cfe3ac73289d6f97b357733616ae31f436815cc8fda5c4525bda7a6e8afe35099781f4331e19e57655b786664bb90a7a7261fe1a5c862cf9c289c0a5ca8ba95d89dd4222c7b83210032f", Msg => "5495d82b4e44351ab1cec03a485e4a2d00c2ba49a81cf7ebf5db090dc9ea7b1bb4270303bc17658c59d894e8c4571a8c71c3bb3fda4155717fe10bcf2bd0a21478d02b2295e6e351475257072ec4cc894acddd10be946620d3caa1153fe08fffa8779aaf64187812832552be0f0f26cb92ca6ae4d97ef29df88013078e800983", Mac => "9deb737429c7b52b6a51489022a77bf3bafe73876d38c45b749cc65a725ef577"); Test_HMAC_SHA384 (Key => "dcf32810f1efc1db0e5f6555ae9c954b729518bd74ceedf7d9a984fda5e52e2cd364d11fa631e0d03ac18aff5e7932d8a67120d0bb7876d0f65865952d5ba057cd0d11a82944cca0125e4137a8cab5f26fcaf3c2a6763e29d4058b9ea348ed33f177517525306b93bfbdf0c3349606e2f826f95adcd22f499a385ee0aeb4fc096829", Msg => "f2c0a5bc165710222a9053d9c9a193fcf69487f7be553a3c190a0c3712a2fa8327b1205ef37b7c5a0a4ef55625169cad7f2b31ad7e6de94b96936e146bc028673557bbe26911d11a964d198f8ca790dfc4cbff39fc8cc4152230d622730e0480e45c7d30c14295c99432c66c487cf5f98e1df78380d8540284894b4874b51637", Mac => "17c459163a9d421bf7dfd4bb1577fb856760f789039ac84859df13526d84c55a"); Test_HMAC_SHA384 (Key => "8b7cec45eec9e4000eaf9ed1e496f1fd2d93b0e1638c3636eb9d429390bb063330977af9b5c5f6b1471e0099c1636320612381edc3dee923106a2ce47396ed14cc0e385fa97e157d72fa5cb4e39eca9fbf71552fc38fbdefd988648c8f035f94c7a7cd7eb03b67ebf50b592b348e5103b147d5ad4ce9d921b0be9193ce49843d8a2b", Msg => "24c631edf1b1bca7ed767d72a73c9144485494996cbf141830f046738cd2f88fe40dc7e5d986922865242f2727da5cf6fbe2f848ce467320b1a583a92b341861d403937d1f82328a7843cf508f01cbfbf3e2457de2f98f2e600fe2b586a3502c1d2ffb7f6bad85154d5ac7b386bac69d57dce2fe50df518965b5cc6144278836", Mac => "a26e75b00f59658aaea24d3b0f283e280e820afbdab1f255e00cbc8a284648c0"); Test_HMAC_SHA384 (Key => "332d0227fd1f7a1282f8f5d5df338d7218958570ac6d7e3a6c1beec28ccfcf69fb939423f08c61d6c67c7b04098cfeaad149ce684eeccfe1a5de5965fa7be6cece170ea78c3eb6945e4084ed45ed96ad699e738bae75416687e539e60f74596156bf58fbf8bfdf12f54cf6d9bcdfbd42899c5c22f1903c90bc37788df2418eeb3895", Msg => "e8bdd28c63fd43e497ee0aff3296e63384173ed4e084ada746f3be9940d3f4b10a800e44f51588680d8265aafade2c0424fe31091b46156335bf907f796a6e87bbd4d89109ebd516461011a5156ddcd8f9897588ba19893d0a1af7e8681cd6d545e1b9db652631d689c194574becfd9949e194b785a7101d0c2b7a3cd6923383", Mac => "e5437da742ffcc8fdd58dc08b68d23d766be75c3ff93a21d98b048b6d116a70f"); Test_HMAC_SHA384 (Key => "e199ddb8612936d2e46b4e301a1e772b0312d5a903e713f9381754fe0b376d900579511fe576cc99ef2a758e8640de93fd900de4abe7304d3d068c4a50edb76d405907003a8b4aec994bb7d96f2d259761137bbcb9f3688fb6da5425263196ca3740e7a38bf016918ad5fe57fc6bb600d7a0077b559323894a9c93d9b58c72709536", Msg => "10af1c219f304fb2b6cf06124a3e7d9c16d8f3aae1d9096303ca6cd42640b3434ac68bbf0c1811fc27927f5e3be70b54cd160ce78f9a5f93e2e109559a001d0501a5e1e61e4d2c7c37b7129d9498c3cb8690b1c1a85df14c654fe45cbafb165b3d3466bd5f3768d9ee2607f7deb86faa482e2a60b389883793fa45120f9a66ed", Mac => "7395adbb0c4efa1e2bcdbfc55407ecc628a78e36a32085bc897f28a9d8e61e03"); Test_HMAC_SHA384 (Key => "c3d9b6761ea20f88ce1662c1cf561c699022c96f9af1d71673409debc22a9cfab33904419d7c7a65e3d918a418a5b50b667267e930284783f658740979cc5bc9206335a39b1cd0bdc6709378d0e5bda29ce0eded67bae79fac17958c44734c41d2fe51835eaa9cf84082db23403dba96fb13626289cf3fd35c26075a6b47f8cb90b3", Msg => "d7859c229eb0d77abb3015c9fa2d2c959981e0ab076dbf6ceb8a49686802542e9fffaf617664060f98bc053fbe6fc0c92c3c536b7ee3c518a42233932ce32a3dbfb4542cef77577c305bfaea230b8a9e1b257c49daed53709b43c40856d218423f8bd3a88f52936988f63af1b3674fbd6d23a26ea1f22f1cd7d345ec6e36e8e5", Mac => "bffb2babaafc27251a4451f262dd3cdd8d9d79b9a6fb3ca613b3ab6da1ac719b"); Test_HMAC_SHA384 (Key => "c1ca87f626ca3716770d0fec1aee4ecaf2558afee02f51eb891b115f5a663520ca3a91c8df1200d3f4714bf7b9d44db47be5552ba6f1cc33889c18aa57d4bf097603d03bf4897fb056690fad9642f5e66b823a4ecbd6212eaee50a74163d964e4c8d0cf86c16fbd3235c21b6b8218c884993ff0f58c59703865cae679d8b0019d441", Msg => "182cd2ae62596fad1c4695ad0af75253c9e73aaebe3700784c0b47984a32b5ecb4054946a091efb474f852055714f288e55e7617270e4354c2844d336ee72db9aa0c7503af994089a26a0da40d33cd4e90673a29d4596bc4c1a2a519f1c2755a640afbed75b989b50c656d93169c0a2c32cc2eedad609f4db12cf752b90bb257", Mac => "8abd962b73c97b9566d08fa5c96a51c7c53843ebd12069d0066075e0980d17ce"); Test_HMAC_SHA384 (Key => "455b64da72b1100896812d4b3d78c162bde6efb7691fc7e20921636f87772fe1eb5d88f68924892d79d8218648216989ed673589ff39ea2a25f08f21cd8f263b21ee3ca13618bf5a87f11011a31c5919221b21aeddb81d7e5fa44968965f3883ce57a862e1545a96a7132175b431381a434cd8ad6d640ae59f87bbca4aad0ec0dce1", Msg => "e7f20812443092e998e1b61788e95d2c70ffeb49faf97587f04a2f964ec923a59cb429827af413037da228a439cbd4719f709d278ad1599694ec9e492e407b69f0d665df2d8274b9cb67d0cf51b966a642c7df94aa38d225f69438be080721808b62a66f84631fd42a3696e0f83b7b91000a98da82b548febd4de43d05a77fb2", Mac => "54ef0088c120d11add7ebefb1dffdbb6ad31ef6556215a1625c641e91955ba51"); Test_HMAC_SHA384 (Key => "e402c12a30cca01deb1f5826828bc8f4f5d72d2776464fb5321af88d6f57aa7bd7c9914c1348b7329c3b776ace5b341b3fba4b824e03454cff0352430668f32d21c9f6f1abe7a7fc6f3345e3ba90b34ab4597004efa6c97c41cb4d53cf22824a6b0bd6632030d8430a0ea8db6bb1ac47fcbe85f681b7420ca07bd304f30cc09a5c95", Msg => "9b8bb10d82b6d109bacb9cc75d8c9e39e696cb0d963907281787ec5060abc728d87de362be530b30c8194afb0aa4f5581a43eb3872971c5e15a54817762a0925952e14fc6bdcbc318891b82ffb33252c72c4cf5ba237ac63e982a91132f4a9491ac9cb4351fcecf4425c6ec9f6e2379b3542fce0efc0bf1edb4596a65eb2af7e", Mac => "c4ce885753645790fab556c3e1ddacaccdde386ab7bc39283d4c84d3798df5b8"); Test_HMAC_SHA384 (Key => "e486316b3ac5ec100f43c0eabdbc0a32b3b9bb6580580a332d4f6698d02faf495ee6a551c188a1fc2a4f83f4a9e0ebaafbcfacf7a3667d043ca2f2670d7fab8ede75cc610a43ac23d6ebd29901fe1d6f9c1942d71cb07c73ae0a7e75ca8dad050b3c8ce33e7e774db9219523ee9e08493f9f664d14be6d492b90f20b30e21b748e42", Msg => "7a04f851d50cd135256ef044ed740ab59e964565b040edbef0d568de1cf36cf5adf96feff4c65f5468c4946c3f2603a63b6db43ac731760e421ed1d79b3d3c801e7490cf8d51bd467303bb47b5a9c47c6ad0c176ec3602942fd43127521c89d374804339c93351d2ed334f1e7887b7ffd2c5545f49d8f919600072176a1abbb8", Mac => "24ed011518825f9d39d06a2523271521dc7949d154d6cb378be20ecc2281b2ceacd349a61a2806b2"); Test_HMAC_SHA384 (Key => "0ac01a0605adf7c608264ebd667c38790e36363ebd6b0d937270d40023b44b17aee76eb112624a7adfc310b0ebd7682747be0791714984fccba7679c4c4184cb76e2874e881bcfdaf4e680d61389d36318bdb19a4310811457883eb04d89cc904af88c65cfa12eed2fd6c6ba47592234697d5be19987abe4fc5a7ec48d54cc6f1273", Msg => "ff5611cc449662ecf2a04287a828ec0400ee6c4b15364ad84278680d2c582dcd02d8e34603cd5e0e4190df72a5f5380b3481309290d728f4c274ffa9369c344207944a427e12712fd5f262e9402a8b3a2e006cadcb7b41a4ca17e1a563bce6f597f10e68bb4ee177342f949380b02eb976d5e947ce08db0ee3c9d5a8b8a18c0b", Mac => "b96936dac473277b4f7f632730dd16a8fbba0de0acc0213cc44efe4af6f381af6c0fe5be563e7072"); Test_HMAC_SHA384 (Key => "c08eb5bbaa85ea0b2de93ae86fd6a26afd30c1c112db3d12172f638266a60d9053d8c9a76daa37f301c2b375e03e345262a57471ab1d52442ddf74e66ee930670cf2ad64fea345da1c042e3be2355ac2715e9b04d6e80bc98feeab194bee4a9af2c5a919e5dadc668799f365fc23da6231437ea51ca5314645425043851f23d00d37", Msg => "66db82e65ff854365c79a601fecd3cc75318bc674dd5c0e673c02a6cd7f3b88f484fd8d4c81dbd7341f5b25b73dfae7631b9292ecdd92f30d1f3b370ef3c256d3bcf47b698503cad70d0e18ba9f161a4d44b04eda70e48bbade833cd3c29e78da8257793b6d9f96b53d2dd98864b7dd8a496f4aac3bd340e7068538ca5012677", Mac => "a6b6958979e726d66ed908188648e77b0b35b76011800199e40eeddd0d44f28a981aea8d2c335852"); Test_HMAC_SHA384 (Key => "b8fd9f9a77243dc528bac1a968794afedefb594cc02e7a01980227c14864e9fd4b70c0c73fe2c5e4a0ce0e23d792d2ee7308cd1fb600e61553ed100676de6e9605b0baa92582e776016a05dec76666fbf296fffbcfa8102f3a93085fa988a3616d2555e934edeba3d1f5707f40df4d4de40cb589140e4078d65cd674ea4acf830b38", Msg => "0ea8885268bb33e52d2ae60a4398c81c28db6c302a5aa59ed6b99cbdb2b91fed2f593cdbd9420f00d161d86b7dd650c17e0d3e82e22a458d9bab00e7304851b8b31ef596f30d5c06f25fb8409aaa5533abf728c9f823aa6cd386e7c9c6d3d1d4843fdb0c1ee6c3007a6aaf1202dd7c7b99e1538fd30d7d42659378ecda204a49", Mac => "97ea6505694b21ee748dc9eefbc753161812642b6574b9a66301a4d54e0ea090a2c1a487c244b7af"); Test_HMAC_SHA384 (Key => "a32c359a9fe350c9cf5efbb393d0afba534c432cb92abcc51dac667541e224643fca0434bfbc16866d057fbfabd3c90c82517da3df12f44cfcb36a201cbc54917bc8f3ab85e62a9a463e8d6b22f8ba17c659ecbd5e2fcd2f08708cb0891e30fc406d2c895828330d41514d4060082be305adb7019e49f0752b2af5acf2ce5fac7403", Msg => "3215f9112d9e2d511dfad07ba78bd5876fb3209e8a8295dc35917554c72dea54e4b8e0ebf44d17a9d3a376a6ca34a3c5bf9ed03aa849d84a464a8a520f87440b6c1cc50c24fe3c9118dea47a32515497982dd2222536e98d19fafb7f0ff9981930094e7da7f9c39154750200c5291382622ace5ee791f02d18696fe0b0cb0b04", Mac => "540ad3fa372fddece3b61e3e0d7d9531c92a4418327dc0b152be8eeb38bfc92b2166bb10b243f8a3"); Test_HMAC_SHA384 (Key => "ce499f38ce5b7da7a4b0349faa0e07a26f9b12ad07e43b60a624665e6ec4e8f7841e3e0569860013888b10c50b7a1774f324321868e1e86b4dd5604b1872d060e13e3900b8d7524f3c34c1ab6a2d9147b23ee1155088d9ead918e3dd146c17f00c33f6f263555ca3e933b01a6d305e64d470876e68e0f724727657db0abaa3ec2e85", Msg => "9e3d2da55720996355c025b8acf42140dd47b70ffa922ce80bd163afaf2fa321076399c3cf3fa118ce86411771fff6dcb3c7349e3feba8e1d936c0edfa486d7ebae828bdf39c336fa476216d93309854377c567dd4957230e81ae414c61c48ea8176df7b0b5cd7cf9e37cca05bb08e0e320b259501b7123b0023d80e5cd3bbcd", Mac => "435b5499b7f3e8e347d1d087134441b3b56fca7feb80befbf6476d1657fcde324991d526b5b4ddde"); Test_HMAC_SHA384 (Key => "c5ff2dfdb19d7022bd4263e6dde7a8b3ddf3a0b93dbadd933e43d6283d4edfd0409558b9cf53248805035d43e66a456ef3d78074fcaa81493613434e8d1c39753bea87a59a3f7260364415a32786560d9e3e1944bdd5b495aca7a2dae9087ba1df84238abb6b42f17b8ef5cd4743c4d805afd3f128445cbec8885c95f8188d9d54ed", Msg => "43ba51cefe257a4fc630774174db94d14fe6e0df8a44d60d0ecd3d167a334d62683713d7f31c17f1765c3b15959be62282d9624a79eb83208d2c8af1a7704858cc39870d9e2ea5fe26c882a1d04f9d88b705793623a1463150febd5872154c77f529731909416e9d5edb148c2cdfff2a77d2ed4b914c6668e0ac9ff2e10a9fe6", Mac => "319a7bc1867beaee22b2f8f2b6ec132247d2b81020fee310816049816c34c717f651267cd9070cee"); Test_HMAC_SHA384 (Key => "34972b6645a47e3d87c5a568693c2c4f7de0dea57f12e4f892f33186ccd51d53f5ef4f788c54e1be0b26bf6b6d06505cecd059540f851e94e489caac8a0f1090f3d113eee80483bf4e8b091da76be654dc7fd73b396d3bc5b9d877d384d79a4cb6a63d70629cae69d75d4d232151355ed3551f0204b084b2984802a3c11601afc4d7", Msg => "0e072f73a09fc1ede5f39444b25b302ef1e6fad4399f6034a20e57c3d70107576c8cc445724e41c649f600a0b6060d0235d7ecaf91ddd05eb12d0e61b53cd08642ea0e3b19bfbaf5ef743bd279b51d7dc6250752d1a3edc257cc86f9e6c001bf3729f49cbd7a95407e752c2122f0c86649d8310422761f273af1a9d3911500cb", Mac => "3896072563c0c2865483af821f0546fb21cc1604eff53bc81b77cc975ccc53e3a696be832660b324"); Test_HMAC_SHA384 (Key => "b7622c1d4bea038b6b8d5331f7bb992ae59b34ec2e5a6932e8c4aa3aaf1118314a0146ec8c2b40d87791cc34a879ef7def78b32a3dd0289ac3fca94b5888604c1b260df55aff02d5b34772ec7914ec1a5a7023d83eacf02671f89ac4053154a572fa07a1800e526a67d5d0c1343599ea6eaa0b5dfa99cabe3ce1050f7fb4fb2597a5", Msg => "9c359eb6a7991e6f11dc19764e6cd05eb51a61158ed986c36cc27ff5bd5c4dfb9f1b218ef52614b7ba5d18ec969b2f7baf38db2cc2d3d521724e0102e019a2577bb4cb351a6f161d48759721de081348d80e6e3461cd630230f3787217d93048d90882f23dfd8a6a60297f5e4f3ce58fd5a30377924f982e4db9ca8e8c235f96", Mac => "5d7af8c97f7d6550b5d4f3dfbec8c50a43e583f762631f3020d9a9c9c0d6f3a152af83eac5353860"); Test_HMAC_SHA384 (Key => "b35dcf54a3cc008dddb7bd1c1b764f388c12e95c90fd899abc011f322577f163dbb93e81b3da21484a94b97046818781df8e17e99faee34c65cb741bb002ca681a0ffef92306269b304579b8d4a6b42c4df9bc5552b184690cdd310d625a7c23794758e37bbad52d98b1451d4b4c9de1df391ec7316f349ab71f9e2fc1e7cf3bff4a", Msg => "870f1b7e6c4dde00cad1bc6ac28603a2341db17d33b08983b7a566f292d6d006a6eecd785416f94438d2d9b013256d8a08fc04b10cca54d7986fca84a05e1f5ec9ff2ca9d752ff0a64d62e90d8a96bf495f0592072799fef6b9f3a34976e17fd5a08e119db4718d7b8a46311f958276943c158d34e068f5499fe5d095d4ee06a", Mac => "938bba0d6845a29865e47b56b965b2bc52040859e9ba9c85d92ea0186663c98a7bb1fa2102637344"); Test_HMAC_SHA384 (Key => "0ca6d30a1ee6f05d64998cab5a57b1600c0e64023799e267ab952926f370ba4b38c29e4f63e1a74782b0f85b6db7c77aa979624c8c017068a2bf7ac85092aa79b726d297db80af7905d7702966a67217fcff4e0eba221566e34eda7cb7d7715f517977ccd0ec925db5b8fafd8c4b399fcf492f30072358c934eb522a6f679964ce64", Msg => "b617e6965eec432dcc4684bb749ed016df232b884600a52c5fddd19b77a879c8c1959029ee636818fde2267855b2729b114d73639b47faa87cd5fdda728d48e8c36c6f60d21d07d7f078158b744ac7470e54628758967cddaecd6b93403afd9265a56a8233a286334c133b3cfaee37e27f40e23ba67293939ecb030e0837028f", Mac => "d266505b5ef935dd8013ca6ee3229c96ea6f571aedfbfa33e915ccd5953de0469331ea1128f6d973"); Test_HMAC_SHA384 (Key => "137c94037fe2a15b39aba093350eb9c181eb1de36f5f4719f695821156dfabc2fb05385da4dd7980c41b1ead286bfafcdbbd060c47e0a93f9c5336277658b73bba49e9cfc02f8743b891cb7a468a338d701e81c1bace05b78f6a1ee3e327ff3f17f2af411d03530adcb4b0e0d694ecde08b794ea1151e4e89783422de7750b37dba5", Msg => "ec16489822821c1407092268101d992f7fcaea78343b226bc680a430d28e200c9387bfcdb33ca06961f188e2a460d56cef00b4d2f5869416beacdb58fb32d7f89723f7ff8e5a3bbb0244e9aa8ce8829ad024f40d543911e2928a40324ba072791f7258f65be3d454128dad896fbd86ff49be11f1f85b8019679f3c886bdfdad5", Mac => "84cd11c51881c491f78034348a4250485f1b56c81092da410fa0658b05b5d3e715ddbaaa08feb6a5"); Test_HMAC_SHA384 (Key => "6933fed3a66bcd401155d22f84725361139c998aec52f34b8150fd5fea622119847b5f0edf014a0fd76c535a000f4a10483522ead770f5283a2e47cbc18d8f042571f4ec6ed35475145c8aa16532f1f2261224217d9f08130ff90d086592b016943d45d61d88f35d124c006d7a824eedf7582697a68535f147d9d47e9e188d351808", Msg => "6f85955d51fd0e8a3b261b0fec9783e1938c27b12be5f1140b7207e0b96d44d90048e88d42aa8e7c0fb45f7cf588865c9a0ce3c809eb046c4add515d352986b48768677c368bafce021f493a4dd0c2692c2cff01beaa2bc9bdebf40e523ff7452e6b78f1d6aa57c73ef13f109a7721507175e125f32a4f718c2358bbb9b97ed3", Mac => "1e2c9fe55d17da4ba342480eb2d30e1ed4fc94baccb9194905dcf0350ca6b0eb5202366d646a10a9"); Test_HMAC_SHA384 (Key => "9e75186da77aea91a67a3510458694ac908d0ae4562e8d6bd2cbc5d88adf119f7891cb406889cdbea1023353c720636200844bad561feac85d4312ce15006c5211adbc98d9c566058ef532d5cc724c0cd4908fafeb910233fdbaa33686ad646db3f274dec4d7bf4fb47ab8fe1c24569255d85c52dc2cde95fb580179a68d02d8a488", Msg => "ec94d16bdb3ead89ab8ebca0e0cabcc1503a651d7d2f5426224548f10ce490df2b0dc47ce953b4a7ba279ef4f559a44ee2dc7ce114ca6a37f9a76ba0afeab3d819b95ae433f5533da2769d309098bd85b6f66b5fba758c63bc85601c2ca3fd9ede22fc6a602c72928b04221e588df0adf5109960183aa2f394648e2d2a18547b", Mac => "ffd507856b7da1d6d2ab4870003fef27669c2e06df3e628fd0b871b99b71663fad824f677bf2f2ac"); Test_HMAC_SHA384 (Key => "b06e828d07796de7eb344a656dfa57624d19fabbc086a42870cffcccc5503a0a63aad09bf47150dd27258a6ef864f4fa335d5051338888bdf095dd9239a240063db000435058a6bbecba1ebcf6b717444360ab165bad430d7d73b5b1e390b00846685aafa596372843db4d76ef5a86e787085532bf5e9cc11f51ce504b8351b787bb", Msg => "3df4fe4187f59bcb01814904c90b4585288a37a721c163e84ac42390dbb8959405da91ba85c3defe78eaa534716a25f0c905a9a33669b7069fb38bbc2f32c433a96d5ccbfb67dd3a1521d22ffb617c3519b2c7dad8ac7c116e75b8d6fa889d10d0b547bb116902468030ba3a9078b31dc2987a962d111bd25e13942563438af5", Mac => "b322e829a7644f36f5ce147a9bf3271ec2578f474a465ba01fc0ce928954ed391e50e7727a0001d2"); Test_HMAC_SHA384 (Key => "74f41a6b1c4e5713499557d6f7e889f8a8ce2e444e8261fe6a8e5518769bdfa88188349a19b9f3a26db26675b3e40539c8c63b3a16286ddebbc539dbe817fba7866f9631204471cefdcbbf768cc9043006a6d4cb4ec2decf1c0c2ab35ad09f50ced0c896fa97d87e400aeb3f4a408ec5a993825fbcf7bdb8d48bb208956ed28ba0d4", Msg => "9a121482c7775a8b5fdaf1c2fb7de1a86ef931b1a88cf23ddbb47fc9dcfd0267cb173a6bf62b7c68fb6ff85b2df93e2539d1013f0a491aa9e991cf23e98656a082cb95f87c1b2cdd0eddb51048f94ad4aeeb48a426165321145a9b4ec3e85dff0755ac8f20ee71d2e24cb14a13280e9e15709147c499a68da23868b232cc1f6d", Mac => "b0da90c043493511d94f22fac35b5962749c49972fb43571b8478764dffc1c25e3a7523fd405338a048d38dd1b75511d"); Test_HMAC_SHA384 (Key => "d87fb6ba27215e5cb65c3b5b34ac2a32037f30e1f7ea603d5a9bff8a330fe74bc70529596132f6334f36c0952dcf9c4c664ceb48f74539f3768a65c1535902085fd4fe138ab18172f1341893185a139773582c5e2c4369e4201143d12bc0074ba5d57d0f2c08c8c0a43e8d7e7db757bb34893a4a1d4db7b95f18e0e140adbcbba3f0", Msg => "9e1a5d9f236ef93f2cda60489166c82dce322327046644cc406b42e3005c2177f3b7af2a0159adcc8ba92f2cf413462e60b8db1ebb63de44febfa1b9adc87e79a480c0b814e3c17ac91c4f5eaef954ba929db6ed2c757df15d6d3430b66391993adb58f265f57c706d9d8785c7023df9ed497c3c5f8267fbe7dbc4f12213a100", Mac => "3c7cee960221c9d9f7464aeb70d198bd60414dc3ffbfa7a2227a3a375ebb8f6448e524706e1e3ae95541bdcef2b31d9f"); Test_HMAC_SHA384 (Key => "4710d3a0a835d5913a96ad54499f2a5329a95150251ff1a6b8e07ed200e51b336f24f90ec4b4e0d539310ba9fe62391de719013d625b66cfabc1abd8431e69629e62de7d1bbf88843a0af2a10a63cf93e01845af4ec78b2553c3b685d0b9d0823b942bf5979df425a4e70b4553ea123e7c6ec5afd3ab893219ae47e28ffe7a1ab080", Msg => "c6cbf0916dce3ee4fdc3ade93875b2d3d6cb5ff627e52d7ff967f863bc154b95e4a1de7c8fc05da468836bb4cbe5e7a02aa16e1faf462160228ca8f80ee977201f604f1dcf9a08ff41378f8e6d662b827eb304f27821e50f1e79411213e174733fb04c5c7481c85d52871f61682004e19bac2957cc9f02f6b5d5cb981426ccf8", Mac => "b3b489532bd5b701e3fb7da0601ce9c94536dc3d8acafafe835c503b0be50a0e852b551456a328e65c76892f448912f6"); Test_HMAC_SHA384 (Key => "2cb6e84fd408571c65af8e26743fed236cc3593383ecd41eec6f51dd4ea8c65d7683827f499cc163fca57ee68709886956ced8d542c022dbc1ccaa8159aa59da5bbf1014cd413cb9a89cab2e44149e8010ac1f5f8647946b5e0e95af0211fb6b433139174a3df0a4d15bbd0593aa56ee0025d5dc36cb53552dfdb9713127d39996a2", Msg => "12f2890cdbd85863ce570fe3a418431bbbcd74deb16f3fa232cad6260e3cae588fba777509135172b2793d9bb43dd17a81da31fa67353acc6423000a3b2c7b1ac78f7dd69085e7e99cca1d7c885ab713d7787ab189f58643efafd03bbf58d37c6479837697b68392335397d045f75cae63b0374d40388bcf7d772f03c1481f44", Mac => "4c32a80183ca3f1b5d07d91924fec55cd3c8e0a3719beaaaf3b7824aad1c1ef49608d5ba7a4aa5b53c244e896fec2fc8"); Test_HMAC_SHA384 (Key => "1a8e273181755e05df15946114db513993803b32c4dd9610a700076dbb7f9db11e0c113ef54a4deb0ee02cb4c4cb81b023f85a434d1286941c99544109349e524d48066c46c980471b501162a36ed6f6834147289744bd82946b32a4eb704837f0678d233b99fe024e8fcad4796d58f4fb828a4b6a1c44c355a128fe27dba4494e94", Msg => "35ae3481efd30d5d668dc0e147e6ff837d30a5465199f8ead6ff2b5f8405288023668cfeeb89f29ae9567498a4496f7001c487c664aaeb9c1829dac7f1d7679f2f0179fba63f155d1c4ce069f315df9c0810823adacfe188efd5453c73a8ea3223280360691eff0cc8180b3c7b75d86f59bc9e8afc32611522ab73a753a03a9f", Mac => "432f310947c3ef1f146401824f451025f4c24be8b4c92587a5c4263457924f426ceb8aecb533e4788d20fac0b25856b9"); Test_HMAC_SHA384 (Key => "c4b6e18a87558d2ce6a5946c65a9446f66cda139a76506c60d560f56a013b508d6ccbbaa14e24ad0729dd823bf214efcc59e6932cdc860306687c84a63efb551237223641554940a7a60fa7e6ddad64a21b4a2176b046dc480b6c5b5ff7ed96e3211df609195b4028756c22479ba278105771493870372abe24dcc407daa69878b12", Msg => "37b4cf3789e40a62aebde9cd9cab34eb846dc10d057644e39f94693f6acf201d089438e1d81330df6ce54a203ef2e0639e92fb63eff2225813ba70c024ecea5f650f0f85788eb08fd15b01b06ad7f1f2b8f6b777df9ead05225162c29d0cea3b366f79abd11d317bc366370589240c9dbbe21bd23b448ef1b2a366cb3df7cbb8", Mac => "b3abb0141f7a5b4c39a1e5e6ef8bb64456200d42d15402be97bc516497adbe241cea596fc9493e91c84b9cb601eaa38c"); Test_HMAC_SHA384 (Key => "9147253adc883da2d831a57b55e742aceaf10ae4db91088b4095a6f864292be46cef831e39523f818f17dc24763448d0e0e6a2b78dfe41622c7bf9ecc35e996e50bab8bab10bb24cc1c8ed7dc43c61fa05915775bd2e709a3743ea4532a11ff287d04e750b5b9eebb76f60f006a495129f1bb08634c99d1aaa12016b7a9ac4585758", Msg => "fed888f3b12b8f17d450b4303279ad29d90f8ed71ba7ed89d83244e1007396e253b756496bc08421fd0219925c12a5fa3e5b373fc3137d63b36d2c580710a216acc9cbec837c4113ac61b789046c971cec0deac54d1a7938d90a31b99363cc319175ae8100490d166ad555be3471cbba6b8f7014c0a62833d06f1baca9545c5b", Mac => "380f48d74b2a6b7ab206cfee0a4c0fa5dde0fae81fd0240b3da352070611cfd45dd389f9e6b5570c8c202d4178cfef9c"); Test_HMAC_SHA384 (Key => "da03db48559d2e361cdcf29eff209d75339c291ba45709848c76619745be76d35c556438e6c80f6517525bfe105ca050f940583850521b408021ce0cb6fa17f5f0ae13f357954cc0ced3e53acbda180a6531e383af73fdcc459a0f42247d2118bf9852404f0ccd8f6ae6f81cd7a4efe9a1f630c56ac1987002698e0138507e85f09a", Msg => "62c1d149567f05a0b76c4fd32d1f365d170cb165cfb38f922f1716225472eb36a127327007f8f5c08479ca7beac4b0aee26f3bb130bbf1ff390ef344c2a4e0b8fa81f6acbbaa7a620d945a22ecdd128a4b3acc2658b1cb41020809fab87d1f9a74b76624f9fd5c2e59a649f0b9d0229b5855adeccefbe60092eba26abf657283", Mac => "35931980eb488506fbf05def3f501c90cd99e8d18a48999b4f9b1e95060d3a509050ac8a7a8461a9fb011f2fe6815a4e"); Test_HMAC_SHA384 (Key => "290660f114130cb1c66fe88b2d9a87969502a765d86f0989ce9e80580b2c47edcab79770243f799886d2da6d6168dd53230c7544673c325d68935b9cbca53ee83f2bc4514d60489a34aaa9f4e87d9e0df97c4a49c3e2114fe521a9c8f4c9746370aa0d1df63d21bfb84080a82ba173ccff9d51fd54294d6a2b9192651a5f9269457e", Msg => "beace90b45258d290fa0d56c359ec61505083be3562ad93418ff466e2faf969d8256065e4e07edfbc111efd7c480740d18e75854a45de5260dc6fe2188549cadec4d7fdf0c0e1d9d4350df0350aa8c06645705577a3a348ae71f3f78324401e22518ba5724420557bee50bb88222f74914dfaab680c7afabcd92713cd687ab85", Mac => "3ba6d5beb3b97d29c93887bffac37cdcfa407cb7ee9730dc0551144048dc83e4a2d24224f02fecdded21bc805cac3418"); Test_HMAC_SHA384 (Key => "033f79314407bcd35919d1ef3725fdc000540ef085c5faae0a3dc301491a9d5cb98953720ff9e74b05d079985b5c69441c0cc04b23e0cccfdd1e0b6951474bbd5d490e5142f6339f63b5d36849776a4cebed37982cf9e55fa6626acca6cb30b677e67275e4e5eaf4f831a908085f4600f4603a7ea9f78b85ea70a8d25190947090c8", Msg => "893a7f54d8739af07d5ba0e1e4b911353130ccdee25bd663af1c57d6b530e506d40705f556d3ef8dd1e0928e4e23d8cbaa152b963dc23879ba1cf3275696dbb12dee7ffde14a417584875afcb8ce1e26146881a8cad3db0d8715e8ab9b5013d65a97f453c200170f5efaff1169e16aae37d0d7fcd1b74689e0ad3f4ccc8715db", Mac => "7f0c42b9e080b844295fe9de114539436aa92d184b6a3cfcec1de8a84ccee0f38f5d16e34f955ad20d6a20b45ecf99a5"); Test_HMAC_SHA384 (Key => "2a452560cb1f964b927daac63b72342755a94806ad044dfa0a8252a41a66a6efad96a2952141cae61dc415c583cf88f39fc30990a55f73de5a9ce64911d561a4d92b92b6f528ecf58ca3fb91a2e3f4b4470791090ea41b7bc1b1c83f53a0481416ce9bc92e1d250046df043382f7a1f4b43a8579d21c6f57a888a38eca0f84c6cd45", Msg => "ad3d83020142b3f1f07a3d02f602146749c9c3925efd0b4eafc3ce08bc2b2c6d4f63eb3b052b1c500a88fb0824bd18c5f377b4cf77486e5fd2561ff64f5502f3a4b218657411ca1e18fad1099fcf53bd13024e51fe843a722d81eab4b44ab4263393d12957de0682a33784ad70220e7432d259c1fe9bb8b149aaf9e9f3f4892d", Mac => "21a02fc0c319e6d7fda5a5a0eadd1a7505a7901dc5a24b91792d2f5952982b20cea4b55fac302a5d4c99700992b8a7d7"); Test_HMAC_SHA384 (Key => "fd545d84fbc11f642910e828bfe7d548e422641d227586a11753f6776d0fc82b0c4245ba8d6cf655f2deff6295d7afc45fed545c3aae54cfc988798a56e68d040c9c27436685c4a2e76a19d10c26a81d7f0892f28d79ac9edadfd45753c18680652baa286c54b0d46f7edf7e0a1eeaddab3dc5e7021eb695b221afe64de7db267fb7", Msg => "21a9873b258290a981be2548cbb026097df680b29a96f68c954d225c6e23b6951e4308cc350ace6cc25e25ab7341d9bdfda5e047be822716a127921143ce3e6c5472091f3fe554970d1d07ab86ced6d19a3fc3920056e43b1df467d62789d3588adf901c8b3aaa902ba3d22f4e81a6af1c69327ba837b663cf5ea992647cffc1", Mac => "78bd2b27a34ebec53c0c15732a23dfea9030a6e63eaf4a9f1263c7a933b6beaa4d3b647e801e61d0c44bc9afcc021f2c"); Test_HMAC_SHA384 (Key => "225374e44a65dd0fd9cfa2f7bd90572f4b7a17ba92357528e988b502cbd43d68e5e146f96cddd7f3b4a2f49bff3813e0939bcf3b0fbee0d9fecf4bfcadbdd69f3af8bf59ee78ad83cc00e79d6aa4c4ee0089636bbfec9bda646535370c6d59574a1f47cb773b48074970e3c4a7db53a2bccb39124bc78f7342d2dd7b91edafd93cde", Msg => "267d99cdc5989ff8d200f39665437b4d9ad862e42b6056a8442bf40e92fe80999e13dafe5962ad87f71feab501847529a6d01ec45390d20e831d12d4d766a51669ef8a205e1a31f6baa6ebf578759eb8db92bd39ff727738b37a2fe18bc22da930199379fb49920ec29cdda0f29e5ec1de252989578faef07d4b327bd49b801b", Mac => "984f82f1b69bf49cdba99b702b205fd50a7f618b6732a48639fcc37d0f5b868b30b53411b5167fe7f09b34d5d73d2d1d"); Test_HMAC_SHA384 (Key => "552e518ddc1a518c2c853897083b7ae8136273f6354ff1ed409ef35cd481b02e8058dbdc298226e1b073056dcf07b45d44167b6b324931a2c42cff16138466d14ae28310087892b0052cb2e3f9ebe727b9406579a3250cc53d192fa21972993cfcf5d2913ea49ee174d7c75f4d8e1c2dba06ba87528a8a3ff48c0b69aef45257ddb8", Msg => "6f55443fe65938a33f0749655bc60f4c3ca62b0622f38763f30ae0c1e06b82c846105357d2fd13bde919e22d473c036ce689dfcd21fe4d5f1949106558dda106b446304676b9e535bcf06b661c35afa38abce5df7c35cd6c4ca2346fdd66bd90819fe1f61ab635728035ebfa23d89c5af2e645267bc18ff353bc53c6b82e5dcd", Mac => "a9cfee8005eb9dfba8a2f919a0a19925b1f8d349a9cd9fd8ff0feddcef9fe687c5213aa77c1a05a72ce51909c240b746"); Test_HMAC_SHA384 (Key => "3609e874c69e9f3516387502f9eb82acd029be530936ae7be6dd43628062ff920bb759b25bf263a1a7ffaac68e925da15760b2a67d8f864c6b6b4461845a07a06612038570092160822de9a903d6a59329f9c3e3749e7c037c94b352ed6320bfd082ad960cca20992c2bfb53629ea0a9cc5ab9b2f74bd7c9a2c059e0c4649017d06f", Msg => "eefc0676e9fb74262e727ffc07135b6ceb05e6ed48938a4d802665473170a757baeb3ccdfb82ac215c8d3f86100364c19beb533c9114f256a106f5fed3384a800e84b49eddd7b6e3722db234ecbd52a8d570279aef9890fc30dfdeed0b7db58ef1afb51218645a157b39212f22a7edc8a37ba82ee9872de43498663e61a8b12a", Mac => "33a941a00df494796c3ca14caaa71a7e95479a60b9d0274cd1f58a0e809168bcf1e6e5c47753237d4b777fc4cca86920"); Test_HMAC_SHA384 (Key => "dd908ec058f137a44d76c004821a4750357615820de32e5d51df25f258b2356941518efee482ed4a07416fc4d662a7878d79ee5678f7fadd1d95b339b8f641bbe7876ae9a7ab1bc67f154454fb74e9565c56775a8e4654f75a38b954dd28c4e939fdc98a8ab3eaa11cb9e7bbdb9837460ad65798381a62347090e249b18fe57c9d7a54e775e4816245f7ff015c16b6deff", Msg => "b9377d9bddf40ce17628b4570aced9e4b132e655d4a535af35752fc32f1cb40440b8bd96c4bb3fa703e453026e6e95e12687c903be03c5ff42528bd878afb5d1659b1683138a9e2c92dc7e4a3d0e8d693e32ea39559ce3e3d5df169deff8d67d32c8d18a53c8ef192af87d57fe188a22021b911d1fd95903f4041a3b1c5de1ad", Mac => "435e4ac37f873152151ba089e7f3925ccf3746df525b41cc"); Test_HMAC_SHA384 (Key => "7438c5424ae95acb1a77f27fcb4338edfc777fb0339a039e37617242bac8ab8d3b62c5c82bed53cd4f2ae67765ecd4570a6e38a8dbe93a85db66915a15d146998250baae2cd3ea3494ebf26951dfd0dffbfd6b75472ed48673cdcb60e5b985f80fa9acdc95c0a868b2621d3dd845b4ef96cb1ffebf8f5708c93d283c73a8f012aa16a439aede13d171366fdb404609eea4", Msg => "dc6430d14e675dec5976e671af07b9a453a38d6e5b97c9b0f5eda2d7a89a84b1dcf9b47f9d78334b9c92e57b76fdf2a739246da825d734f1af411723cc1b3cdb6b20c1ce43c1a419d019e0d29823d9e3b32bfa188a829d76df762bcf0e81849392c1a1e9caa878fefdf51f9d9de33501c8a07ee71400cde78c732703f6352581", Mac => "4f9c9ab506d2b2137defee277fe205c88ceb16a6eb63fa9b"); Test_HMAC_SHA384 (Key => "9e49b49d15016f006dba47b8ca55a161e9e95151581e6b1de7d6555f5a1321b760151a10c9c29d25f34b2b43850dbb5060b5550cd3a8dc970ea22c34da9c654c87f485b625c83d35f7a2fd42245b520cb03971beab5b1400a85784c07121f732f92f1d1592daf6396008e63e0e080b9ebfbdceee48ffb8609c3e888d87688271a00d09b779c2703718c30ebeabdc900d77", Msg => "6a90ace01b9a7edf02747f6de85756a34c551d4aa890c0a8f6aaa69a737c94e3a30bcec495b77fcd68b65af20ec182e1500da793127d7221d91624da8ab37a9275fad33c918e94bc0986ccf6f81f142b71adba85c3d81ef0fb045b2caa112a20e845047298868754eecd1ba12fd7d528b81e9c4842078abd645d94b959fe6e36", Mac => "1cfad85f7f5b21fba6a15483251ff307621f8f92549e88ea"); Test_HMAC_SHA384 (Key => "22715d8208870414fde08df9129caddfc68cfbd879dfff1523fe8cf045b450302092aa892692bb63aefac0ddeb839f101fbbbf980ca81d51abae9d5e21b29e70ef80d044696a4a6e6932d756442b9180fd9ab210b962a68d73e165e5f115ffb1f70378bbba59d7bd97527a6c05daacb5c9f37a476957c251e25e8c8d9d239d7da0e24af502a58bd9a120502817d91839e9", Msg => "66580cc5cd10686af49429771a7f96ead165fdaaf8ff47c8ea88cf04f56675930e0dee1fc2215e1070da280ab6ad04b6292953c6491fb033b405c8c9999c6be670d1e37fe8e1846321c184c41cbd0df3705f916b3e925e11660772bafbd890eef56c93ec269a03ed7011e6ad34f7d8280dd05ea1bfa278e96a5675de04620b32", Mac => "447949dd67cf2cfb6a090c696cac55dd79d628308d04df88"); Test_HMAC_SHA384 (Key => "e107f34583d99654ad98e215b8c99952199f73f5e26ec01b8c634e69f3738da3a291f17a512498a6acb82d3556f30c232ecba62ad1f727db60a357ee8368bed7ad7b0c9aa225b8df3773e649592e8e04510ddb9d462ad11704b3333bfce2a42f8b2f0c4a7fc43d27d731d7f8ca61681d0bccd8f64cef05f501f9aaf766c885d4c313b934eee971a5125ac6ebb074e397e3", Msg => "ff95d63521f4aa2744e30fa310ff7e4d6927aa1e393063b570dabaee490366b6ce1b661e9ed8e8aeee2b6afbce721f7badef949920799305df71484e10f8a2b2c95ffc35d0dffdf0a58bbcacc28228af2169a8d6ff19fee4e094711ad33e2b08f74ae0a23e72b09671eb4fdd74986390cc7e2dfe5e786cfb792b7e7b173dc95f", Mac => "9c4ea79f8c3c19ac173cab5a10931d480a3f3b7f5e121b1c"); Test_HMAC_SHA384 (Key => "d489d4235459afe93b34a99d7f8b7cdbd788b9c66ff41805e0570c0c5f619b9d34886d8e6ff323ccd697eaa021a04f316a12554bdfb0c45eba1dc5ca7341ac5933ee150d8dc3321d6951633a407d07168f2593278507e1a9ffdecae2b7cdf6a9b801f329169385e3dbab3df244eb4d932e0b9be4cbc014ec99e343dc95cf2294ac0b30697229c32616eda05096b2c9af2f", Msg => "6f81a80f78d2b33478c737bdd7f60197e34ae39a1f03aab0defe4f3a113772af5e8c038672c4435797cfeb3d894faa7e8558d56ea4745b9067ebf7ff9341a90c3fff66292bb70f065342a0f9c44caaa3af1303d1bc6bbba0a00653e5f2f22acb3a6338be4cb3fe88d4a7bdba31f4e74e8701d38a0fefb428b2d7ccb3d752dd34", Mac => "15fab21a2cb56c230237260a57e9edf573225c86282ede7c"); Test_HMAC_SHA384 (Key => "4d40943fbc79937f7cf628df461783d87f45b74171271e1fdc19f9beadda58010d843af69dc2f4ad003dd74b9b570d5a981cc46331758fbf2b9f08aaa0dcbb9902693fce5dafa629dcbd18418ff6bab36b07d4ba931d3400d654cdb47872a4dd35d5edee83aa709a186032e9ac5c528c00ef316e1f85d58be31f9005bc03dc74adb18a7e971a1ca9ba0d6f6c79f29d8c5d", Msg => "61d72517dc2c10d953d91acd7c86d68ca4210e09fedeb5ba3b7c1df95acb6ba9c26b471c8ed6d83428a0efc919fe824b1f865da9803514719fb63c38cde1da3c61831c480b5d47d8656ff17ecb7670846db392d3a2ee8f1380bb3b14a9fc806d67a70c63fcc9470c33cb88b43bf4887fb53017500c100dea0511845597214484", Mac => "e947661a5621e499fda0fbe1a823c4a5cda8e3f71b541f8c"); Test_HMAC_SHA384 (Key => "afa4b912e9adbceded28f67dc34dce5a3a02a730dafb6c081a266cc9d34669fef5ddebd97950da7896464c6838519c68aed0bc6fa214ccf04fc1eb5cee774de971b28d9274ef455e7111dde63302a0118d9d15234bcc8cf669edf786837bfbb48dea4743c4d22527e4504eff9caa03e03f315954bc6cd5a2d07238507a989ce7b04cc0f65041a15959cd4abb5b8fec5a2c", Msg => "d73376199cbf8036d6a075ca00afe0061847bbca0aee846b6d3894b46de9ad2a085ad2947e1e5bbb02e4486fb69fd6cad6e550b9339528b7e4bd46dc38bba017efa20bb8a9df50319e1c831d90649081fe8817529bc27a38fe9934929b046cbaf2d2c98a0649891f110ecddc764537b2f7f8b79f28bda275239305dd7e0e389b", Mac => "7e4524628629714cb10759f724b8e1ea910276b926feec54"); Test_HMAC_SHA384 (Key => "a05bd170c0b3e42802ed73fe3a610d938e6538a9d05c623f0bf01afd5b9b80d3026cfadeb908298b44ef1cfe4900c3b56240a66871d7d634345b24f91951920153f107e22d2a47a59ee621271e8febc0b9d22b2362a3978589814002f0fb0a3cba735f45c52224bf395cec4161156cfdbaa530a04ac88c7a33e9d4df88a0cfcd5f796ace28f7aa203dd8e414ba9b30b48e", Msg => "d19c7a8ff3ce59d2cc9c231d34d085366210a28aa7be632b5d1c0e151ab41bb529f743ac3a24d9d0586b5d731c534fe920594144b7d93062db32142a6726b612877fc2e46cf81dc3445a786969e626b2d8f32a5ee6d895122e0c0fa1ce8cb38ad37d20c2f113ccb378b19c848352b29b722787609b8139443df22603b5afb925", Mac => "cfc2c7263683f3c8bcbbaa46efcf0ae1f41fa16e5fdee84f"); Test_HMAC_SHA384 (Key => "84371c9ff40b745ab5300bc914512c1468f98b339704e204db54dd9ac6c534d88462163f61d9ce058a2ca16718aaf5404a1eb9d912460003d486ef636adeda0e6b1aaa56ad4882e3086fa2055d7e8b48d7836349711d9cc9b934d100d3e7f033c0c69e89e142d71bb661d54aecb734559791532bbc73fd7d12c5491809c9be720cd0bb8203ae16d51d6b04dfcc3b398f11", Msg => "007b9519c21b4497e5176156adf75bd32cd00962fe23f62a3702fc719a74141a0c1b6c6b4814ba14d31fd16d330071005c2564476b88c6b796d7a5fd63d3ca8719f6d546745890b29dd37d0f5965b1ef81d7e5f9b29ccbe845fc9ed78272fdbb1052f931b0ae6d7a2c7b8ec389f0c2aa842fb6ff3d27aac72db910875d1956bf", Mac => "23391185157dc83f6f4c9b3337882eee11dbc64607d18f34"); Test_HMAC_SHA384 (Key => "b3edc0ade4b88144d315331bccebadf891c5e05dadd5c4ad053a938fb07e36970863fc2401df9284ba65305f52661052fd1824da57760874f888360248e479719475a499627b836402d312336679ed7d344b08b9180fa07f5fb871eac2e52a407fab1ed5af943c2cd3e74160b02a2cc25de6f2c49aaa74166352ae0ec589314df18dd3a08f33a524542a25aed783b569a0", Msg => "3744c090cad18c19a41b5fcc4d2091ab8920b70e224e80f5e7ccdd9df5d66551353ef7832618a11bddb6c00f4ad76934bc1b0854a7ba4780a67632a7bcce9868df75b425b7020c59a3e99a2bfdaa2a439f4803dca5fdc91a752ca29efd9798593cd23f9d04f8977afe9c3347ee029b7f388ff0cfa47fce6c5ed676aa41992dcb", Mac => "a2854198f88bb729acb19da0f6ffdef962d7fc6d904fc704"); Test_HMAC_SHA384 (Key => "df0251af61d9f87520a8a464bbe6004c4c9026afe3cbb58134cb242c8cf356d70a3e6ee80bdde4c7e622d9e5da9ca7fe4484bd9b1557aada84c5777100ca3af1691be8487fc36b8a9b0ef4f19da6932225fc05b106e9cde8f79686c48c997741656068d7a6d3b445a635a08dec4beb4057c1a6fb9cc94632f605f82c18a7344f67d7959e6655e880715f83c3afd5d8e042", Msg => "4d5f76f718ffd84ce27d09fd4d0359a1de1807115c72c0d8790b63e4b57707827e743f899cc39dd4cc3674f6ab0be22ad6780e895087af802424ce804b74ccf7cf69a68031947856093a400feca9e58792cc781a38feb916441cdd6f28de8eb5886734449f1a73bbdfb0f4afd78769a05a3dcb2bde7ee682221a181a145b56a3", Mac => "d1423a9148699c8bda93c8fcf09d6e6ffd0c8f6436ebba7c"); Test_HMAC_SHA384 (Key => "cad62de2048c1b274cae09a6311e9b8900852ad18a00aea62716e1ebfbeea11678be963f248716769d00455adacf81e8b3fffd90a4afab8ece0760773e7133127205266a194408211b0a9907d9bef0ebb6cc1ab2d65504a626259a109ce53108c091228c6b2db8d0ceb44dd5b752af3d10d2c95ea85a7f953756d9dc9cb2649f684cd5cca0a9f02abfe7a8ebfbf28884c9", Msg => "31068b9f6924197893ccf4b0d2a10129cbc4ad2709a479bca018b58411ab8b936e3640acbfb5b7b3a35337653bc76d4743e3b5dc826a951b65238a20e72b0822b38fbca58d1a14f1ee6c01c2ee4cfc4167404733585a757187542c986be02a01483986f49cfe3818ba40dc2eb5dab3ff7f00eb93521b20a44fd42252666ff919", Mac => "c2475ba7fd88e8207f78679b7eede8d1294fcaae6c705c86"); Test_HMAC_SHA384 (Key => "610482010c09a931cd0eff41a9974af03086334f008fefd38aed1fa91953f5491026994e72e9cb85a8f9c9447f7a73fd7191ad1225d305eb39fe96473ee72bcf04b4a8f1184ba6eb8c0b5e26f6b9c8c6bbbd047f8e8ef8aa336b3b98894c3126c71878910618838c00ac8590173c91749972ff3d42a61137029ad74501684f75e1b8d1d74336aa908c44082ae9eb162e90", Msg => "0ac4075ab986937b4550272f2020d50b14e6dd247ae87e8aac650c12bd7843596740db05443e5c4e41fe34be51fa07345ebb462f8541034982a5040269fd16bf9880a313e9eb873c2c2320f1d41ba45bf0f8b8615d733e283a7f6eda9d2c28a784cc880a0f54bc4eec051250124b5586b2e55a406a46d62ebd3b7223c0cf2218", Mac => "ffaa7de925467d40a8a8ec9a006758eb888c08ae910863d8"); Test_HMAC_SHA384 (Key => "295692c6db3d276528169b52c458d2f44cbcf5e0ccac14f284f8109decccb87ff5df323992ec9d7d7766f4692068351316ebc3656e3b092b92ac616a448834f3df4d6239e015e460a656b09676cbdca6c2b207caab38f5c1c4327922190d98f07008eb6ecea045353d4c9683cd6b0fd6d97b87ba8b8b1edfa2f3206e73422c9d2e78958263760824c5b26fd82d2f16cbe2", Msg => "751009ee3c0c5f512d314bbd9b145e903c20a6af308bd41f3f889acf63bf57b886faf6288c21135b9468604c7bc748caa2abd2cef2ebc70c1dfd17c8266a79eb237f52564245d8760ab47719e3247480d904d0b59dce6f1fcc3a795374b3012dd507e4206462f4ca167d56cbda1329d86795680b391e127dd6a98817568236a5", Mac => "db1b1d1978f71cd6774d0c87a731383fdc74c29222911207"); Test_HMAC_SHA384 (Key => "7eae9b4df81fe3e13aa5b291149a892835c3a937fbd584b88a3771f11c0aa39b98675c4465e75ef28069a309cc0f4d6eaa8ae0edca98afd841ca94f1db8be48ab25ea2ebff67f3f4312dd2043c9e0519345450381a16e80ff6a22ad925a98d82f51cd60b6fa68b31747aa9490c4e996ffaa761df945818a3d1459c6fa46d87c988285e6c5cac0cef72d68fa2e328f2b925", Msg => "2ae09db7a59a2ffe199f37e4af4b2d51bb6c3b17d901f1d63b423a1d41e08fd14a8d6ad3cbbffedd9eb125ad9cab9a666d8468339f65a22df6cf557f03e0bbc7f8d2b1c0bbc46b1f39bd67bafdee9fef01370344c4ed264b9cdb38c94e863416dcb65ac79e31e08b94cae553fb9aa6b61e8ef4936f22e6f8d66bcb42495b6286", Mac => "ba84b3d221ac589863b78760bf6b9839d476cf8d6bf14faa9329b30a61831407"); Test_HMAC_SHA384 (Key => "760c1da063e104fa69d2676a8673dc458cde629824a98dbb1215e329bb88858ee43e1222bc3bc8361d84ec0c0f8e6cec8ef7c4748d741e303a0bbd6b84829b44da175104367138ae5bd7ced85ba05bba5bead4859a8ffff6b055d82a146534b4e1ffa4edda6b9c8bab33d475728fefd67d215b7055e27834fc5dfc0f741b9606805ed185af123cf49500c88c5c4571697c", Msg => "42145074b26d8840327fdde4979ce4f630a48eef9e879fd5e6056117c5b899b94455bab08b2f5990fafce16476dc88dd019781b08e26733913762b64df688ecd2e1cd126fb6fecda15c24bef75fec731cfd4d68d674afebb26739020ed7d92f229f2fd9da8372965ab59854d3c088b38c1e4f34fd2f827a24884f81296008f6e", Mac => "24b4b0ca2348c219c151297f220b2d19def3bc0d8d6771748145d6eb1efe5a5f"); Test_HMAC_SHA384 (Key => "55d1a4864299e24bb53181794b5992ee301651062aab4e23d9c5ca8d3df6647d7864f574d5c3b8d10a80aea3ba3f40bc3e882707a5bd891bf950640fc4323090d38fc0323ab86a04996167679d0c7c20c9c5daab761044d218206f7fc449aecfefb8cf6779623f0bea3a756dfba78e425835359ba48bc673bd9db384422226605349e8bc98a7810f8574a15cdcf8be4b73", Msg => "846573a89bf96dd9eaa5db7799453bd92f8d7efa4df05e7c9cc1f2ed0499804a1ff892c1ed2f4cbbc97dfc1a9b78f3bf50ae9450878daa388d80ffef8c5b2a7bfff9a83769232ed347b43e9c43fbf9fdaa613446204ccdad93433f936d5275080eb0dc90799fbc274d94c884f898f49b27ee866580f670e39451dd610f460af8", Mac => "18733c84f9c0258beeb6b5d426e408ff69fa7b915b2a33ee43f08ef27f8bce96"); Test_HMAC_SHA384 (Key => "6a2584a7acc2ba137771c3f90450d20f3c7827e38685857ddd53e54025056c12bf4c9bbd5be6c6940d64c759a431f35e37d04deb0065fae06d77f59b75f4041c2975eb678bc4df2aa29c3da0ceaf7cb55aed616b5004717c9123ac41240478d2cf29dc6fe466ee1f5e9f8f962cd3555ccd59c92c1d6ad39b6fe072fadb3db07cdaefd69c10d3dcb968f7230366a4679bb9", Msg => "2eaa2265498645181a92e52f375b67445bfe8dec5f46fff465152bea57054fdf904ed46cd8ebdef396f82127415ff6cf18b3aec7135c264719f59b6773f2c0e381860e1cabc45c609b04af6ba988532e975f2bcf7f8a45f0095eb134e12994ff6918787eab58e6e8917c3703581fa7e942caab0c8b1885789f1715588af2f2bc", Mac => "cce77edb3896dbb2dc8eb9c3c21dca293b31e89ca5ac70054ab58c14b4eef28d"); Test_HMAC_SHA384 (Key => "24a262e7bcff1c84c390b9028baf3831393f00b175922cfc668a26a6ddff77e4d061dd4c0b9f9edb22471d3caaeeab47a8d29fc94abea983d52e6375dfb4295cbe9a2b7940c9c0949de9fe41a9ca87624e03a5ed3ad99aefd56231d176ea99dad69573f6c5462ab61bc08397f20b7587121a3aa5adaaa6494d6db8440a686f690099de4c00de83498612d5c8eb791cc0dc", Msg => "4c1723a365c8567dc52126be2ea791bfa321d7137c582b69b91cafb497879f8a6186ccca89944d82f7c97110a114f8875cc58254f14e4721744a09f9d1be47ada89fb4775b95e7de65ff54d9ed377b379a175f3eaabc3a933e896f5af86fc09dc86cc1f203528c58b6cab763399883990721561bcc2a6c88c0e2c91e34237222", Mac => "b8e4d0e1ef33e45d46c11baf98be472d688ed629e3ad98a229df5881a944af8a"); Test_HMAC_SHA384 (Key => "5425c3a3074116f7626c227450b6444e40a380cb7930755cae11900dd33d81202facebf5b15f602e87a28c10ed8eb02b43d1533d63b23454314f823374294ff7e4e343fa83478df8318a1f707bd11b4db5f388c648814a834c0451015a8510379b53317a2500879e88ad445ea3876cfdbd92892ed1a6a13228b765402d59ab297e821e3c3f923467b39261a00db98b8383", Msg => "5e1e09f59a1e2c5f1e8a3f697b40f1108d3f9b5ffd17db87099e7e3288e5a415286a1ec4fb8f1bcb324b04fa2820a400a24d8c3c5544b6cfa85e68f6bcce5b97a9d41d190b33b479bee4849ae50c73dd312c4af260975eee032a719d8537d31969c2cc9bd3f03f924abc87f2bceca5cfc2439d2a26f91d0ba36860d0eb0852c4", Mac => "502c8f03f0e293a35dd557fed9de8c4674b1209c8b5cf4002fe76046c654f039"); Test_HMAC_SHA384 (Key => "f04cee99d3a813c1d47381422d14d8cf14f99e65e02b83806e26e98ec3e7a3a4f246fd704086fd6f872be95fd80b09f864a8aed79dbd74bb9817c3f3b6a69c1783d492f7de1516d15bc0f8c7e51d2b8fa8bfc96d2e14565ec73a49962f14c82d6b9eb416f47de55017dbb7609c71c5fea6e5f40fda57b4d3c33782607559b14f714b6bb5c9e6f35585232c1344305fac27", Msg => "d4b531125de389a12f34832f539e0b88b95c41db22407cb23c498f270f784c5599e0470eb5fdddcc424674e980050312bd67d6f932cf8b4a287061e15f1bb23aaf55bd28f0ada9ca184dc7bba3ce188a38510f6a89cb972a7ba05867877436005f3d1bcad59df785f970050f82a14fd870417496efdaa93a7d00fe224f2ae390", Mac => "572afac574fb3e28920fa83a792864cfb55d18546e6cb4c4214652cc2797fc4d"); Test_HMAC_SHA384 (Key => "e04aaae39bff1b1d82c59b6883602ccd4c58882d0faa089082bdc4b92b97fcfeda51b75677c8a9b4fd965a93c74185d20bb1bec3a4e8587f14ed867cc909c0619f366918a7d5ae25279fb137e1dee7fd98ddbe3bd19d841dd7c984cb01ec723d37e20951b38df21b05c9e87c5aa11af6fdc3d0be1e315213d33a06cf5ca9d83cab3cde2824573c3ca1fa4689b9f1e56442", Msg => "292a2ff749c5acd4ef56adfa4827e0a9a5173c4dce9cf2a59904a024bb00c898dd628209f3266de4c9afeb59de548e01761bcdc4ebc4fcfa440a7bd008252ded55932b562c18ba8f0f047b04ceb4e2a79e5be9d96b03068e6fce5aac04822bb5b64494a69da47b1feadac4c3bf4fc4e24460f956f75ef8aa43d9a682551eab36", Mac => "136467c874c375f53ac1dd50424c06cf8235c78b61df5e3dce91127b271b66b8"); Test_HMAC_SHA384 (Key => "62e0b401b2054a6d1df230f0340b0c2577df0235bafd314bcd0980485b0f9ab71316370306f99ee750726727fb78867e20cb85d74fcd11c03193b81b6c3cf116c7815d5e8f8e4c90391083f148903d5e72ff6f86fe92505670d019b568e90972c849ad7a156d5e4f20f50bb5e5fb39afb3a447a98df4f7f7d1e72a7e17bdebb15c95afc0603ddb0b4c4987dd986282572c", Msg => "6531953e391507d0056929520ced0aa1849426605636414a1f8596c67a4231bc81b19aa8914ab3ed4eb1e36be7e874539cc43a3a7d9d766d744af985854c8d3b554a907de9bee2c1b1ed0299c51c73876e016513e878911c6677656c5744618fe8e5c1e4cad95cf43505cc032df1cfe50434ed13202d5bfefef420a377907660", Mac => "0b7ae7ecf74b17eaf751bcfa7cf35fa4e80f5387869d40773429c59e5d4f8e70"); Test_HMAC_SHA384 (Key => "5e675b4371a86ecfc11b2c89f59a9ea972c7698f2c964562bc0cb1f7b446e6f42fbc0935acc7a46e1c615712392ccb741ab7e82d04fc48bd842deb75bab02c94f868f3b08c362d57d9bf79f7ad7024fbcec05837d6b5908641aa4fb1c54f1293e2f1837bb9fcefd221befafef86d9285b76c217649ca07051e0c47757b2c803b14e12060dc21d4271ce443f0c22cfb5cfc", Msg => "a3cd8e7f41ac042091604398ca0f62f0e1ae18565a802cc35fd92cda0f2862121834041788a6ab6ee0c806586a8cd0facdd0ffbadfe03fecba3d9eae129d8910c632f779b42fe446d28901b37bfaaaff064c18cb9dd4d8c44c3d7b81598790aed44ecf6b6e5097ef8f2a9b71a262d848b4aaca513d63df913d612c1b8bee5e34", Mac => "e5d4c900d1ef54282ddb2e7028deed0fff987275be71d904bd42fab55c45bbf5"); Test_HMAC_SHA384 (Key => "64c673e5532ce4debe2682a3d104eaab398860797ff0c4c09430c1caad80481a50163d51af35704e3666ce996006d902ce0055859adc4471e9f915cabf1619eb1817366f3406df5232594354e073c59ed26dada8b1151d5ad6374672171cdb25e151c60988a91b32da854a9bfa5398c86c55d0aa6ca435c38474bc8b5d997811d64b56e553260a365774493856af39c8c4", Msg => "1230545c1ad282d6df24e5e35a0f544c3f4545ffd2c941b3fcb195cf9e2b4b8825be584a5fd2175a8d73f6b9b952704b490c3b38d5afc293367bd53adfe59ffd71e2d90289613e67dc193f2a8786f746a02e611f1129c920a6e080a36415d4111d243f4a4188df47f7a026fe6cb3d3856b33217b2f3e3ea4756afed3d5c2d10d", Mac => "bb51f90cd491daea50cd34d3c0e73b7386d93ff9871f7ccffc9d95adc62cd233"); Test_HMAC_SHA384 (Key => "78c0924cfc00a9bccc71f158e1b9c41d13e1587edb089fb35d596b55a63ad62832c6e138b17e5b270a3b05c5a168f3e1d66d355fce6eb78b753666adc36e94de3f139e19c227cc957ea678523ebb73f2ef34a4cb6034f23a4627653a83fb8735a88e111ab862c3af2f989429421c0bfa691dedea1bc01869d815af236d4a77d6741e81601a990a1d25fa9f6f35f2859e49", Msg => "5ad11407eb3acb52fb72295ab8ff76de2fccbb4c6dc012ece4951f5a11e8df395c8ca026402451ebabf1fcf5a8e891093b08e5328ceafafe489a81e945a59d1a6573ea4dbcd7be11f5e5af33f104557ab244519478f18d512968c60ff62948763c2ef965a87b992b9ff748fbdd7a499a5c27055b77fc534d4fa7f6b36e9b67b4", Mac => "477db58315957a9d4281f6b6c1810a401c73d7df6ac839a8784538a10b293dcb"); Test_HMAC_SHA384 (Key => "36dd84a5342524a4dd7887aa7eba8f612a8505bf0c268c2efbe8d3ea4f960faaf33ba982bc2c3308f948a1b64c7fb68fb891bc05fa18781b1dc95dc749f7009adc58cca2bb0cf790ebdbb4165bbfab9304a2a6f234688dcf273094dcd8d7b38416be57cedace5783d8b92993548256b5373f2b4e621eb19442a6e0f3a53f10b0ccf5b0ccc1793a2beb6866f5dfd09f3d79", Msg => "6dff76ba60cc61480efc62d01545aacfd41d25922b725b94819c94070c903fb14c5694f9d9bd79425f4da277e77dfde758264d543d381446c8acb7a517b9dd87b74b184767b1c7d71e953b574f3218e66bc1feb8a83469680127d6907d142898b5c649cb901014b052be7397d5ccc47215d682e6f3d021a232f739f0c607e789", Mac => "b0c443297770690d2103552d566b2e2bffc3e69871e1b90aa48609eb5bc94cf5"); Test_HMAC_SHA384 (Key => "b3ab0ff054819c5343a88e8ea9717e1c22ddfba4cb5f3ad89de2099df90e056c83c70df834f7f611ab8e80c8c4c789d46cac8134b4dc1e16248c51f851cc780db10bd5e2afde3f41fbfd1756248e7e1068a7c5cacb0e252b6643b14a02c08816e57f4ff6ecbddfacdafe3a7ff051c499bed5b0ae387cb8de0c0f11dd33729e51c62a647b141c3e1af197d18c5195c33715", Msg => "7eea726322a48f664ebea63bc1cd7ede984b402463522b9e7ea58ac09ff0e342ab5172c7ce16d5bdcac909848f6a95d20dfb055646429a9ba7ca4030982bc006528b3719f065c752c9898cacfe64d2974f82859a3351e83b27288a234687777e1aa1aba1b217cceff40718fd35459cf407e8a63752097e46a7c751e3d08e6e73", Mac => "4aaeb05e3eec82801b11606cc12978d5b509438412343bd292964c003424074c"); Test_HMAC_SHA384 (Key => "26da41f4d72a6d5f059496ef7a08fea8b8525356eb3f3bd11d013080a9d48e1cf2e2eab65464a6fc5b0bc2b8339ef59960e4fd36afc433506dab6257d62ed930d0f1bf36dac7a77f3f1a64608f8e1f334fe1a757f0160779fed25e129a06eb312ace687b4f999970188b24f0751fa3fdee11f8c2947be0d4383eccb9dca3eca767428c8d9d23a3584d24a96fcc9aaa7fa3", Msg => "ca6fb305a240774c51e5aa8d423692819cc7457daebc23ea90dea4f507ee5487aa391b78436cc20078aab36eabdc001c1e48a7a25b66154ad3eee8c4c536f91b61bb9ae82efd1cc6a99195052f71dfa31c96e47735c919b043b6497e0142940f381eb7bd299c8e862bc2d7bc959e38fdded88466038e3a04295b4e8b84b92c4b", Mac => "d62bf0f254e4eef3562a201d8837763af8d136e7f045bca38e34bb75667effb9"); Test_HMAC_SHA384 (Key => "816aa4c3ee066310ac1e6666cf830c375355c3c8ba18cfe1f50a48c988b46272eac0f2f02a0a2d2fd8fab2e62310cbc73fc0eff90a818cc7ee21049a095bf5248babbedf60613fb610f5e001e39ad4b748159fdf77d0d548562a257a991297ec2ed41278d832210b1ab7f6a15648b07136fcd9644b2e33ccf4d0b4538201cf3199e2f5a3d9a65c98bee9ffadc543e65bd1", Msg => "d0db3ff9cf2da10d1edfef389ba71780cb49e05dccb87c088b7e60f5375f539ef539c583d52f636f0406e8fc44cf36599ac7a54b467b9b72f8305dce41812482484a74d7bec5a98314f3d32ceb3ec328cc5c668719765253438a9f163e0ef89d32d6f1fc74379bd2b46d57ce783ae772c9d0cb172bf1ca32d355cfd5154cf679", Mac => "291957f798a32c65954d31289aac24d62ea47469e5b1105cca372eabed44746316cb24fb13c24853"); Test_HMAC_SHA384 (Key => "d9aa1a8f94471a4c69e71fd256df38c600924b42a595ad1e5211f06e5669fc4bf61d61d762efec7be844797368cc078d0865122d283d1d9599378e630991be5bc2c3516795aac3dc10e544fff880c6c8f3cf54e6849da5023c87f1482fa20324a664904913c1c7f84a94297fed419b002898b9739ffd6eeea5c6c124afe5f22d08c7c685c67c1f56fc17cffa3158aebb11", Msg => "dcda25e0850a555368ec4adfc4135e47e4f347374e42eccd3ea478575286ad5f874a7ce564a5d2eb7546b437fbb98e54e28ac8daf3ad9bef4b1d230e0cc4b507529b724769121c5a3db229ae1101169a74a6fe9e71cd6bed07cd6c28d908e86d25133190fa18dca8a678d1ce6eb49e21838d110e316a05ce58fb7c2f201cee98", Mac => "9711173e1c86fcdb11b7c224ecb76ba390c2e1218d26f353980e656a08bbaad9ca8e8f27c0aef6ad"); Test_HMAC_SHA384 (Key => "7b2d69ed2cbd0f37dc44f26506e4fbce7ab92593a50fe07413d2b3e83245246c59f7dc1b08f4077f7238faa73869187978c5f64a0659bdacf973d0876a5baf6c783e1c258f6b7c91ebc27faf576803f83bc036f2d597fb02c79f9081d21f6d13e1e86f34498b35144fc9cba5eb4b85f2cb942eb29b33621d843d39fef2fa260a9bdf1e70bdbcfcb1a63724b27a79661031", Msg => "7f737d59c6afd85eb91237ec52c3f4845d6ae92921423315427035abe693e0ad179c32af69e0fdcbdc6bea970397bd5466dedb6826ed090fdff9764dd256fc274446a312210f67ace5503baabc944d11e8288caa642a68afc7e3d8cb6a57a242cd19d76b37649c679d68300dc5e22b24acef04d52422d65fc1d4640df6bb5a66", Mac => "2aafbabcb09f72cc887ff2ea74e59a271afa5f160e8cd9d8b5fc9913deee6c9127f59ed78521a516"); Test_HMAC_SHA384 (Key => "a9c911ac37745172987713087c13a84edab4dbb7e1197e9430b549954955e58c43044375c02b32b41ffd319df3128139b3527f47b315318252891f22755364a5357904cfd57f80f0f7d0a8650f60b161179087ee8552642e7a8da2e73cc3ce3ee6f1fdc35eb663ae88b82168b9445f4e6f349bb13f1640210e8a7beb84ec4ae0be33d658431902773a7d44afda05b48621", Msg => "9bc97c5dc1b1fb7ccb9973c71382af696a0e9c2eb7930939e16eabf9ef9a64596e81c4371311d118a213031a0eb8932ae275f676df11a425e7fd1d461ae32e073e81702864b813afc8e0d9dcfa5f655f3b7ab6c92a6bef41a0b35978d8b1aadfd3748817face49a806a9fdf71d9eae723dc4e60edec672f3d3396675722c6147", Mac => "691863b1bb5451493fcfac2843cb345bae42785f1506f8bd8f994b9d044c07600a8c944140419eb0"); Test_HMAC_SHA384 (Key => "c1b9199017aca6fbe0741e5f9108b0fdfa43dd23c1868af30fa553658901239082f101256e672d3c9ad06c531b3ba09305be9b56dd1535e7508d9c882421ecba70e200b8089c87453cb65aa7c25a0df4f0d6c38c2e4247e7ac63599150d04672f353bc53cc92db9e2cef8f656cac1ea62453fdce9e55e87b8bf13186f4575941730eddfda29352d0d443b495037afc330a", Msg => "92621ba35ee326197b59a3464832972b9983169dbafa63e0b1145877c48f083b3b23a4ab676d9b83e32c05901aaf42c2098ede834799b847420e6464cb0fcd25d5521f19791be4b13e676d0a986a7308ae3cfea460d08687892558d781c03c51e75955989dd548cc1374a15fc94c72240ff63ca9108713c70ec1fe77ef8b9de7", Mac => "f1dfdb6f3b095c096d342819a21730c76fe46626adf3c27703a207ac21b509a61779e6dcffdf9847"); Test_HMAC_SHA384 (Key => "1783e40062c8e1e84b6b23df731405e4a4f540d815fd5748ea4f3288fbf20801d6ca83cb07c71f7f975cd446d233f4364d1f56df2852b42091d052408923e039eb50a257aa0bce025a2736d8f2502600d0fc90bafd9f663ab31e48b61c875fbe5dff89ccd3fcb61c9cb492bd5ad564e9337635921d4d363d58235c133b864d3534be7f510b029e7366eb2f1d9228749980", Msg => "7f44275cd31c629d7833517c19d41c5041b3bbffcc8a0cc39c05222e8ddce06caa3ec7c9a1760d7274c9ef80729d483266e1617a0ea80bbcce17ebd2a682165362d2de15102aebf0b7ca8dc5463350bfcb8bd1d9e544d1a17cf9883baf983ba80ec611490a7f239ea9fdd2547fdc5d7fd97bb3243ba585fa0d71a07191667af4", Mac => "a63d553fe411517492f32b274278bf921370b8a70a27b835176a78b1d812a95f11286e65dffd70d1"); Test_HMAC_SHA384 (Key => "decd5ff6fa8843501dcea0e98730d868d32d7af02a9c17a2b74a52645ae337e1a116ced1f4f4ef7b0f995778b60ffcb9a36f9eccc4499f5aa34614f5260c1c107862714f47953c02301a2eec7774cc48fc590a0e6a101c72b21d89adb82081014bfb70f75b33d3ec66994bcb3429ef1cc432e73e86b737f0cb15d81779e70dbb0327f45298965b419b5dd6a054f40e3de5", Msg => "3e3c5774c11abe73629e400891857106285299254da0b6f799b6c41d7a5c3bbad5edda28f0aea3ea905e27e25e0e03c48f33abcbc4fa66ab2fdb9ac6f8714aa2df89dd9b227921d5a1b38f754099d1118d938164a35f34474ea9b7dd6fdc980da237e8351f23401cdec40229ffcee1d3689aa459b07926b33c48a2c8a7442de1", Mac => "dad2422f9474b3c8cecc73505aefef0b5bd8e23d70e66da3a71578b7b0499546e5c9ea59ead1ea9b"); Test_HMAC_SHA384 (Key => "74b555fb6542cd797d87959be910db67e9278ea378ed1e8d2faa83cc676280a79ea929751cb7a354d5bf2b1e927d59994c0fa6eed8052d5dcabbae2e93e7d8ebec6ec8cc787ccd73a4d36ed9d363ae89b81b8e0c0200d4a43f7c0b3dfaf8cba027ad3aeac2b6d33cb26a66b5f3ea609df4f64de33e059bca5794a1dfe6bee02e170d88b541903e19c72d1c983c39f93fca", Msg => "769b0eff7e7bc710d9fbd289ddea554ee7ffbc67f21bf36168cfd8f1371ef0db288458126d37ff2178ac13c9145db9ecaeca01aaf3bd19c9a1d3c15a9638fe992eb21316cbe1ad12b5c55e2c25804c3d9c5d2b80791268f6cb42a7086446706f2f2d2551c30138ac374c9af838db77085ac22032aca149af8f257444c8d1ad22", Mac => "23f73da7fef0c97e39b5a9cf19fb52507443fd2669953ea3bf4939fdbd678ab58b2bca3a4430b203"); Test_HMAC_SHA384 (Key => "087ead1bca05ee15f09e46ec0ca272f96841b609edd5d754437069af3ab7510269f482fb15660a0454dc52737182a10193fae37e9aaea9c34a6570e7ab1526b6aff8ea5e16e2146c8fd275f720c7e01bc7d5e8aa6277ec1dcc2751d1492c0f7024b46fac96221334eaa936e0df1a352f4efa4ef40cd8a84c12dd94d3dba513180e4d984e5dce0f44ad891d977723aa266e", Msg => "e4476c025e67a3d5bc01f3ce55e578e84a807e935b5ef156ffed14b7b384765f92a3237a267d175d7eb3f86b80630439816148f013c412f31ea5aac233233d1f1caa1a6fb8762162065277d67fa67ff9a9b006aee912be33988dee005a0c67f2abe4baa8bb5aa82e7c66dad8f9b6d371e9f62295844fdc5c952d4939d146de21", Mac => "42af9bb87aa1037114f53189c0d05b5197f42083fa6630445e5021d81f525550e8316d25ac5e79e5"); Test_HMAC_SHA384 (Key => "dc454e19f3e1181ff3ef0553a81be2dbf3cf3d9d704d28f757fb39b1a0fdd5306b09aeec9e778b24d09848d066491dd7fbc8238206c61330b6bd514c21832a7d9e205a1c6fddd2eba49db8043b70ae0f8c6657b8e5a1176171ae1b135e169abb3e2f5a93ae3875de36a55dd871b81eed6e51e3295507bcf04e779eef9edcac5213e1b437a3b3fd63505940344f48f4d768", Msg => "8e4c5174a7a7920055ea1ba5e307af6c49e71e33fdf4bb4f0bdb0f766890cfdd83920c9d1e70aa5b5c8c13281b1f2ca6837d896cdf9bddacacceb413f0d564f1ce1a409a5635100ca2b2bed21e1452282719205fd840408320893f3c187c14f2946c5634f9fdac5b4ee4846a95ee08395b444dd38eedce1c8f941ab7888cc926", Mac => "cf6666f246b6bc5cfd0a9bb8184f8c0057d62ff8dec5285c2d9fa18bffcfec9663374422caff1add"); Test_HMAC_SHA384 (Key => "c7d57e7568f937194e12ceed4af8cd23521bf054326a7e7d7e73d947cbcb548b1eb04615a5ed5da8a5fe3443b47527a3289c6609cf5c483de15de2d3326fd9adac2974c1fdcff51c8d792a27b3723f2a28dfd60ebca15967477c8fb2e3786eda58873102d869aa7eedcdd822afb9bcc03a2b69ec5f015b029a16096b44aebd1b0a14a45e9e8121d5ac4067bb1010476d46", Msg => "4e462ff4568a9185c42651cb9cdcb7408682d20825056b18a5ae379e93a4509df2b3e6d88b4b32f284ccacd334007e4e36e93800bcbec57b26309ea4d4f13d593877d5572ffe405b91cc398806b8cb091ced09f797ec007d09d0ea3aa2d6a5e6481c6339eaa9a20812ae5fb2ba0b86ba6115aeb55e97036773178329a55a6e8d", Mac => "968d6d68367e361e137ebe60422ed2c309167402038c67edc11ed9961df1bb08c359996740e0da83"); Test_HMAC_SHA384 (Key => "cc65da6fca9702fe44f2d808bff6aa3591b21f1c4792c0b74379b613aa0fd54c7d5ddab90597f16475387bbdcb540d8ff72abc323ffa9803e2167611fb3af319a920b5b56d50f4d0d336395d557666487c84f7ad486f8749d2fd962e30fd89ba99d9f2c9c96b122aa7119d502604bc4a69e558f62a9996715c579ed10fffa11795ae1a5fe38f545a39f42cfe06a5187c06", Msg => "b04dac9b967eaa2c89f887f25d4b641fcd566eb71c60a944fd64edccb1ab2e006fa000b608e15999cb92991fa6f6c9bc8f40205622a6ccf88cb8efcaa7f0e741668ad2937495516e184b8de95c9e78bb6e1356aa46d37b47890056d9ae45ae975fb12c1a22c51a1138cb6a37c56afa823278169dd00f3f99bee32ae00cd20c6a", Mac => "bb402a160edbf81ad5f32e89f3ff51483a699755b31ab50c03eb50f4d02a285cb4ca49536e16f1d3"); Test_HMAC_SHA384 (Key => "96f763e5bffe0bf5bbcd9b942bcfdb3e32ed26ae2a6ac1ea960b6b7f587c350e25ef94073506b5b53ff3107ba4de405deb8612c16d2cdc7751ad10f8bbee10eb417c44ee9f746b92aba12ea78be5fbbb25da10ddd7b8d6a7687a717b3f3c950cd3e89b206311d495e71f1da246adb360c92f4989d0d8587fc4bbb7904c306b78c479c027eba599c5dbb504f43ffe1155c0", Msg => "b59d490ba4adccaf7255d9b6129013866786912b58539041230a6415f3f9b507b42fe733263cda503038d4d77807bb6830da886b33f9f8f350c184e7e5e89463b009f05ce35c778376c4136cc110ecf04a7adcd0dc74249ad9a55dd1d02eb14852314acf02940b11ec027ebd18330ee45e6e77a37b4c7a0165bed51adc51727e", Mac => "7a95bdea413b7997f94a6d16152fc254bb5f34f2e6d62bdaca1efb7fde569e5d8068bdbb7ace2609"); Test_HMAC_SHA384 (Key => "f7d56910205345c18409bbd42bb13265d8cdb1b0e1304ebf3dc1ea46df7c1bcb42b96a0946b1bf973a3e19c53ae282c7bb0b431564955411209116ea714544c10773270b91df0a37d30bee90f8457f642ae3466661ce1f51783deece86c38e986b8c0adea9e410e976f8a2fe0fe10f864ede226c7fe199c7704ed8b9c7ffdf96988b7a4937c8b7f44b8e9dd724be1b734f", Msg => "23db86c1510c083f02ae3d8c9ca54dbc2bd8540c4c8465d349d7cfb585ba9e1a1bee65dec25a3b4bf4a304444ffef2c23b424b85cd426c03eb590ea5b146c832143ad58bc530189a587d5d85a6a8e227707b16c0455aa0eba5d4a3d16678409d57ea5d302436a5157963d0b76a4c25d113ab3d277b770974bf7017a36cf81041", Mac => "cd2f37c7d7cb19ba0e8021dee4a3af5d53e76729370fe2f05df74eae6e9566814af0ddbf3d23419d"); Test_HMAC_SHA384 (Key => "4810d4a682e216f0b461a373efa1469b7f18b31ed5ba1c3ac562ff3ef274424b86c0815c26aaa7842588bb77f74cfd4ce963328110dd3c407fcdede0bdf31daf7798faef71baa01ec269ea7b417187c53b39504667ebd8101bd54587bf105f1f835fe7674d592a47f5cbd685b5580b8edb62b574c12e1a33ff42af38df12302412dcefcda1d16d85267527a03b48b23033", Msg => "1ac164a39ff2d0a2195f3e7c5e506362f016dfc38a4c70b7f95d669e2d475704909e13c997d3da7e96b6cd11d83aa3adef789ddc49f7bcef042b319f033b15f442085a66666a024399bc8e50949cbab3fdec6710f41cd9f3e9ac226eb0ecde03d70721c3373faeb8c97a6a81bbfe103cc37925a9b4442f8b4fe822525be21bf8", Mac => "f611b272c28453f7afa7532e2c06507c5fffea12c1e7282bff8b1c337e85132911f67ffe76c00a89"); Test_HMAC_SHA384 (Key => "f05d561f5ad70403264c5e0a0edc12fd473b19c0b40f8cd85a99ba2a14987705876ab76359755b6c9ec54a3c93f6c4e68f55f3b93642c3c2f0d9f4919ad16e407ba3d4b279ef5b198c1cddbb744029f5a73f9e808e36f8f3f01a6989af9cec25b250d693220fad11d99a3e0e177fea317741419d22b3d27443a54099bbc299bb15b9e48fbc9bf95c6b8496bde67eaea3e8", Msg => "77d3f3e647e67766e5f4cf1bce5f631bd575ddbd02f29643a0c64dbd92191f2ae68db3dfadc3b62d0920873e87d13340af0ca3c5da99146a4492c8b76267fb477624192960f72e85b7ed9e8318fc1668be46c203539cc1470641d639def1600d4e228c8b098ac9b817e17cb329e8f5dd2aaaa23c160283220f5dde09aec134c2", Mac => "724e5d2d51d98c15ce2e78f861d7b6f8952882e9d93d40850b78a23e632c4e14a222ab3726b1a0aa7c6b2cd66082ed95"); Test_HMAC_SHA384 (Key => "95ece1c8ae5e94d16ec9983b1089a37395ad5b1d660916c13c87e4c13dbecf8f68c6611c324a679471def5487a93aaec86c935025b4518962884ac2cb04e66f7aa8e584b6860fb55b86c2b0a0873735dcd278bb525401f9ebaccd2beeac6830c26ebcf3c98c9d77d09194367014e872f306e641e0c21b241bc085e61354faf35a386cdd70aac83752d8d4449af4f6ccb78", Msg => "18dbab9f86b9d70bbdeb018f6a76ea7af23eb2ff111e9be3c13811795d8ae7d006c3e42b46547eb1f3c9e566565a435a8dbd42212e3fd0822d131f7300eaef4600c40f1d130521a388cb9ffe427f1bff19aacb9c7d0a44a15ce686a2469e3934d086365d36f449484498353d760cf9d15eac525a46a881a617584eed79cf4d03", Mac => "2be1bd6a766e30792154cda00af97cc512e81413e0fb761698f39a26cecc3face6f9a98b7c49605126dfa5aa8de1ad72"); Test_HMAC_SHA384 (Key => "70200eb90526e89d3d139d4d057398534fbd7d91087dc0834ab270c4d27553d4b4dc38184d1e89227af82033074f5bfe6b1673afb272092cba1c029ba20895248044a2f8522246923899ac3de0e926d6417e7cd38c1784845f27f2993c7b72e53b1ef461fb7a4774debfea7176891f623abd40047eb35612a29be8c68919119e4c33d55c306db550d63281d9b2766e2abe", Msg => "1e6a0d7f4bf483287255148e2e9346734c14751421a6c55121c35b0eae12cdd92e30d6cd60b14fb6f0625a7649d1e1a7aa103f817cb53cfee3253f3d9313bf24e543fb4a2994eb143e3d761e6157e5dc439c98815e6ef71f881bac10c95f10966a2ae2be4ea43f8a866ece4e1f2b3c5b3e40e8db70d7dffc3b2a0a51f9fea675", Mac => "40497133e82d9b6a335002f71585340da2fdc6bceb03fd911c82abe8715191624671bf476b89de4d9a7bdade775ac744"); Test_HMAC_SHA384 (Key => "332b091239699daabb4df4d8d45527a288437b8c586791011420ddf5f1a159c9dcf17b6f0d3564cede325a68de0e783a2156a4e3db46c2092d4427f93fad518d8fd4d553894898eb575642b1facff09d9a0c2a671a2e14eef0aae8da3406a380f6ddff07d529a2c9cdc295fc5121f7929a6af35d3eaaef77045c06e1f733b96ab913e1d31a60e830e97c39910b8bf5e2c9", Msg => "64c479cbb5c9c6167db18c881f23699354c8f4c67b4facf430b52f931fc3ad621ad89b4f6ae8ac9763c5fd2f3c9d8f631dc4fbbd78b461289d53a2558974cf5eff9fe1a9db15aa10a20f0b3e5d47685ca8b959ee06aba2f777eb66644d5897a73ba3b1a3af57a8c861171e7f2c27dac81e2f7621cb3b57abe605e3881277ed87", Mac => "ad69ddfcbf2e6383eabb9f561d947eb5a6cdfcfc220f506e591881291ae85524394e4b4568eeabf1b0103d07fdfbb8da"); Test_HMAC_SHA384 (Key => "f87e5d9fa8d2745f9aa442686bb0e372c190db05d42fb58f2e80ebb4af7006e5d3190634383804665ae1164aa171734a9fc5d84092a92a8b31935c61a5929366d581887ee6802ee002a5966d59ee0f3f667a918474f95c8d6062dc22a0e4d019841eab27bc923af51b5788769b0fff79a019cf7a810894be4453339fa94d04246b5837d4c25670cc2c61b5106dbc8a1fd4", Msg => "38bd6300e7ace5d0be9713b5fd4ece221bfde5b80c5b7e14c023b8ececc88e5a0c65ff77a9f26b2cd7be41450319d7c7eb519984eee166ec86e4372613d00260da60de634dd2676a8d5364342db8a758396e35d976b4a7faec07d053a2dea025a99848eb5bb39f31e53ec5a90391067c0b3b01de2d3c09e5f975cb9b215c3152", Mac => "f8c0539edea90bd9cec6a408a9d47dc2e341a68c5d91fb8cdd48c13f7667836dc4b68c8ec2519121a3fe02e571dc5c74"); Test_HMAC_SHA384 (Key => "7da3134a85e28a852e16a552aa34d3767d444a583c15f05b942f7c6a8d09d8d5107cca5ba878d48885f65941c62d009df8095ef6d9d9cf406248a49a058e842334e70c0f2244b9facd41087b3c58dbfd05541fca1308ac69a6406c2a9bf8c0ffeecc1f8d7db001830fe1fb2b941c2b3faf0dd6fd710a507d68011c43d8af551148134cfe402373cc52bd7a7757e0b70afb", Msg => "c523fd03e54f1046e7282756f87501c6ed0835a233e6c6af09a8f7f5ec21607b534142529d3918d448e06e2e6356f61c46e7d9f480324be6118a6282da9c287a5152efaa79f8e455129ee7b20cbd9aa7421db8d465f5a9d3365553bef9c132f2261eab1361d39d51ac283ae9dcf115ee49717b49ca7907ffe1d071b232d7a76b", Mac => "b1fc08f7a1d0bcaf9cd23024cb0f9ebcb826d9facf84c50d644031ce69d99f5d07eb72e02e25b0a3fd395759552d0dec"); Test_HMAC_SHA384 (Key => "f85000b579f5db06206f5cf43e9f700e352bb6bfd37e7c76de10e903f0e77b45855eb50253251116da893cd03bf582994db987d6ee0b3910974b0252348c42d3324ffcd5d991d0cddc0929c42eabb7fd187020d88959f2f6adb2dd9ec0941f6025ad3ff8b243fe754f778b9abfc7f684bdd7e78d4b71907147cae0af3f07f93286ffe531874384545a5cc9189553267465", Msg => "40ecdfd2810f09de02dee7a3d82ad794fe124af3f81d818cb78695a2bdd7ba2a81b9c437150bebb60631cb5b84afafdbc2f60e5ca07d56298814e9ab95766595fb1d295ea35a15f415a490af9b31d083a3c3567b66c5b762c796a2c37e251f1575be152f72230f02f7df3f8667d7c4f569222838911a2d9e3eb3c9d4be0c6f12", Mac => "c2fdc5b35ee992e0cb4c761a705d8cdeeca26edc2e392419f81173b478cebfb3bdc8787273639da8882020150ef120a8"); Test_HMAC_SHA384 (Key => "59f3efcd2fc8ab28aed9165424c8962fc883b232fa767649cc0019e1c224dd42d682371fbf85306b73dd0b6feb30281a260c289870215226e4ad352430378f6b98806ee23eb7954ca0ec216462c76d2c4e7a328299f4f3f4675798d592ad5990a7d7dd3d32c5a3723ceda25c11f52c0e47b31818fb58205c5ee8881d71ee01590c6dcc59251922864fc7d47e81232f6719", Msg => "cfb0db236306e51c6b540bc1797409ecce36c4fc1e0d2f2793086f1214043e9ec6218d05d3726d276bf92f1e09d2ca18f8ae7e661583b7d0d682342c8b4a682fe45b2182b4cd6718f442a7c00b1911f64de43effc11c16352714f19f392cfcc43247dfc18d7f9c9a0f17bace07b0a42ed5c04ceea94113fd8da6ed92a613c008", Mac => "761c1b719e554e261f783334770d59879926a641bb5f8db8583b43c52554639d4f00e19e9e08bfef181a406e68a23a2f"); Test_HMAC_SHA384 (Key => "e6fae88e7e75e970646091815949c55f9554a5f85d82c1efd83389411fea06289351c83f737d20e7ae728feaf5ea7d5f15522ece8416f394391e9d88c19937de90f9f54c953e676c1178f262a88781beb92678a4eb28ea2a08000b010f87e85884fa55fd0b4227c53579a42f9aa9384428d76ac1ba400d78ece2bbf42e3e7f5c185dd299fe11c9bbc37d8c99f2d70ab80a", Msg => "d3d906f23fd6893e241066457047acf137d3a374b396f8db89301be64d71e61749147f097aaa7f03dcd454cde8b5e4c25aa77227372dc6bb0f2a888f7f50ee18fbda9783ca7eb648529d720296be8d7efd3a44125538773017dc0a3aedbc8b9871941509383a74360fd4898d8448f04ca9f4e1dc14a054612ab0698f9e9e06bf", Mac => "002b1474834e0bd0ef8baaf4b38ee412ab1da2cad89a54ecba9cc8e5a74b44a9f663e23f6dbf419e1009766c3d7275cc"); Test_HMAC_SHA384 (Key => "321206ddf2d6f0c29b10e34444cad455a4324738824066446c9950e5acb4b3e3783b9de769b48f3b2f60d4d1826310875b261ca965fa11b7aefea369a342b1f13b2c1980721bd10bf94b344f2cf9991344c72aadce61f4c75c613a637a700f1de3ae24b0f555debc6399abc72ad29781c6dc1a4ca5be34fbdc8bbcda1986f6efd8896380daa8ddd6d311e3406436315a48", Msg => "19583b5e7cc08b189ac798ca2f45a83c345d23c0070de066c603a26efbb2e3037fa6d026981494e865b6d9dc7cd58cccd1a8e1abdadc98cbf0747e50f9d336e5441739adb4a91c7c21121248fb11b1da30eaf9c9500092a9f0a655804c330e79305480dd18a7aa3e968549f6f41f9ed01acc7104b3a156698c432fe63cf9f229", Mac => "88aa8e3dd920ad7684acc468021c4a9fd782766c6d80c339e81efba5121b22c80f872895a544c42a849b9c9c2838344c"); Test_HMAC_SHA384 (Key => "ec96c4a5f1b32b78a8439ef6e98dd93b712aa051360bad51f8beeecb19eced68ae2790ced6e202c44bc1f1973614fabc489e61b6069a063b640094929604fc3f23df22e23bd3d55d4a690535cdfe303b657d1e6b296ece144130b039b18215377249e3a9c78d8d89cec44298555365fff0523e36488fef25b6d6a98911701f9ac4ea3beb23181091ff581187771b805112", Msg => "6b1bb1f05d08e59fae3d06392a2d4d61f63432016a20dfeb1ef0e4bc48dc2c06459530ae75cd6a924cfa0d6fa657f3035b2cd76e1450c4de5deccd6bfb81ff407f2d94fc1b2a6958b597b3093a7bede835071550a01b17c7f90c8ae199a59a62426b45a3f725cb37109c5fcd8da02358ab4b536eb58ac0ee1dd881e6cb4de5b4", Mac => "bd4cb2284374d21c465ff20ebb88616abcae7c8a1cbd0ad966352c7a47e1f153c7e0eb62be767aa56fc5bc78ee5867e0"); Test_HMAC_SHA384 (Key => "0b0d5aa89010d5ebe8e2144e9a7a82a5fa6eab54a967e8655fd33fd7e8d985386d92c576f576e6f22b1487d662072ea9d625a22035f995375e74868168dfe6bce6147aa969ee001b47fe154d9b7f56788d8cc6a5d49170c079004defdd456722fdfb3feaf5606c8ec306865c4ecc423da70dde8c8e17c02838df5ac84ff3508f3bafdde1a0b473742796a1aa82d53a1eaa", Msg => "e68bd3073773cb4d15fef2bb61a0be80d5356a7a2f953f6092691141293d0c2d0dd6b13269c51b8adc3c87121e2113fee761c6cb0c87d176eb8d14ec0af1e4c1fb0c0c2483a01113fbb0bbcbf594d083234c23597515cd8d823abbed292d699078d6ecc7cc2b36513a0196ce2e217e76529f890bb267bc0c1d190d2cce172103", Mac => "8cf8f7217e2e9c3dcd14322e19eabcac17de11128f944441385ed984f07df8f446577c789f8d301f37c62af374a05602"); Test_HMAC_SHA384 (Key => "a0f93cfbd5f5ba6b0dfaed5310fa07eebfaa031f049b36b205a627e59d8ea0270ce1051fed1fe5f0691ecfbcabad67679378b89daf2ccc1667db7a1877a1803ea388d279a5a931546b94fe7c7ff2517fc76946d46ec0971c224470a7806a7e3accb54a0fe6dac51e7923239b7611edc0c14552cc2aa0bf4c9eaaaf999e30c3a2f13215eb96fccad6fd92e622775164b1ea", Msg => "66dd7620746dd224582e8857079059417407f79b06b11a114939d046e4fb1419cb69a327b5ad0b90d19005ffb49a04e4967a0e04bfa9cb343c4bdc61d6566dd445f50eb4a02fbecd18c4498fe657d55a82d2b7f916078b6c329383eac108ff263c4b5ed21d3a14619792fd128410f22a9fd79980f312813f93da6ee88c5af196", Mac => "6a186858094b8e9ac0f5b519a309fe89ee659b2a919f7f942a83da674e5163c65333e56458aa3bb29a11c62f65ff1c41"); Test_HMAC_SHA384 (Key => "a1360850ee9e253d9792b8736df334679990370ed58f6257dc0f67fa1e0b6370b9816f42a5d471872e7039a8a8acc9675ef4f320cb272a4e0d3e9250962f596e25104a17f4809f6c33431703b62c49e4eb4038d80e1827e4a087af10157d0e6ccd2bc255456857f58f547d09ff3b5de728bc2dbf062a02217d32e6bf02be2b75991aff86ff55402928eb9144eca0ad77fd", Msg => "dbcab7759b3e83d957896333952ca4329671378e7efffa41b6ac3af38f9275b6286564f3910438a4304d25c464361d046919dec07c502e313f0265e45e3c2d6b73448652272a0d559a9f7dcf060a76769fd97d46bd1545bb3c3a2c43234509f3850e2579a5d887525d27753dc1d237efff581e088a77c54677fb97f827d591b6", Mac => "2789ac4f72d6fd014b1bd5895e4812da977b8c6b3473a18270db1d99ebb9c47392400cf6a3300d88f8774f52b405486b"); Test_HMAC_SHA384 (Key => "044514e7de18bad8a149fadb8ce93228089129b739a346a8d3d200e12fe596f99eb70055fd832590895e4e20f505db37bad935e8af28038bd9aea162845ccd7d9258a4da1444ced117c3f5afc0397ba29cd36cd531c8b1dbd9de8751d02f30bf8b2de8c04be41b63f37fd5d0160e7a2f5586b7c5e809b8607a689cf63ae726892f40b54dcbea760dc49ad8cb1f0b40a78e", Msg => "3ebada6dcd96f06f3c2eba9a5f174c428b60451afc6a55a474f9fcec258c9476d1ea917530fe083d92e46efbc544a3a439df2e2b6267cbf75e942394d874daa92c03ce2acbfb9ecee2ed6ac43691daa2525b629ee54ec4006615d6d7f95085eb962c1af46836bc097371365b7aa5fb2320fb67d94dc748a7d3a59d1d52c79e26", Mac => "1da79416a0f61ffdd39cee60fa603e70c08061dbd9c1693683c3f54d6fee4a20006275edf3bae040df289495a89a6b01"); end Test_HMAC_SHA384_NIST; --------------------------------------------------------------------------- -- RFC 4868 PRF Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA512_Prf (T : in out Test_Cases.Test_Case'Class) is begin -- PRF-1 Test_HMAC_SHA512 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "87aa7cdea5ef619d4ff0b4241a1d6cb0 2379f4e2ce4ec2787ad0b30545e17cde" & "daa833b7d6b8a702038b274eaea3f4e4 be9d914eeb61f1702e696c203a126854", Textmsg => True); -- PRF-2 Test_HMAC_SHA512 ("Jefe", "what do ya want for nothing?", "164b7a7bfcf819e2e395fbe73b56e0a3 87bd64222e831fd610270cd7ea250554" & "9758bf75c05a994a6d034f65f8f0e6fd caeab1a34d4a6b4b636e070a38bce737", Textkey => True, Textmsg => True); -- PRF-3 Test_HMAC_SHA512 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa", "dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd" & "dddddddddddddddddddddddddddddddd dddd", "fa73b0089d56a284efb0f0756c890be9 b1b5dbdd8ee81a3655f83e33b2279d39" & "bf3e848279a722c806b485a47e67c807 b946a337bee8942674278859e13292fb"); -- PRF-4 Test_HMAC_SHA512 ("0102030405060708090a0b0c0d0e0f10 111213141516171819", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd" & "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcd", "b0ba465637458c6990e5a8c5f61d4af7 e576d97ff94b872de76f8050361ee3db" & "a91ca5c11aa25eb4d679275cc5788063 a5f19741120c4f2de2adebeb10a298dd"); -- PRF-5 Test_HMAC_SHA512 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaa", "54657374205573696e67204c61726765 72205468616e20426c6f636b2d53697a" & "65204b6579202d2048617368204b6579 204669727374", "80b24263c7c1a3ebb71493c1dd7be8b4 9b46d1f41b4aeec1121b013783f8f352" & "6b56d037e05f2598bd0fd2215d6a1e52 95e64f73f63f0aec8b915a985d786598"); -- PRF-6 Test_HMAC_SHA512 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa", "54686973206973206120746573742075 73696e672061206c6172676572207468 616e20626c6f636b2d73697a65206b65" & "7920616e642061206c61726765722074 68616e20626c6f636b2d73697a652064 6174612e20546865206b6579206e6565" & "647320746f2062652068617368656420 6265666f7265206265696e6720757365 642062792074686520484d414320616c" & "676f726974686d2e", "e37b6a775dc87dbaa4dfa9f96e5e3ffd debd71f8867289865df5a32d20cdc944" & "b6022cac3c4982b10d5eeb55c3e4de15 134676fb6de0446065c97440fa8c6a58"); end Test_HMAC_SHA512_Prf; --------------------------------------------------------------------------- -- RFC 4868 AUTH Test vectors --------------------------------------------------------------------------- procedure Test_HMAC_SHA512_Auth (T : in out Test_Cases.Test_Case'Class) is begin -- AUTH512-1 Test_HMAC_SHA512 ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "Hi There", "637edc6e01dce7e6742a99451aae82df 23da3e92439e590e43e761b33e910fb8" & "ac2878ebd5803f6f0b61dbce5e251ff8 789a4722c1be65aea45fd464e89f8f5b", Textmsg => True); -- AUTH512-2 Test_HMAC_SHA512 ("4a6566654a6566654a6566654a656665 4a6566654a6566654a6566654a656665 4a6566654a6566654a6566654a656665 4a6566654a6566654a6566654a656665", "what do ya want for nothing?", "cb370917ae8a7ce28cfd1d8f4705d614 1c173b2a9362c15df235dfb251b15454 6aa334ae9fb9afc2184932d8695e397b fa0ffb93466cfcceaae38c833b7dba38", Textmsg => True); -- AUTH512-3 Test_HMAC_SHA512 ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddd dddd", "2ee7acd783624ca9398710f3ee05ae41 b9f9b0510c87e49e586cc9bf961733d8 623c7b55cebefccf02d5581acc1c9d5f b1ff68a1de45509fbe4da9a433922655"); -- AUTH512-4 Test_HMAC_SHA512 ("0102030405060708090a0b0c0d0e0f10 1112131415161718191a1b1c1d1e1f20 2122232425262728292a2b2c2d2e2f30 3132333435363738393a3b3c3d3e3f40", "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd cdcd", "5e6688e5a3daec826ca32eaea224eff5 e700628947470e13ad01302561bab108 b8c48cbc6b807dcfbd850521a685babc 7eae4a2a2e660dc0e86b931d65503fd2"); end Test_HMAC_SHA512_Auth; --------------------------------------------------------------------------- -- NIST test vectors are from -- CAVP Testing: Keyed-Hash Message Authentication Code (HMAC) -- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/mac/hmactestvectors.zip --------------------------------------------------------------------------- procedure Test_HMAC_SHA512_NIST (T : in out Test_Cases.Test_Case'Class) is begin Test_HMAC_SHA512 (Key => "726374c4b8df517510db9159b730f93431e0cd468d4f3821eab0edb93abd0fba46ab4f1ef35d54fec3d85fa89ef72ff3d35f22cf5ab69e205c10afcdf4aaf11338dbb12073474fddb556e60b8ee52f91163ba314303ee0c910e64e87fbf302214edbe3f2", Msg => "ac939659dc5f668c9969c0530422e3417a462c8b665e8db25a883a625f7aa59b89c5ad0ece5712ca17442d1798c6dea25d82c5db260cb59c75ae650be56569c1bd2d612cc57e71315917f116bbfa65a0aeb8af7840ee83d3e7101c52cf652d2773531b7a6bdd690b846a741816c860819270522a5b0cdfa1d736c501c583d916", Mac => "bd3d2df6f9d284b421a43e5f9cb94bc4ff88a88243f1f0133bad0fb1791f6569"); Test_HMAC_SHA512 (Key => "e245be9a9c8101263830ad3515c1c6cbf285a7e4b362ebc062cb8e7e75ef50ec4f315a9e09d9243d7109962253f26e23f847e1adedf2851405076e26a1f697062f048438f1fc26f80021ffd09068876975e4cda2e78261df82f672a390f534628ba58490", Msg => "425315dd8eccd17a84c1aa00ff72763f99ddcbc2c381b8b21567b2f8e263d1a210983d88263ae32fa7986ced9f596f4e7b05e5b71dc8de4930737308b9c4fc3defe783194d3c789ae55ba5b3f75665a7c23e11b69ae8bcfb3bf020955dffd705894acfd72a5bf885e7143f9830f1c010178d37066268b890dee7a1e5f69cccc1", Mac => "c5801d80a14391720e77eb7ffb1a0b21a16323641c9a312b05fdc34e90383c85"); Test_HMAC_SHA512 (Key => "7eb72f117b397cefcfb4e75ace3b081776e46b13521e93559d453e32ab74ebc0859b9a8dd4d1d39000ebe95f984d80a3f5004dc91a051dfbdfe9194f4f9a483e4e7955577fb0933464c63eaec771044d59abc3029a079519f8460a693b25b4ce207ae9d9", Msg => "4e6611a6d76395f2b0e23dcafcc672c090e7c00a5fb5e23d351f1f59a9b3da064d06641d2756146a656e9ab14cca90ee72fc52e12d4e10ca4ba9217203b59a6a2c422097ade7faef35e86a7d2c5d3eabe991a2c025a938a8af866bf462ec002155e3ed1d515d6f07881a573683c9a47e5d7057ae2f0d835dcb7ea4e7ad9e31b2", Mac => "531bb20800ceef736d52d323a01f91fed1b80457947b1f865d1f6b3b1102552f"); Test_HMAC_SHA512 (Key => "12720cff0ca649ff2e1c9355cba8020fc96dbe05af9fb4bc008d8d8ac8dee0fb741aa674e66def16c9a8d4e52289ad2a283c84165621c9a7bed046d0a05b56d43bd352f3e30d4d4854a501f246440872421f5054b3c0c91240096035597631bd10a2f8c3", Msg => "def8c9acee9d9f191419982551804a9a9411c7d1240b22243dc32fa5fef28b118353dcff4e6e5a5debae8f1dd3ba5a2c92023aa42598c942a642871a2bcdd989eba4526ca2a1308f37222a699c606906f7fcd444ffdb9042a834c71602e7a9be5e11b159b4dd2a98419df16f74197c100b261b197a7b7e0c8cc178014ce90297", Mac => "dc72f7049c66effcb820848059516c44f934ccb2ffca6f9f8f884e0e1c67eece"); Test_HMAC_SHA512 (Key => "83488a05032905754cc8fc569d37cae05f0c370db6acaafc56ca9a93982a4669ccaba6e3d184a19de4ce800bb643a360c14572aedb22974f0c966b859d91ad5d713b7ad99935794d2222570a3167733a532eda0b0eb17510bcb581e4995440101a00ee2e", Msg => "bd1170af91fdb2160db3522e1bc3b1a349d6e50479920ac5d9bedd8a16a787a3cdc2b6d24392f25555cc2f20b2ba9e6b47ddc96cfbd6df669d874ce21a758d3cf4704362ef7786d90ed67b01bd91299950058885accddbcf44e340ed4807864218653ee7ff7215aa1e176157a611f9374b984ad7f53ea70ab81be131062718ba", Mac => "6563097db04630821c814912828410d2cb056219f886786d6bf57a5b5b0083ea"); Test_HMAC_SHA512 (Key => "9c054e983cf5488714bc48ccbe9a5bc95e34646a84e61d13545a59d6e45a8ceae5e28c58867a99f895c29c9ce74fac8bfbb5d631dae51e1441bac10a02cebdaaa89293005a9e4c850245ba4dae6d0083369d55131f5804a6bfaab7d3a200f6932d3debf6", Msg => "7da3134a85e28a852e16a552aa34d3767d444a583c15f05b942f7c6a8d09d8d5107cca5ba878d48885f65941c62d009df8095ef6d9d9cf406248a49a058e842334e70c0f2244b9facd41087b3c58dbfd05541fca1308ac69a6406c2a9bf8c0ffeecc1f8d7db001830fe1fb2b941c2b3faf0dd6fd710a507d68011c43d8af5511", Mac => "adaa76f70a17b99fb65cb7625b4e19de5a539a21982fd5b5fce26772a0dbf488"); Test_HMAC_SHA512 (Key => "9963406c515852a8892ba6879e1a91d7b4058711f0d0eadee80920db57cae89916e1eee9472f9d56d34e34f218771c56dba279e484eeff4f8a44065e2c37e1ec622f6c3413c7e54b8873fdee21662e7e46b34e49a1b2650b8aa5bcb5c39b366c6695e3d5", Msg => "274376f90a39f49c0dad642cfa4f810afdae7157050847646d60cc6adcd27f7c6a24dab9049dd7c6111ab37c555ef2dd16aaa34d7e8de5ff41feaaad80a8bb8cec85fd7f2eaef28a8772828ab3a5fc24143a58fc0c15bf27ab1a4de28a8a1584f68f65b151154cd1b6dc5ac0dccba7c73d8816cc7745dbc5f2dd3b73c31f934c", Mac => "0ab30447b762dacaa6d2ca8a79265c80defdcc510cad72636b0f3f97cff05a3d"); Test_HMAC_SHA512 (Key => "7f87d81389a6062e8ed501ea964c2fe35b2d3de9fd676c04f7da2bb552bdeb7f183d2fa60c67e2379848ee4807530a81f403d3dc02c11fa8ce078ed422c6626a6c05905a6ecb1679364090c9510f06fb3c0e09321b21fe0aad5cb9d980674e35612723b6", Msg => "381dfe5c3405f0c67216a34475d453af05f8ae8fd47b92d561f119cd1d18d34ecdb152342f8eec0fe0edbc1d7d04ea7608dd2c878e648dc107bf6e927eddca957252be067b624878315b4fca4929e3570124c76dbf2c2c01f4f8c0a047abe7a9f0a848ba61a88c682c0a6233216ac7b8b6748429adfaf8fbf04517dec0a9b3f2", Mac => "69dfb148b9527e61b3bcc893cf098e21183fb989736591e80074baa270896136"); Test_HMAC_SHA512 (Key => "424f288fb5a07524c162c7adead1f4f4e99b87abb79f714fe8f4fb523a2dff786edb58825654970a30b3f7ae322094706652d75db851356d4e8119ab17dc1e95a77f82c64268d8d2367efc726ed14ce14524158598a94cd21f0b7f6cfdb10a8b95428ea4", Msg => "dc54c265659b8b724812ffc57f20ff8f05227ec58b54d7246df56473e4a64c087d149c8dcad69a0457995609df7a8157c0b3828ead7ac734a32659f91e94b43f8cc9d5d902d894132e0634f38d2d39bfdd5e79bfd6ca764415e3ebea59bea519f1bc94d2756922a8b5a4c30cef01cece456b8be16d0e8d5fab7442ccfcedc89f", Mac => "3c571546dcdf6491797129d298b478a3c672a976989bd89d9256fc64b3f715bd"); Test_HMAC_SHA512 (Key => "340446d9caf0c0f70f7d43325606ce5daeac0f3f5af9794e81c498ba2754a1ad5cc84ed2b3b5e814f612a5a81851354d6bcf98d2136e32d9bb8021dc87e8ce6d497bc2c2f7adbc705d6900770f40f17fa2c6e2611b392ae9a86476db8ec3643363e84db1", Msg => "7ce5cbe79d08104f03435fa575cb66f1b1fd6090685039d08b89f2bac52e482f493c9037cd1ce695d6d4869f377b7a4cd4ef768facca00e31791d3274b2f86ad25a2698e27f5b040bd6ed36ac40834f64c2303689d7b5e6f7957bdbaa1038e0d9b7f1c94b179b5773d790cae245cdc17a103cec6444c9d9c3a41781bce90a878", Mac => "c039cc8f9026d1c90e766a4bd723a1fc6ed313b99dc42bfd09e6c3f39ccc5c0e"); Test_HMAC_SHA512 (Key => "b636c84eba7188fa32cd65d87b8ba7df3ff77b58314a47e5fdcf3bc17e452949328596bcec64113fc9dbc3246565486b4fa9bd89ba591a69755ac2b11d255946916dd612a602d9051cf53e59d1fdf21b351905e7fe7701f31d957b4ef0a6e76ab937b1d9", Msg => "fa0f033f3293389e5a9312c6046757eee20fda34e4c8b4d8a1ddd2a8f8c0b0bbf7596362fb9edd5c19646d49bd74856191e2c066a19a23d7bc3ca4671d2ae8ae4bdf511d3d823837c2ba77fe20c52bacfbc4b8a479590da8a474294c106addabbd48d4583e66d2981b3f39ce757fd136e85ec8d6b62df8b2212e694018a9171b", Mac => "2e22dd9af3f9135dd49b88b2391dd2924f0b5b1d8154498d15681a329ff02813"); Test_HMAC_SHA512 (Key => "b80c19c671cd50f1c39dd0e0e89bcb50b41fcbf326fae8ce3dff3edf0cc29e04119f8418c3fe495f6ad69a24337029a0846ea21e8d0be15d20a46236c278f97e02acc32e09925cc1732a52de5de9da37bfbac2b1fd43a7c5b8696826ea16daa43239be50", Msg => "490aed3e0c539cd2af8cc9052a204338e9150354c537bd0a3473b560bc81d469aec6fb53107897a8db0376cd67abd9cf2373ca5e893eaf1a5135200ee568f67a16b8a4d60df4cb138442082436c111bd936c005bb942ee84a0a4c45094fe4e28e9a991ceea105f9d121228137fa8138ca3c84d503d89a1d087874a2db18905fa", Mac => "62461e063c08dc191e4bd04d5f553dd38d7679af84a1d0b140be7499b34fa43f"); Test_HMAC_SHA512 (Key => "94753191a7f8b9095102c5a7691e847623c068a735d972cd39a9af4d53d4030f13b9257a9dffeba00770c8b5020b93c6bd5489a706ef962eb36dd09e40664466b9c8f60cda6e236476f5c90515cb6afde1880cc4c382846fc99bf426cb5e93d84e4bac2d", Msg => "0fa4952307a137b5250aeef287dae233b4c8f79ad2b3a09a1a43f8b98ace0f94d9788124b09f4e411776e5642eef82b11ddfba354d5d556cd96a5b063fd871ea5c64667c97260a1b5c2b3feecc6052e1b2b18beab9730291ddffb5af20a0d8767eb06cb122fd134dda722319c9f3f9ca5c8890427fbe5212104a2d3d93f0ea3f", Mac => "a08df9f841a2e227c4d9ba9c87e5d14a421d025ff4bf5d533a03ea449cd89ea4"); Test_HMAC_SHA512 (Key => "986b190803ae085510e96c2bc65c956b14881040089478a542ef8e28a7378ced5a5ab7f5e8fb34a0c2171c71f1e8d312050995984edc51074f29bb1970079d3bf3006dd9297025dbe62e4f70326e5f0a41e646aaa630445dc370fe068436d05f4da6643b", Msg => "de48fc7bda19796ffdf455ce423c79b0f55db17e67ae03fae69b3e7fec03d58a97dfee7a5925b794f1ecf94a9ad0efbd829858807d16cb9ffb4f4be038dc1b48b290d3e1e05bb4bb216e3931f3a0ee6d6511852fcf0d27c9c033086f38d63ead17a3d339d68419eb75c53d0ab4761fc986106111c35bbf811d8e9eb455b8e7c2", Mac => "376f040e59dfbcd2936028edd6ff6011d2e2c8ddd98acc3e946e1880d103d343"); Test_HMAC_SHA512 (Key => "c35b2d9d8a383db4b0c6d46a59a6dd8e6843ebfba0627bc809fa79be9645050f04177644056f9f789e4b52c4cec123fa704c6e9662649cf1e751a1b84a40c99dc597b54ca086a0a19ddee8189427c9855bed6b05e85a1f34ba0ae5a0751a337ecc82f19c", Msg => "76e84e9a2f3063d740eca3fb6be583327dc9ceaf2d7ca49f48b0c25c0bb504e4d0922789ee54d4eadaa6da2192a2bc3e3be76bf508ec54935f949d363702ac3ec5aeeaff57b8c6b8807dfcc975691720b70c34f5f26f0ab725a8274604ac7c629b651c643304412b7999905adde09ec1395eb218b3adcdf3e415e7f23a5c7c38", Mac => "2c4b775af82a21615fe47e4c29322f9b91359337208378b036b77f809ad83d54"); Test_HMAC_SHA512 (Key => "6aa11466a2c96e20544c5b34c91f90d17f9799a57c73ca00e21d7736c42d6845382f87b7ada6dcca7f51bbcfc9ac3cd07bbaec75ac02c22831d755786edd4bbb6cc915f82c68da043be3b0ea87411290712d8f9823fabf8524e47b1f29994d182ff826ef", Msg => "2771cdfdd77aabbcc95740bbd94075876ed3024f0b5a9949214d60522818a5d5ed1dceed2efd8ece64135f61e0422c2e19f14d7f4553b9c226ec7730275156aca72fdeee958e86e03d5728486114b1a88cf81d62a31fa320bd162c73349e0abbfdade74634b6fbbcfb2a83ba853f6ebd6ef059424e45bd2b8dd46765798829c8", Mac => "2476dfac043e55518ddba312e63699b22a587fbdccccf3981207ef5cfc2e27eeb6a4062bda6b19bf"); Test_HMAC_SHA512 (Key => "3beb75373a0a02107b2748a7b9a3738b1a9d75fab167a6f8473aad9e5b28a4b567537783655d8de5921fab9e729e15ef143af668972901fded24595cdf60ae7e51c0a97cc8498ba529d611cdc40d9ae790918bd7b879f38157026b26808041f0829bd5cb", Msg => "0405555d89a8117794c64285cd30047d642a1d635f6eeb6b33739b5e92ee9c3e859a532dba34118b1fca425fb036e7f88ce646d44fdedfc09cffa341f9896133e0df81b0128af4332f816bfd84a7c7b82496d15b3a9b2c4d9d0188cda59317913e5c45ad3ab1a4b7ec722529f28c8e0652c228c1c9aeb85a5f02b1ca3f14a8a1", Mac => "fa58f0aad7a3116caec2193a3dffb0d1c0b3172c3b59a9a62ebbf31d21c766818f1cefb26052af72"); Test_HMAC_SHA512 (Key => "6bdaf94d6a351f76604658c7b9949f9e6d0dbafb8c4a6ce21b15ed011e289793f638e284ed3292d610c52f433d20b6247cfd8e9192debdcad4965cd53a0c4869b43c1b0bc17e5b773d0bf1417abddcbc9316261bfd8417d65fe3aa50a4443db64eed8c2a", Msg => "2bcb4303bc51438dbfa7630511c50d3a13184a25ae77e37a9458c67dc844aa176088f6298a2edf20cd2bd1ca91da1168e2a9a00471136204dbce7f002e450ad1aa48e1eac402d4ec712c0974a0819e3708729152251adddb7d74e6bc28cc17c18f73caef74b768183312d1ac47a2fed20fd9e5b7d2769c2602b4c25abdc11b10", Mac => "edbfe1cb8575c0b6ee7f31f156a6f5fa5d2ec3e433eb5f2a64a0c8e575cad47cd022a11f94ccce1f"); Test_HMAC_SHA512 (Key => "521f28ee6c3019f21a3cf988fbf10fe739666504c6522963e57c532ded728884497e3e13c4d622e90413b68753e43f37a604dea0d769fd9836bfec394014cc37aed5ad70b2f9f3c57d7cfe29040f0af7040e538943b27d061a88347b3021102e880bbb2f", Msg => "c444d8cf048b327b1459096f0a403d5fdb2e8e56713755a0fe9472e78fec859ce4d361997f91bd04fb242d769f88515c33354c9e12ea787f81a959c53f02cf195e958fb050d3d32b450451bcb58e6a8b3874a5589e1d5b613c57b486849bd2abd9934b5ea1d9ddb99b025d8a72dbf1b293f27fcb3c58650ed6a66b73853ef519", Mac => "bcac2df34ef75ed3737537d84c4c02cf2520a7b04dd47b90734a65c2fb4d237d138973feb8c7c1c9"); Test_HMAC_SHA512 (Key => "4241ad5de14a2198acb4c357c4ad5759bc09b335a038d9ee367563c78341245991100ce270424ce07b54bbdfdc58788f53a2d11933c564b3adbe8473506edf60d14e5dcf085e4bed3c5eb898a0411f731ddf473952ea6851da238fa3cdcd43ab896269cb", Msg => "20e0b7dba419fe76c427c77bd3e31d1b4f9f99dab8acd638a22024910ad58142e6b5c50dff351cbf0320b90fd696c9ca2a54a62d4f364e924cf913502e4694dca0eceb34bc6e287d21bdffea4646bde10e2f80599cdea88768bc89b992386282770e931783c90af94686ffd4c9fce1a722b9902646aecc5d1feeee95deb3d57b", Mac => "0741bd432e785b3e1e62b2e5064167b84e15415a7b21d168f91b96bf89efb2f0c3e4a12ae089e1ae"); Test_HMAC_SHA512 (Key => "1b0bb110ef8d7139773117d7308dac5d11ce7c756f071df11ec8ac05d9f35ab4e3cb2789ef4eee873ec5a2620799d7f01b6884dac9580797ffab699bb394e4cb8149a235965ac8fecc41b39b163a81441f55d4a62ec9d2d94d8b7191aa1ff1983dafaa7c", Msg => "10cd0c9fe541169120a005d9486737eb54bc0847134751f0cb432f2021d5063a389cc5001d896b0663f1ca660ae08ab6a6b17237bcdbe34f700ea53a5d7fe7fcc580809aea537b89bb40d367b3e57be9ffcea115df4534b14e6ba4fbe588e99afda0c6d514474f0372b5a9420b1d116ca83b1f47422d4cfcae83b3cb809914fc", Mac => "e59e91f69d6cb65db4781a1dff144dbf9dd61c7ac6425d2612d8535d2e404bbda2cabb349d7528ff"); Test_HMAC_SHA512 (Key => "e4b77ba343cde0bf4cd888b0ff6effe0ef5f24c38deb8bb0a9331fef36ee0c134e5ddc897681df72228bd1ae7c94b739618e0abbac7b175ab8dda6d3206ddac9c90f585d2306abfeab64e882b5c58d76683dafb30a8f55327ea01f220a2b2b375eb53844", Msg => "180bfcbdf15eadf2b90bd239fa475e104924aeaa1a110494d9a03798368da9e2c0fb7861b500f970186462b605a6c64a4240471b162c87905ea75f6bdd35d4f3d4e54652d2d6eb3ccefa7cd1731a2ec5bb1be4bebf7fa3fdce2f4641bc7773e87c52cd58f1e86b9d02558a53edac7ec7dd3bef59be11412550be54e27a5a6e09", Mac => "9481e91ef436ad8a6975300201997106dc545b261e7183533931d51aa19e1844bdc9ef5e5a860b8f"); Test_HMAC_SHA512 (Key => "180deff707d32ae0b6c0b58f030a7b8a6a14e9ddd3ed5ebfae19dd724295066b421544b3a290478da8feb55946611cb8a7022cf108fd2394c9ff885dc44f1c5add0b0e50dab56e5c76eee4d6b080a27a69a297ca2e78e5ae53da965e41568a811078b497", Msg => "09d575baeef7e337621e239c03035890b68a2730e8f61bef1a5948a09c4f2fd198ece25b53f36937b0496393f6a9f025d298cfc0a09cc425e6a93d1b21dc34c2c56c57247fdd670dbd76de1d70f6d41b1083238ce1e3ca8476ee8fbd7343e9e6973b1c3df91ba660918eda60fb52cb1878316bbd3633f4b6d11287ad19ee13e6", Mac => "0e1328e618ce2d3668a3af236c695409eae4ae963a380ab4ef458b68d0d313a74019c2a79d65bb02"); Test_HMAC_SHA512 (Key => "b522b2664b0a3669d6ef3796ffa1d5dd0a288c1c6605628b82bb6557e28e548d718b9d3a19c887d191edb1cc76f3bb969e2c43a9a98413f3d806987f23a29751852d1b929ba9b2ed6dc7d8388caab4575dee025db4e951f5a4306e01965d2080991015b5", Msg => "b3db592d3736d262fb074b7391258e13b4f2c7d08a8ce5e82648435f515c884e8adbcc7e4be7fc358e227f5090651992d5b5103c6c728ede74d2476cdf8e5b9476db7e4f1d9c56b759d624180f64a7498fec3e3dd0114cd5fdeae0f831b396e680c3b8c936bea98e630c84f2978a00e0ea7f97fa3fd1e776ca79582bd034ffeb", Mac => "a46f4c53e76cf37f354d2101df409db5a1f717c498bde11410187880c6a35249755cdff928c05023"); Test_HMAC_SHA512 (Key => "703df657c2480fa26225874f5b7fee03cad062afef274a6f832947b34c55679cf08d9ca907d26d927350ec74f49ae82ff736630caf5c46a467fb54fd17fd5df535ccb4e4cd15e37dd4cc9cf5ba70f3683e90cb78868e8e376fa322472223183fe8022651", Msg => "32c3d3082cacd50e386a307cad0c89f7ee78fabd8e035bdbb73fc0a0cc1442514d13031efb066c553dccb9d6c364b8c76947cd885efb3ae985e59d9b1b5fbae59b0a7b98de653545879f2dad9eaa5b797b916e2ce60b10557c506a09552beb90e351455f1df1b946dd8c95eb8707fb77ecffe38f6e5c638664292fd1c0a35cbb", Mac => "2c9550074d5acd1dcb9ca0e09ddf9402e09388b7ac96393d4747750b7eeae484bcc0f4aaf6f74142"); Test_HMAC_SHA512 (Key => "29fbd8f37c84f5b434abd16b6a36ec2c34f2ab55c94aa0c0e5170c3d6fbaa23f5a698ed5c9c6b6dc76b64074547054b073d4239224ff28365f1cad4d617c92cd99ea4ae7c538263a591ed64620452d23259e2472d4f822955dd27a1b596d357eb0261311", Msg => "5df0b8cc7a1fd4b92ed482809f6a46e98a7cd81792ef1dafd733553dcbc596d341f979f3c7f613ae3602270e870099b2e83626b80f5453e0cfb2a3ede9da0d4f2446ad00a06bbaac67f6b8144555efb4da791ba3edda65bc03bc92fb30b17b292e60bdbcac84b1f9e8389f5b80712e3886cc1fa2d28a3b8c9cd88a2d4a54c6aa", Mac => "4f689f159b02f42863d455875a4050b15ac7626ffc9128e3dd6208e97a1bbcb1593ea9b6a3dcd4d3"); Test_HMAC_SHA512 (Key => "eec8c90aa52c43e76ef3caff62a0648de4dda52a32bfda383b4a8781b138141c5ef6c391bbf0e53cbf0e4ef7f57e06f3d1b541e744b0916d8e805ba85405882bf2fa7c1612314c827e202b20329d261cb6e61248aae4c276a2b17d253557ae6151dbdee4", Msg => "bd1df1cca29d293a5ab75588360ae96ee616b0953df3b5ee344264483265ed228aebe9bd454e407623e14a53dc0434dcab9aa62c0dbda247c7b0b0ae261438318a5f2f05268bf516010b7e9e4003b1f7a8b80dae5f4692d8f291dfa99c7d9842c6620acbcaba12c2fc1d3a92eb702668e4592f42b8f54d49bfce3a601d07d4fd", Mac => "00f5519dbec8caf1213ca51f38bfd47291bdddf530cb56f47f0d2331924ed2711aeb94edf603b8f6"); Test_HMAC_SHA512 (Key => "9f8586d89146bc0bb7dd1cbc756d4dc1dd0e198d26717ff759c3033d4ed34948d776e2313b2b6605e6fbc3c55ea3d4b179f536c6ce7c5786695fcff7c387f4eef104a88d1bad760b3007deb3d869ec30aa5d1007a0482965c74ee31b3b7043e753f780f5", Msg => "e998038c09f9e420e7d23baebd0aa868ca700dba9af2ef1f890f1f38838f991f0d71acf989255bcab5fb048e76dc3f85d43809ce453f22372e54b354a7be34ce7fa18dfe7f2d7bbaf316366f67445170afcbe18e2a1de1e9477fd50647b9ae214512eec4747b0c98a90b1a7c19aba5d46313dd23d1f5f5ddda77cd76ece7cfbf", Mac => "ec3dddb720380ab8300173797377e65136d139dc7c85886bb5dfb407b68decca1880fb7332356dbd"); Test_HMAC_SHA512 (Key => "39b877b8e82ecbd9740325828faf6721c129046eb0136144a03182b13620e2498145a2bf3b03e6b64b317dd48fcbc018d9e7bc6e37eb938178fe1fd1ebbcd9056a2ef98297f9df3c66d5b2ccdc4147c41676443f8c9985bc9734be2c31e76249fc5bc42a", Msg => "0a331ce20089b29e94b2c5f518c8dbead40417a2a8d50018f32f8512b3263d54edbbf3134ff661ac14353c9628c371958cacaf31fdd02567d0378d9e21a469dd2c6d8c3afb89dd9642eb5887870e559685d20dabd3865ac5c146beee8387a76f91f0f1404d6cadc2e67d21b07dd30f53871d3bf6731f279a8c0421eb20f67f72", Mac => "97168f5513c2e9bc4bc525ce2703740bce1a06ecfe99a570ac66c83ede9667cc07edf664617ce53c"); Test_HMAC_SHA512 (Key => "9427feb606205df574911dc02c5d1dcf1798b85d90013cd076cd9e9c80a76c65d1f40264cd5b010b2a85fdec4a2176d7c82c0a42516fe8eeb54988c83dae9a0e40703cb2f1bd6f037beacc8a506e7332bd3245adc3085312227895cbb6c3e0ae0622126a", Msg => "8beb01cc36cb03235d113c97dc3ef8dcedb1ea5f9179b8c43268bb938668002eb6129207c07dfb0f1a540872982ccd818f14e9ef3b6d0b415efcb5802a3d403161fa2187bb1d6ad688c3944b96917bdb554baa7939a2d98c604eb4a0755dde5bd4cb36b3ee52595fef83688b9f160bd0867fb56354c22a8d80873f5b2e71e196", Mac => "a8c6c8f81e845c251428f4a87cabeaf88c9b45c1fd613a072d58864ac7343fa4f401b43ef1892afa"); Test_HMAC_SHA512 (Key => "79867559c9919f394cde76b31fe22f793b88987001764e111591300f70c31339b1fcb8a3b476fb00663e4c53d8f063c792c130da29c311c114654808bb39ac7ad1fb9e40e4ce3f4d32c8e1f9bfb1bbeba408e03daa4772db1769122cc8a89cf5808b117a", Msg => "d1998d3b3ff5bc1c8f724aab792de8a35c60fba4eb41f2342227d60380ef2273709ed6570847c7fbf5303966b630afdb095b02a6a3e2b115243478c44a69241d65e1a5200b2865600c1dd84ea85455ba00b82497cb75d8ff4a15de777ee8577398aa231db1603e52bb8350edb8607f492abf8801cac30efa7c1132a48334637c", Mac => "b6b18c4c5364b47fd78c3d321dadf60de187fa68f5d7e55ca7fbf71f42c742411d379c8c55180d3f54cb9747b51aef7f"); Test_HMAC_SHA512 (Key => "e9168c659c63b6f40523c90532bae743f24feb2e94814b6df2554365af73300abc933af5213235b8fa89c96ebfbfd196c95e02211204cdc93d5b86a5d64ac5fada6d0d557ac3abd61ca7e1cfa302448ef0be6376a87ea955388c85f11712c7e44b8e4eaa", Msg => "42657c6316fbc1bcd69a87c7df3ab06dcc1e471e9764c10a00db83943314a503a5bcf67b3f28402dbe32cdca5a44293da5b22a99b74d2e508835a4a79deece66e7b6c4d4e816bde217b88aa78678630cc2bde6c9fa0a5d9064d04087dd87fbfcd0fcf05558edc045a9d3c646acffe543e9e88494aac4d6305d555f1e3b06b42d", Mac => "0e9b3afab50782f1751c80b46ced531c07c9ae4af50c77a058a2db31dabb013b719c4c22f5e5adeafab72154cf1fbd21"); Test_HMAC_SHA512 (Key => "18e18c27755ab04f7d00c63788da883fc36f314ad6dc3c72c3256efa11c916832b99948303c918f4fa48ac49044d75a607333550858615637b5ea2c389eb15545252d76e26b7448bdf9bb0430869a77b454b79d9ee42f67bfe7677e82ccb1e4657b45ece", Msg => "3b0b520933f465a422231fe07270cb6c5f31317da0525f7c49a8a9fbf082efee0e811e18a9aaf9c330ba1ab4a7b9335e03d29a56d8620507314f92a7bf9b0a6a373966f5f51f9215e59c72b1a3ec23fde10a83f10ac5f3fa24165beffbb16f467cda31885f7ab70209722fbeb02f20b1c07ef3367da2b1bbeaa50ebaeaeba7ec", Mac => "6e29ba429cf494661280e7a8702913bfd0054cd83c613bd6e837f1230e65cedd2498f639966383c87312c1f30bfc3245"); Test_HMAC_SHA512 (Key => "9ac2e1ad014d3fd6fc343ffb64bf964ab83fe435b44fe7d4255aee84fb5e91d5a0efa0a3887e59820adbde606ef9e66547f2b21e034a43dbc078ca5561a26094e1a9f710e86590179c32af6ebaab0c3be5b58c223ec06faf3449cbf49ea3397307f8ce3e", Msg => "e2b3d90746200181461d55df5b894b91cde375afdeae5682441a7446dde0ae2e9f6ed0a9ce4465e4719ecd9006538fe575fdf0e7435ac4e808f2844e23faa196ac791899aaa9470e86a0fe51c02fda63e10bce31b12a0319a970e2aaab8b6fabf11cd85f44174d086e6c13aaf1e7d411f9543a1590e8bc1d11dcb7e2df5bc076", Mac => "a7d14d03b1e40581db5ba0f54612809c3f03cee5c722f36d3d03608e2804b4f41fc5eb51e1406e1cc8dc046d29c92a64"); Test_HMAC_SHA512 (Key => "92f2061c17e008f62cf70480508a914cd964db1f8c0de0516b49e077cee20e40b5a78c9d5db5962511f5feb743e6d861db9d7680cf0a9729f47cdbc814677a07406636f2677c8e58289f3574e577c2cc1963a95aebbd6aea035f08c39c65bd89da35ec62", Msg => "a01d062181b8bab5f1209dfd836afc630bee6688af02612e41095b54ccade3a26c681908634963a36af562e045ec25e39a0d9c2a035d4f6d62044fc975986d1eaa9eabb6344ef0275e97007a1f63aa8cef1c44b5da6f54a8d350909a4a3e09a701c8a3711b50c80a760f5d143a59f526b22245725bc2d9a53bf5050f74261d04", Mac => "27bf46dd28ca5eaabb2fc9824095e7fdb8efefb167409b7f7f785897a05a3a8997ffadfcd5c6ed47ce218e72304bb79c"); Test_HMAC_SHA512 (Key => "6d81ede1cd618f73f0acd379a0956bf4ac3e471e31e3fe4618566fdae0aba8c69d3407fc41b09e541bbfdc979d996ad662005401707369b5baa5e454e92d4c5b5b7f98f06c1b97bbf5048ff7137425c92ace7cd029d4a1fd0f1a27a5aeba0ed4ae4aeae5", Msg => "d07e91f235ac32cda78a381adec42f86e8fdbe6cc114d93e23a637269fd407eded46df1b816ff5605e1391322f07c2b8943951e7baf0f3eb2e54c2c8f330ee41d2f7b0f9f10580d8a72888b08f5f5820dbe1dbb9eb618a601f91dff3e9e50d302699eed2aef53dfc29d005db2553598866ff462b7df106669d6576f1a97acb81", Mac => "246f366361163cae164ba273d2b52844511462eb094d77bc3b7684b7995a6ae015d722eea129d7918c53acbbb5908acf"); Test_HMAC_SHA512 (Key => "c10a45807b39df778490c743d9a77b7496bd9651b964ac28297b76e2f75d2fdae3583df0226114d95e0558b9ffa341f3a9d9443f053cf0fec54c16cbe2a72c53287cf366f543584e3eab985fd2d4a8cfe3bfd4c8c203a6bceac109f940d9ae7d995eaf0b", Msg => "899c13c9c430c4ad724f268c0d1f16da00ec0168ae1c02f0b5654aef743dc5b2cb92fbb421bc3427acb0dfd1ec76341979dd1962ff6d4297879d9d07f846ed74dd58b46668cc57c5b7d97da7576bb86707d167f7beb5db77ef52b8060be19ed848540988a14776b01d34c8b855e6e9eb3030b4d0f2de13b775ec6492b5f62206", Mac => "0595246c12a0ceb9b18ed49d2edd2251782d7e3fe0afbd163834b25a31654a25409976513e12c800f5a4a2e05df1ae0b"); Test_HMAC_SHA512 (Key => "ae9644bbc297c7dba36f11ce9f447a157bd3a06c5dbf68b4ea283f31ab80a6f5b59aed9c89043e3a3997de92cc4cb089e452fbda9e5d6c0aba405f9ffcbe5a8dd19ddaf136fd5301d6e87243722aa5fe8663ddef2a5a933c369409aea926d21a4cc79420", Msg => "74e8994d0bade0f0fd90547cdca2512e0a8e63b38a21b6d5100ace5a5ade7829c35f01af16fda581a09d4a43899a6fc864095f7a0442aafd919cd50fdc7751b3f080aa8eea3001910a96bcd809577cd2adf34fa39c4928c66e5e8cf7055a8d5021d3fcb22f4edb666203110405e1619410d29df4f940177accd859d97e8e1649", Mac => "f1c7440f008ed213f33f246469a3618a49120e841a211378ea297c7540c2f2365531e2b1e932e4661f55033310780a71"); Test_HMAC_SHA512 (Key => "222037722ce86b719e85f8db721b4507eee37328ccc69b80972b56d1580d83157250446ecb554a602ccc533eebc9f0e2c71a8ca113d9aa7f173d6e9eb3b55ffd45386b5fcdd62c884f9469af7976e03186dd42836213806a0f25456e47f1c38c637fb32b", Msg => "785ff8f78955df2592bd56e810355bd98054f275c482b586c90d8bdf6779b84c881716c98dd9a1f2ed6439bb1f67a461bb2bd3a1dc6c6627c8687249d33581f58057dae8ea92032162fd85965a58ef25829f1dcd30dfba1e054904eece85cf4ea849cdbd68290c9b39b1c0e087b1430d1cd85a638984ba53c8d9cb371f11ab3f", Mac => "c56c263ef9c7054fe982d4ae76ac38c6accd30dc29a19ccb52a212d77496d9e1648da47c260b2427d81f0b65f17e096f"); Test_HMAC_SHA512 (Key => "3d017f59bee7d18fd4ba573f3e4f61076f5b9f6a3487e47d98c729e205e7d5faab673c57258865705aa71099a2caf7322b79551e9acfa577f5d0ac7fc0fdb9da66262cfbdb8035dd80f7def347c54c611744416c7200e62f5511c8905fa8207336e7572e", Msg => "93fb9be674a8e2643bd12f68b02d2b8470f4ffca93f11a838bd92e244fdb7c7dba7852342d95d2727ccef4dc080ecfc5285c14a1cef8dbbd67a7a22e024b9208b5b605d03cc04633e49797f7a857793399db27bb83d264dfcd157655a13873734d5ebba1e952c60f3ad420a3d731b1368a1742fff9a63d4f86cab47f73c9a527", Mac => "2482e9bc78cd1e5ae912489ae9b51f1f21721c5856187da29a41a7d10c5dc1c34f8d47b2994aefae3cd5dcc7c8764f64"); Test_HMAC_SHA512 (Key => "e1d89c4790461f936cb9fca580dac01efde745cb8db798c9e5f83bed99bc8d623534869489baa74d4415311ec5f996012dce2d3cb9b229894fc1cc735694d803cb07479c91403b2409ed3864e3cc91b2347120cdc8443a08b9c9e2ab40243d96ccdc4727", Msg => "6ff1b7b637e6317d8269c1be2781a4d7de97ed99022b6e9e96c6dbdc87302d7b30e245e423bed21b27fe744e7d6b22ae68cfc97decac3568d52e3518fb5ffa04c59ac189ec42b23c81b3077f32797052c9c1b66cf50c9f8b4d2b130892677cae340073cc18d998899971c178cd15586c0954fe8ea7b474ac06a3bcd4d3b07b22", Mac => "7c7c7245d6916052fded129f08de09671350d26fe704461e446816ca790d53e1d9eda76e8e71f3018f442f86f3cee737"); Test_HMAC_SHA512 (Key => "6af240550657a89df868051711bd5c481b1152d37451ec35fcf39ab23189748f9996c38261a0c3674386a734ad14de2f1fd5955fd4287d40a696cebb2c638c54256309a6190fab0c3dd8efa298bcae6c64169fd4b7ba1e5a62412b8719a2b622d5031aa7", Msg => "381d043cbcf4919fb7d6b70a1df2b74dc9c9df0e1f405076f0f3052a9dcd117d80d628e4874b61aa22f43ae460b2dda85558a27abebbd407e80db816cd66cbbb80a44ccdcc75fa9b18b21fdb8eefcde37d50681cfb9e64b3ce9950918d90148e023077e1d39ae4db61b86dd6f1d010680a5939dc1d0e89e26c42d6852473735e", Mac => "f3119898e26deb4a0f1177de7d8914ba33713d9226ff2d3de986798a6a7584b04cd3c7889a3d9e3803ab73363340362f"); Test_HMAC_SHA512 (Key => "fbdbc0f366d4678654544804b8d6fd6f171668f2832e4623cdff0785f7d2de51e83f1476634fa1de3addfdf3bf4234627c31391e24df7ca9c967be8f4e6e243320028bcd21c81cb4e55720d921df1594600e01a4f83406713da53793f45faa980becce02", Msg => "660ad30aa44a6b7dd2636dca34a1cca5006c1ce10862542a98aad2f6a2849fb91824f5589ac0fee151e8df791b16f596e8865e6e6447bcafd6933570475cbf67e8279a5dae1d1de03f5fb638119b2d9cd0dd28a501a7f402e643826ea158b0df9bbcca00278951e26373fbee5f58fa1f8219816e29a9858d9063c1d7f6a1fc88", Mac => "e6c788b11374ca821dfaa8a26d64364694e7be419104dd83368dfee6b0af84b66d85fabe37909f4706df9776a289c81a"); Test_HMAC_SHA512 (Key => "6656198bb79bea7cf7df472111bc7a70b076c2763f23ed9c140f292ae85e18098bf322cdd5910ff3e040d56674f3ae48c3676ef0574e142f48ad9fd8b283237f66ab1b80e00301447ace1cbfdf579a3dc1d8de5fcf991b60e15c229d76f978556146acad", Msg => "c3593383ecd41eec6f51dd4ea8c65d7683827f499cc163fca57ee68709886956ced8d542c022dbc1ccaa8159aa59da5bbf1014cd413cb9a89cab2e44149e8010ac1f5f8647946b5e0e95af0211fb6b433139174a3df0a4d15bbd0593aa56ee0025d5dc36cb53552dfdb9713127d39996a2a68fa7d904aedfab5d745c11d83d90", Mac => "20cc7dc22b3ea35062dee1ed9d271600b3b19e8b15c15de5e4c3ac9d9725f620664eb8b239b3a6a167c24bbadc4c4595"); Test_HMAC_SHA512 (Key => "da71f6b6ff3b2e902ac99a4946e8233a0dfaf7e7cea374476ec5475faeafd516ab91da44ab334f0c16e7926cc3bdc11275f56671a6ba5a15830de33337ff20856c23a7540f436cd75452e5bbfba26b03d157e412791c9f066c147f483f135c61250fa610", Msg => "14c7da8a6ce161b9d8f26f09b72b82d58763264757ba0b1e7f7c5aaf8e48492a8471ee1f42a450413ecbc4697b3277deb9e847d3e969d731e379e2975b53cf9f11038664491183417b5f28db4b545861bb3a4112a0e5790053964d14a81f565324474d5f6a6f1f41f77644650fdb4de6f721bd0d65781a143599442f5df205cd", Mac => "959fafc3f154f612a76938386ded563fc09cf76c5952f76988b927415ec31fdd32ebc009dc69734881adc6eea6dd4d75"); Test_HMAC_SHA512 (Key => "2ca67ae3ea3c84a2544ca8794457340e1e424a8ab3aae292657712798bb48eb4179e6b8e76fa281db7acee74f086171add5eeebbcb63b51eb4b1ed57ac22d13e7b67241f8c582cb30689ff4f381efd5c3ae09e07d1906e39947b55ca4d4e1cf2a22c2d00", Msg => "84371c9ff40b745ab5300bc914512c1468f98b339704e204db54dd9ac6c534d88462163f61d9ce058a2ca16718aaf5404a1eb9d912460003d486ef636adeda0e6b1aaa56ad4882e3086fa2055d7e8b48d7836349711d9cc9b934d100d3e7f033c0c69e89e142d71bb661d54aecb734559791532bbc73fd7d12c5491809c9be72", Mac => "eaa9b697c83bc571a029a6df1f440e8c646ac763333d5f7a57a6ffe7cfda7f904750ee4c3ae887e1c29429012d0aa736a8326ba5c974fce2"); Test_HMAC_SHA512 (Key => "a8cefefa109facc85cd6f65b91b42a988af51fceedfbc5f75d28003bf18cb7b6e5c0287b90117ed996e1a5dd5f4b5d17c8068da1188cda5e357b7980183b414d7ee10522e05320b8a6ad51a698e4ca2795aa831e8791d457967243109c109bb8d9f93ef6", Msg => "6b8bc0971c1c64e8b8df91397ab8f0a1f2823c004d48a4d8d6b8705fbdd4e8d217eb710b27c8fa56dc2996819a736a323ea3ca7d5c889fb6ca300c8463a0513705c7ef5cdcb50d8ee3091a8fa7a8b4974fb5c8ebd9bdfbb2a6314904391aec453c0880b1c34b6437d566638b29c194772d9e7e724c4e807371a57107c7ab83a2", Mac => "9cd00b99f73ca0e8cabba5513b575698fcf7a27a396dc33afbab9872589efa826b2cb2eb661ad8c36f7b99d623f440a04f0767c2500b0598"); Test_HMAC_SHA512 (Key => "469e10b87afa551fe02ebe13b7d58da068fea2f100d19416e2760004be3221ddbdd3a172fe4faf0746a85256f312fdd63258633c727c8c42199e29a8751e2579f5057c9099a1505aa7703adea040defa7293c2efef4860207e787916109fadc856fc4919", Msg => "25bf516bdcbe24c2a72dade92fda0ec8cd91781c589b9e1d3b856a5eca23eff4d6d3a0da7e06bf9449fd181372d1eed983b6365d258003b1376742621d07a7a05babe79e62ca283ca9d2b5e40025f7b12261a1d789e52a3f8691807190ccfbb7ddcc8f7f2f124702f133ee2382de0f9ad11b21512ad1fb0e4f8b8e53cb7bd283", Mac => "6517653cd34e77aa1c7cdfa793198aceb26b7e211eb81d8fde20e89f4fd13f1016de122524968087386e6f6f9ada63cfda9ee3e276d7ab8c"); Test_HMAC_SHA512 (Key => "b37cb20cff52455a433e9e3a22622601ece6392d7a482a535af388582d14a0e44ca94314b2daca6f168d561c57355d521dea620fbebf030d5e5039f25b9adcc6e81065abf7ebf8c85dc1a2873059df0074be5fb5f792097f7aa541c811c666fbcdd99f39", Msg => "6fd8b486cb00c5f5dcf7a6493df96cd250f51b13dd9f6d74fbc1cf3734d1adade4c9efaae233c43662839e851aaa7e2aa4e8718724e25a882af4f391dac80fb44a2822282b1002f6ac08eff69bb0d2facd9dc249c163cc4f80f3f492c72877e8689c53e8eec0099e802ca2830833f0ab94bb1641fc4b4b31c566da2445186db1", Mac => "0777df7e26b053d025a49599d9df51dc826221e47879bf916dbe1a6b79342d757de7af26e36706d5d81f9244c2630fa4d71f3a24e03106eb"); Test_HMAC_SHA512 (Key => "b2d6b897153734836e180ec29443f60de8e37b8a8beadb4fceb01922eadc5182f28849ec05a04857c88b2b01130eb56deb6d27acb1d310dd98f367f05df0d7af327a5afefb3b0961bc7133c052dcac6762da675190d147a6f1cd3382c26a69f85af51457", Msg => "59b911d1a4a61e6bdb3519c5287522924abb87f89699e62e3c0e9249ccfb3853f9d6c39e9ca27c57fc1f765e4c3e295575d75df8169e4aacc954fd5aa93afd7d11cb2f7aa6aaf73197daa0d1232dfef05cff51db2b236d2a951e18983c93b41229ff1e0ec8a7d51e34ce5fc5b52ae88988992d49de1198d126d5acac8fefa439", Mac => "5fd16e1abcfe6fb1b815f680ae1dd7d6cb833cfda5f75e1ec41e3dfa48aabc198b05b6cd2b8765d628ec91a380cdeac267f5bdf34f5c45d8"); Test_HMAC_SHA512 (Key => "10b1163b3d936d7af844fc2dfb1efeb5fb995f5ce579212f6846fe0cb3fd4ffb80052cc15164d5b3f93350c95f4f54f37f5266b0b1c242dc2e887cc9d0a36792191d36ac773e61bec6014bb317c4210db043057c54c76cafc49bc46a85c05bd9e4e17c24", Msg => "e88b8e34e2e4ef0e9d1956ff980154240c4107f51eb5eacb5812f1a05ac9d616cd2eadbb99d9bf8c584c95b80ad753a60ab948384188c25299d32796b4054172df8cda5d413b895d58edcbcda76c555da891a95a08ace8301325e72d6e64848704ef3ba142d2f48a87441fc6d6870352cf1053e2dde8036db05259ebeeae475e", Mac => "0247e758bda41cc1b50221d2f64a689ea8dabf663296ba0a6533f84e464b532f0c2f6d93182c1e6358eaa32816dae8982e366e7572697712"); Test_HMAC_SHA512 (Key => "c4b4ed564b8d509d63bba83602e8433d9b4cc9d49f24d72e445feae7859a7f976a4e78a68948c262cd5a354e7651bbbd6126b5a08a799a9dcf3ae161f7aa2236f28278d8627129845bcc895367821bc6ce4efaa2143077fec21d049a6af65172e5b7b493", Msg => "7dffc73782ffdbfe64f56655b6363a567bcf009743187c59978c120297d789cee23110c1b6eb7ee05947dea0b78d2b9f4c5b5892443d937ee17dcb2c1e3d70d792c27a279613ac63aac31ae2150be9c2cc1c56dd95b2f9f96ced4b3f265d67ef545b0d516aa0ecef2110210119d7fb29c3b701607ea0363000829b25f85ff67e", Mac => "f201e33cd8221cd4efc0fca3e5af2838f9a2abf0c62a7660782ca0c9750efeebcb3e0a0af9fd51a6f2d7daab503a3d874f4848f85b9f6aa6"); Test_HMAC_SHA512 (Key => "d0a9fba14f144d37250a3b38021286705373a87f0ae9b92c9d9d93fc51543504b8e765fb78f39a934fd1180954c95dfb8082bc7b6cbd48615c43f3e57d1cf76d6b0275a3f6165ccb26d18d547d3c3dac7b649a596808b1464d968f5a4456a64ff1e473c2", Msg => "43fa0f5278e7e15159e73a788d92a6339ddf8a65b3df07b6a1ab212f249b21046ab837b0d3746447f5999708e2801732ad83201a2ab4d179f6d0460ab76e0155a57c8ec54aec660185ab1579d5d3983fd421091902a97ed4c4c82edbad5bd508fb2e5ab965b8af271405faf3eff3f2021ba18b8bc225d56e147d21c88cc867c4", Mac => "1fefe5f8ab295f2249dbd467097d5f4bb19a6e82fae3f94b098c9689276bac58534e8eb0d4b2238d81e079fbd03cdaf08ed35ddc367d4485"); Test_HMAC_SHA512 (Key => "6eb9d2ce6f7a80287670c52b360c9509f022cb43f255cbbb5ecf66112c35fe2c72d9ea17e3321b0f968a00da0af7a85a668c276105d03ac7316f2eba2f30fd567d27bb75572c30c97f8cc7283efea726a6d81fe91b824739122be4d717bc8d10150a0c91", Msg => "ed106130abf2a2f6023549fa4a9b96cce9c739ad24b8c33c35915b529d9bb22abb8c39c59e0a918c186b423813bfb1ef28104caf6ee808f090140d8523a8afc43643a1e62a9465b1c41d075480370b922857a422a68f27561758befc208e618285bc025df79a08aa2ed4ff16380d8efc1124a9ce73b607b6efe4d77d3d56afab", Mac => "7e5bb39abc1c723cc0cc7db4c45867d235ee56d19234533838edf1e1e55c7c43211b2d96d5f40bb1c80e0900fedc4d9621106db1ee57eea8"); Test_HMAC_SHA512 (Key => "b54e1636dd82b1fa0faf26ee7bd2c828b1cc44b0641685d86db0d4d0125a447589074d6ab88fb76a3fa4b9dcb80763a83dfb394a2bfb212526a87f195e059e5710e652744fa6dbbd04190dcb34c1ae578145204ff41e3f28f9948d77abe98dbb52d46c7d", Msg => "93ac6811ae7ec7afd82b7ca0196fe026ba3ab24e9eb40f1ad67e9ede6f3b0ceb8e50b86bc0e7af8c8b3adae1490e7605367dc581c7f903ef3d8e9c607b679cfc149467e8a90baa6d72ec91561a093b99d0a56b3a9b7c806ded04a7fb7cf34fe64d01dd5011efa199b5c809c83567152cb1390b43c2446cda0e6826761ae50bf3", Mac => "4ed9c419ce128ca28427622a62b8887028142c334bf9ad64e1a2a1e63b99814bb9e7894d92e5e6db5baa8750d7016178435e27f7e3b84f6c"); Test_HMAC_SHA512 (Key => "30608b4bf71a69c879e650729b646c9603f0be05cf816b1786d15af04ebffd0260f16fd3babdc001134a8d8314f2d331c5eb048746275ba6bf786d9b99f802e4efa822303f57736766c6c2eacb09df1cda30ae21b4277be624db8e61d69eff1ac3cdccea", Msg => "363b32accfa593e454cc3ec83b9d775a0dd027b017ca2ff863c1fcb9e6215b5cfb2e8fea10eba2179f3bf88061472a31be1f116a87a420a3e7a5f7cd974836db52ac8f8189cc203b57a7ff92b79e169bf51d31c0627d55c24c2954ff2d009ef123fb5af8a010b55963567a86a769e4a09a10b03a101d7560799538d710113ba7", Mac => "359bd1e49bc1c69e3662ef329b245f659142f3ed348cc552c01bc10ec72497893574156cab5af2f4d216cb4409e62e03bb53deb53a4f22d7"); Test_HMAC_SHA512 (Key => "22943268c52744116c87652ed6476a919a73c03fbbd0a6d17c66991a753c100ae7636ad24d35254933df508f4b1d43f0be458d0bc0872e3367730715bdbb8e9b143bc61199366f872ce379766f28bfa61da5f24e9ef4d37ed82fa6ba47b3e3e750242e6c", Msg => "2d912035dca0d990741fc9ba4dd33040cd5cbc6639bafecaca0f1f4504a6cf1243357f32975fd00ed17d4b5fde9e524b54cc56d04b924b666ebb59e0525bd59406146fbbeb92ad1bc55898e313bfb5d69c3b36ab4be172b43c2693bf17ea8e3a9db5599a804058fd7837180d933d3f28cd31c3bfe0af5bfc5dda33a8fc59e44b", Mac => "b226c29ce8b20348c898769e3f370bc89d9f1a00156f114e40cddca52dcec7f1275591c02d9b3e1a49bc6bb056f950a71d4c0f344ccf44b7"); Test_HMAC_SHA512 (Key => "de48fc7bda19796ffdf455ce423c79b0f55db17e67ae03fae69b3e7fec03d58a97dfee7a5925b794f1ecf94a9ad0efbd829858807d16cb9ffb4f4be038dc1b48b290d3e1e05bb4bb216e3931f3a0ee6d6511852fcf0d27c9c033086f38d63ead17a3d339", Msg => "77914129b7af927556872a8eabe5343f668cf904217b0b6f386fc3cadba9eefe61f1c4b4dfdb1ab9fa49d8a7f931acc21fa1002037002a0d7096e3ad6b4ffbe393bb4b72ad5aea62af17a4a6d612a7fbf3a28013069b46f30dcc159a1eccbee3b4f7bdac47b36c381ff876d2690f8db38b996026b5d4c7eab81a41d81caaa1c5", Mac => "4c24ebefc034892b90e86904bf4670e94710595fd6368f643b5e011b7de022fdaf112a21c9fa382822c9195b1fef7e2788d77de0fe00d073"); Test_HMAC_SHA512 (Key => "7cd4636116d91f0db16a82de94032cc37ebce435956d2f789f15211e747d74ceb318d743b52e8897bf3925c27c90c05eaa4231ad1345b0dcbfd0a3896805b4842ed327d28c1b6af88b11ee7635e636914da42e553d59bddb50779dc8217b6b1654cdfa17", Msg => "8b6b7edfdfaa53e67816ad445bb053303680030744e46f3e7127859abf55f3a3e84eeb56451a231aee7c21f523cab500eafbc718fa0252d7d85bb1c240e31ac4c6ec68dcbd911d125847a7af0fb5e2ad44c6df6d27fce4a8d707b3a8ca960fb86e6d7dd910b748b6fe9ec7dae81ae2218c06d36c93792a99b55314b32416dc65", Mac => "7d5fd0ed7cc5102436c6cf22dc172ed00372b111a25731a7290bae7b87806f4ecaf213726f28cd6cee2c143abf89aea94cb44e77946a6f5b"); Test_HMAC_SHA512 (Key => "782bba866ad86d885874acccc5c049b122be4fe4fe13dade77b02caef4b1fef91685143feb50145f658d985e0bf88264efab9007e08730cce0d595ebd92d0a538b9786eec9f18126e59107a8692b0b6807f4fde5d3079faeb008142508083983c1a9391c", Msg => "7dd26a4d522342a5e9c081e18925c6f2ef6adb5141674240481b1052d94fff2d9476be8fd2d88b8fd8ef042651113aedfb500828a09fa3044836711dad371f43ef91ee7e89244d4f8427ad39eac791807e11e431aa129062b93d4cbb460db536f4eba1226051b06e543024243e8ff234e0751873480a32e303f948358e18eb8c", Mac => "e23703c386fd6f868ac392c75620d5bf3d0e3fa247c84564859367de317deaeb796177446c32b23072ee27939da4ce89a7da3a51baa6cede"); Test_HMAC_SHA512 (Key => "57c2eb677b5093b9e829ea4babb50bde55d0ad59fec34a618973802b2ad9b78e26b2045dda784df3ff90ae0f2cc51ce39cf54867320ac6f3ba2c6f0d72360480c96614ae66581f266c35fb79fd28774afd113fa5187eff9206d7cbe90dd8bf67c844e202", Msg => "2423dff48b312be864cb3490641f793d2b9fb68a7763b8e298c86f42245e4540eb01ae4d2d4500370b1886f23ca2cf9701704cad5bd21ba87b811daf7a854ea24a56565ced425b35e40e1acbebe03603e35dcf4a100e57218408a1d8dbcc3b99296cfea931efe3ebd8f719a6d9a15487b9ad67eafedf15559ca42445b0f9b42e", Mac => "33c511e9bc2307c62758df61125a980ee64cefebd90931cb91c13742d4714c06de4003faf3c41c06aefc638ad47b21906e6b104816b72de6269e045a1f4429d4"); Test_HMAC_SHA512 (Key => "7c98912c74421362e112a2f98fed9babe0057fc778b4453239aaf5ac724b725553539770a5bc8666b8e13d0e9ce36b2b934c8137c7f20b5f391f41cefaeed92e9df8206cec3049bcda0c05deb9e6549fada19aa2618ff560f892ce6e4782aeff41cf53a9", Msg => "74e8936d83bf3f16b8d03fb73384ed8f46bd32343f5df8358107e2fdda293afa103a2bffbd4030e75d96cc7ca6ec7c97188fea88d4eb63b7b14e8b8c8dee4f8de12e1cc6981d4e6e223fecc7c491924632c7aef45fd8ef1494bcfb06c074616b0f4cce8abd5d83f32d550661357b18e5bcede841882c869251db9a331ac456dd", Mac => "4cc28818486bb9b1b52e333dde71f73acc227488453fd907c6b51d349d67af1df29a9f225532ce04f50395fed565e98d78978626df93462d3f012f7373347298"); Test_HMAC_SHA512 (Key => "662ca8f53b97edd9bbd43b1f9e4ea49f2ac14417faee257aff93608bc49a85abf6913def235a2e76c2241ffa749a5da489595d25c6a8a2026563e12f5e3964e0e518ac9c34e45a938a6f503174a613f34b08737afe5d6fde11a45344e64d23b33ca83c23", Msg => "0c057a2b56cb7e651c6339e4c91a1a72d51af2a646de9dfd77e9e42c18b8a2b576f526b9fcedd90dfa442090a6e784bb614311793bb5fb39b8418842d586294746f1ea3c02320d6801ecf2ba44b13b60172d2d9693a158bc66947aacd7c5a14a0463905d6e80649db8c4770cac5e858a7f400da4568cfaae08498311265b50e5", Mac => "c0d6e13c5746369d49bef107cfc9a465627691320b8203233359e6a49659025ac96a6db6c4d460224f6aa1cb7a6b8df311e066f6109bd466cd9aee3058dbc5f0"); Test_HMAC_SHA512 (Key => "0cc5bca2025bd6030fe0818e0a61ecc730b2e5526da942c0d7897fa97bc1a8fb5dd77991ba9fc50890b014ce6118907b334f2265db6ad86e7b918a214ab3bdfe9378c711017834ca19aa6908081f87779ff0921c9c75d32e2bb77a28ac28881cb792ec4a", Msg => "c532714f570982993d4b22c7d07a1e79ff5a75c94eee75dc1fa222b630cad753664b30f3c99826b5cfe17c67dd875b9d0bd2390028e6ffe9fef36a2fd6adb13d3ffc69670cf4a67e9c0764a15e7925579315dbdb561f07b7da892394f4693e51d9abe65228034a1b2b26a01d5a3ac5cf208b2301e27fd86e3ecc159090e8c3b8", Mac => "c34bf0931b2dd2e41956dc86996e1427379d0c89739b1c33fa3be5b0770673a20c5335c6d22c766826009938fe1f4d478b882b59a3b19fdf25bf18f043fbb3f7"); Test_HMAC_SHA512 (Key => "7d407fda74d3a127b2ed14c727d0e81a04f6789d20eeef629b670abdc18b1f41318e5eea3e86579c957dbccc20c4687d2b8ba16fc6af9a936ad33cc1dfb226ad5cb3f318f1bfbb43224fdca9d5c9faed6e0c44123849f9ea07162bd11bbdc49b48dac6ca", Msg => "eabd8db90e6d67a41f096e4369f77cd6ba23da4fcfa459120d9c9ef9725fbe9bcad80bce26292d6a8a927450e6946cab4756b2764f47073fe305a32a237ecb389f55a6c9c7874d60a44e21a7c64561b37ecdfc884db0a3e09b052328ac54f2ccd1fa07b4dbceef0fd5041e4ff3528374c5525f8eb028567d9f64c7fcf62a59de", Mac => "771bf59b658cb17576761d078cf6b1474db746a2201d30ddf289fa708366a27d6a53959bb7eb2b963622b326edaae3dce086dc364c93c874e50089b69c5cf52d"); Test_HMAC_SHA512 (Key => "c367aeb5c02b727883ffe2a4ceebf911b01454beb328fb5d57fc7f11bf744576aba421e2a63426ea8109bd28ff21f53cd2bf1a11c6c989623d6ec27cdb0bbf458250857d819ff84408b4f3dce08b98b1587ee59683af8852a0a5f55bda3ab5e132b4010e", Msg => "1a7331c8ff1b748e3cee96952190fdbbe4ee2f79e5753bbb368255ee5b19c05a4ed9f1b2c72ff1e9b9cb0348205087befa501e7793770faf0606e9c901836a9bc8afa00d7db94ee29eb191d5cf3fc3e8da95a0f9f4a2a7964289c3129b512bd890de8700a9205420f28a8965b6c67be28ba7fe278e5fcd16f0f22cf2b2eacbb9", Mac => "4459066109cb11e6870fa9c6bfd251adfa304c0a2928ca915049704972edc560cc7c0bc38249e9101aae2f7d4da62eaff83fb07134efc277de72b9e4ab360425"); Test_HMAC_SHA512 (Key => "52d3e26c59df9bf3f5c01e311fd6611b895dbf6e8e918ff16916fbfaa6981033d7af119e880511d775bac09afa078684ca22ce1ee462a517c3a483d1d5ed68202f512b4e7f130f62420d98a137529d5613139dcf76bf57a81e6e944c5b8048b8c281d982", Msg => "2485736977ef55a55abeba3b8e857ee2fa5beb144324e46f9e12625be26b25ede28ca30bf92e45d1e6e8d234daf52be5d0383a781d7d25c64802c7901b366065fac08bc574c3718618603d778a7dd044d6c5b59903f0578aec4571334b5dc79b172914df1037438c9830e14cc4a6d3c5b30c44be1e06e28331e44a8b9968c059", Mac => "b1c34ea9d837b4e0b0771792384fb5f5b9bb5af7226d461b5ca81ce8079c6472c5c44624a640f01960c8a94f6aaca5324c0da2cbfdbcb077cbdca7f6c6a38e75"); Test_HMAC_SHA512 (Key => "ce1e3b693ce203166bf045472fdd1457c8f6591a0ad41912bb30f6e63df8f90f6ca18ed5cac0d07adad407b5c9666f6253553c77e56bda3aff3379b1dd0fc95a5685021d04da287fa5e28d18c11697478ee7c3241052eab684b5c467ffe1aab45370a029", Msg => "e2542c06864dd3a0499493e144a97fe04006b68c83a5dd4ceac3cde238e48895ae17728fdc7bbe84b6022694ea75df7371b8ccc76450f2d112222c504f7d1fa20f5b712d33e436fda234abae9c5e278d4bb14efa9b3a88114c89b28946b813db2caa91a73391245435b38cf8016d3f77f678a6eed06b8852c181c754c49d4a88", Mac => "d5e6ef77772459874a73fc4f7665cd3ade20468bea1ecdac41142ff32350b8cb15828612050046299f08ccc486acef0d0c04e0f8feb29045ef7e3a3db093d512"); Test_HMAC_SHA512 (Key => "3699d9cd078a20ec0c96eb01aa60df6cd5dcb554260eea8e2e15b7c00b6943c638611854aaf8d3dd18d020b49a77e67275eabf973557ab74fd2705481c3cb6a9e077a825af7e7e2a53bc822396a9dee40f4b10483bfd9818d06ff32f4deecddcd6e57388", Msg => "9186eaa3b8e785dd2a747297bdbdd4f5532a47b7008c21686ff7f8d881d464cd383205f6d45dc8203bb267ac9eb12f415a5406be1c9fac73497941909dba08dd12856aac03d83e0d916147404694fe70f8fa929ef0cc2edb4cc07abaa2236405e62820af8e806d0af32a1b3afb8dcaeaf5c4f43dc4392e074075aa3ed93601ab", Mac => "d8bf5ff4392938534a7962c64985f163ce7c95e6c05f93cf704106f9bda7c9ae963f5ea87f73626f67ed3146e8611ca62ef2eeb4f9a13847dc6e7ffbe3d851a4"); Test_HMAC_SHA512 (Key => "b0c0a896096bc42bd0c5ea646779a4f1ce541f9cbc04df29ef20b180c069e10efa50ae68ecb8fb31bdfc473f0034dff988b452037ed6261eb0fac9492ccaca2c0ec349b796f1ad077ef995898a5d106160fc100d9ad81c451a1c46269d5e5d90932163cd", Msg => "debcf190ea6ab2358636af5cfe4b3a9bdc1bce160bf350aa3cd3956b897e255158cd3e2e83481ce3b6f778d418764f992d48e4f7fb6d080e6b3799d3f35949c17241a0cc5ba84597166779e6a38ce45681ad944cce7c432baf9cd8caf2b33125f2c12052bbb0b3b76f2cb97be9b4813a9ff1e5fdcd478769d0ab5b36cfb466e3", Mac => "2180018c7e9c3287c3d2928fdf36dda80be4fa21d3a879c0f617eb0e43c58836b0cd714a8081652f8dca9a01925a4f3ec5dbe07b5160be7b1ac58ea623952293"); Test_HMAC_SHA512 (Key => "1ce7e20abbdcd1154d4b536714ff534a01b8e88c78da34d653638c39291fd80ad01f3df02067fa3bfae7907789ad2641c8582b5a45d03dfa24344a676614f5c56ce13b30b6a15608f1e7e18c31033eab7b76351686a9dd9ac2dec0ad9a663a47f61422f3", Msg => "46ae8403ebb4c8723652b9848fdaaa537a50e3191bd94442f9702bc602db98b5cfdd8f142aaebee7cda8608f6d436156f743c3491a30404605073155722fae3be3aef74d2b9d128331d9b6cdf1fc68aac38ce4f6e072be0322ad49ec0b47b82609888358f86b0d6de94e83e722ed077666910ec9768506a4d7ca3d33d60bfe9e", Mac => "d032bfb5a538197385eb70673cf8f93e31fdf9c22c0e90008a454ba4d69bdc2232475a41723c8a5e3b29c6de929a7a1e87b64beecda29683d0d925f00ce23b35"); Test_HMAC_SHA512 (Key => "d7148e81b94a9a902b5980e751a5a59ef4a2397ad4df251240443e30e598bf7ae445f65227603dfaf4e42cfcc23e0dc94c0f90a0e52dc1b10beb36833e9a8d93134f163e84e7cce08a498a3eeeeb7b215b98d344b970bc70b63093e6a5b355fd8cb9540c", Msg => "251cff72773e93021e816407edbdf5c1b0dd9a0d633f41e7a25e932d61ae3ca5ddc78642d2c62da3eff06fdd8799627a89458ac2b20cab390143dc686c58dde0d1feaa7d2f8a50e8169d005f5c0462b912dc2ba4b6faf232aa8a4094e5f5e625e90993aaf554a5d77bd04016d4c69d8533eca53dd8d0bfda867ae638364dfe7a", Mac => "9f783389d7905291a0446004816233918acfbbc1d4443f4dfdff55f3c151a7a1ad20d0a18d0aafc4bde38e3bbd9c7f672f8b1d14649e8f41c47a0fe1ca051d8e"); Test_HMAC_SHA512 (Key => "c821be1cce09579ea899899d24f8329994c2c839cf0084e27857c688837fb5c4f4f72527eaf7bfcfdda75b37248eb153ba4d31dd418d2fea473643c0c9e1f0ebf591838e349d3ef868f1b67772777a71f8cff5b0654696fe31062ef2628a99095355a0f8", Msg => "98b0c5e030490c0de1cb08d49ab64560693160acedab1a450ec2ab52eb6459d114344823fa2f94cba48f9d73a3efa22f47b19206139d1eaf6fca13989dc2e72deee1915636fe9e417d4e8263f7842cb9373ddd549f9c39141b319fb40f20b6068d7f4880ccff54f8d5cf5eac80bd0a859f9fe99d79f193fe7abff6ad28c6ede7", Mac => "8af5f3e56ba1a151975f4fc6a784aa050572f7b163a93f24f016395ab4688f39172bf20f1bc246d73b971d022b3d49d1b31f40b0a121b9c3a66e09096d4815f4"); Test_HMAC_SHA512 (Key => "8ad2ff9cc9e5979ab79e2122f2b6c0d75f0f19da6bedb79a9762aeee330a7f6169f93ccc7ef2ed2b55d931a9356b29fdcb2d91f973a23060b3c173f908a655e1e6888125faebbb90b2177cc2ffc8dc825a27b55605f906509317952aaa1ed996086716cf", Msg => "18aa61677eb2e25b7f5738c929c4f4ccb69749a1038b1a6644545722f7cb8a06164badf3915b3f3cfb8d97ac83a677cb27fee45d242a352cb1d96b07ecfcc00b152a8321fa4222c8b25289158eb7aaf74d865dc08f2b6be18d50e5f50601bb027d0d89fba1afb4890d6db60a3141b6db90f75cd22dd6e30f3f8270f52c21a273", Mac => "3aed2fb463393706efbbb98fd426075af837a8eab622b95da9aeb0393188665336f0d46bd20773fbea36aa289bd702d6ed4d6080449b680c92b0355fcbf13ead"); Test_HMAC_SHA512 (Key => "bceaf34d50c1f202539233630b16dd048ea23f093c9f713b8d3a385b0d5c2bb6a4dd14f91bf59947dcf31c89f931df0570476c33ae7f34cb51897623327062b8a3cd7f0af53b4aae3e0a209e58385dd32d9cc6163265241332c332af4de4b99b4022fa29", Msg => "f3bfa5c1f1055281a35b48f86fa3ae454c03eac56ff064cf268b8da20431219b3e4da9ac55714309f5a6a5241e0060dc817562f12deebfbc6a9fb11de594ddb40e8dd754bf0ce9b41eac1068c4b448101fec09d014b01200e94265246365931e2b2739a276fecbebe51690acaaeaee4aed12e8486e5be5036b1db39fc4c9cb41", Mac => "bb714844b6be93ccec0acb8780996b2a4778c42a8a76a49eff87ced3a258815d76685dce4c8ae37c244229f17e0503de089a043368cd300d13f842f28c111fbb"); Test_HMAC_SHA512 (Key => "fde15ba900e6648c9d8471f00d9b32d71e5383b9370c931c96944565dd9dd6eecd6ec15851d8df23be6cd37b59eba5551afeadbbaf27b364c4f854888283a7f255112157f317b6e69a65412098a126ea11f436e1fd03d3ed702154191ec2aba21e33444dee8931feb8d88587d3a5fdbe8d9de6d228873adf22770dbfba", Msg => "cf65959c760826becc0d3c4cf75740d8c8bebb9835b26b210a219773db9b9f363db5d74336ab9566f1498962b60b4d361a833d9f73fb89de8f5c89bba64e50ca8ca183ed2bec6c1a31734a5f064eeb2301c87daedb06a2ec64e9c26d7434a5b125f241a33f12d063f4552648ce6a4226e55723cc551addd1ef90eb912f97c772", Mac => "b1a9135311d32f5bd6b73abf54088b65fc1d23e4bed1d33879a707c5c93e8fba"); Test_HMAC_SHA512 (Key => "18519ace346e2e9987a25038d7642b7fbebd3a49b904005f7bedfa9c87c2d24ffdefd5e1b4c4a7b88a77355af868ecd6eaa92960cdbef03be9a1e0dcf10a664cd8ec32cee743e7c20d0d17c976966e2a5ef92d7428e4da65aa9b360bcc407029515198dcf472567eb76ddccb78771942c5b530cef1fe28a667e3e5723f", Msg => "7210549b3edd9a0a700b061f65ce10437477d9e5dc95bbc1fa612562c059a6e5622a470152d31e446f08209f7ad43725c98395103fbf47057bf90d99500b6913751bf6737ec2fbb40b6d404f4004200075cae0cc2e853f434dde4e03860a827d14aa08fcaaf058e3ad040d35a0a6f45be0146322912ecc04d8d891a84aa01aac", Mac => "2b2649c399f3716bf33f7937579df12deaa8ed00f656f8240468a3b022d411fb"); Test_HMAC_SHA512 (Key => "739e4ce0bc133f599fbf7b220a650933ead7c602a6670a9beb9f88f3af3275797031edefbd829278f88f76f25a3b3b85371a787c84e15f54961b9d132c1e82dcb03e62bfba403bd5d612978d87b9b4418c8ae30d619d2ee0097f3dd30b277bbabb2b74f9ba34819ac0b0a89c99c6be8d6e8fce5b4683bf67cc3130db53", Msg => "8deeaf2e1c03647268168d1276608fb0ef3e5e4088da94c6c108c061d26e0089e2e8d2957b2b27803ba8b9ecccb39f6716e41eeeb2bdc3afa28eae13409631fc756b9a4c2b9c4ca6059415784dc1bb392ef6d8ef230ee8f5afd3a1fb4f1e834ead3faf5a169efc6d2ea348bde2d40cad9f3d334cc1152d1e4f9e3f20e54d1d06", Mac => "077139064096116bc4f0bca8f2237196d1d9a244e6ead5cd6660c9ad77a28d82"); Test_HMAC_SHA512 (Key => "a5ae601409a8433b6e34b1f95266be2cf4163382139178d4f98db7b6b8633e4cb478255f61fc31af4ed8f98b63e147a06752c10fc479c9c28fb0a1ffc38fd33dcd60d0374ed3d7401cf418d68a591a79e9a05abe4e19359f96bf0715a86d95e9fa4ea8c65796fb94df6f57014f36fd6082e844b738d7831317a2311fef", Msg => "d2c5ea2b497f97d48372243e4c4076503e3383b99d8d56e07f19591e3006d32cd4f5b0d74e5181fb61dfc3ae159664bc5db08354f6017800928814da364429fee1484d3b6e12dc0ebb193cd00ba5652ea9e3a0dacf398e80c5d76dfc4d8f97ca3fe64bbd716bb0f4d947170bf616818e6bf561b3eedca348602fecea3d8f2478", Mac => "2d16656eceaa47a2cdc4c4100a0c5e343299cdda14be213d1253fe0afa17cbf9"); Test_HMAC_SHA512 (Key => "a39a510d232f92835616987d7f9a50c8841874c59411511b0c7ccda99c61a8bfa6a3028de61e1edb58f165fb561daefc0150bc21e3fb0891d3aac1501895126ed172a37f948e624b551c83c689cdc5428ca1f8e340fcbc53f8fc8bb8940afae3edaf3bca73a9e739143ffac460d12000ebb32ff3f33cf4c8431932c757", Msg => "76aa892b7824da3d74dee1c05d0dd6a0be232e0e58e8612e0cccef10fc7ba5e2eeb31c64f152849c42b49fca703b109ebf2fd6a9cac914126d8a138ae2d189812aad1c9aaff0225d2785ab2dbb03c1796981ee36a7adff8c491808cfa4d4a8b2f4418eb7fb243ceaebf90bcf868b709984c17d9c35bbab05671dd6c98aab89db", Mac => "0cf6ccf2f7810a4a020d0ea97e9ee72cd36f41e13a3ee3ca41030ef0f45ba03d"); Test_HMAC_SHA512 (Key => "b65b916e8c8746e59d281f6448f8800b34cc7cf32b1747cd2cb0eec5bbd545ad7c6f21570097c842df5aa67907b942b953f470d26009c74f9c7755599f4792d9bf4d93dddeac803d8798487e3a6093f603abf93151017194068e0c40cb23e33aa67e4dc8cecb561ebe6b6d3988f35d0c6c787fdaa90a2de3937e7942e6", Msg => "037d44818301e6466ae7a7f0ed1b0ef184cce011a61ffbc0d32482aad8093a8d4f8d344765b8ad34e0c932b660710815e43eca8a915a5496af75e098f5006f9f069c6b7d3bd28a1da304f51648a3aa7fb4a31e06b42c273c5c931a334b88304b31912f498eb746a9bc7e38362f1bbdd7fce225ac98fe3e59e26478a2640a4739", Mac => "a78c0ebf5aae01aa7a33cb0a5ebd33dea4d010ec10b31849bf8478fc33ab5b15"); Test_HMAC_SHA512 (Key => "9cb615e2eedd8df96d56803e7fbfaccce3a9e66f45e454090ffedc348306dc2807951ce0bf100178612703da45a16099bc5c121da38fff01385371b92c62c578f91e675075d5fe9ca743e39bda58d85df13cf7e3fa91e88206f8578837d6a5221a58de7d37b4ec2ce7b20aca666c7be029517b087270765321f478e9cd", Msg => "e3d0c3abdef069e6e4fa35015797bd8a9d64bc9b75f20b028b12cca04a4fe80ff1bbbd88e9ef1003564d499fec88df4503671188eec5d7d089dd18b812c41db43a3746f77b97fb94ab32e6e3d2c45f26393e286cc3c55bb680fea0598089a3a3e5cbc6c13cf113e00e317493b153267564716b0f9cfb7ffc98fdce4a3ba56424", Mac => "62cc1fc3b61fef9c4e9089b86229bd43f651d7346baad2fb145cde64f3f56d92"); Test_HMAC_SHA512 (Key => "7b4b528be9e0353c0156dc685bf0517ef4cc0ab18cb96a614c4889d6ac26383494a840abc1a8ebef6b90c6e825b4a4aa04e5e6a70342fa23a65222e9de50773d2dc62d110a5e187c87f46f6731efd18a38d28597d00e06b4d61bbf2fb7c6136d8ecda0248ca9c5ca9dab614e484ade05d7bc6fe7b9c395fb24cae810ff", Msg => "97f669cb219bec2d7a57a47979ef5a254d2cbafc26c9a91e3290d948cbbf9a55efb0f305f0b9f1fe6c523f108075f7bd394bb8f94b04f92e06069c83854bc65e2904ef27468335501b57f69208b99d79fb27bc222c4e5c440a2d916d7478518e2d3a85ba8abf612b6eb1f1867881f55f7b08ef002f6f7a66264cdd8d010de0ee", Mac => "f8839b532c1ad2f0dd2671dd607253ac20c5bd6a515022451667cc636e20f837"); Test_HMAC_SHA512 (Key => "3860b019c43dd5b6028348d2974e828b74e09248b5f21daac948a3bfd4880379514c425ffc768883efc46bb40ba470f49949cf2d31fe771fdbba529d75f5caf955bb8cbd2fff8c9b383149a78b1352c4ccc8095c0c2da755ed6d804007d089d38ad41799247fe9e825f36914e1432fe25585c73f0e29b4324789b41052", Msg => "76baf79762efacb78442c86c8cf48fb50ba43db7282a52ba94c42e75c070dd8b4d983455c4f41de287ad2f3c07be82ed38a0c1c2422680cf7aa6d0b39059111e09040890f0d83263c997570bc7f9619d3f4e6f8e5b6426bd13ab47b45997872b94469bce50639241344a6760346dd7cb08f670a2dcaeeb8d491dbb0084f3e6bd", Mac => "694c01f7f952a909842fff93a565389aa687f3d91df092ed0eecfcc18f07b88a"); Test_HMAC_SHA512 (Key => "787ce775ce65a604fb8f55af0e5f1428be380812f6f1fd1391864f2b620d0a4477ec500a9e4afbfc29c384c3ef6024c393c638f109adeae455940e2e96b34aec44327a9cb698522fe786455f79a5a643fadd0e2167c8fd83ee66c48df812a28d67b42dd41c39f3c5bd40622bb516e5d07ce5504b18287e19e46238ef90", Msg => "2b7a171a33714b709557af416f295d0cce0cf4c56634ead88704246c4c76c4e416be43ac382abf32f44d9632a75c333740d8285ff66d7d5e3b1b48c5eb937e85cae409ae2d561b7df796c196c714bb8e70aa8bacaa7eccf10729c55528193e54303392a979bd065a867c59f439199d1846ca4536e82e7e99d378c3a469cfab5b", Mac => "9387b868d66203470b5762cc10aa92b99168077a17497c0ecd244ec71ce72185"); Test_HMAC_SHA512 (Key => "1fc4c858845af638e18bd3952eb74883ba4d216fd5a36317cd25e0da1db20832e043027f8ccefc06dc6abf390eb386394f7010997473f465eac13562f0f3169803dc2f0e9a6cc1d514d44747efeb4d913ad1856f4dd21837b78d3a19785501a571d7778d18fdeead701393483929469563b8a97ac98877971cd018861d", Msg => "bc1463e3ccc4efa58f9d3f657e84b3d51357bd6981d43a5da2b602f93120bd14393ff9d7cd2c7ac3fa0fd1f5fa8a31a9aa557dfe3f25a5f934d333cb86ba21572461eeefa15af15e2d69ec2cc3e9e41da46c30fb03a2d195027c0108dd900e3d65c069b3b116fa7f10f3b79141697538e7e5fee93711633cf4f894379d6c2dcf", Mac => "2f77cf7f96eae7ebc838c9431522ebcac360b4406cdb3ef25d9cca93350bb671"); Test_HMAC_SHA512 (Key => "5f1149eb978bbb35182ca938e77ad0cf414b00972435c4fe1147459c11f66cc7f65a4761e39baef50ea62602c5240597afacd72055370180e0d5a460249fc4c6deedaae93ac9864499a359e990461218340af710954b4725881b1e13aa349892a130392aa5fd8d49408b0b9351c73f7957cd290dec59e014907f7a5da8", Msg => "5d9d92c853dbbdd5c20fd8a14bed15a25eb01604460b0d42666322f4c23b15e8c1f0247331a62f098b821a0c781a73e29529544a73888bf0e359f93f708538762c6a81feb0cdccfb5e163821e9bcaec818fec143c6d4d96e2e259187653a5d3f28737010d838ddd0c333fc87a5bc0f7e6f95259846d83fe5cf2db275aa40cc6a", Mac => "d4b5684f15c6431b25c4f5a8689147ed904e3b2b5009f080e3bd3069aabade42"); Test_HMAC_SHA512 (Key => "84a72b46b31ff2a3bfd295ca63dcce53634794327a2ca7f1931b693d3cbdefa457b8589d12d35dc91a5b2a780cc56c6f2d94ace95a7edbdb42ca2e7cd2fc2c05f1b405b56ed4251936e1098acbac51f7f13117e5abbf80b365599023735d4316ba63d997ad68711b7c2cd90787d8a57319e47e2e5338bd026691393906", Msg => "efd2510e18699c437982d63ecc061b3e9c5c0408f27e6d9531537c083f39dfe3e5e05479795f6fa7ba8198bffb6053c58436c4de356f72056c034b002902e892707113f3ef54867de10cf6a832e35038e4e643b5b1f3fe1cf2123bd4bf087ce3582a9462c3706a2eb7cafae1b9b79c0185138977af309b428a29546c4973223d", Mac => "aca1080fdf13b259f71db18ab0a8add74059af9d50f7310b1ef0bb0cff76fb72"); Test_HMAC_SHA512 (Key => "63ef2853fe6dfe1fede12081b2134522dfa0a52c859f0b0bf0852c75914637a73cbdadf2944e7377c3ca262f6e92ae2ee7001628a5029a34f20802d0e4212f258e60f48d778527534cd9f7bad15a7f401d189c2307dffc25dc16788c53e7a46ec2a1a42b915a413befd83c2ac5b2e1e0e8b2e026937e5966147736b2c5", Msg => "cfc04f6fd5c15870c1770633517926a0e08805233914df54a9029ad358adb476d82b7ba7ffd17c07f2f93d5883022f99bd99de72bc376bd3c3eb3cd9885af2f1d2049b3f46c929417eab24af5cd59ba69edd6006b2467519cb49c17534d40723e5d4190054b049648d15210285f9540fabdaf3a7c147e46ceaa291700424dd55", Mac => "fd71e14e6d8d13dc91807d290f3cfca47b8c7f8a23aa18238200f5dad7dbdb3f"); Test_HMAC_SHA512 (Key => "6bea67b37a53b090f6de495442793d6b641f67d5abf234db958baafaef8ea9243e8171285ede656e69660fe7dbb96344f32448665cba54160ca6d7f76dbf1cb8ba5deb8eac6b52e257bea6474ea5c4ae0ec29cdd9a18f11d62645a3369b18d92a727dccfad240055878e165ae667e7127fa16c22ae3492575f6f3a982e", Msg => "11c81f57e7c3fc99d60c16a6d9c8d1e9fae927fdb8ff3520ab51f9e56b2d5a29ad7c6847af99e690d76406f5979273079347942206e610e461288de4366bbea1554d9cb9357af35c95c221ff626f1a55dcd5b07bf52a1273f99892d37491abbe516342143f0c2ce6594ff12d0507cfbb1cbc02714c7443b3bbcb8f19ed462967", Mac => "35c4eb549bbd8afc1b033ad66e4d02315a62fca1741a26e85e2533c5f5e816b8"); Test_HMAC_SHA512 (Key => "04e866da69ea0939b02a4e9e29052fe6cfd7a5f87d65794a5e7856a7a6cb242f7f27919f46cdf0d2f8144788e753a367b201af3f731b85923ac6c454bb36e3ef43cec58af1898d8b2298b35a2d4d58685137d671eb8f9cfeecd2392d8bb0b6b437252924d0e6876b16feba9d62b9f3f494c142154c8764945de4dcbb7e", Msg => "2f77d8331b2b92c856c811889bab8edf75c6875c024da90bf6b2f3ffe2d4192eb774268286e8662c8913833c6794ee6eb43e8047b7c8626171c62a04dad846f56e229e93e8fc751f4eea905c2dce9b58265cc889a9cfb91b01daa08991e2a56b5d6a888fcccf874aac35821076c15d43d309a64960c877e1aed79eb78e58fc36", Mac => "bf29051be936e6a324f149da168236a5af7584ad0b8ab1e7c27ce03c02768885e27d065f26321667"); Test_HMAC_SHA512 (Key => "e5cf7ede640ece05e6e08e6435fa6e752adebbe515ade1005e3c2e6b6d69d811c8b0425f7bf97bb4bdb40713d028e31c2908c33ad1489e1d0b2e6c6b37ac2fb2f6ed30a28f2e8b7992cfedbebbaa9d3218a3b9046e80c344dafc5c9ab4164e38b8afd00d6854063bac59c8ccbc27a4a03fd626aab5ff565d12cb8360ab", Msg => "0c36ca43e7c113ed9fb71670b3ea73bfd6928c839f36db1a82d08ae0ff2c3dae199133a10aa38d1d3588ed115c4a437c137ce4307421ddd615c9863237fd5aa840dd05ff6c08bf66bfbcd9b43e3f95f45e7d3b21bdf2692e10caab495c474b616a646be675b850d0259c01e2c1901130a0dbb9dfe0722a2c5b1b20afd7d2bbe1", Mac => "719dd79984d1a74bcea46ccbba7ae09fe246a47709d993d31555a20d57dbd5b1be9f8fe55473ddbf"); Test_HMAC_SHA512 (Key => "4b07b5387cfc8303b4bd4012fec0d8aa55a0c76aac1539de32247050d39367e102a0b5d9b6f3b33cb2d0e19e0a918637e354973a7af1da63682f4bcf2437bf11c948c78219add7d8c2eca8fbe141da14c54adee6f504136174f62f7443ace1242867b5dbae1337026d795bd18bb61c6683ec641525372c00dfe3e4e73a", Msg => "27d367524b267653030bda2babc4dfca0260685822e08377b69940c867d9c4b097cd995c52a2480281eb2a6a61437bae3433b03e37560a26d3ba6c94178a6a9466eaa21f6d234f5458001b0546783575fa8ca460d373db3cfef58dbfea15c2a1fcf22ba385efb2d0f112560341aa36a9bb35ebc8df801b419e104b52c7c1f55e", Mac => "29f20b053e817ced2a92c32da8cf9b281c4d3b209e086e1512513016321e7f8d60c6bb42cb86fe15"); Test_HMAC_SHA512 (Key => "180df5d78fc1cbbafb80c955ac28df292ee51b5c1eb21c603d1ccad0c349449af63a1a63fa4dbd27eb063320290e0feaf37ca1e438546ad9a94dd2e013d81e80ec5d9c182cc8207e5e44b4e7f6468c07e5ce38796bea1d602c7b264f873bb76623ffe3beca3ade087bc3b570bad83cc82b6248e25f7a1f3dee2d2de4c6", Msg => "1928e560892d145758e7b25af656d00819a5f596b255b9141f988ff2a2fbe3c21248653fd0aba48ffd13dec5eadb16aad0aa68bdc2989a78df92f3d5ccff501162a374b0a3c4a0c1f38c636385afb488134e3ef9d21afb9ba5bc04f09075a8e07001bbbaeac23076a21aeb3dad19d02b48582053ca240503d7df6b4ad7a412b8", Mac => "2ec31bd36f54bcf875421e668e9f149b92190bdfaf75308a3d345f08043f087de8229e9f0abe25d8"); Test_HMAC_SHA512 (Key => "caa3f071e610a88a12645f8ae6a98961a3ef8640c491d3fed5b982bb8826e7c3062d95b483fe89e41529a4fdc6615feae87fbaf7a8ca7533e67583194469bc707d45d270f9a386269e9e1b1ae8910b2e3c20fac9797de835d1e4aa46d7689b3dd8f28feb6f87081a54c9ad2875c1f7f548db2e005f3294cc3d0ee08968", Msg => "eca53fd1eb5c3ea44227ad2d69af5a8e484d11f89cd81b1e9dbb05eade4aa36f745653205afe863f14c97d9893f2516e590336b6dda5008331b7e7c2e29d872720db2b671ee24aa8bc2952356480a57731a2e121570965aabf061100f1104c7b375d4c0fffaf92c78271b36ea3025e8f1a519ba1d1aa517b8ecf0b0ed34bfb52", Mac => "14fb39fd8aeafa7c3f1367bc918e2595ca5c9a7e663334f38b774978cd3a2fef78cbc22480ff791e"); Test_HMAC_SHA512 (Key => "ada011918a63fc7727e2b9c8d1499b24fd4664cf2e5f4fa61988545807f5a7d27c2d82fb166024a2b7fa1ab4e778bdb3737afc635a1a5bc7ea7d3c4b27a75d436c94a394558416b1db962ccac1984a40301e885b9ed1b53ff40a9b1cefa083a6c6fefcc50e78d98ddbdf797029524bb27a58901ec02c63f87c58f73228", Msg => "3419a1928ce7edc8e3400c30998f09bdac6f63ff351eb23d362e8dc5927eac805d694ac9563dcd7fb2efa9591c0d827af9f39146f0424873aa8e3963d65734b1713baf0a44696b3eae595596a3bbab69f5ad5fead230c0448fdd57e9a3d40f26f7f69afc5d540f2b5de6d88f3881cbaf27039794e4d162d76b83b0fe02dd8709", Mac => "a4e125d37da73c03071878f8ba0fe6f852cd23208efca650d560baec8b718425ebc80270b5c9dda6"); Test_HMAC_SHA512 (Key => "9cc58f0fe886a026073a8f75ffe12d1fb9cd5816abb1c2d6b4fbf4534763922fccc4e031432b85f32b2e8fdaa280b84bcdc2e71c7a9bfa49040ac3e977fb5060f51970d559e472e71903309b71db4d99be60ba99282b7f1883ceb84f7764dd65df6c47e470d7f06a9b5f7ba1b41b74705350d873fb8bd8a9f9ecda6d8f", Msg => "f87e5d99ce24330020d94c49c5aec8296b22783724958bfb21ff6a48bce1e0ccbc7c7ee6d5423eb76f8a667ca987af1b9c7ba7fbe42854195d871a592abdde1afc4b6c0c908516467a459e9322e0570d0c5986ee5cd50ea2994f4d21b18d417b3d53efb407d605d3c973be3638a106284125dfb6938503be5dbeca4859394f19", Mac => "2f41f4b3331273cecae809af52bee4afb56d89d9db9989cd6933b97aca92c092442c6aa426418421"); Test_HMAC_SHA512 (Key => "dce6add843eb2bf17fe66cdfe175dd68ef95e179accd2b021aa96a07fc6a2cf5e0fcfc325d28cef79a0b9e620fc753c79078e948876acfa581898e55ec18acd51ea6d0409a3e26208fdf0583a22bd052ed631adf48930dbdc70a0cd4840d97b49ecd6f2a8196fb116848eb6b210b1bb1103fba6777b2abf2f5162bae4c", Msg => "2c99f9d18ef7903dfbde905e761533d42ddf4496517e8c9124f68e925413746587ad483f372b6759c04633deb71009077e347384157f9e1f339f0e9c962b90e397e47061013bedab2313ea6424c7e662976f2e0c4f5f510675f1d511d785282c83c5d9ff952e087a4dcc1cba6544b42ca118dff4a7278f9011734bb8c1272589", Mac => "057c5754ac6b3377b5eff6877cc4cb2bca774fba71e7029d148939ee822e1f0149d8389b54c969d6"); Test_HMAC_SHA512 (Key => "d736694dd886bdc5588a6201636fe137e2c8932f1230b4033530b9238863e39b74d7159908b7e329a727eb44fe706809395d044a77e5ee4a7b092dc5a40034311f92b6445bc2bbb6bdaff44896bc4b0552efbfc8f2976ffebc32f4ad308df4b63f2df457b8ee6ef303ea2416119cb3b493466bb16a8f5ea65f71b7e315", Msg => "fbbdd756a8b2408130425e0262caa7bf9c0384d49d84bc36948930967cf2ca89ac8fb0e5aa9abd6e418531b2d3f7a731f01148c126f53f311b896c2dda785d616b7a7ae2a6d67fc9482530214758480363fcb2fffebdfbbe2d2908e60fb7043e5e089d13436c70da6fa8c11667f7707c1f4e2855cbe4da25f2f26a8ac4b7a866", Mac => "36f27970deb7fa57271d345a13f71708a9ef95dd9e149f9ed35ad7d4b95d3c6bd3c3b284b33bb440"); Test_HMAC_SHA512 (Key => "05af3c25279cbe03a617aa6e16f3d2046edc82ec0c48ac66f9ab42a66feae4e29813bbaa994ba578cf08928858802ee9d661c0d56fc2513e195912a914eff83fb712a921700a9bfd070e7adf22b7cb490eb4d085bcc0ab3a0ad1c53e449271abeb14cd35b5c0e9bad4912c1b7b80f34b9f3f7aa5fb290083567a260c08", Msg => "64d4ed1727833969d2d586f9f7288746661a35ee96575c2146af5a54636c233a2de289f09647bb78eac50b68b5cef4e3e2b05bc92069152b8abcaa0286845820ed495b666d116c382c78882eae03f20cf9b27bf5f7d401db1b1f363a4700a206ee30ece276885592e01685b3aa708aa9f4481edae341281a4301866570880ad4", Mac => "c3845a354bbd890438d78c1be026eab77862f3a6b251a48aea3adb1a91f42c1554f3f710c88a197c"); Test_HMAC_SHA512 (Key => "6ece2d8258c46d99d068990ad493b5209876bc351ddfda1705b8dab1a6d0e2e75ddf5ec124c43acc671054bd14c83158f267ef9033237af04c71033904cbae4dcbb18b4b4eeec8fc481c256e9b6aa7de9f9d91dbba5590a9319236e43d76a965624d9d6afcca7ff01b93f3649001817b48208b5fd9fe830b5b225bf879", Msg => "1c72ecfb8439d9ae3ed4eff8fff3aea771692ec3852f11b90aacb6b87f33af5c25ce768a593a5b9b2132c1bc05f18a9420f2d02876fad6fc88583e7b266b7c9985668ab79150ddc7844f99b0b82501f4b9fb31909f5e0f249b877f53cfdfd66d63c2924bd583487b90b1dd9ec199f90d660cb9c3a763a4776abfe1082296a71e", Mac => "9f28bb5a7db53b7d2b3d4e9a5e50c42f68e5f05e1e3c7f8f6f6a9d1fe6093ab0eba1858c3090923e"); Test_HMAC_SHA512 (Key => "fa90796c79d6a728b50d788e35b9345b109e5f8f9bd3821d44182fe6be693fe85fd45eb3c687ca1dc02d57376d7bb7809e05f85882574eb78241131e69720ccec848ee3999e720b62289c3781c15f0c115f24053131d92287a7908622f675385fe9731e4391e3359a2c8c4398baf67873c0c4068954ed6d7f569179a5a", Msg => "3744c090cad18c19a41b5fcc4d2091ab8920b70e224e80f5e7ccdd9df5d66551353ef7832618a11bddb6c00f4ad76934bc1b0854a7ba4780a67632a7bcce9868df75b425b7020c59a3e99a2bfdaa2a439f4803dca5fdc91a752ca29efd9798593cd23f9d04f8977afe9c3347ee029b7f388ff0cfa47fce6c5ed676aa41992dcb", Mac => "7fc9f8e88cfb59f850bcaf25345aaaa669997f1f2dcc13e6864a44e67b9978e05a0fe33128c51a9a"); Test_HMAC_SHA512 (Key => "df0251af61d9f87520a8a464bbe6004c4c9026afe3cbb58134cb242c8cf356d70a3e6ee80bdde4c7e622d9e5da9ca7fe4484bd9b1557aada84c5777100ca3af1691be8487fc36b8a9b0ef4f19da6932225fc05b106e9cde8f79686c48c997741656068d7a6d3b445a635a08dec4beb4057c1a6fb9cc94632f605f82c18", Msg => "48b9c72f2fb4032f503134e7899fdb60126c7ba4181e5876a8a07f40cfd9064d00839538b53b26a559d4082e66f12aa1cbd39668906f3c48bcc4f14f776bb7076c703ff07160ac2d6aa39a7e6a0c5f6e1caf90ce62f3c8613be8a4d9eada12025526cc3eab4c1f314946f1bddf180231cea972bdd5d1842aedb3a1c7714da0a7", Mac => "3d5cdd58801ed86d5c97930b7388b22d1f49619026049461c01db6e73a3cfc14f8ed25049c21eae0"); Test_HMAC_SHA512 (Key => "bf229362c49dc718e7a7933a33ec8174b224fcda3b96c0888cda8e8599e424ee233e6c508b95f455e9779ea3595b990195e28fbbc95c2048a28e902ba8b3bc17cfc0535648ec426c9d7070f7fd8bacd9d5cae499a0869707ffae8c1f0cc7c530eb30af3ea3ab9ba42c1971fdca85a3459964613c681b0c0bcac2ec2a6b", Msg => "04e38071f35b901bab55743063832c8339d5f52d6de21a1bcd890dc970d8b64ca72c0b96319ae1f6ae8e01de56b27fe9eb12471cec7df96d0c2ef781e3acbcbae2ee6f718cc3b780e371d204219ce161a96a86863de5b17271a1b7f6609ea5bd9d6fd38b6d9cbcc233460c2a2b09fbf15b27daf1c7e2eb32e52976b05077195e", Mac => "710481e7e1b77226cba0a0ce4630ce7fe637a615cda814ced3a30c0b02e3940ac024b56fd16f7043"); Test_HMAC_SHA512 (Key => "557c91298dcfed52937609089637a8cca82c853f71b0a22b207fddc7a718c4372866aa53aaa0fba9116eccc54d4db6b0d134e5b647786c6c82eddbf2b44e1476e1de5af99350ab56d0e4508049d4b20bd4ee6fee1c82ad87977eafdfb9d8a630682cc9a4afa7a760b623bcc1f29343e599a24c6e59970e82497c7e1620", Msg => "fb0e03450c407afdd45d07e5ab697336387d3d039562df6bae5f5313ea4ed6d40ef5ecb05e94a40b05bb1d17b65e4991942bf1ab4f1bf9499048e66f98fe9dfa24146d8f937d50d24a1a6ed858d2e3de56e5c23b917d5a936c87b84effc06d48041391caf42207ba6d23030ed7edca864752b99ba3b089b308c3d19668bdcc25", Mac => "31e3eb1cdf76f10b80fb7ed8e614534ac15f6ca3624d1640f50bc8206429c5ffd944a1875cce4601"); Test_HMAC_SHA512 (Key => "a6198953522d47667302628cdc705e0959618cb7e636de921f66f97af8688c35aed4e0b4fec5b19794813df3c65c9a5282d94cfb85131774ce5b12465323fd00f21bd47eaa99a46b0b3e9e05ebd76a205b81be6eda112efdc8b246011dd0d6d45a358d3bc072c9ebc081ae4cb4a8767ccca007974bf7cb36f3b3bc35bd", Msg => "2909532550db4940485ad5c1905a88c7608480cae0b038219796a4c726a67e5e3634db74afd801062a157c42aa386f91868329d5aa8bf8ef00df428528ead1026f1b6fdeff43b31f533e1a20eed559914de3f2bf1ab70615a2ba6ae38951fd5fbc0538eaa8e20694aa1cd6e1c6f9efce9bea040f96fb099b676e456ab1a3a77d", Mac => "9b31714df38d74da1d31c20101823a7a51129595e96885fe4a3cfb31d5e32c632b2f0e8318c23392c4e1f83f180aa9f0"); Test_HMAC_SHA512 (Key => "91f9e69e2bd3a0dc7240d509c7ec14c85427f79ca030574d60b4bc8d919217dbc3e1b4a8b8346ab82d1c15ccf8ef467e53c8386c78cf06986ebb1c0f2295ebc9b9bee2d1253399a5f6104fe073539616eae34d0044d1cfd9dcdd6a07923c13fe1b9857629b59956b75236b8e619f6e5ac07f1ea02dbc19d655228ebd08", Msg => "8e9b8a2af5bf4d8efd51e33223e35e69c3729c2d3cf6845950388c19c9e47e9e62df7d16e4da43db9028aceabdcc7898c2d74c8016f1fbc0b6350465c7425c237d8e6d4a3bfe5ef5fcb49584f1297a4d6b7b7e8ffc085da7d93b9f8783a66563a75162ad42522844089ea5e9071fedf288073a423663307882f36667453923c7", Mac => "b771f39b76ea764e7e3b488cff14ea8e337cdb173be0d8600d2f565fb04cee85011a26b5b9224b30162dc3ba48c9b121"); Test_HMAC_SHA512 (Key => "71c60834c9ef3ad38c0422e43a94e390a92e9f02a8763a1ae3776066073bc94e2699bb8e5c4fd1eab351fc1c4460c7129fdddf566de0d2ce548517a51b864f890f0fca17a5cd4d93604912ddf57411a0ae827ecd0cfc9348b0118fe17b2eff85f5ce3cb5eb9235385d946e0d97f949a49dc5854eccf304f1bfc6d10070", Msg => "e9a877d87ab357733cf63620940fc61cdcc24de1b5f99f4b9f094afac73710f71f7b9a9ab4846aab3dfb12c7ef0ca305992369daecf3d53a1abdbb00a4cfbe906c4b08bb12293ee37d7fb25fb800db2000c303951b4740cdebb3a5dc4262b97ff89e28033bacb962270a80b096f455b53a2c85dce9fbc74c377371544af8eb0c", Mac => "dd608e1c1464bd8bbd42c9ed528ef3a8036f66b38892da4d4aec611233eb4af89f7b2d9fed2e9aaf177175d674dbd516"); Test_HMAC_SHA512 (Key => "3ea973e74567002dea56ded27e4f1214581ecabe28864b4d88862b50d4dbc0153cc6d881170faa407a4a0d1f0a59e8b50e32ea49c9e37bf006d3f2f6f44a087f34338c6e31215986b09186cfa86fdc3c53db8d8a852c226b3d35b6e479c862f44f79f8763aa4f448b2b2afadff97d6f04e9f1b4b056b2a065436dfe30c", Msg => "2308e98a09d74271c2a336c572d424be7c0eaad198fa5d8d274abdc3c4f768e91ccd8dc0ff2aa435b7035c859827d5a5d8c810e1a137a4c365efb23672d51aebc6beeffc243229d067709a3e17b124f53ab1281b6c6c4134322533468cad1e3ac9e2f8869f7639097bf2d83616fa777549d2dbc622219ea837f528393a08db9e", Mac => "91cbfa1b604f0c2e6b85ed3a4838f7df6fe50353c94251cec2feffbf84ecf98deed44bd62c5406e86297dff5b7fc94fd"); Test_HMAC_SHA512 (Key => "f234a0b1af97eac1f791c02c2dcdb786a223d50ead60458cfe454f802fd288789cc446c2755c57431162f3a7856aeebb765632162b1c6dffe6c9078b75c65706045a169435711418739c295583586f545b93ae05386c1828eb3b376e73d123dcd101f871185f8708c4474c804c21a119fbe43021fbd9aed1b3a2c77253", Msg => "c48597527e4d997da811cca724f74fc12a2738dc9ad28549907356ff3954593ee65485725fe90b5a7a618969ec6d816d5edf0b6ec4b3c6d9ea4c14de4f01871637d89669fc91952fa5e7e495b91266425690343b7d259304b0212409bfe15b3cdf9832fefc501f43502b43f135efe48a37c11d0b6e31d4140b77ed4830fcbdf7", Mac => "f459c728cf1350639d2778ca5dbe68e3a5916588cc55a8739b461ed508bb358005bede01adb15875f03761d07484c4bc"); Test_HMAC_SHA512 (Key => "bedd2d63c53fe1ff0874896cce3357257ddd72c218f99c1006e0136715b9b438bea866e6ab43b6d77646bfcab4874d6b322c42247e1b3837a9b2670a4cb9c9c1c9947d12d3bd6a55317224dbbeab1381b54fd2852ba7d598dd134f342cfc522f66093891479643a3c0628048f687f1908eb0ea8b2886bc5b296b918dbe", Msg => "40b107b77ddc1cfa73fafdda84f4c895451c5138df05af12b697fb684862546a573326664ae5ac3cd17ab412c86ba3485e3bb8ae765295f54d09fb645d02d5cc82ba78be5c6129fbf4e9df2ca25d4bd42e74168235666a4bcefeb3776ef0a77b096e84287af69821256e0792db72c91ffeedf21be5e636fb819dac0a41d7d25e", Mac => "4fc42aab05538f132034dea79ada4b8c3764211d85191e3bab99a04c776fb25c940889a1906ff9309bc8ad998e5d80a0"); Test_HMAC_SHA512 (Key => "beccc5dd3e0ff0bdb69caca5ed6b1df74a9cf766441593b91a6d42cbc409e1d72984adf2925459d95fab5eedf99c937c077ffd42e596e83051f1366c688ef898d2c53b5739e3240dff1640e73089151cb5cffd72cb853403b4332f41ac742f381f57171319047ae2fea3f99a7b79cc5dbc549efce02a9ebbaafdd35479", Msg => "5a7079ab9de0bf5c46f49aca4079f05246d0f275a5a0fd2b43c8be79e0989a459c404d6ab988d108a3c2811d2dfd7e5a1e7c522fec67d329c7bf4a7dd997d5e5cd820aaa8e48dd0251ddc49dd593197be98ebf003078084a2177d6c2515c01f1f51ef996a286adf5582bab71bfa1885db0ee8210f73d643758d7aa70d04ee614", Mac => "56323521c9acbcef43b446cdc709701ad07c2f655e630cd4de7033096fb58c47842e07c78f460b13a8bb690f9579e141"); Test_HMAC_SHA512 (Key => "78eeef30512f01b5cddbe1ac68c81c3849d81af52c1fae39a048ec9a72343bb069e5ab1c339b88c8a03c2f710ef92063252f5584c48bd2943a727eb3baa03124090f0e507a1a130e1ce2ee2132f11202e31d0be133af0ee632c5d5bc73f5aa50c033c1d60cf5ca0ea995c7c5bcf61b9eed6ae41263d38bb6ef099abc87", Msg => "655fec47e10300503adefa0091e11a664c2819270c22bdc3dff3ac19b8167e2e1c47152a1da031a38c023f1e6bb672d3a15415b1f1e420a22d440910a7cadca8e9298e5ea6998fb1f0329e30aa99e13d41df351197a6c3004086d4fef1afe66335cffeeb62364101cc38be3d38d28f2b9491204ee5b0ce648080b4ec7d0dc1e6", Mac => "c683976dd4aa6e5a359e3f6359ff2bd9d44a54fd005e0b90d02b547b3aed369793aed0465cc8ebcdcc36175ec6c28fda"); Test_HMAC_SHA512 (Key => "1977183650572f0cbb8d65228d141b67cf5f4212a692c47dd5f21f37829a53553d71ff083e58c775eea8f8c0aadb6f6ac389b7dec997714609abf9a354e2461d02c61297377a3b8765386a0512fef222dc83fb7aba70df0d84cdd44ab6b9cc6d715f990bc22555eb272601184fe36c342235560f0187d6794f41f95430", Msg => "99d4482daecfeeb8d44226a39f85b42f9513fdc2d798c698044c3eb55a803f1e1e76d1483e76f0d1361e8f6e30fadc256f55c6bced4ebc71432eb8ebcaf87d7100421d5a2d44bdc4462f9c8911c0526f8a14569f86bec35996175ce52ed5cdcd06df3449c160dffbcd1a57dc8afe9e77aef9b655e81062b8c3af318cce3eb79a", Mac => "20055e634496d6386db2dd25f2f24f3336c9f3ea8a28c4226ff8b34e91d854a0886a0584c858665859a54534e1b1281b"); Test_HMAC_SHA512 (Key => "da02e70f3f27b04720271048f65d81fb12aceee8eb7baf59b7fdbbbc38b6194ad93b98e6f939c04887b8085acfa14ae2937e73625e827f3c15c9a51acfe0ce8de6884cf54fb7c9a026e07d368d74a554b7a93077407abb1cc0efbf259f9e097f2b726b02e7abb2982626d7a2d9df7a97a6b48bee3a6c4b3fdff773a551", Msg => "3b0d45434969e3931fd801367b32e7e680206cb1582eb9a71f214fd6fc8a4c78919be96a963a48e0c0546d58e8748acc69947f2cca33a10b9da7ba99a6b552d1405f2df3fdfd15358d8fdab5e15296b38f9135fd79be35aaaac1ab0b809087df100018c6c6dbd3f94c325037adf49503bbc0970caef8feed0d172916d244720a", Mac => "48dcaea229724fdc6a01a19b9742c1ed7fd57a86ecc2164c9f808f62a0c8cd6da6c57990db306499cabcf344156f4a12"); Test_HMAC_SHA512 (Key => "939cfaa5c4b2f535c8c796f4e98726116cb9a3a5cf711d8e4e87607aac47d3422f6aa07aed46154646414b6eb28b05b5bd0dda674f9c97323173df36cde0145f353d7bf367229a67d0d9e5770e129a76fad8eae2e6c4593b23716715c72f706dacfcd139bcb04c426c77ae368784aef92d04193d1b512c522d69413f20", Msg => "51f9ab865146187fe650e49d45421fff28c45c3bd8c465458b762d93f199067e0afd14ec3a42022c9fe2f321a272bca3cc245022dc917b8c16b5d471dd3bed6684fbcca762c29f002451abed67a8860087848683b126795f4056963c46a8b4ea68febafff04e57c21da5f348bd6ce5ddfeebe6a6820bc584b1605d3a5366c5d3", Mac => "ee3629c6388cf97e6f6f36cd0eddfada5a44c4417b02e68bd46318eee178495aa18bc701f940e29d9198510d494e3636"); Test_HMAC_SHA512 (Key => "d7d1e2a4b1015678e0acef1fd748da61498b86413e2d58de67efa19baedccd7e12cfddd6b23517212714fb2c174d7a7c071e63ed71ea1e99173d9cfb960b8e553e38d54e215d3ae06aca6071f1c7f6400c203103a7e07acf975c64372b73e0b80415b4552702297e51d404368b40b875fd99dacb0795d5478e54df9794", Msg => "9561d6d7e4018c397d3ffca92595481626fd14e65ab439de853eb942e7aaf83d12172982fa7706344b93c404ff5046992f309134291b8094c460b817f0f7df23910909c48eb17396240574e68150b0148ea28f3b0c8bee14e2231418b54de7e5ba3d5fe3c8383c27b29bf498d31ff050ea5bf745298beb28888fb38d5f37784d", Mac => "93934bc65a3163ead3180028e8104fc305f2ae407a27b14975fa79f0aec260e963736d9aa1d0069db5fff91f87e77512"); Test_HMAC_SHA512 (Key => "95bd8ac4e11edcb1b21ebcac3197b0f72388ca2561b7c4dc889b50daf178a936e4cc6ee808eab08c1ee54a63efaf709b83828bd0947f44d24296dfa909a5cbd6efe477dc028067ff0186864c5a03bed9546ac64e8e353ba4a8cff32d40b28ed520cc4da7b5282893c4ca1a6e58dbc03aff0622a83521d1db2110326f7f", Msg => "4f83fa4a7033fc574fbf1cebf8d4e4b9606807f6f6f996be7c1677b3152114e79f5350fc4200bf89491d16c031ffe04e00657383d9b923b3cc93b5dcf27f1788ba004ef57ed5af745a7a520f3df2c46e40c4fcfc37449045861329a237e935194992db7f4a3734df28dfb8204435f6e1c88c89a83b20473c529fbb4f09e8d660", Mac => "2e13e091d6062a8855b6372ce7e16ecacf91e4535c4f590824e95575a85154d333c96574402f9a30935bf30edc61c030"); Test_HMAC_SHA512 (Key => "8c679291067ff88fb4b7c9f2470fd1e6863ebfef380228da44b4cef4171f21794692064f7434d8f47798acb6b691da22d548b9be958ba9fbf56857659efb3c1d7d846789b2bc7d4aa96afe6e8631c9e7c7ace33c24bd747fba21127f6948423e7b643ca686c1ef77935445847f96a81fa293c5d2af3d9050db0788aa42", Msg => "1763082e69de7e54a36f4ca6ba48ad036061845527129dc4e8e1362a6699bec72f9cdc37c379b3a0f8c165309d17d5c75e87b2f0e719b1164da519f5a9e8854e06d8e5df7d35c7929e61d5f512719eea7f8499a0ac5366c1e60a58eda257316863c02c0fde3941915cf6a4db617e8fd48b01414bbceb472d7cb9fafc980b497c", Mac => "6327d024f6ffea558be652633d527bd9b023968032053a3a2ce183affae4721bfd81b965bf247b38498b1209e2955ec3"); Test_HMAC_SHA512 (Key => "be7b98eeda81b741128103c2a5cd5180ae213e384c37708400971f4f56add48cc81d7127df5b723c9b7672881534f11d63645459bc702d18dc32bd29aa08b8ff192b47a94c3c5305fd2001301f0e7940c2e6ec3638c5d52e76d67fd9bc6bc72d794c235b694ee3020028b7a20b83725395500db7075eef2d942c6b47d4", Msg => "82af0ac2ed6449298b517034353c3687889b4de0ddb5f3597b05c4e70cdfd2274e56f75a0b5c6aad4b2b91bfc8e4165da2763d9054c275d9e7fd2dbb6655e87a91d79423d59017cc7cf22c1d227a6d0f6890b0f4ecaf97b878c5636679dd09edb3fb88253447790d866ee8572946622640b14f168bc3837d95270ff02fbe5d09", Mac => "156277ce3ddaf28e60541fa2c95f58e045bc5d68d630d5fb94188de015491dd6bea7bfffa185cef131b6ae514e7b2422"); Test_HMAC_SHA512 (Key => "480be758a9b7ba9af001bf21db00c451cfd66f06c9d8d5d698ef47974a3d6f21e4049d5556c45b5fada447378b13226ed4af2427ab6692649ddb93831b0b40082e30fa9c66e60056148c403ab8ed6effbd1f541664ac69e7fff0a45e5fc292a68f57a734c362d2088b80532f4cd4d18df1eea7d9def280e925f62330fd", Msg => "b10af503590665c12e96c3be38b6ecedef0bbc4da1be8b63138bf7e76b15e4be4d7dc22845320f3b650b1c902f93133cb5a43901fe3771c6ac7a0245dc2399044e049286c6e073c2b17eb9d40cfbd8f382647da3d485162b7efb944a98916f26fac9eb85a3b89b3f5c1723f4989841fa9f760f99eb50827bd237375e66066f0c", Mac => "6a2930bca4229aa1f1ea1d5a26d02d3c350550f2e0817f52671dc8638dde0fed40de2cfa5483de8ce941d94e3501f6ca92131abc64724422"); Test_HMAC_SHA512 (Key => "2d0cb6d45a952e7696ba75babac052a0d44c5fa77a6d01ed5edc9d97238309736f3d41dc42dd5cdf8671be9ce7c88eeee4316b4e26865af4116903409ace1e5958ba2814dd495a1746f6db3e1117353d2fa706875a48f86fa988f28d626490640f0bd141d4e41066ffd13668e1b62dd6dd35981bbebcc1a64dc2d24824", Msg => "7415f6373b8a794877c639f009b3c49197f388f98bd3f0ee5f7ad00a196703ca111a53e1fa1098d220f524bdef165f79b515afe4a9e09b772be32f1e4d7da24693b13637f71f60a430322980349ad414fcfdc14f87e9915d210e8b7be5aa3e09814468e0399d17e72fe40ee1e1296a89f31486e12fd71bc7ca61acc9e8d4213a", Mac => "76912ff0f180d62a86a2bbf8e1f8d4438ed5ded0cfd3bbbb430384a60f18d9e9cdeb7e49ec43a61367686b34633601a5aedf8e3d669be282"); Test_HMAC_SHA512 (Key => "6e1d5f581eee884d330e4cd26b51007f4e3009b0111ce581bb126bf6867053798807f88a92715db259a46eb8d3c88918e4463db13a2252be768a09078cafa4596cd32933e2a364c2bac82b0f29b9e67868d34e5da2ab741b10a3053e63bbcdf262aa7bbbd42ea466a0a00a4033cb1d8522fec21b10605480d384e802d2", Msg => "0b8cdd9bc2dec68748a799c1c10a4199070ef57ba7975d7f2d95f63ba27bb7dc52f3f575d3cf849642431f21d05209597d87f53c24e52413b820cd47cd0ec1765a584fc6bd756579ffd9f9c25a69a7d7f8339c48fe5cb28fc959dce87762c563aa24b43788b7b35907cff04d6736633d007ab1483de3511ce9a7edc7a9610bca", Mac => "293fabbcfdb855289377f512efbc370152cb87197d12f661b6cae18b8d242cbc767a6f663377085525f0f27b390057dfb99b57b73f52aa2d"); Test_HMAC_SHA512 (Key => "030d2ff93bffc8241b850829f5720812c4ada593783279328d590aaae25b4092c9121d3a5a00a8d60e932ade89a79db4b64d628819cb327961e457fc3d591c8271af8255293334c38d3cbd7f95b0f9441fc9c9bb3f190b9fd6ccca1f662eb184246dc6134f9f5535c10629d5c493020a26aa44f69025edee139bc9da04", Msg => "942405a1436a808dade61cc4207fb8ff8846af793dfb4f981fd38dd0e578f6c5b252e9afe9050403433bdc501fa3f166193ae1beddc9db163eae575c82e004cd002e025eeec7525b74ff8b4e0450ce22ee9ffb882fc1259a8a3e44bedb552acea740b976f7b952dd67bc90877a8f377a3000679fdbee166c2e0abdc097df500e", Mac => "86abebfc1cc5ebda3fef0a08ae515176378e189b577b51b8d3cbf6181bc1cd070a086d881ebf31ed79da1f034e5decd30a9b69256cf5ad34"); Test_HMAC_SHA512 (Key => "c169eca1b31e6d7f3c59747c486ae4865ec824f5c8a967bef5cf31e91ba51745208ac65abb6d469fd79a80ed38d3fe3460a3f36db4ef7bcfdbce2346679bac21b7480c0a1bf4b63c3ac01bf0b1df7118fdedb3509b82e9126d06a92960c7de684c48c89b1cdd44be2e744e6dfdb6c49cfd4f6c88c68939ed7520ca7a4f", Msg => "4fc3b9d3c4a2a4b95c41d441b88e126304cf134ad02ff2fa1b76dd36b1180ea1b871fc23854fd38eb4b1228277ced48e2e5962973804477e0943b3fd7d5283d26c7971207f8f881242bddcc17a847758b80196762e7016d3c2f0292761854d4796637f915b6aab8b2fed68c768b7e20acb5017ac5a7c47426d05a57b04ba5348", Mac => "ef19689ca901092506af1eb87b16c24c898ae68ecdd2577ed6fdbae5b0e2f93e9f0c1a839df6e509bca954bd881ec03edce3186a9e529490"); Test_HMAC_SHA512 (Key => "9d10d596d5845f84a6805feb81fef632c044617a930c86dc3de1ccf180cc3098553096f3e1f35cb3a5de3596f547352dabed28e31c23283b4b316f595df769c44dd30d6ae1c56ee5ddd18dfc76a5726d097c7bea0d42f36147f9e6803c5b3479ecc1e502bd43bca0b6210f26ed62d67843ba01954eb10fd59702dc6f06", Msg => "1fd2428a58b14ac4f539d7eb55dce51ee7def6e4ec0afc787fa47864d39ee451bd0e4f1e72e0472f91c8fb08647ba11a631f16dcf900c41e8b84c99bb76156cdd90d5405d4774eba0ff48b21bd7c7aff621654bc9291fcb8fc752ae2a839c8867db69c6606dc280d76a4ce60e9453876ecabf7a940256aeddb5ee261308e0324", Mac => "55a1be4a6c9374fba4d41ca5b23f436c82c041cfe3fce242f404444844dbda9c49b2b4e52ebccbe0c95cb6f04a1e4fca51b26b09e05f774c"); Test_HMAC_SHA512 (Key => "a1b77e7d35e194c8f30d1f3b9d4510d5c71fbc688c9a309d7f4ac438e4b5f39d21fc69936fbe5e49d539239757b2fa856b172b11ace4542dd2430108e2777c8ea27ae73250e587eb9311637cb27c0ef9046ec187a8dcac63758c8e26347a84470d7b1ee14020b8b616dd0875166af3387b6aa551e64be046516d941a44", Msg => "6210041f1da920551a12029bc4dd81bbcdc5fee0c3f09afce571a66734115cc9cd4fcc3975a518a6760de476aac4096ed54e89d237bac8cd6227f9124a87d6c49ba394944f6016297f4061c4792b5024147088a74007afb3e119d954dec1432674154476d16080a4deb25fcb5c9bbea43233e4a8055db7750a4d2f7318480cb7", Mac => "232df75b5b6d63a2f4c32b739bb13a5d456684de17ee1f78d351feef5d082d2efab21d6143c405c0f015808675ccecb2c398e93874c7a15f"); Test_HMAC_SHA512 (Key => "8966e3236aec1581b61c8e3960e90380d8d48572df6bf8b19b10c64fe6fcd5eeec84b625f59a1f267f969b9e903780dd4ae42137c03846aa08bed9c192f9e2b7b7a8b6e095476a451bd98e8e60e5182639bf9f990a08ca41dc780721b0db8011135a4b1cf3fce026b16dd1d177fdb5a2cceb656066e46cbd3fc7b839eb", Msg => "f5722154ecc1d97bc585dbca18091604ed4474f922af5ffc0d5384966126d67c5697d6bf0468124310bcec728b719d3117af7a134cc175cd5a24e6ebefde8cc15b11cea3f2d04759b13182cd25a402078983865b2fea8be121c811260736a2214b0891697ca280a5f00e2443ae4b4d6d8ae7203892d0a71fa9678db172d62286", Mac => "e4e76d5f58ed574c96c42b565d53e6676d2c3075217f4c1a0afa79c3b55009617e73496c1af9db02a70ecf08b2c95dcf1be5d94b7760637b"); Test_HMAC_SHA512 (Key => "6bfadbffeb0d23e34c0243c51a7e5a1e7672a7fdc6fae407ab85d5bc343720fc518b5fc98a3d744ef0671c2054eac8c5b80fa873036e0819f90fdfa469d0a57ba806664b3f67150ae1282236a0624e5e60babfe48b414f0106992a09645a98f15ab3170e7355ad1f058c7c8e64af97f355bb14dac63b63c6bc6bde768c", Msg => "afa6ac462474f97c6f12e3b4260ed08c04837f95e23d9c9fe21d9138eebfa06f615b2ede03e962e73b89ef3d80212ea611487000e6639282e60dd2455abde003a2a2391e26d2b0e490a44d11395a5b95e004bd98a2a181bc2686b8a2190484afda45721076770afbd62ca53837017fe1db7e0d66fe3e91d30c50eb5611dcb2fc", Mac => "599d768f42ed0c6a81898955e38f34e17b0619891278f4d8e05ff4ee49ea30b063d6e40f44247d36de11a2f346a16395a218e94c7b04510f"); Test_HMAC_SHA512 (Key => "9703e403d09f821808d19eee46151209d02cf23feecb6c12f190f23d74399c8de218c7f238c203d60c082cadcf28d6ce4f44ee817f129f597bd673c4c78dbbe0d76b3090d588dad09ed731450e5783187d8d950589318daf16280f3794b2a70c81e567052e5ad1adc526f7de8b0be09163f02ef4948ffebdcb6e10be64", Msg => "a3acb88dd0b141652e248025ba606fad61ec8d52b75a30dfeb6e1dd9fb835608242b33329d16b42a8435160a191ea4bc2ab3d0bfcefe82275660b0e681eb2f4bef0cc9c8d86d8ff8fe1970e0e0e20b763100c25f88fa10fd59ca1ca9243c8e3dec97a1d6eb7f79d8841ab83279724ce35e1a8abd4e158168dcf388ab4c3d1ae7", Mac => "7100161e04dc2a98b6ac04b2fdcd16e6b64774e020c2a94b7bf0714b1e88b7c6fa55b6d1a25d3eca9ba04ccb5a8fc7e0407d01d98c4bbd3e"); Test_HMAC_SHA512 (Key => "bec9d2afddf5f48ead7cb48d31ac370ed58981cfed6e8eb55ef79ec89b1dd07ed4a3f23c6ab2981aa5c06be7a9b6c46da6517af550c8f80e8fb0928b771d19cb7a0bac3ddcfcd22268e2c695623e12c9bc8a5f938cd58c28beadfd27064136da19c7a8b91d1cca2f5eaa6ca1428f49ad7ffcdbaf8bda738a55b488a532", Msg => "6a15163bc2f7e899660edd4dd56819faeff7173bb64293f1555ba7dc62113469606683cb88442c4dc96b37e70dae820fbe5f62d188088d22615b3872c76c7c80491efe7249dbcf25008991c2c3b9dc928421e0139b4c4b4bc7906d5c6f4199592e24cf588f2699c8154e33057ff1ee2a4925d627767793138de18dc3e2f6549b", Mac => "091f47da39c7040d6d76064ee8017ea5e9a85ee82e5632e66901304d515ddf5cc4371c3cd3068e3b8a8a6ca5127f376b5d902c0fda382e3f"); Test_HMAC_SHA512 (Key => "44c3dfb2f9507384167f9844865eae22cb36713d95c9280a93d81efa89e85657a3467b6f094916f5b3d704a47f2a262580d45a339901aafd4bfdc4ccccf6aae55902abb1cc64921b710b1d3a165bb13061304b526720ba8979010cf741ab46de0fff58be6d294fbef921cd4d7478b60916512de024aebf75c5edddc512", Msg => "0487cc84f63e3fa27576b32e5781c5a23c4a3fef65df8e1dca2c773166090553d678c6302227379edb3d7c7e665354e797bf4d818219342e8df8d0f0cafdd0078413015918f4c41706f0c09e48ead49be3a34f73bb3b64e2abf4d8e2d53afece37e0e5c780add0572117e654a64e2b07477caf8eba4b067f4ca9f7ce30c878f1", Mac => "5c248c052efc46ab0baaa9af71df991103b7b83773bf7129d29121655c28d90ee5fda29c90ffb6ca6c5a072e95cef8ec2b706a9fbe4d2f7e"); Test_HMAC_SHA512 (Key => "b4351406709d4572693c0a7992499023232a732a3e8983aed2aac82ac0fcc4a73ceef7307603a9857a29e3145547bf247a15e154643046447c6e3d923c6eb2089574b2138e742c772f6df5429df90ffe86212b2bbf756ced2c5d6e01e1aa87f586704d99001858b14eb149ecb0870a1a0ff7589999817f10ac1f6560f5", Msg => "e109e67f994e1442aa4dc46bc18cb6cc3a8eae289b4a194661dcf443007bea2c25abbccd3eb3e6c33c5280d997ae6291938d8b00c3c7c4dfcbfc80e06982073eb7a1d398aa033affdf664e4e979402b900958ea9b62314c8895e835781c1bcc81f55f389e624581e1af1f772c826dd6f060e7dcc7c445226236cc5534d2050f3", Mac => "4a5e35d85e06a57fe6b6f90a4ec3b90d9c4d8896648f0496c5c453cd1a2c25c4f627c688f3f2bcaf88d7e7b33792b40c4a4aa6737b423e1d"); Test_HMAC_SHA512 (Key => "67f57e3643ef20e5bd2cadb13f38102c1de95c6e289d036f80c34ab4a99df92ee143575fb1ec55bec3690a5df3f25fc9a8250c31654cc3cb9bdfaa74c24a0f97a7ef584f086f38d05e252903faf41670534357619f45e344a07ec152c183c06e610168506f0030e23769f2ea7bc69beac64a2744fd11cda237a87695ce", Msg => "7f87d81389a6062e8ed501ea964c2fe35b2d3de9fd676c04f7da2bb552bdeb7f183d2fa60c67e2379848ee4807530a81f403d3dc02c11fa8ce078ed422c6626a6c05905a6ecb1679364090c9510f06fb3c0e09321b21fe0aad5cb9d980674e35612723b6179a4afc51030ef4dc48cc5819980575af50b0317d20d54cd36a57e6", Mac => "dcaffd5f88c2ce438bde469813643f87e841e94ecb283270564ae0b07db0b8c006426bfa7ba91fdabd5ef9b1b8b9cdbf860ab0ba459e2c9c"); Test_HMAC_SHA512 (Key => "31671f1a2f8f8495038b707aa10a2216f0ee457e8600cfdcb3e22a08c24692587b5ebeb8ed93c2fd6a7a3476d2048dc415f5d3ecf39775ab06af770a03b0ce313d2f0e806a9742dcaa1e1b47c5f74eb4b4c937196461c2c5b6a48bf4cac744a17dc2589b3001cddbcc5d6f15024c2b8dd854b92c61c67ed3cba8b0efa0", Msg => "77e16e181b3dcbf1faa2d371f48400b60207b23219592ea45245e6474905fb49c258007e93d50156be7fc30ddd994e21c3bca9096026e524e5555cf029d53b7c4b563e209a01bb6bb10ce25de68c43d6e68b914f995ba5c84c29c5010ed527ed5a02b164f76903181d72b7cad905e7beb29df06c8d9f7678ceeba9e4c0b0c685", Mac => "f421ee42006f668e1de1a54b0cf7778accf1fd8859bbd46fc98c10170985a3ab690826862818c97b7696762898f25417caa5ac9f21a0a3da"); Test_HMAC_SHA512 (Key => "13fb1ed6389f32d1de3139cb04bcdd53525c9889b85379d3535a25d290351c95938a3d0cdaf38dbf1d5234bf7965c8ddce9ace1b66247e60d74ec7702a0f931a3cdf4cb465ca9fc458c380004a3a6e7957f1f813210b8038ba663fcdc42a8965d6a252b5224bf249552b2575bf64568db4091d58323006c3c34994d3a5", Msg => "88ad812fd34e55c809e817199604b4a7f7feae42cdc4c9e930db08e845a3d74313db8a57926706bf0551be758a0fe239f004d237c849d9e4bfac18292bf9c0c3e37985ea54b94f30d18c32ad2b53a059827cddb95a49b4bef1d369ead14eeeb4a18e592e40ca96e515a15908a05a57cd5570b611ab4ec23f7057e1725f29c9de", Mac => "a481e713cdc81ca5afa0efcb16e35cd20d01aa449958fd2eaede2e25a5ba540beafba2fab4adfef2e146b4c1b2a1832e93dd373d63fa90bb61490f6568191f65"); Test_HMAC_SHA512 (Key => "fd5070362296c40d65b105d5ab4653fe34e0200516933f3eeae03ed0c5d9f6016a8560b4bd86ab2f7bf98b22299ed3e54a394602d538aaf3e6951f2db4feaf5dc33426f15bb124da388d709083a28f5701ef96c28b3a3c75bef9332ef373b90771236af5e25d589504345d28a19ab0dbc1c9b74d1ee21c4bd8d423de6a", Msg => "8d2e68d7e9846cfa30d931a38efb59bcced53a14164b3163d2653888eeb0bb1448e1a80c65bcc6eb633447e72ed4a075f75d980fe2b19f35ffef62b27ce09c2019922faedb427321057fce19448d85962a08d1baddc936d1110e108e33d46f97e7882445b5df1ca4ff03edc237efaf264f1c0d9e705d9b3eee076ba57c56db82", Mac => "b6cad1ca5ba505498a8f66a9422bf539426a8a55334fab9c6b9e08e3a5179d157d1efa0f91d5c5e26ffa43f5c1cb7ca5f906ce4f0efcf4e871820b8353e890e4"); Test_HMAC_SHA512 (Key => "0f67caceedf8cce39a7223d32ae1b6badae2c2ab01bf75f543dbb8a408514c4b2cd81801f9eac1aa52257c7830f120b1536380b23161f734330744ce204a98bbd9dbeede484e9b03937c26689526597c8edb98e6191b72c95fbc76468b8d48437e3af46bc36f8176c540caab3fc989a3f511b54fa2350e3d31c2f6162f", Msg => "3173a712ed715b321a849279be6ba237fc90dec0e48b0e1290e81cb86c2a10eed50f3e05e616be098e3f1da2e6125238c2e2f45a8753aa613c1ae250e304c6ff093a6b799cc34ca2fd4af81d5622076c2e8752593a27649576e12ba075ccf3e8f57b9635b77fec448e2e89b2b5a3a81d65066285a70e24f868c35f6ecb8981f2", Mac => "e913fccc25f84a1390ef0b0f86050fe9e61146c1b4ef0b4b60d187baa36b61458bbda925b96e99cf8a4330291690417fe194cb9bc2b6232d43e046d13f038ed3"); Test_HMAC_SHA512 (Key => "5c8589b3845970145e12b34713455eb6b5ceb132242024e42fd9a886fc9a30d3aa15703b3467e4dc99a915ae3ac118fd837e571dcde5945983c52a2c849296b4c96f3763488d52f818b459add51f6db2468d21db3d958196bf3a531f65bf9cf702bd66928672c14f235c08aeae0665be472397d43cd9f3822b5fa9c767", Msg => "7f2544a478961dd012ac705e12e74587e2df6b2ee1406a0bfe13b908853f31eb384fc236a275654ba8cf51d461ea726228851754ef97ebfbd69326fcfcea04f594d177633c4618c38b4d64f7e98025eca4c62e7a40634b8b0e317880002c51d0bb34caf2ee0f207ee2ae108f53b1466b7f2d18667cac7403ce75175d390e00c5", Mac => "be73d57ab3a7c5bb305451922fa9b11d0ae938bec886fac5645a8b72de93770d96465291da2bdd5d11692f2cbfae69adb36ae714f1e5cf43b9d2841ddeba4ca6"); Test_HMAC_SHA512 (Key => "7198b12a22014154578f5236b5a0d4cbe29aab3bf289bea2220a4a13c9677ddd8b03400cd0f954337400a069c192c9929a4d04e0f89928999b8b081af909ff1c7b2fcc36e8f2a0a32103764610f6a3ebdba4aed05dce6164d603204ee1c37ab1a7e4feae5335502bc6627cd38b17895e0d6852130771918b3d393db76a", Msg => "9b2e0306e73662c94377e5a99fa9b63f034ba91c8b95645eb0afc381c8207b77d089fdfa6a939d212226f331f5dc81b614b597d3e50c74d74bc9ae1027d9d4e41fdb511d9e1c93851bc66db39f54ba248149448e7422e470c589eaeeddcbbedc0d8cc8198bba8e1eb7bf1cd6a3fba9b1d37177f441c0fb53a4563ec1f2e08387", Mac => "165e1cc47a7433270f1673e1cee581001708195a3471c9ec71333ce87299e72abc5dd490d43676d10c1375125d4e7fc673adb15342ddb7e72eb24ff36f54f82c"); Test_HMAC_SHA512 (Key => "b5ffe36117589646ac097327e4147dc9fb13f7346fd97a6fb756448b32bbd3e25edfb3a14ae194844e109fe1f9070ae84b1cea2924fc4957fd8f794bd622a74b6fc4b38dbbf040f7926d0729a67370bdb80f63cd0cc85bb61a83bd1c86a4692f52768e2c53cdc226e1ea5206d39ed6d1abb309290d87d81776fab9072a", Msg => "1e6b0799e857a1efb3cb0aaadf74c78c31d5e1c72547dd1d863eed463bcf6892646f78cfa6fe136dc2042ce06d3a2a465c4c994a9edd1f482ecbb2b2c9b509b2fdbb501083852057ce87ae33e483431e6d4fec3b09d87282e7678c1e9423541310d8f82427f6b2f4feddfa6bed57fa5b8c6642641141bd15d999e353442031ff", Mac => "5702e9898e96cf220c6778cc1d07469f13ef0c2ec0e335ddd1791ff265ce865d200e4e6238b52eaa9be880adfc9076202625bf83bc07d861401a17d4a51d84a8"); Test_HMAC_SHA512 (Key => "b8100034c20a0b6e423c9f6c541fe9fca08fde8ce7177191db6f0929344332fe0036926e3a2720ea9fb3909cbdfb114d4da73b85c22b43f42248721015d6d5003cc235b9c35349673ab12b0ea0a70971c1a81d33c310df3cfbad795e057e7b3813bad05b8514f1acba3e580a26ac3830a59a6bdc0f50ab310da506592b", Msg => "29aaac0418f6bb3890902888219720b59878f226d06c7e8bcb42e9c0015e96f4f802520a15cccf3fb280540e7108b251cfb97aa8fcd86d1eea5d340aa3f65234e14f5639d89155315729978e0fca914732b513374138c3c01f74cab36964cd740a1b1f59094d3554a6115ad2a6e5a3e2ebf3269a479367b692101383faaff1fc", Mac => "9c87ca3b8ee3849224833b477333d4fb1bea3d8167fda445dc677d0d70b9ba85d0c4fd79909703481fbfe99caba7299da8c514a7a0799d59ab6f9e3f1f63a372"); Test_HMAC_SHA512 (Key => "d62dd5837abfe25749b0371803cc47ff4b386e840b4c7ad115a06a76066a765e70074f0238d7a7dc3c4ef41f394871a5ed9d662978f6aab608df665fb51d1b31aa41e766867d04db02b791c5d3dc959fd27741675a827509f17b861c2bbb3fcccc0425172d59ff3de1129671972fbad542ed85a57897e4b2189f521330", Msg => "ed3dc5fa63bedb28c12a423320ca6dce3afe8f72712ebbf61304495fdcd87bf9bc6c61a7dbdaf977dbca9b795de894d2c696120c43dd40b00aaab117e337027de7c7bb57889677e6d210450df1414d60f28db77dcea1c89fa4a94e7046c33f1ff7b49db373db9c9f30630796e4bce0a0474b476e1a609cea6869e8130c667908", Mac => "1e5b3b965cf268d5f9529d0a256e6512b41bf2726d762e9447e40af239cf3673fd91257edc6739cfcf9e6893bd9955e4166e4fe2eff2265c1534abaf5b11544d"); Test_HMAC_SHA512 (Key => "ad9e1d5774ee7e882b2dd772c7867eaadc56299b7583f67b430fae7efbed4a49f913b6a929d0d6852760c711a5be67450eb9178e684abfc37f25135a408e15dc636edb964da6939234a3c4c58432d78a8196d54f2ed9728e6e5f4b006ac16c0d32d81586a717be96981e58f62b8dd6617f16ec488fd716c65ae6ddd641", Msg => "e76411d3a1a72ffae3f9363389548084510d61fae1c251400c8e4d70517e7a29a4490ce2723b667edf738220524e94403323eafff33117b74dd550d7cc0116ee8ee9160547ff4d3288226f6a42128a978628e6ea8e4431730106d8ef7341b8e12bacf6e42adb2b3f696ec5ba6189aab0d0841e66bbe3e69baf88ad604d27a82a", Mac => "313a41518da2a8194451b01a4365b1d99d9c46498c24160b51a4b494f669dd2d0bf0922dbfecc703255f7ab74fff2d7bee9ff2a4823d26874f7532594b96847d"); Test_HMAC_SHA512 (Key => "054221b2a3507d491e5f0da4292931f63d105152316217100adbdb72146b5f88323abd5072ea9d22e41cab4bad3549f9576280576bd93df84262ba7918163a626267f94e6161634cf8308484bbe1c01e486dc45fdaf3bc151b45c6363aa6a7c43ed2bef39a3f368e01a37f977bb6fe2eb93903b3a537fc2f3e8be9f0a3", Msg => "56958d7871c6b901f42910b8d7a17c3172fd25454b77e5b52d81fd0f7ac206d6c15b2add936e93f493e124c6cd5f670249a0c7b9dfeb00084cd9d3f6865bfe9f4dfe6b93036ea879bd3997f89ad667d754e6c26214b948108b143d643e327e112108ba6168ceded79abad114e70f62f7bb567f0893eba71710bca120494e6f72", Mac => "6d3c6a9a076d3a3506d7beed3845521f50b2df2c5f3bce0707d66e20bcf09445ff13e0e445190e7f2c43fc73ae2bf68858a721a67feb8083dfaf498c8b86e192"); Test_HMAC_SHA512 (Key => "42d6852473735ecc21b107e3e0a5d3c5ad2cbccf7e2d9dc31d1ea26e35cafc88ad51d9db367093a82002274672c7ea0c3965777120acec72411e56343baf69eb85c975fa0293955cd5732a4276d287fd051fee1fdf16bcdd7042e0b848c0915d704741c9fe65ccb0e70bf620154c1462b9620921e3f274cd5091284282", Msg => "2679ac7911bf024295d61b25aaa0ddba9328bbfe6ee3e5b10a36bbfcf8398857e5bb6daa27869bb295e3c5a79c61d61c8fd3df263f9853c0cc1f766ebaa9132147516d5bfc4a799383694adbb8e3cdc00257b672e40fba25cf83ffb63b1ed192f64596d4bb9604ad066d910927ad2b6f95bd2a2986d083a6bc6a3e1ca2202a71", Mac => "cbc45d2f971d684010caef1c2d6124f56be8dfdcea7050c417b0a26f6058f6401542f8cd4cc9f81a28f4a4eecdb8376d8fd5cb15ca6b2bcafe79e1e209f55c16"); Test_HMAC_SHA512 (Key => "0748bc683d617a4e668f36907eee655e454d6c19e43f6309d3701952fa36582417686a335f73db6768aa81d446debaecf52ff5f3f72174b43df350734b2cbd2298768fd833affd7eac3ea5cc32a3d174f952f99cdfc289924ec1e3bb640aa8cd5119343e013e67fdfcf1ab5f8a65325c1a6080fbe4492a0bce83dd148c", Msg => "2b0b018d11c1ebeecc2a1b5bd17e3be5b87f577987ac3eb733b82b00643aa4d179a6a350cc7cf42537bfde8bd7a905a70f9d8f18d05d86cf187d7d21b918771a5cc10415c5bcad89596f9226dd13522180af2bcc1c476369b950e640536830efdd446d0285eadfc33a2081536b24eafa129d73bcf2d29c2d1c1aac86b89398f7", Mac => "ee313f4f6c8ad4764f81873d4baa3e9f9b7f6481904a01fb1c827eff0314c1305cdfb0595a4cb8a6f979d9b7ab337e38eabe823742b89c2a1ce88c5260896ac7"); Test_HMAC_SHA512 (Key => "ad8db0f165d0ed6e9495e6e53ea1e0dee4437cc156db2e83c999f084298738b8b1ca2706b82503edcebee76d0725b92597925db99f6e2876471598390ddb428c5d4d0b1361b99b271af00fc0b04aee9806eb5f8d924599476cde9a1ca4531c30d99ec5e107949e62a1b1c6a5e018687f5ad6ea07d667673f5f7b60f697", Msg => "b6d8212d828dfaf27a03b79f0cc73ecd76ebeeb521058c4f317a80bb5afd41dff5520e525358df7851469bef2c358b2a97df0f5c0ba68f985fd8b5369831d97802a1bd6e80507b1620e0bbc8f2f229d11beb275f25f8be9d994fdb1ed0b8b87f064c9848b07db7140f5781f20606020a29979e84160302a508695a3ba99bc43c", Mac => "9210b074bb645c3a36ce46f9921de1d6cd8c9f37829c251d1d999c193dc30467d44c830084914cf19f4ba761a0e774c103f092b51ea25beb1b8277e99fde26a3"); Test_HMAC_SHA512 (Key => "484babc2861503d442448c3c43d7569a380eadd9eed2eeb4c651997867e9a80bb0471f2df0d0e5fe5a3fd2c0b39009df4e1e882e3a08fd74bad8db27f567ae77effbac8fb8b38c17e4259bfd3a450c75b1898f3e984a2627146e34d3cf44d7b9efaf786e4587a127c73c0e7a41bc06644797ec906e6111d6bc59cc035c", Msg => "b04bb381f91b8b64478391d6ab6ae306e796020418bf917899e85a9423ef924739625eb4c39496e2f9f0c8b5828e801ddd04c68d017fe9af40127b56714d9db44e127dcd1ba41c2b890155d3d9721b79446002f09b6900e42bb375cbe3806a19b90316b34973a7a7bf5d3f1af83e3c82e451bc152fa66080207451ddc1b081df", Mac => "0d73f53c10c029069a2d1d5733bc6be8a1e94de821573daa290fbee3f897f44297cfbd515cc5ddb0df7bf44ef58c446ec085c32c8d6ef779a5518e63328de957"); Test_HMAC_SHA512 (Key => "c4e631adcca6a4735c905c369c7cd44d132200b362f29a0a3240b7e06ba49d32a6a1d82ee6848b3d828f05416657941b7c6b9e716436edae6b274b4abb0f4f4bcfca760c2a21753d49efce2bd683a2411e46c6cfc59d190bb811145664aea2c026a832cd02450b7a97f6e07b52c7a5c7e3faa156edefc3290248398cce", Msg => "e8ab6a06dbcd52a245152d3851ceac0551d5c3780da0a44f5a7fedfeef222050755c5550dd262b6af6e704ce3ff37215fa51ec2781c1c65cddfd60e195409d5ec40596d56e1190ce14b32cb1864bde73f909a07459f7e8a8e13ad7f6e895b3ddfe2e975d37956915c7020da9cfded866778548293d4bf27c8dbdbb0391294b17", Mac => "8d9725605aea94c3ef125b307f7acd5a906d10b4908fcd21f678937cc4605b0800af50480ef6ff1439cca60cd1986f04a1ddea0abed6c8dcb9b485a923288c03"); Test_HMAC_SHA512 (Key => "39cade3895b07abb4c100d2ac97586069efd1cfbd35c41097e23d1e194439092ffccd364f1fb7d0477742de251ccb6d8014ad00c22ef0d17fbb30e675412f6e188c71fcbdcd80cea0fd29fe733568cf8bbd40ebcd497d966f9024f1dc119f6a3fc432a35ff4d0fb33cb3ca01161bf1adf3233fd2925c8d3c9f96fdcc845f791e", Msg => "ffb6b2071ade0ebbecdfe6dcc8ccd52faebb66a1281b1c397248b64cdd5db0f0754a0db2e226548c8cc6d911038e3deb9d87388761b2960f239c8099f133fd9eaed8b9adfdb5046061511d90a261b1c572e29ff05064fe5dada961e34d6e595ef1893c5f33342521b1a93cbf6def38a574f32244beda5b0b5696e092bab7cd18", Mac => "d4080ab37e7598c78fb4c5e43e95483078c1e15e2b015edb30a5dfe3c739e5a9"); Test_HMAC_SHA512 (Key => "12dd35387a7d0ccbb91f4fc9afb087a3d849b46bd2aaefe719e44ee4165508cc58d9d97b213fa84f24fa687e8d193cad427adebe683a41e92a6f750eb51acc4987573bc8ead702d9bb908f4770b3a0e75adfa96e26947585aaea0f20df83e30b29be21c5df2d6292074a8ecc6165fd7aa8e1dc2414a0d3e523bce4c199789739", Msg => "fd64d1d06d7b92b77e33e39997ecf3fcf674a5453d7d36ce2d4e2138b1b83f031e4c335bb9cb05357ade0d9b0f07134424d8b468e26307d2b5f1813753f716c6fa45a100f88186ca71d496c15de333cdd001b4f97ea20b827e13a42d4e6991de18b8e56733855d9eed7d46b288679abf82576d9f1a2487040f1d53c3abf8f873", Mac => "30871176e17a7e99a6fe06ed5d679f1f07049ad445ea9122f736e4f67151aa6a"); Test_HMAC_SHA512 (Key => "ebfd4b4363dd0f062c8c269929b0a9815f8ae7a3a9d9b44eacfb047c0e56b855e3f6b7f56877416ff42680122b6360eb754aa18aaf922b0920b4a14bae50388251cdcaf4c94126fe8c90ab5903d7159cf50b960244dd296ed7e123acd7f00afa1ecbabc7ec0067badc12cef617d46f9dc816ed92d0835684bacab128f1fcd6c5", Msg => "4abf62e4cac5013498615dd3de6310c71aaa966bccfca56f7135bc20b5a4ffeae5b2421ba3c464e9dd63deb7009b9b9468a00b051cb87304b8548748aa803ac7a17ed57a43ae46601fb2bbc5e2ce70c4cd95c50b66c294de6e64c15f143e130c686d4289124b51a044941d86edc7375f30cfef0514e3b1057dab95eb5ba431c0", Mac => "6d537fee2a5a8c97fae78299bb72e2b86793eb3a6937a2708378ca01d6c47e29"); Test_HMAC_SHA512 (Key => "856c0e585b5d297fb90a0f44480854f8e15c36f2503480e258d5af62f8d552ceed8ab75678c2c35161b422d43c37a184eb32d7a864540b83b50552e0459cf8ee5cd2214ee576b06b7363680a83b0512201265eed0df74c3ffeaccd17a760e673da2c96692be2b874f6fe2a0ca4d92f79292012e8d1850dbf3db4682ea889e506", Msg => "5f419909012f911c154b7be2774c44659831fc422d282dae29af6cbbe9f92dd8af93dc97524729b43441a35273708887642fdb1b3d25b88d1169e55702eaa973b20fe11efa9a50dcdfd237bcc1e125ddd67b1131d7c0a681f964deb21f0dd2464efcd12661f0af9efe475fa9c867c46fd65cc50c65c2a093c9e68052aa285158", Mac => "613c4ee61a140bdf293e8c1136ebf7b350a6532ed0238bb21776828dc82fea0d"); Test_HMAC_SHA512 (Key => "00bd4db7da41ca61ba441aa9778eef4e608a1e9a2b5f3e9f2e5c72c1d299837444db32476db9cc2225fdfecba34debaf380b7ce03e79f75a4b21d48aaa74cc110bb132c5790886f88d0048fee1160ae9c8a6c9973c0f7def1813ef67887ccbc9bd05f638e577216e5a139f47193073837725aec70f69f8e6fff96c5f54faa927", Msg => "913aa422a59507de05f89840e0a3262aa220a121c8cb87f6f392a0a53bfaeb7dc562d881988cb70fac5971bf44d4768e7e72f63c299954f2d65ed8283293a4c69301e989d0f25aa956f3e1b978d791ce07ffdde323d9077c50a7db8acd829c8f219e3f02f6cfd7f52a4c51f524b46132644ebce05e9588dc89f41093b3cebd20", Mac => "b0920234c63ae297b519fb548fe5e47e221a5cea67fddebc557f18575b869e51"); Test_HMAC_SHA512 (Key => "d282396db948b2e4f3057fb12ac64774cf4b9e00bc16cc0c17c2cf2c7996a3004f5ac0ab8169e5875208141888f6dd3ecc45e0ae53678ea2be8c2fd03f2c2999fedf7f84bb7598eab44342f3c9bbf6c1de405eea8138142ccc62ad5c8d69f6a0a5ba7ddeae935374e15d112a363c1964cce41e9d8caee7100aeb4fb8ab78917b", Msg => "2fb3b04e1f5e7fade5abfb52efe19edd2ebc80181a657b85f7a18d3957497fede1fac453500da4a6bfca9a8523d8fa0119f8d6f5e2f42396abd1184a124cd7bee7854f322ff561186fa541de27a220089cac0881da2e0733fa738fd5a1161d04c9ba1996c4fcfd2b7da6ba04022558193f3edc650cfc6e856bedbb810a8e99ea", Mac => "48915cfa32566c5047433c0a69ddf522bddc205dcf336fb2863a2292fe0f9c00"); Test_HMAC_SHA512 (Key => "671367d3011146ebe23d97b3944466dd97fc408c0e478d5cb93921a3237d0df61df4bbef6aa03a2ebcc1d69ee03decf93545fc8f6236004348bdfcd6363fd7685c78693b8362d5bbfb5819bbd47be3025155a70699bceef7b0f9f1ffa62a66c90ee59a40b21ec099854b8893d9c5f4fdd27268791ba10081d73525a7db066321", Msg => "dcf7145eca1b1c32d1be48a7c23d179622d65cd480b0345a051c3ba34d1b00567520b62576172cf5b1a5ff3fcbb20eb6ba252e2a20ee1facd84abff3cf427efe167512fb35186c68c13bea78314eceb8ede3eff2a8b6ae51f0ea2cc70395baace57f91a8af27c4d22a0772199c1940e4e29a06f5bf0ec9937484eae8911b9ca8", Mac => "46a100f52104b12053e29d99b0a2f504d48e37641d590556b8308c4872f96576"); Test_HMAC_SHA512 (Key => "10c08a87af4ee0cd4d67f79fd3231b690deba0840081d15b7e4029cdf7a6c6d3920f1a637cc3e49480335e02d980b874443dc6bc5976f6df1af18476cdb3f15407c6b1690a3a24e6506ac7a26881acbd013c278345f1cb9368d0944080696637976eb662feba870de5939948292cdd8c6d6e2ba16cf837be8d65c2f3b9cd0dc4", Msg => "485a200ef7d07627986786ae1bdc734e4a61ed0109da9ee0dc4bc43aab911fe3c2510dce1c2ff4dee140e0fa2dc16d601309e83be2bcb177a642e3d4f2773739dda4264c4baf4e3f6e8e17ec8c0196250281b2458973850bb8a205a9caece317a23cb3ad0cb84ef1463b74aebf05b6461eb193488668e245185570e0ba58e925", Mac => "ce00915bb0874fc3affc15c66d336116edda115e2b8667aa7bdc7a4125888854"); Test_HMAC_SHA512 (Key => "41ecd9f2f9206805bd1ed2de2f0c74f53a411974ad58c3eb2883a9453c227cfbce95ee87bc4e751cc42a4c94a101bcaa767c996970260fe4a7c69f2846ed646feccb9b96524662d12d4ec09e566ae6f72897b4cc29537fb0edf512d3383ff2306336e7070131b78ec23135e497707a46163d738521069cb7c2b70a2d5a43afa6", Msg => "b20315814413cddce84df335c154697174489fd08d9b15681e201bd2a865dc233f439a1deab33ba749e3057b7a8aa61f3c78771655710157323bc1fecef62842d5ace6a708296874e30d9f687d1f04a9b1e4d9fd7b71b13ca47d3206a2ba1ab1ba668085671c5d2cfff14a6494bc8bf718b54dedc5422c00bc0df850ed5ab958", Mac => "38c958f3f6f43943c8c1843814cfdf6b58ac8e4b55b8e4f348c58271058aa3c5"); Test_HMAC_SHA512 (Key => "d465051d1fa80fc5114ee42d64fe23c8c77325de78c72fe915f2ec40b08e1af221dd83f5a00c2f8093b9d8b5a4b49e831702fccb5a28fbc1dea6a59626c1bd541e85ad09ad0bc0278df8912b5b46c47dea47f397dde6eb6a753119fda7143f5872676ba06f2c2a83aa11f9d7b03dfc7de948f38c288b69ab819b2ebf5b1008c7", Msg => "600e55b75bc37ea69641bc0184b9ce9e76ca27311cf49566484f202df67d35558add045d580126876963832d7c5373584c34238f11e83bed4989bd77b85a30acaefdff5d88e61cbe790fe8be8bed5794e0a44f9a3e77525fcb825df714ab109654d60e5ef458a7744eaeb559b670c378bb8075fbaa8724e354a2c85811581b3d", Mac => "2e2b59d7843be5a3e1d815fb12e806864b4ce9513f51b96ed2423fa3a1004815"); Test_HMAC_SHA512 (Key => "6ad551d1e6989f5f14cb11316d9187b186bfda6891487a1427f955fb4566fb80942400f4ed38a2ae1cd0ac5ee4319b9e44f1fecaf9662312445eefcded100e1088534d80f70e436430f037ff41613e1c91b8a4ea68ae8d0ab112dce7ffbf5446cfccfd1e0d02caa9d99378bb8a08b953f37c926fe6080225f77ee4f0825a1648", Msg => "0e2bf89372b47fd8504f4ecf7fc90a5ae6bcfa6f346c601bd1ef0ac7149124bbb67650e08681f9ca5f75e3f5575a074f3a239ff7378d7d45d84aa00a385f091970cbcb065269622d5a1745f6e118bf5894b7fa9c252d5d6440c517ebc13efc8e2471918c3c34620a287d9c5a84cbd77cdcc134e56614a880f0a897f317f6a523", Mac => "3966ea95938b8bb1a2dcefa33315bf9bd3de12370818ec4703fdbbf52bfc6b6f"); Test_HMAC_SHA512 (Key => "d136f9cc2ee6d4be1349b91ff6c9fd47e31329e9cf1af03a2a5f6456b37169df90af69e79e55491006b79cf111c717bc3ddd451e90b87c672cc010eb248dc6a88ead8c29d9a267aa612bac7c41c573ab687049dff0b62580abea9e1dfeae5a0ff2b7ca5988d514d34d2d51882fc9f95c8f549bf2971ed2ccce6774b4e9d90c5b", Msg => "6bca8be181694dfc4fe2721b8aace6891f8baa52bd077b56931dae9d5b345fea9753ca931a90f98fcbcca0d1a69d45d4038ca3781b81510cc87b9fac8c84c1cdd5e52f167f964b729bf844636fc63b99bd49a5c349ccf1a595506a6aef815e3cade88013b8618bca47d02878ed1012fdd62c78db4ed2a3488204d8818b118060", Mac => "45cc9db51d4a60e98c24451ee30531fc41fc47b118d3bdb8750659d8ec05344d"); Test_HMAC_SHA512 (Key => "475678927334f6104ced3f18cfda5b6063130d6e0ed8ab12e92f2c34d1cf83cf603d2c3e1b3504b7ed4b5d15d5d252dadbfd5874484416bf160977cca67cfde1b1bc58c0813f372c61735eaa52a5f885ff232f14f39dfb3f0ad137402568faa7221a24a10c1937798ead695fae1bf769b8ccbbd777ab019babcf9719b85a232b", Msg => "3a606b4770adf9778a9eac15cfaf182eabec2ec3a412c91490f1831f0514cd6312a43fe92c8a2c856bd47a5af75ab09cbda1519a66ff69fb890065471f0927aa383b5af5ed9a03e6966f59a93debd79e520c8f5d9fc5c1f87f59ac804b08a4ca16ed65729a27a7217137f30c89a9b4bdd2f7911639aafa93dac201cf71586c4a", Mac => "41d9552bd694baaf36aac029d04fd84501d7231f60f28a1e7dda9f418928fc28"); Test_HMAC_SHA512 (Key => "9904994b1973c4a0d161f84d2f5729c5ecf9fa6de18b2f491cb465d43382002fd8af667eae236b905bb90bbedf465f1524d8cab7d53b747e74c2f9e3a743621ed364548fec15875d8c5e7a5d425b65352c8570c1c83222b507601c84a3ae0781b3abcb447d5301508bd7acf3019d236d2d88525460792236fc163681cfcad8a0", Msg => "8ca55de0457a2202c584a0f2fd05e31609b6900f585b29ec0e9a8d9da60dbeaadc96e725caf39edd519266d4baa678f39d7ac3fd020531c2c7c02c9542b461ff26d7c3b5ab98d3c8e9b91f1c855d091b9062caaaacf0b75c7152c2e60f0543d4340ff97a30924b2c57a1d4b2a6521ff6aa15af009e444324d4fb587a5629ee8f", Mac => "07ded632065d67a08e9c046786308095dc1002f748ca05e52e25a309d12bb546"); Test_HMAC_SHA512 (Key => "0a7e6849757612d578b9a9304303099d9f4d5285dcf582bf0a194a0e6c431aeb294c7f85457aae07d0ec61195d38e1a9b65264ebceb09a9ef7ab8392552983679379b897d47e8bb7ed1085f9d19f65f64c196faaf50e06c05e137d108d642b67b0cdbd860ccad06d37edc0d98780ba0bca6c19cb3759efada517e193fb3c3973", Msg => "8cb6c466cca91344175d7cbadecd1d443cf80c6b2c3f3344fa0e5e39f7be920b71baa118e2e1fbda682cc7b1759132e2c82707df9c8a81c91f815d3325de32291ea60570457218101b150410147f078190e29fbe0c1358f19a32e2d98e8d66cb7bc21af75e2414ed18605c60226144297c70fc8ee6a061c5536916b49b93d6fb", Mac => "e5ae5b5c9d5978cb74a8eaad15329f68d86b55fda33c202f21d3df9de6b17157"); Test_HMAC_SHA512 (Key => "d86f48541803cd411fc34aceabc78c660c6c8306d8429944df25429161a9d4bb7fbc9ab6f086239bf594e0f18f36ef2cef2531732e69a2a63e7aeaa021a62fb958b22e8f9fc48a07d781638e44722ba5f8acb59c8fb08f9d1d9092ed6553b76f4c9b2d6a8d85a88badd1fb2e3243e9d91048380964dd083264ad6301967915e4", Msg => "3c283badcbc4cc09c100ff016d7e3c652fb2786a379614fc8f9f01555cf029cf61cf0af6c455a4e2156996c48cef84be923cbbf883cd18f0b3392611af658688c5f79453c60d479a0a2e5943b581a8c1393cdd2c1c604b97fca41a9ed0aea43e70891fea58547ddaa83790a7709c72152b9b242f89b5759a72c6252347354b9a", Mac => "c01a4e9e331774e549a56d23ce4959249d6a0db06d8c42a0415a99697c96c23798f8c1d978fdceaa"); Test_HMAC_SHA512 (Key => "0417b7fdaf3b2080271415685fd8bfc47c2c057137f20c8e8362fe31705c0b5850fcae2318703240090674a68f89ea8669cee47e0a8a12113f66475413567ce9f026183106566fbef027880795f623604dc9fa2946284845252e88cef0df7f062bbc7c914195dfe2269fd8f43bc6713a7244cfd8b273b4137ddf4906d0a01b97", Msg => "bdb0cf79966248a68d3fa4f9a122e4c1f1784e7c164762f7b67011b756312a9870ed15b4c630c386f5eee5504d0b5cb9e020f1bbd97d47bc106a0dfbdbb3782e2663f16ac6cf0b420ad6b7339368bb40664560d940076b012a634fb04caca1760698cc623d470622f381836b1b40e89cab6e029ef2efb80e2ce23e9e54248cb8", Mac => "4f8823e76cf5777c21dc05ebe40717fe559fbf9cfa8274cc34f742962f6583c7a92b268e5f6d76f3"); Test_HMAC_SHA512 (Key => "34d7efcf2202c778d9087283d113be98e6181b78a30dfdd5c0568267e980553cc231d250275f6b5db8c14af4958337cd663ebd5c9f2788a402871250656b7f00b59cc5e13bd10f801e2464e029c383cacfe812646c0bf805ce560848f459df5f15ff0faae5c07d881319076e16396a3629fe63b9941f159f2eabab7620b23e02", Msg => "4d5e7ddd7a9bba85a00812e19c23d888f9589b5f58d1a80c158fd0ad27ba6cc948359e865776d91dfa95a38c87a2998b253cb4c02e5fcc36d87e5a0c15d2826ab7f151b9d8a2431479f008f9697d87456919245f8d933eb3e5cffc625d194a37e2b91edec6c800506642c9920a5cab9f0c1771a33d15086984ab3f17c839cb19", Mac => "829ef13ab3c509c4e0c833bb14d174f166579a19ed7618f32c8be69a19797bd0da86b6234d8f1ea5"); Test_HMAC_SHA512 (Key => "e32c7692015f78ffa00e00e4bd98082144800f0bcc5b6c6d81ede1cd618f73f0acd379a0956bf4ac3e471e31e3fe4618566fdae0aba8c69d3407fc41b09e541bbfdc979d996ad662005401707369b5baa5e454e92d4c5b5b7f98f06c1b97bbf5048ff7137425c92ace7cd029d4a1fd0f1a27a5aeba0ed4ae4aeae5d60b404f87", Msg => "01a6f9ee2e42008898a245cdcf2a696729e324c3adce420b2f78ec55bdcf291a3a34a5e949d1b05c6d2d894c6efddd41fe3e8b2c9c80aa59b985cd9f190a85da7de5289b7f50d11dbd85a87b398b6421004f0e800af6070762724c4e8653f99411e00c6b97676cb2d1d12ac4fa7906ef783f3528bfd861fc7368f2cacc528c30", Mac => "203659322758826f2ac7e2dff082635017cecfc1035f254aab25d3a3f05c22a1eea02231dfb0ea64"); Test_HMAC_SHA512 (Key => "668b5017737b7be1739ee8580d110cb1f3cdd2ba0a33e010cbe71b92e9e26d1533c3c65abd66603d3ab8482eadca1ae541240b52745b2dd37be6efaae22de3ae74e3c5405a96b8818784d2c353b1db3d65365202d7dcb13495e9f374063a529eef9255b394320a1720aa90fd46eed91f29acaeb279ddf499df9b2dd99c32424d", Msg => "7ce7c4013b6c2e1644b855c027ace60996becc436cf1509cef0585f252eae3e87f7b32391369aa4ca97558095be3c3ec862bd057cef1e32d6237479c81d2d03a3e1abe5480e6e5824cb80b7f4734923876d7572349e5d9d2d8a39ec86cc7d28b412d32fb8acb28e1b6e737cbf2879a18ef2a284fe5b57bb5d8b0511e1ab23203", Mac => "3eb6f1996b9bb3cd45e97adbe15c7c53b882aef08a0776c6cb0a3ec2676ed4d36ae81ddc1cec1d04"); Test_HMAC_SHA512 (Key => "2e78d82d417e5169dcfd1c69f5a972961f57248e51b37f77e9317294f046f315a0d79e3423f29f7d9ebcd36d6eaa2a3fb2f4500309478cf09dbbe8fb600492a995ec822193015d85c58a9982f6c0e326cb3bbdf291ab6c3139c81188a18c16cd169fcb1c161351285a51b8d0145364f37514b5847245e7e1c84236603d44462b", Msg => "706d477b089a26e9d90f4f1991527de17724c128a9b4ddb4a812ee3d17e64fc6c062b92dd875af00844219929cd02f4eae03984c46cbd3226c9bd7fd6f1df6f0e124078be3e2c4b0a35b71a22219bf5f3b21ef30e1273a7ea8fe71e78652e191db9979beb0472fa13c419f71ad95f5bb25680efc0230da6f62230524e6eed652", Mac => "9c1df6b8ca24cff2b505fed7efd8aa1a027893e286d8cc4d598478c2e9924ddcf96a0737e3053954"); Test_HMAC_SHA512 (Key => "4e9d424c31a7441f6d16d41caafc861ab8fe3c002d66ec7d5073a3f936f3cacb2b14a9ac5478296b9287dee3a809442ba1f4490c6c820cb8ca87e5b86a02a52751f21f1e806be76fd1e8599623e3ddecb6a36a1ed85649dec25f1cd8bdf11ee889ddac8afea80592f4e14e1d61b1d9c7c1b4a61ebb072a5701a3504078e9be76", Msg => "9a6fc18a62f8c9cbd62fa8e0b960c9a1514453a2b4309507428da79973884e19d30a21d44aebea77a1634f2542c1b2c73f5f55a396d5c231b46d6a2937d78ce1f81e58d649db55887ba9008ca4d8b6dc9e66d371532a1c1438535a711811486d1392afb9e630d0a76de9023d660f9c897740153373996a59d927c0969d9e4b64", Mac => "32d1db1f537abef5c170b9d204eea2da1bed58c990f4b720cbf3212474222a99c1c518ddb8db1c82"); Test_HMAC_SHA512 (Key => "860880cface9225afc6c889d13c3e983834ef984316c671dfb92aa7d9e9afd82d75da8e3c98382af9f9ab4f67266bfc56d78c1582f02f48c70ea7793e81d51eb6c26b3915bff7d723827042298f412d03f2b2f7a86ce1f5d0035acb05c60a6918d8c274029041b8b0f3a00894d16eb8b418ecc50fe77f278f09bd23bc40b045b", Msg => "142875dfe08d2b5013a60a7989afec181af08c506f40f54c13c83a25cd0968062e21b98e66490a755ca38f73fd33c65dd32aa992da6b28959048d6fb4c8ce388d0bf4a9521a54bb497081c9730b7dc2e29cfc810d039b11c9474ae605e950e3a248c90bcbba8d755ec5e18aecb4616d344665093f7b3782946d5281cab2bd163", Mac => "d5d40a0d99b0f1e52a9836896b27ec719ad1eda82ed80f6d2300d885b9b9813fef778c04714f1fc9"); Test_HMAC_SHA512 (Key => "a31bc73a6a73000db291ff45b0ed2d36b2a7f91f4b1c1f60b0b82ae7620b37ec0d1efddeb0070a9dffbb4fe90624df1b0e73f412c4b8337198af310864dd358f4edc409aeff44ac9b5ebcf3f851d8a56a5cf8191dac041d3cd016bceb3076fbd2dff98566d6149fa9bc886307701b5513f61a685d35cd2ed1754e02299af6edf", Msg => "f776c8cf705d589211ff2260640b2ef1d492548c1db151ca006f1b9c3be8728fb8acb84f0562026a04b16f57e460b9b74fbb09dae5391085ea5d53f33bdac61987fa9d2fbb405f6bbe4d3c105f00a0a78ce1088cc4c015adce99de8facbb8b92cb2920757c41961ca89b3091be340c4af1ccf9aaa18c88c916ec667874d4e880", Mac => "517a096bca0ab90ec251347661ce9bf7a2d001520bec592439bc53e32cce7d36ecb2cd4fa9ccb416"); Test_HMAC_SHA512 (Key => "02257ce15f10f124f867c93ff6ba295a36836eeaabfeb725fd3aa3b976705cbd1f95d4e8262b4e01835c2196db49b8f1a5a0de488b6c3834133213647e396193f129fdb7d2d8377c75608cf0f875b5806bf5e42334c14ad5b2ccdc47217157d5be0a81b82bbeb27d149a94b513e327efd1ab08e36fa3f2f0243085c927c1466b", Msg => "25117774deaf7c068cbd4ce82a595a584ecc9dfd541ad81eb9d71f12c53b97f76d797da7774d6ae8dfd4d5e37aa1d9d8d90d380f70cea112f7cc2e19113031c62cbd3012a8632e883b112cb194ccf0cf3efe05cdc8100377233a11e74b9aa73f2984999eb91a514c681c5b38c00128a546460b20a30688b503cbce62bba482cc", Mac => "942bd05f304ba8681912892f43e59f9d0ef11b03fea2e97135a9c495e945966b02022f2409c4a926"); Test_HMAC_SHA512 (Key => "82d0e0b45e5f0ce5ee8c33a745eb29ca085ed8e581dbee3cef70d3e72084de31425fc83ff7ed61f2a7be810d1a52429b46946c8b65a4319e4bd91b83f707424068fdc2d3b2526c195062bcf0bc930b983ddd066000895f7e6b38c33eae280b5f9bb3b6b9b7189724917ecb965236ee8b96418eaa7a12e0a5f694b2616e6fa157", Msg => "c21f5b610ef4f0a966a3ff66ae8e312e741d23bfd30e66ee970dcbe1a185dd7e8eb5ae239306d798ab9cba42f52b0a99570c8edc689021038d94fef562553afb5b869274aba067cb647a07a7e0192e6161c9cdbbf46c09cf9b138745aacbe7c972ba8ebc1d6aa92ad9646efd3901a570d77d68c63f4d273b08b2ef3b448febd2", Mac => "e3e1930b791eb77a200ab551a591b972e31d1133856759f7a607fe358c46cb9174af099472e11d06"); Test_HMAC_SHA512 (Key => "b7e2a930f5ca534e8692c4dd752df57f2e6a4d93e1c51fac27837541e8fe0ca67c3d9f3a10c768e34cb9e5b73317d8fc4a609153fc656f303d5aa58d6e2e3ae08018544a5d73b51183cb8650f23853ed49ea58cc2c06fb42e8b199cd5a6985020d9c4ec6a27341c175ef2f107d38713a743228663850c9cb72adda677559f6f4", Msg => "71695a2754c18a349be576a7d7afe04e70741a42ec376cbd6e1db62b7d21568407094cd8a6999c2c2106f48436ae8f41970559ad32d354d5b59d3a97526064fbc086eac782120c4d6b1ed1886287ed6763e7e869c6c37d6ac40641bd37ae857aa1c67c197094a140801353dae2a4c269dc000f9d3071af25a14211c5b47380a9", Mac => "395dcdfb1daa4d0ae503cc0e218e6300fdbf85128cfb8f5d79c70c575887faa3237d88f30682aa5f"); Test_HMAC_SHA512 (Key => "1c96b62131fcd9f823fa9fa37263a31bbcad912c30973c34460eea28ad52f2d785558a73cf64da4d220855e09f2f48112787b3b5cb2b59548381132c236269798c7c63f41ff59d9a78519aae58965a01e2ae2f710b0cccb04c939f4799b361da97d5ebad0af94b678c9d171685e1017457eaac69d984bed0070b377ef88b0180", Msg => "94090f38c01096160bbf1ff92e346380d8b4a3c05e93f443ae54db508612196de31fc823bbeaa701ee26b3e47b28f775ef91a4f2242e6432271cece37a30d0177c959cff25b720f5f6600bc03021bc1445f454598c1f10ad385cd62c8b360d6f47b6b252663fa8fb0ab75018b7e75a67c025db7cff309fbfc95bc0b421ee777f", Mac => "85052994aff398ecddc38e1da6eb3cd326462290f007ee3c77273337905a6e47bc6d6766acf7d1b9"); Test_HMAC_SHA512 (Key => "9c18af3861895790a70a1baf5042161076364c785c6a3e36a449bca9c2c7fb04b045e74ee3b5baad7ffecee3c7a2af19d79e75dc95925165e521651d1c9bd960b8d92b814e69c60fc3ecd757bfbb5c2a5fd17de12ae5209d47d6b8d4ed4c5d091a9d22da88eda340dd9add1321d743cc76960e8f03acd469322f5cd61b23b186", Msg => "305d9717bc532c39f7fc633b38a46b64386fe5a0c7403c80bdda35813445c791f4742ccf2f2438936f07eaaecc2241f3627350f602d89513282c87b22db36ecabeb877a48d7408e2463251bfc5b1249886ca06ac5d5286206742cd464015771e7672a11d3e0b432e66c5c1f78b19bc5d8cba2e4a3e78b6ad626430c3d4358996", Mac => "ade6d0de71a801126e8b9d665d4f47dfab6a6f9ac1ef8cb258cf03e94f2697aef912140a76ead496"); Test_HMAC_SHA512 (Key => "d9361e9afb0840ac9be5b17ff2b3133c5503fe2cb68ba2cd6dd6ad25393a6f56810b3b73e00e1192e1307b220778b57f113b10c47b8f98e14801f5edff8b8fbdf4c0f6b5c84a80de3396343901cee6535b08a41a48bd51ef747c90fc2fdfe4c8b8bf1508bca4d5b91a7fa36be99cf0e0bcd280d524fd142077ae46fbd020b4a0", Msg => "0266358551e3b84d465f78b16753d81ec0aae7f088d4292e01169b74a024f1306ef12211aec626bdc092fec34581f6d084cf27250ddf3f489b8785fa3fae176abb1a76a82c83455cedec4eb8b733c6ab0de6d258d7584ac64df4bcd916d2b481b1883a3115439d9394166f7a0591d1182296f1712f68d00fdd0549f76db64fdd", Mac => "9b8b2d10a2faa0208ee3043d2a0ba3132bec4deecf8a5e201bde20ad9de823b2bce29d48e0aa83e6"); Test_HMAC_SHA512 (Key => "3d8e7d7ec30c16b7472ee0078b04be96a98cbe06491ef0f8170779d17575e3be6c93b7f5e9f44e3e2635e4b266deeec3e58aad7d0f48040cf040877dec9ad4c9b09b260f6811272132f20642d340ca2eaa2fe65be28a0d7feb5347522aaa4595efeff153a82b4a6755ac6f3e3cf0f9dedec58e2729adb459ef87e2d7976cdd2b", Msg => "1d00e440026f7efd6d8864fba48aa697e6c91ce04e015f93fbea194a6e0c7ff033d51b78c4e9cfceaab9170ee5578ef58e89b495bb1cee4ca37acef6037f9562c089f603cdce1de84ff3f0eeffda9535d0bb34d0d376fec157276e2454fbceaa0a43fe49e5c77132a45d7804babac33ff48724fb5db897da5f19803b2a2933b0", Mac => "3c270df99f8b2ab166fd29d5fb347c7ae5daef697fc20b408dd6f01b15c713f1c626442dbe5dafe3287f2e2c8651c332"); Test_HMAC_SHA512 (Key => "ed8fe523ddc1939262facd6d722b56bff66783d422e83756025311b6563ce4cda0ed68c47b632f312e9ada82810b8c9fd0729fcb5dd496cbeac1534b88d78b7daa8776037d1ccb0f7cf8ebc93f215cf193fd7ac5d05a692567b14ef5bbacbfc332e578a98bf14f75729d6a085177affc6a917c8a238198aaa0ac6a7b97c569e6", Msg => "c0ffbe82e2aac87bf2cbaf241643e00b34ac9941aa3f435f40f402c75aea8a2c730a3455c6e8511d4ee9bebff1abb950f9a1f28dc3fee5d7bbd5687c887e8038833b79fc6e1b36ed631fc5b00a9c36e50fe0aef1d318b7016272da4ca67e7098dadab5ff400e1ef317b5ed80c8de02d160b1f4f6425660e41e1281bd1db30152", Mac => "b94cd94b82f7cbc2a992b413499e941c0301ed8714c5e07b3badec2be179756f996e338025fb35dc729f96717c5ef8b3"); Test_HMAC_SHA512 (Key => "732957d1867047f2904817b4f559649059870d38b2bce77ea2e8b27205464ccbc6e02589f655f3d81fdaa736d57f9fd88fb41d4ab50bf857fa3f9128ec7609b0c9c3b14795efc29469794fb10edb778acb0fdf867a52606ae128fc7a40a017e127d9e3528ac51df0172df76bc7f5556cb4a23b342a19868000a9dbaf294cde26", Msg => "aa609dba1271d02ed605b2f3824d3b75e6a3ec7eb1ce069f4282fbd2ba27225d56dbaefafcbae134135d7d1498a07cfd6ea900d5f6268d65e0d57603414a956ee5ed3ff9e64277ec7d6d622719f5fc08aec8088f507f4dc000e4ff49c6b17c65009b3900f98ffb1cbd3c4a732cd1225e4e08edf5e663ae784ab57fee71e53d0b", Mac => "21c616f2df44961b2e5ea64d706516f8283732986ec9b6a5f43e28f0344454f218eb29500aea12500e86d8f5c78fd962"); Test_HMAC_SHA512 (Key => "107fcc04358c79cabaaf3467ba6c0907bff2f6ffd8e6a0b2eb6245b54d3ef231908ef6899c6b963d01f7020f8c9b8864199308eca7ada885b24dc85dbdb539572e83a9b15e7b62e3f18735ca63fcb005e41f98a066e893eff40624bd4522dca79168cfc2a34446843069b3e16718eab4c99f8d613b20c8b859933f1d0e0e45e6", Msg => "8f330972e6324b383793647431e00d0bf151e929c6886590377ee43047be19f8f7d1b3ed0df9407914224b05a415c8cae3efb3e34cd1f3a7afda84377952d55336286f72549fd8112a44b74b392338aab13ab23d372e88eae53d4d0692742b2354228529448cdba981e2ee6d78722554621c305d0d06eb01e09185c61a8be111", Mac => "3f94388f059a158574ca542ecd2586493fafe193e9e33f25502fbce92f7ca3ecf8df7ec2ce74aa96399d9300c5ae93cd"); Test_HMAC_SHA512 (Key => "08eacf6fd640cfa8bc15f77ca18978a65ddf182213802a4ac143bd4015eb148b83f25605948587f481cfb777007a79245e7397efceee044d01ab129af677e5b814f528fa769efe4086073c63cd62d5d30948967e80b613f49555e1c999fe053be37dad1523951ed4f345ee07af4a73fc87e57b98d2de3d87a5c99096a5885b5c", Msg => "88dcd82dc6e1cb894bc7fd88cff38ddb13b6dc6d227cf03ad6461b649f5ad7838038f53d5ad1f7186df4ba8b1c09585bf0014c25e08dd736d08ea3a357cda797c5ed4ae7659ecbecff13e091a1b59dab9f199889d92f4bcc3cbdb9798c0c554d60e21f516eaf10ae080bb8c1e760267228e408c294cb13a424baa50ec47ea94f", Mac => "c62015a3f4f85cb142f2ba59daf9f1d3b49cc14c87a30a1583974002ad8235aaa15a96e7aada71a3f7f22eae6a4ad336"); Test_HMAC_SHA512 (Key => "8fa70b480660c4b14a55e58c3e29953461b167be00572f82aabc13d6e5a2e51d1f08b001e79690fc5d3cc71de7170e092694294029d7bea1e05e6731d3e10618137d59ec7112ce32efea9822749b02abc42e03b7ae8013b088e93e43d81c7764544e2e920d9b255ce7a57f244c7e1a2321c81eadf91ad6b689a6bf965d19df09", Msg => "ac098b6812025ef3a8e024c21a2f88e40b95e6545908b0cfa33f10e30966ce49331675749584b16af1f9fcd31d82794f06e8200df5e21c9a118a71f6260ee2eda4a812a4ebd0e973c5b039f234d8a2576f33b3ff2739514a0e675dac9aec910106a6ab219b4cceb52ded2549e899c9a24d5ee55177761888a3be1a2def6aa32d", Mac => "dffac17c47937c172b6c514b303cbd7a4003e98658c46538285f3e43f3bdaf370535633977f8118300bebf44e474d5a6"); Test_HMAC_SHA512 (Key => "ae88c3a96652d3764a00f8b2d0027adc8a709b77fb9311b3a9a7ba4973df8ca725aacb4d4a357e77423123fc94d6a276852880a3e979550b392f80e3e6c71932ed1a2732acdf13f9f3725d585fd48e04e3f26ef3a82a7609170b88f4345cde552d60412032597b45884b0e90d90226cdcf56cd31e1ae5ef56cc33c4405a7c357", Msg => "230dd0f85a13fcef40420552de57426a687ebd6a5918e650c5ba880ceb79fbe40b659c1777537ac0ebe052fe21b2be52a101a948d756065a6793c111c534f66d00d46287def317752ef6736e5a6f522e3c9f839c323a79ab7569437ea615bfcfaa630a91b87b3ad4b08e50eaaf1768c8e06133ae9549a70b9645f59bb8a5bcd2", Mac => "3d7a25ec84d04e21dde859fefbf185d63ca270acd9ad55a1fca184045dc2bb6e72c926c2ae3a84a35ce346cf02e7aebf"); Test_HMAC_SHA512 (Key => "132c680e41a727801bc50191466ed2018f0301e7c6e7fa50cf3ede29f6f4785f830174448eeccb35158e827a4c19946d34592dde6f3918b753887bdc3dfdc2552879d9af7e8d9e9f2d3c96e9fe02de80231565ef0eea59f78afbdf7a04c80798291bff17b79187088c56a4a70430998481bf13e04b03a45a9b1e72cbf25b316e", Msg => "0ca8cd24bc4a0f25a50f82c60c373279f2cfd0b53b3afa330f11bb5d812d56046e013f51a82d6bfe5451c9c5911f11195bb5bc15ae2953b2ee65ed3c8635f407d09e275e3572e5bc9521a83fe8d2d05926b2a2c9658c90c9419bba89819cb6ddf8268c32a83e05c72e27261a5a77f7a01d7089b8a88c36e2d25a2b2cba8924ee", Mac => "8447823ab1787fd753de41477da2a8e306dfef910e1476bcc88fde6716e9b724562c7d09c80712e3a49aac5b33f5a790"); Test_HMAC_SHA512 (Key => "c05e649d3fe1142330ca683ede042dd4a64ac41609e9d461ffc73c628da44c7e99a03471fefdbc35dc27362531f1b162ae227076c3309b37fd4b33ee919d4bb939d1762e3ed27c41d6d55168b19947fdcfed82e39474ac6c1ea5eb7ad61510e545f9121d2ae6ba11c9dc9f4f8583556cb1b4e2a6a43b71c80bdc4b4e849402ca", Msg => "f1567c7dced30cf724c2a2463f98f32090492ec2ebb0d47df331ca72d29dad9a2d55650956b3fd73c4a5b1efc19b49fb63a4a6c0bdd39b9856e8fecedb2cfea5109db69b0c4b03eea60293602b293f3752ea9b897194cbb6f03d9836feabc395847598bb5765c771b2217021e30a7ddd446534a36db90ce0a877c032a6e0a372", Mac => "d056eacbba508214ba434d286aa0a1a56406a2e23d92d1eb9899b6896d4773dc255c58f4831a98e42adae1ccf8355d8e"); Test_HMAC_SHA512 (Key => "f4c540778b164f86ec8a71e4c468e3ac5440058c22ceb1c8ef20cb82eafb1938237c558e42fb814e79347badb7a9d1d01f42d68eb837f678662f461619aa5f74449c6ddd915a83e7d3ba32b03b765966d0d23e0d197fde7c1cbe82a98dc993273f6eafeddefdfc59e064bd75b99923784e386590ad6e13defb15a7c2ad205d5a", Msg => "c32bd69f97a5c6f36ee7eefa21b7055a4d8cbdd14baa5376638f65423c8e05ce97ba0b5e3d05af1f36a957ad3cc7add8704ef5a84b1f9e9fd66f163d1e6ce3cae223f04f90a124e6705839331ec5cc333d50b0346a7488256f1f9510b95ccce50d2f2c7976c04ece82bc3e95adf989f11e59977e91f03b92956989c3f7a5e8a9", Mac => "cbbda582978d51b1d033acac746dcb5c03ccf826738a127ac4bd049a67a26a900a5674e3131e91f15906426626a275f8"); Test_HMAC_SHA512 (Key => "ef4360affdcfd92d09596b1f758fa236413baa39240c07efdc99863fc2a37496a19a0d89c86337bc5e597102f69206c5636386a9ce26766c063a4711164c853d1dd551e15ae41119871e665468035fb6a373ecbad270951cd7256bf66f273f290bfc13fedbdace0d2bb0345ef26b14cfa872c3b55972cac6f861dc37f5bd0b21", Msg => "931e6aeca959828765b7f3d8cbba8397800994b2891d039f563e4ff0ffaefe28cd243ccdfc7bc6bebfac06c785fa7f737b6c6c215280a45a421ec1624fcb810dcb1f6dd41c79b828bff169078d8ebdcc3dbac64b2bf2591d57c22739b1f12ac494f9432b90b9216e6c6e64bf6be0024bcfd9ea589cdbe8909e12c99cad88bff5", Mac => "72de2ff4cf3f8e199a9dcd25b54688c0e5067ac6c985f1d18b4825d1a7332ac4547a6d7a87b877d943595ba1e1cad5ed"); Test_HMAC_SHA512 (Key => "72ce9cfd27b714419bde4dcd9b377dc840bdc3adaf5a734c0307af128834378b2a6a81252d2f0d371e2af3410987be76ec9d7c776cce1662c7afde0b0a696789846099f57a12046e1c417560b854c7062efbfc2ea4128d3d7ac8fd728000b46f67f70bf57627a4ef7e6cfcb210664383ed1e6b59beec7fe5069836d054bfc844", Msg => "84b1b92aae4aebd81021b6cd7560e9a4df97248f85b1f8ee18274a214a73f89a91c8c03628005dcd58d6f208f555ac722b90a3d27b9402b9009b6857f7828e927e7d295a9c0a12368223a42310b8659f9b5ce901ee3ff40b8e5cdfc243f33d7dd33abe3d1150533c167292c9cf715d52b863bec3e699160f4bd2770b36ae4e83", Mac => "8b2b909349d65a6b5a9b47c716a3696099c6806d6afdbbf905c87b18b3733e57dcbfd2a081b183716ac05c4ccfb8f585"); Test_HMAC_SHA512 (Key => "e89bfca0ccafc188ae7d3cabc8e90e3959c2169eeef8dc57e00930041ebd0ebf2c13c5ad6c7b58d29d45252aa15ac4f5832a3252b8e52f0fa5eee4c0628dc90ebee4c65283249963fb0077abb262f6817e5d2ab3bd640e61deb9261223276301a4f447b8981249e0d0957b58846a6a84524546e884db43f592523e22e7f5a43f", Msg => "bc97d32ab16b7cf72c8d9d4960b7105b27a7ae753c801f6eaa6df16f8487e8f9d7f9952add612a3c737a8d4ecdf9ab6769b40fb84109b321457e16f708a58e05ba43e0d056b00e201c8170bb42650674e74d0d6448d0d07836cdc12cc852c8954dbcdba58420cfab10ea6e1926c4c98a89bad003b89b1f7965a21b942a553eb3", Mac => "d111d592e3ed96655f6b9d9802198f46467954bf63885a4961e4af40ab9816cf476e8604cf39e527756ead2e4f4d69ce"); Test_HMAC_SHA512 (Key => "1a63bd7c8d60023be7cb9b24498bdf07d29cef51ca6d8b8e20872a2c177049823ccf03119bd0e20932caf50fa620223d3565be6aecc35bac1a9de11c0473e1d9da062550eabd8cba144815e57e833938899d7ef2037949b29e54f33ca0a9207add514cc1e2efa756748b2331397dcb00b48d566f7758fca793f6881454d9af6c", Msg => "67c52838515ca9247b4cc741064937f802322e44d3e5dc1ed958363850e6f9ed74e6ec78e98265655bc70e4662f8e9a7a82892444d07c5798afd1ff9957529c3c57c9252f78abc14309f7b1e8492191e36a69d91205f4c36559471c206c45ad5a2aea32d411bb71a43ff933134c0cd45f3d6d59314947c3d8245b2fa697b940b", Mac => "cefde7818c038cbf0bc0fc908625f4fa5b54c2becdc8d20921e4500d6d4f427db0c3fa007d40102e6b31b6e3d1b8d2be"); Test_HMAC_SHA512 (Key => "89745d553e42690dcaca938f860ea01b05665ae7f6d290124c8f5fd99de8b00dc84f02c4dbac6a5034f5d76de6ff9bbe5e94277b46c51664a9816ef9586722ec8dd9dbd7cf52f72b15f9d2682e76459460046de650c7aec22161f7eae0c047f2203970f4e1db1b86b7fd0ce9281aa78355dfb38fdd815f14fe548213fd9a2705", Msg => "f05e56198029c2a4ac8169eb68daf7b4f1ccb6f2037462444d1839bf220951ed71ce2e15f77e94bdb36e9a6e9a0c00b78d0bc27488c1ed511ccdb2891ffcb9f4a26eb84023f4437e04bde6e13c3271c34d1e93e97612aa082908da88bf465c876b8519216c5378ef87b674cdb512f1e1194c50d9343041735c10d8436aaee4b1", Mac => "5238b04c6a3322a2df3b6211b56b2427095fc957bfad3a783527851fcf88a89ef4cc5eb53a394fa589b2a64701346662"); Test_HMAC_SHA512 (Key => "fc5850b25cdb1b94312fe03f7ca6bb315935dab4791c8ba5d2c9997a95fad98461230070b60fb714acc9f269e5bd7dd3c01bd7a9cf7c44f18cc81e6b47576cd26356b65ec26d178d7e9e9323da71ab6f784e2fd1cc2a5479d0660671f9f37fde6abb1983693c60860f766c7743086e8ee9968834566de2c5076afa9593183b31", Msg => "85d09be10ad030a576a896eb7c4cbf6d3f6a74606ffb9aa7b519b3475210a81b03b7c5c9270105f423cf90b30608824269eceef89aa52379f91f2d2da11a9ff14b7e900c70eee464ae9fcdf26d6b9073c2218d6094207a21fd24ef7ef25f275627cc05932dc0555dddc2558efa9c736612b25981a59327058aceff208d07c7b2", Mac => "7a90a3f4a47dd262f302d257d6acb916ff8192b8d2d4539119fd72c2b7812194cfeef34a8c3cbd32057a7477085caf7291ff7f83acdc1d7b"); Test_HMAC_SHA512 (Key => "b1a85aaee55a9b2bf4e2284e663282a95c7e56448938a1357f3f17712c54c6e2a4cdf7ba218d550647335186ad92c4bc9a62d6430c342062ffac0de1ebea861b8f49ce55ed4caa4e96d5c6172798542514d0f6a5a430de0f3d1d33fee21ab73ffa84a828537fe42b663050abdd2d790d52317c135a152465c2fb537118cda375", Msg => "7fd12b616030479e3066ee0a0fa6dc7d40b50b1a2ce6d6dfaa485e7a7d1e2d5e1e8f1917bd9f6bda825e4161185f31f66c6c2fcdb278b196aad5115321a83267ba9966f0eecf8f57521b85261873b819d9a31777923f30a2ecdc98edc07f8dafda56da96fda6fb3d2805820018c9b90f0ec089c1d2229a2bf8c3bcf2628d865d", Mac => "df5c228bebabdd4d48cda20a869f12e6d44f1c881a28832ed4d5e404d91817e3969a36137f6c062e4c97502fd87f48944808a66be3be3923"); Test_HMAC_SHA512 (Key => "a96b6a8aff8fc36ae0ad65cf0e4f403c11a84d13d1d4c3fe64618e8e250dfd2206d1bb0b271f00eda7690868bae2c5f8fb88d11a0462a6b13c0611a7f15fe4d7a7adec2bafcd2201fbbb25d43055e818fd62a865acd222d8f64702b71cd59e533306e433bf22916e84ada55999301362be3dbc3cefad9e3d3a2c4904cdf8935e", Msg => "9728ad23a2b44003732c59791383eb35c502f2dae9986cfa2071a541b1c9b8f02b03538d4cf5bad922870f03707cd01b538fa1c925c24c3fa2f3066c49b0f473054ced5b0d328208097a3b6a76ba24f44b1f8850ddbcfd510021a0296f30a2dc6e2c04f4ad139e77702e6616ede6efa7f5d930d5d72d87168224fedee9f1cc13", Mac => "60eb5296e3ed5803b13446c35995e25bda93b88b8819060e52aaeba31d53a43f9a768cafe2fc74eede8653b71c555449286a0b399bd0613e"); Test_HMAC_SHA512 (Key => "29c6a168c0a4644fb8ed30346ee159ebf19b9b11fe3aae4c2f3f1ad46f364d33b199eb49e2f165921b3ecdac1c99e913f618863007f20e922be35d7b31d2d19e8cb2a0274ba66ffc4c682042acebeb24813fb0cfccb68bc1a945aa44c92c5b3522d9690ae50aa914b133d000061f87a4fcd9c2f935cd4d63102ba7391f8c1481", Msg => "5c99ea4dce3f3ebe7794910bffebfdb4786236714b091a7472478aeee87979d45edb42e330ac3fe2978d9727202b575c5d1dc583da10f13852218c36238afd1d0081b273e65db4e851fb7fdeaf601028159f3f1231fd4fa28054c41ec0b574cea951e103d89ac6590ca5f03894d34fa108b04d27381b5e3b62a8d9ada8420670", Mac => "68639aadb98735b55c7a0ea4c02f681737448700dbdf350e8c2fd9cb02a94c9510a108849a282bbbb04d9d2ef04407108a68b728dde1f138"); Test_HMAC_SHA512 (Key => "e619cb4bb4a96f9c44b267be0637b7704b955897f9678d3b83a774d21816dbc11bdd5620d4748ebd65c3dc64ff87175e55f8aa3851a9e9c606afa566e705fd89362f7870bf1e5134c55412093d4864c33a0c269aa92dbc2a3edbaabeae4961cd1f5758c5dc6f5f084eac3134284248a8e11af54467bcaf6f1272ac5fd6aaae95", Msg => "6483bb473b065f14eaf9c951066c573106cf4b4152b47c4b9dd74b7a755bd9c0185677758a905e41e488a13befb85f52f11a3dedc7eb13ce34afe63c79751761265cd9f12f56e80c422c796658c36ca58b9dc90a27a26a540321f5e112120e17359eca0253e1663eacee39186a13e7f0795fd8e29962e8a5b23460b267b926a9", Mac => "1f782910a5aded6af9b64f81adc1ae2f924c12ef7ea10aeab47e837e2dd3fb7454d92d90676f78d65c537ab0695ef5fdcf45cfaae2621417"); Test_HMAC_SHA512 (Key => "3e5b392c1da00340c8252126987148cf8725e9f538ea58af37a82d4381f9eb3b47dddfbbefaf4b115c57c48e6fc2d994cd8ff5f1e30b876b28605f9ca2095b01ac89444df65df303cd2fb8439d4cfce4b45824c44841b95cbc71c6981f4882e5f6c92f8b3b93423da513c4ee2af9f8e7c3e83e176f7237aa7a432addff9ca710", Msg => "59a7b02ba466cd03ce1d50c3f0ca4c02dc4b3d1c0e7b9a77df9eae0bfcffa32117d7e05adc7195f4278c93497401629897a58d08ad7141ea52e0163f14992d7a284e7b875ce4640b4dd48ceedad1ea17d8ab1e760773044845e0899602f1bdfff4d42ab80c0765d1a8bde2ba0a830c050923956d06c80b182264ad19ae4f7c39", Mac => "805d0f62925be637b1939592753902b256d855a45e696d7ba75053c790c7a15be2e6f4995f8f7442196c1b84550edb69fbddfee6226af31c"); Test_HMAC_SHA512 (Key => "4c74d1ab0049c5be3c75dddceb8a79b8866df80487fcce3321f4d7842e12ec3c6979b332dd54bb919dbcc8dab6dc6b286253d6b87ed9efa83e26a3ff20107dee1ef3775628551089d1ca9e554916e63f8b92ea0cd7d1028663822e7c4e98ab0bd5a9c41cc994eb2e406708568c80118369f2db077a2a3053f7d22102a0f59d1a", Msg => "6cc698b3204f51cc47c37a03cded00a0aa7935bb65607652d7a70b9932494e9142720fdcf2ed38d011e0adca56b776c5a25e202b86b360ea053bfacb9b13e1007e2aa0fb23aef88704c4cb11a17c3946c40408e40a1c49c99fc93851494e65dea85811b8bc79db18a7d79c7fb4268f4c99d3b58ef98277172dbb8ed244e02056", Mac => "21062149d0eb65362aca8032306973e4dc673d61952d1bd25c9791b9f4542af7e061235b23e4cd369fdf77ad21db66f804ad2858ad049157"); Test_HMAC_SHA512 (Key => "dec973a8215ce8f9596fbc96738f561e23ec36d81ebad03f8ad69bbeb2ad65b8ff5ae9cb240ea35698b5e33849d621db8fbb90725ed3f57ec154ba9783243e692ffa70fd3cc19c3a813d85abeff0b3827e3f0edd68d1ac499638e88457d3b48858f230c4d13c7badfc4ec875cba5b51adabed9a3a37b9ca7f1c94c0e97806d1b", Msg => "c7e5ede152c50a935e76b59979e08638a09cfffd01ac7008056a18ab8ebf8d347e955e06788ff6efeaf7c3b54bf898f2a10d502247b9b5fbed79a0fde0f761498c8060b63fb805222f8cd606bf69df4dfeab576770598099120fcf97983b4d54f98c3d192da8ffd5351e34b45d9b23f2be605cf206f39a8a7c15eea13ef51afd", Mac => "85ea4506f6d077324b20d06afb02cc633e119f4e151200130a96b642985f95ec5bf48f29462c8902b297854428a19b5f5a2911c844b57162"); Test_HMAC_SHA512 (Key => "56cacae4b595ea3fb4a8c5b57c14731179256608614c95c9725ddad5fbfa99111d4fa319d3015ad830601556e8e4c6d012d7da0e2c4f60f1605f6e4c058ec0f46988a31bce1411d9b2461e0c54f693627371d8b4596d179618439e2c1458853fc1dc918faeb8596bc3c1a780c73221ef245929a2ef9001df236f331d2d403017", Msg => "5fa0402a3a131e24cd15291be50fac77603d8ae53d6de844f50327c20e411542edc56402ec535b7aacd5cb87ada045c81bf98a48ebd8435e27ecf2d286de294140dafac3204caecadbe7b94ea0ecee27f0a9f0bab040e9d77da97ee23ffa023101e6e9b6008480de0152dcb8e87a105a8754a481b42b42779e44b13a611c08da", Mac => "e46e5c8450f6a06ea679347b98811bfee1910dd52820ba6c01fb8090d58e5943466e660efff61a7ac1b441ae954b0067165694777d4d2071"); Test_HMAC_SHA512 (Key => "b6265ae2d0a6b68022697e2c4ba3eecaf1756caf6107555975d7fc5dbb51f0a0d39f7eca19c277f885e234b2cfe2d61cd638d27042fcaeab683e05876f9dd1aab115ea1d6419c9ff7ae2927bc50652f75f4c848e49bfdbc152013b693be208f01831a4c1f9d333fdca11a2707836e7c3565a8af3be796402fbc8a7ec66481edc", Msg => "3250d12c31d11a36acdeb944fbc0e58527aa1959a29a675536800f8e3ca250140e3f7ebcbf725523095a8def8678ae58235826e8d374997e8055789947fbd5d3e47f76ac6bf728893a9a55fd2b25d9460e7d121b569536a51292eacb1f2d10b29c59e0849f263a7126e63af4518e0e58ce5f047a94c5e7d0d47f8caa2c00a8b8", Mac => "7b74a7ee09d02964f3fc34d8310742f7c2e68bb02a5f32e58804f9608dc11620c225fb0d66cbc9f3a0d2c4cae1d48853364ec2a34f5a6a22"); Test_HMAC_SHA512 (Key => "36aa473316a8b206a22edc8e33457d39ccee612e45b7b186a98b74b9dcce555681aaa7f81aa3a6757172005838109492ec11796cff3342c0353780694fef89f8e79978a89b6b75956d6f37286a91c6d68af7860ad890715fd2f0a413135b1db92f1fc32ddf27a6cd5ece89e612f19e6d6f4890f019f6c6cb485ee79f71399900", Msg => "7cc5ef15a41facba5b47876cbdfe0e0f6c6aa30d7a657f4c891bf75d30d4fdf6a10ee9a289cf7ab738391788025f5bdde557d1a06c91fcd9d2669bdd6bf42ac1402aac15f91fa8cf01a87286e429abe1fcab0b4e4c2f5ef7ac42cdf227d25fb7a140c0d8bcb640ecfdbb1ecc2b050703f88eda7fe4eaae8d5dd716042b16a4bf", Mac => "651a25ec186b3615f57d925e735c11b9ecc8718cf6dc85c31d991f1e65380ebf75441cbe33111f93684d529354b919a43025420859f629bc"); Test_HMAC_SHA512 (Key => "ff333ce688f621ef84fa6a52e47d30522c08a7e4d345a31be8105be4fcd06df33b0823fddc29f528bcab4fc0455b942b95f7621fdcf8181206af95f29b934317e3da55764d464c171142c0c9152d5d140ef62c6fe7e913b366c8a0d00d1e02be3ed058b7a3f52fa4cde745d51b9a93f4de2d8b3cbabf9fe6508402e41918b2d2", Msg => "6cc98be75b168e5bc9ad673a30ae01d275fa0d216da2a5eaa09f2f084dc38503aeef53e17c87c03eb623509f9f87080406d6d4bcc902277d9c87e1b40759751aae1a4b88d591630c23583c3ca6d4f4ca186ab05961f03e8f5c62f96cded7eddaf5b33c856d1dc1ec99b4f2b9507d0b4d352069a03b553348699940d7db25356a", Mac => "77294f4cc025128e50ce07ab71cdb6017dcf8247759e1b59632aad789600430c970cfbff31d9f635ff58b149f38da5115ae339a0aed6db4d"); Test_HMAC_SHA512 (Key => "bcb8aff6d0a89f2c5abe7f6372824bf416cd072a7ad0ae5f9f596c6127520c1b688ab471bfb9d06b26be4c96092a06a756028362d4c1e1bab59d0c3a6e0b35a3c68580d72d8bfdf550e8dac6ea36d758dda4f9e881f783053ccf22f3532c684eff307befc4270f14fec491babdada54ed23bd3852a7a7d895b7815557dbc8d62", Msg => "ef9486bfd96e72d068b5003d15100a0e19e432e8d2256c83676cbd5eaf4a42b24fdd73a423a0a9bee087dea0f74cb4f3bc03b99fc7f5ea3e9aab76d08549c4b0c71eb6c7f67830ffa1bdd4fa33b710051a305b4729bfbb3e3be18b6d1a4b7b4e9f7fd88e1a9e0e79f37d6bb492fa252a7d919f48c02ae86d9235849c35f97075", Mac => "4af995ab01e4d303884ffdb72e2ded3b568c6690dffb7eca47c021a567469303f7c3979e7e3af24b9920ee377af4b8072a8a64c56650e0a0"); Test_HMAC_SHA512 (Key => "d6d6c80c2890d096e581c98d9ccaddc4de8d360b4eb0b70df8deea79e4cf3a60eaca63dfc76826fd719a41d6a8ed9eface0dcb10f888aabf45d56ace6f95b5899f182b67862310eba9f141c8fc776d48b3ed81ee5589645b128ee56e5685f2af9eca0aee8b4bf427348db2a9c1f0b177363342ef8c3a4ea9060f44a2c228579a", Msg => "781f396e34e537c4853b9e91507c2d2fdbede621eb4d5a4929ad265bca82be926ff969a24a8a8ded83d02df9da98b0228d38e48c7c22425c8bb87428486214abcedeb7bee9d82a847abbfbe41dc63b3c0a62835339b33590ca6d046aa3e9b7205b7829aa57f795ef32a31038622f57e51914cb5f6a29ba4dad73e00b243e2e57", Mac => "786a521200443143a15a7bc18abaf01dd079d67f11b9b4562aca9949cb8fee812341e745f98bb3a2718c3e58bd4af7957e38b782f21a4680"); Test_HMAC_SHA512 (Key => "e58fbf55109e26a4d95dd60d754140cb8577af913b7786c4bfdcc8e7d173de57af92953839ab67af5320fb518b59efdcfc15d42571fd7a52ce7f6e49acd9c26944740c778e74b1dbaa8d640c7e18e949a1661f8a77543db69e1f5c16897a360a6bde2dfa57228f90a54b182497a5b8783d1397a695a35756f7659934b07ec2a2", Msg => "629667993c18ea3639ec4cb509d1df73ac96c75286ddafa4b520bb4ca2f1bd1fd686ab911074518d94bb43a4c503166af625cf1d7eed9c880a1fc22738b7d78c61753101b5999e6f8eec557ffeff2dfeaab70d86dc09a45bd3035a935e0c867aa96ce134560f3ba4cf856c8ddb4e8ef7705569d5c9ba2fe4b7d46ad63c7732b0", Mac => "be4d9e32041a8af4f851c6fbea171a41e4e0967da0b27dd2c34e23bd3b94262682f15262e4031579698a1ef5c5542ce6407d59905e27b590"); Test_HMAC_SHA512 (Key => "e9e4480d1c4a621e0c4e1505992556347a7ab34fd2b289910474766cc969116f8040d96dc5f66cdc4454fa7bcfb9f838af19195038467ab8a16e1cbc12e598e6fd250e21b2145f1e2e859cf73400be12a0c69749f7100847429875351d5a76970b9ccf700c2ca3ad72e9e4c0f0840e8cf488158136989b0891f867211350134a", Msg => "b82eefb2081bd14dab0e9e345248a34ade73f3291886b91ea3e8cc742fd884f6ee0ccdaf4c9879f4db12dba58cf491af2541a1d5ef6cc8b1af750ef5d8559ef7ff9cd56d8f599974be3aecd8c0f4c08f3ae50d86f9f822a1e4ca39fd2f0b4d78d22630733a24d8d63ecdf9555411daf205a761c39ef46ff6292e74129bc13a7f", Mac => "90093bdcc45da7338bd2efe92e30933b14f75582739c747f7572b3270b104f33af0c939e3c8ae53b2066fc8c97ccf38785cd2ec3d79e6946499d36121e44a3e7"); Test_HMAC_SHA512 (Key => "d3fbd6fe4e356ac1c8c120d432d7204d9d579b2a5a5d0c8b6016bd1eefd38dda735cf2f0ab873afe0a0916865e8b58a0af01fceb6a3765c9bfaceacc47a4916bea791afa003240d9b6563bebb3038949fc3aee38157dba596a9c4a20edccd187fff95904945d04b8925298e97b643ab24cab7af9a55890a2298de5022872d697", Msg => "b967c7d9c0a941f02e87723cf282eada4347b28193d3e0bfbeda6985886a37e646cc7b1cdbab45cce677528b3a0c24a08f8f580b779935c79398814d067298592a6bbff08248b5a2f0b48b0d28e4b6a2657763ac5ba00a8d6c86464b1eebe44ccd0c395e9dc9b9fbb306c6caa551c6682ec57869272e889ab26e6189b91f4248", Mac => "bc9a83d782e50ba5a801146f8da39095d92387d759eb4ad52bbd9e99d9f68f4a0f6f6470c653c45979c2e19543804ced592ee9c53eb68a5b1b7746ed403ebe67"); Test_HMAC_SHA512 (Key => "19d4cb1d72c73e2577a23006f31466ff777b9582fdfb25e8cbcd34649adade35f889bc20ebd5aa1ed7a2ce52a151d63d1592803585796013b3d5de2df2bd7e84876b643e554e1756ba5a8592b4a347b5482a27f624f6dfb28367245e51c8e3bf8f23cb5dfa590b35e7715dae723143ced7eb90ae209a2b2b012e10df00239750", Msg => "fd13a5e109ee583bda183ab64e4d27855bfaec17449f14991378febc435c33b8bde5f79106d11e98b6a821362c9f71e580bd0b7fb93c4dbb403208f49571d62d41abae530cdab5c16fde570a4c6897f2dd18a3bdebe2acad40b6f4c65e6029d471adf1af83cfc6beef0204ba187040b45a52dc5a4159d876f94cebb706f2d3b4", Mac => "b201720661830a671c94421958f73c8b666fd8a323629548a29afa163cee2ec24a01201d901ccf5b0adb1d20fcf0c5ea1c7483fa95ffa0a9590b970385d5779e"); Test_HMAC_SHA512 (Key => "69d9440047b29b8e1dea08482a506d9afad24fffe9ef7f18e36ff9ff6d510cd9e905bbaa15db646ed6bc9f65341869aea51f82178e341334079e94aedf81eddedf0ddb9a53f6964fc724b1500fab416e8afd41c9a75f35e6a7990e01a5f24ea4d45b6c7809eb7a5c798b05b4c3f33d0331d555bd3a572d564cc72f9fc98a7752", Msg => "18ec13250ee9c74c0fc4dd564b3d24a825802d5ae402a53bacace115ae3bbb329be79d1e5e42dbaf0a6446431145fe49b86a8703c7c41f8985d54f12e314c16ff89351d8addf66ebba2783f2d1a11965182aa0b0dd2de53586c5a695c6265c2b173958da648611090557bdebf11a1e042f089fe98e049f4796c60d26be38356f", Mac => "921264559658c2a0f948d13620312047326ba3ab84d1795c9e438fa76daa37ea5f16024306be804aedf8f91b586987254bc0ca8d64a79325c46b2f0b7371e3dc"); Test_HMAC_SHA512 (Key => "9ecc24e4faa8fd520aa9a49cab88fee7fd39425e13ca502eef8d45d5ad794c9dfeceb763d8f84e9d6cb6e69c597b360e1f15e7c6d68ceac0204d0e5f5c87d2fa1cd67797d91f5af6e6bb81d2a3d77463f31a4e27f08913e2dda844e45be2b18ae02b8f0766e4ca6460ff9dc6f2635ff06192a008c989749e0ee80fea14529255", Msg => "b85c46b5d55b896d67b87ac3313a97c7509984211ed80b0357d4615c7a1eaa4f7206c0e376f830fc2e0c868a17d8cb0028894b08b6329c749563db7880fe3917ba46b6dcf6392dca752091956e647613b2a3d3ed9003069af6c6188eda1f43aed844b1081dc587c1831c224efd85a0e73610a33975f4515cc426a004512ad0fb", Mac => "9088a7ca211f69835b3786789afd93f3704de4a34116ec5cd5ed0a43a3bd611ca08619718d9bf287502bfe07b6d79b3b2ba982f99442752aad29ec23856bfa47"); Test_HMAC_SHA512 (Key => "aa42b41c544fa928b2f3c7f12c41e5c56c910860ca257cb3080c24e440470e951a2b4a694206fdc41a05b1d3ac55efcde2891078f93c50ee33f724a1cc55ce9d30642e0d6b4fdb01e13a726e3f6e2e76b1b6b9ea5608420ef168d09ce10ad60b53b70710b6716b666f5ab3cbced2ca4b41e0acc0c8d37b9aa929d0dc65af4f67", Msg => "2b1f5c46d4b819bfa1ede55a14077644b642aa3963d177a6e823200bd065afa47a489f486f04d991f39de23dda6452d49dc2888bad319c69078b95a80987dc5e8480f15d12795d57aa5fe846718d0b0ad396a854d33ef9c49fc9c74e6879dce27052ba4c65208d59edbb5f3b828a8b2e8046745c7c0076fed8661dc594429578", Mac => "16d83f28f335f8d876b2fc85512159147f4cdcbb5c3ace09367d8f1b557bc977cc6cd31db4f93b144302f2712a05fd964f21f5fff11d28b703b9de3a01f87764"); Test_HMAC_SHA512 (Key => "b04cada1712ceb8b03c37c11034d7f6723c5d185cdfad3d80ae56e37a33a5418863d88046ad72048b6e94aee9fe08deb918a519ad128a26960c431d322c49b8e3fc0ee05ca916a08a1aa84c294ac31ecc93460415ef7c8325112e5da9d9b3d34a67ce88cd7814f338aaf347728d8f3d2916c0762be92cf99a57792365ce6c274", Msg => "1bfa498a685e81f725583a0f4fc5722fde8c01199b23139a3255db6a884286534ea76e95d75f918a262a41864cae1d01f1bb3ff830d3b790a8ea38fdcf6a12a28a7a6079fb8083b69ae4cfa7881883df20d5ff93cea7314424ab519e2a97cea1f6fc88fe7dc83fc4a90f4b3bac0b8e109361a8b31ea569fecf218c1741d2a297", Mac => "175e9a5606934304d65f5a2357d074b3511b597afe0167704aa457447a7015a02700f9c00aad116217b27daa9898c6c1e134e7624a7488c3515694b98a2f6ec4"); Test_HMAC_SHA512 (Key => "95b203c6488fc5b5215aa58c6e34148dc277cd1552925b139f14dcbe55060488737e654dad71edd10fc9b069e2b7e7f8d34b391d52423aab391f325aae7d1fbc4aa3fd727b59449f26fab39d91cb4cef818ba0779f4b4ce92080c480a5574ff06048539b79eed307b016369043164a5a1260888a01569ab69e601a99043c9d0c", Msg => "2ce3453903e4f074dfe57499a1506187f8287e79849e0e373cdf538e0d3151fdc33ed4b12dafb4b47cfd5861ed84791ba8da283ee75e13565a14048fcbb0aa6dfef09cbddb2f9bccce3817d66f58f5c15eb7900b71e7fe0212be9433e261ac24a3a2a546548c2c259d3bbae26ef25ee3e467bdc96c6157a22a850c609c6dde8b", Mac => "2302ffdac9cf3b7e284d80fc470ed42cac01d218fa1b851a4dc3edc80c2f3c8f239280da93ebcc249886bfc08c7f0bf22defb7e447dc8bdbb94093cb357cc5ea"); Test_HMAC_SHA512 (Key => "f84d1361c51c3e50e245848383fcd37b2f7b0fd916010a7fa41bb1f256228302cd0548ae2148ff42774d18c2d6d3e38b36bc4938da13bac3e04d66ec17cfb0df10b1df1178c2176ba4cc89aa6e19e606403519116ef635e3c9baac7471f0c349eada42537290701492493e03f4d6c332746fe82e79b2652686e9ec500c8ca389", Msg => "2bac5a6bd9dc5ee714606e2262bbd3d3ef73c9d578688321676370fa40f2bd673b741be63370c25fbe2bb5579e79486658d3e0eb22aafbfe02fb70a63524f74ccef6eb709f0b4f9b5c591095fe0889d766814c4343c82013350b4610337b01042a5a5571e6550e83361504444b119e0f62a69547a369fa4848bc7b9e019fe276", Mac => "5f3422f586e6dbae45ddc87f8d04b0c88152f90fabfc6dfbb0ccd7edae37de528460a7bf16c4c0521355d5f28c88ffeb55986f8b919feb756693b076c1690d5b"); Test_HMAC_SHA512 (Key => "befb1ce10b50a8dd71468834cc5c1174bcc1885f4a67e49ece59d6b3104e0730ad7ea126bcb410e1b2a50ad28380cccd0ac6a775ab5cbcf437df04ef0f3793b88d6f1dc69fc3b963b5fbe5a5def8ca9f2d8dc2d8629018fdc6300fd25788256e257598a8fca52acd43f1219424ed9353eebde072b72a802045f5ff462f6a45b9", Msg => "1283748593d539417ff5701cac703c3dfcae39608382bd14ec005e26188fb45d093f6067ff5c4c14e04335c2dd74671953e9c8f8efa618ae1692776e848528fd33a294ae7ee792908602e5e6d56606d7419f256713e26aa669e98027d9fe54b457551a40599e921d39db8970da6fa2e18e785697375f3a63adae803b6021c1eb", Mac => "6d4aa62658419fc842553c70118d90da3cb2a37539dae4b086b4a7f0303dd9c5f5a82d1a7700fbc1d5309a7f668bda06ac53f6f77ae26878bb9225651b1523a2"); Test_HMAC_SHA512 (Key => "21251ddba377e48fa35ad148389c486a84e623f3dc49f9af281aa0af8d00f0f74a4bca77e087593d765198e87b6a15608d0af4c49a7736a445d53c718b408631a618c177319c01938ebb4b06852656392daa926e10bd6af68a57c6a47203d583fc3509c4dede63fab23ef08a9cf9945c2c6e06d786441c0dc04549328b706453", Msg => "41da7852d48d59fc2ad0fffb9d64b9ae213f3266d5d4a2c7d89445725eb50de1033294915f135467daee1a4dc1aeb81c9a93fabeb57adc94045ffa152c2048b8dc8303145e7be8466ca7a394441c8a50ff648bfe1ec663b966c811d2eef38bbb76d6af23fa4e7c63870482194e369712f7bbcc6e3741a0fea5da73f1c9b73db0", Mac => "41a4c83777750d4fea58645cea32ff4456c44953b466a5980d2b8da234603547a6259188f8693649dcef85e85110026c006ab968297567ce823965a1df6701fe"); Test_HMAC_SHA512 (Key => "5d307655cf8f7c1b3b573bd75e2374942ee3e56b6b2578ec7793bbc067bc908d5a17261a094427b4a09633d0cdcf8ef1162a15cc6f9f77aa0c62a10f74ad7a99d7bfd12aa125934a4f3842c681e7a29d51b6b61de407ea4a3e98927f5b4e93587b3160cebdb729a4ef454f03a5f31a618890aea7f1e63b92b73e755945274491", Msg => "f91bc92f97c28b011e7bb1dce84cf9154942094ab908b49635b87906e2f14c51f42a9ac3ce46877b6a687ad6fc08db2bd2471bb97f7ff5dd381ff4897eb636f1fe4d6f87b5fa302a57b26a9af25f2e30ce32b6cc993ba90ec0379bc920a9d3b4de2c526393071176ad0289111278788c06aee36b4e63579095a875af10f2ae03", Mac => "9f5c4fd863f070b85d29b933b1379e7023335b74aac37186315e959473bf2b3c0f1f893e1feace27dffe35be6c607a22b02d695e41948b3b6b2bbf58ae7ae84b"); Test_HMAC_SHA512 (Key => "ffe01cbd0ef36a85e32adf18931c4761709fb382228b27bbf9c1938d816c041f57871ce03ca0c06e68db10b720399c5e8b1ad460c201c1f72698f3bef6f4bb1621199ac958c1f8ee6859190dc74d4e836c856827e430722da3c0a04b9835821b049f7dc18bde7ccd8cade363aedfc599bbe75620b29ea3271741807c8eb9c2f4", Msg => "a32d2fba17f4b0f08a9ee7edeab34b1b8f7b12ad6e65fe248fa97a18c12de5358ca62e8467ffa1eb2bfe00f8c825d6da36d608b0afbbad071c651f9dcd33526b6c7665e334d277775ee8bc5adc31d08a4a2d4b0e22be957c2fcefcbf443803172de6fd61e637db990ba3439d90a1e234b2c8024e2d355f8eb02e36058e04a041", Mac => "c1437541647fb134322fe4809de516ff2a9982c16132077dac91e0e06f14cfa943fc8539a22c91faa3fa8fe623dafc954ebee5c17136281e7f8a3038f58bd80a"); Test_HMAC_SHA512 (Key => "d65a384d328a1c8908a53151d8fb1e029c6fc44958c2728bf314588445a73f2e71e777e475a710c7ffae4d61837255888a232c854debe27682750af176ac6eea5cc501d7e47f151110a9ce7e44e5d76d9cad53c1819317527fcd169051f01c6a3efcc06ea9999431e3a09ef143dd0c79791423451f4179e7912464a9fffdb274", Msg => "0f280564119a83a8482f57b7c20b247171a985d8dcc55b17157966c4eba613626095952a5ede370ba589f1ef08743940d9f41baaa2bf8c23150afc2946ee2a4b18103cebf5810f42c3e3cca513cebc069b725dbde67db5894a3fe6d11b0b03301ee12231404bb25788850f614be054cb9f68719811c57d4f9b5f4d44d0c64518", Mac => "9645b0d953f9f91de98ca15845b7edc24434d3a247c1eccc99b71e9a3c3ffc79e94ac59ac7bb6ebfd10cc7645dd9c8449ce36bd1b4d1eae96de857cb04a76c0e"); Test_HMAC_SHA512 (Key => "69a9f4e2dc0ec5a720cb369e9a7ef804a4eb5254dffc1567ca06d2e0944e4ac72fcc2674a62fe9afb021221585cbe6bef09c7d1ca6465c26d60a53b6013608300ceca4659424ccb781f4d37dde102ea9e88d28a864ead78936504e62301914ef2890d57d4df75806bbcfb19e4c53b80db146b9bec2ee6dd8136129aac8ff564c", Msg => "b9c8680ebb44ac60adfb20716c23b7bd9ba54908f51e888de129355847e094f1a3a01d3a580d749a46569b5b9ebb6751f54c30bd98f3cd7020b4bf344634ad67f87811e9acf03039f4b44fda520d24fc4e378b58c7657a5c870637881a47c818dfd9ace35ff4c883de9ca4b63023d704ceefc0a2297d77973ea6031d6b21ce4a", Mac => "73eefeacc31d31fa658517504322a759664bc1a94c3f31ffcf333f678d236c743066f05f92c99b30141a13dd65d0fc9881145af6acc9bbc446e0194d68b64977"); Test_HMAC_SHA512 (Key => "9ce66be0e16f03baae3567aeb7ae8400fe601499999c7b5ab668efb0dcbddc6974f387c68779f1d1c9c9fef0d79bd6bbbd598c0bbbd4fe534935fc345836ac4bdb922c4e86b97a57d5c9917f51bad5af0fd8b1b379777f9050e2a818f2940cbbd9aba4a0659965f5db1d6883ad724985fcc6cdba5bedc7b9d6573c85333fc561772635e5ac807c52e2adcb", Msg => "6456643e93196695b484f8a38179486c3e3b577a9cc800d2dc69362837878d4f7ec0fbf3fe3ae08aa63745886cea61d2ec8a627652a46a997bb5d7b157f8c7f4927ddb0f737b3c1c04e7dcce7345ffefb8bff90d787439702912864f78a78943e7b48cfbbb84813215bb46de5f3227aae902a5a7d4df753e30a8cc6a613bda24", Mac => "27973b3457c6bd4136a33ac61d41d5dd4395dbd0487da65a0e4eb369d9482d2b"); Test_HMAC_SHA512 (Key => "8647453889476b944eaf55b97b9a7bccec873657556780fa29f4fb5ebb45366ba49f2bbb648f0c4e4c353f7f9be3a736e7e72560bea45e9c8ee8bf37c279bf5b2ef16483adcc093208c05ee51a4db04632946ba2b96cdd9d15b33c25cce2eba4ede4f97aac29ebaa4cf6bbd342ff2063973710078ee7836687fd7b0e23a741aea921f187a8cc381dde7f5d", Msg => "8d4f4a896a5d6f681c951da1eee6143cd83a271750fba88762d5214203be447da334255101c6a76343d634c4469db2163370b2f15341ea852468e580aca4f9320d5c7aee5a2b2db4a99cff0e6932f738f6ac6a836b866efbb8c39048f4eacad2f44faf291c93e9a3756ee54700accde94a76b79741d31c34466f8b63839a9ea7", Mac => "54a6fe3515e84298c9e3b1f2eb6f238fad2cf61f4e2e9686464e087ece4567c3"); Test_HMAC_SHA512 (Key => "6e573e5984bd566a807c3f800da68f65216697b926939f2f588572f96e281e807c4ef559184ad774bcbab4976ba44c0b97c53996432530a965ef84d98e80eb93ccbe850cd0ab1a784c3aa47c9f610de5b46f399a27a047cfaaee147ca82b010e284df75cf309a8dcf9a31717f1045a5a400d9eaf1c2b6d0bf12b2cc90350e85756a35230cb8b070a8b9d15", Msg => "35430b4881fc4991db8b046d64df7bef6d53afe02f8ebdbfbca76a06368d00af3fa759f7b0b739628e04e1ff3ab8e0ede7872d1e5191735bad8aac88db18f12ae37c90269f7560cbb5615113c9a64726f050292067fc341485f49651ee9b38e40a0cdb5eb5fe66d738eb7e32787158a36ef8cb6fd795aaf32d2e50e8d5df7ce5", Mac => "dfcd236af05c8204f1e68ea0a389499cf7601371ff190c66228752289e1b11ca"); Test_HMAC_SHA512 (Key => "4f48222e6c000f73c0db3321a59fd4baa7710d3bdee1c4447b27dd78a0acad2775cdb22b78db810f1466ff7776bbd4bb9cab1dd6ae8e617f9288c795bb0b86c0419d9c5637dcc37b39bfa18d441e3fbfca75bc0306e5432e8e7b3a5627b5bc7fdc424a77520abdff566e7f2bb8d1fb0c5c57528c8eec509896899e858cb239ac6e442258706d58e393fc03", Msg => "16a5c0cc8104031e789c05f885df407d931b9a8d534ee639df3bac7a9ebd2d22675ca212e91ec5ae4a9f928e0e644f763b6dca89ba09e2b901ef4882ef8987d8f793425e81e5bdd88d8da0e39a21f7e4c6547c3e36c619c8b821a97ea761ff76107329161202f5858b8eb55ff1be40ad7df739148f2d944c4ef955d48eec9be4", Mac => "4efd257f9e855323846b91da50c392de2bb9a29ed31970c3f01dec6dc37da66f"); Test_HMAC_SHA512 (Key => "f82e2ac9e2a859aa38fe8fa0d4f298130bd68e89e0f2aa2578265b6eced19553a8f16c6bca8be181694dfc4fe2721b8aace6891f8baa52bd077b56931dae9d5b345fea9753ca931a90f98fcbcca0d1a69d45d4038ca3781b81510cc87b9fac8c84c1cdd5e52f167f964b729bf844636fc63b99bd49a5c349ccf1a595506a6aef815e3cade88013b8618bca", Msg => "a59077774b861c354922c7f7fd5a687c7a034e642ce7eee7c017e0c73e832a8378c7c1cea8484d3f55802d4a7696bb6fda32d1b1c78f8c4ae2d24f9d4e9a0b6c18d8be4bd3e13a557fc1281db0d24ce8ec8e0b1954a22aec8643d867c3c5ef8e4d6a77d713786cdd908ec058f137a44d76c004821a4750357615820de32e5d51", Mac => "a8c446e15a39765fc932e0db9a715119622413522a6fb5c1ddacae1be8e8b9d0"); Test_HMAC_SHA512 (Key => "6d5f17f536140d17073b062536e893f982e91fe83e582df6b26ce145be94c2d4c0c7be66b8156fbfaa839c16441503c8c12c554a0d1283612ad43895d250a6e35e8e86b2e6545a08aaf4f6feb0693e71afa231fb2c1e2721e3b956ce68c69b010e5d78c208f6595ace371bc3c30bce5e14f4bae4e3a2a19fa5c444dac81e289699dc9a7e6626f11ddff413", Msg => "c35d20d1c500794332b0c1a1bc67dfc033c4c360a8a3aa5fd2f19d2db1bf3b807094b949900827e6438ef5991692b539d3c42227a6b362847e9d88a1b6855db7f58760d953690b26bd7258439a7f8409ae53137a3f2f14fa77a2a6bc0aa3bb7a19dd1c69554aae6c6703f3879057d3978c1a9d41bd3f492985aa0064f43fde2f", Mac => "5dd809c012393f579be168109ca60d1688df32bc5eea2024bddd91cd45ed43d1"); Test_HMAC_SHA512 (Key => "9b0e2154665d5e5b57bbfaab3fbffbbffae6bc1a51e5ed391f3edbc6b312f10e76367fb5cd89bba841840654de127016d8a27df2757b2a8726502b42f71577d32a1106dd1f33d9f278a93cbe7aaf4882b5a5abc5e765ac461ed369341db663a101c63d352405c11f42532451da3d8bedd717cdfa704a7b5c4dee1e03eb9cbf62417dad23a4a77a19e8aa47", Msg => "dd2efa4b6d340de657823a5959b441ab66bae0f9412201d04b9532da9aa555bd4ac699401899a9b02c71238237104b39beb1018ab64cf0be50150959164530f9371e34801f2905754bc321a85cd750156aed910b9a64548ef3fbe9f96d9739e84b40b454ab6c8a005c801e14ef94b808117679c418f29506db51bc03c720d951", Mac => "6070d709a0a26fb5d4e3a006f9913c4d5bbb1d02e6008685e006b1cf7a4783fb"); Test_HMAC_SHA512 (Key => "6d6017f05b66ccb88d7011068fe678b12c7bbc1a8dbd0362a5ea60dacc069cbba92a3618561fa810bf2cec484b2b3f99bfe225055f91adf056c8f68c577bf29685586a409058426e2195ff24795b863f5581266414fad9371ba7c7cd796f0c63c792bb50523a23387d545183609dd60db500ca1ff51f109fbe30dc83780a738b387f3230e4edd2d89910ea", Msg => "fc46e832af596bb15a22f89741e09d4c7c61c12756d3ace1f4d84a4a37d82b3ae29bcfcb001721c58086415a23bc861498b8c40be579ca5b08132fd5de014ff545bd90147d8eeadfd5a1a608835c653cd3ef6554842c00cf6e98758069c2eb846bd3b377f067cee79f9baf092a6741ab762f2c6afc9455256f90a3b29ec209cf", Mac => "1827aef6f794fda16cccbb3e1ac5e9b84c5f4a5949e313f7443b9d9ecb785d7f"); Test_HMAC_SHA512 (Key => "a6ec2b6448a36dae7f0288fa095dcf5c778e04a334ea79e6c374765f4851db7c4a7c0634b7bbf79828d2b2aa67f6e5712f84cb4d32f350896008762f6748f72076b32c6347af2dbe5c433a8389855aadb256412bd64c777c4cf0b77c4d2a967eb3f9659a00675749a2bde72f76f374378a6a2ee527de36e80f9601ef03ddfebe88b67881ebccbd6083a880", Msg => "89745d553e42690dcaca938f860ea01b05665ae7f6d290124c8f5fd99de8b00dc84f02c4dbac6a5034f5d76de6ff9bbe5e94277b46c51664a9816ef9586722ec8dd9dbd7cf52f72b15f9d2682e76459460046de650c7aec22161f7eae0c047f2203970f4e1db1b86b7fd0ce9281aa78355dfb38fdd815f14fe548213fd9a2705", Mac => "857877efb8dfa0d46601ddcdc52cdbf5fc1a34735d36773008d190dcd57c0b95"); Test_HMAC_SHA512 (Key => "f05e56198029c2a4ac8169eb68daf7b4f1ccb6f2037462444d1839bf220951ed71ce2e15f77e94bdb36e9a6e9a0c00b78d0bc27488c1ed511ccdb2891ffcb9f4a26eb84023f4437e04bde6e13c3271c34d1e93e97612aa082908da88bf465c876b8519216c5378ef87b674cdb512f1e1194c50d9343041735c10d8436aaee4b1b45d7c413b62da1725a06d", Msg => "b5df01a9bbd2517946829209dd27a6019b3fa763858ed8b61a64db652b1e2462ecefad0e4ce1eb5d82160235e85435180dc1a00305ea2996040ab4742c8a96eda2c44cdbe70c6ec966f1de5b49c045ea914ac06e66e7d6a1abbbae61d6387e56ffe447d6365dc0051a9a8f41a873bfbd50646f6b4e8ec72037fe31f3d232c5e6", Mac => "0485e3bd7dd2d8fff30f26c32c60a04343f22d7b4e90980a0819ffbfe66209fb"); Test_HMAC_SHA512 (Key => "13ade41b10d936e3bc007d1f1ede120e8163b7c0c8b78636017c27c53d5346bb9ea14445b1932d90fe5feb2fdecdb9bd8df7dac3804c8adbf9db3516d8cfe79cb43504922a0639417561b2743f188d21b76e8f4ce41f162939a14f8169aaa9567df28aca233a403d498d3ab6eac67884285240259c371366ea55dfcc98ec7633205f3fb543382bcda16beb", Msg => "721248d5545218f96cc0e8756e912dbd95661418957115ecd0dacb3ccc61036fe54413533f636d61ffa27343bb8f8d932e4579e63190e309e751368a3724b17a7f41bd7286a07ed4b361a8537d6a94b6235293d89d7e82f4d2899e1f0be99a16a8d0ef3a125174d9f0c42eaf9e6b69adda5607f9c1831935fb4aac0432f8e5ca", Mac => "3ca21e282bda0ea11c8b1dd7a8986af19ac75a3e6b1c0c02131ecbb786edafc5"); Test_HMAC_SHA512 (Key => "5bd7b597338c27d20e9772ec0fdff39ca56ca5c3bbc9f1f22facc82c86d8f0edde439b6a23743e1b8630a0772b5532ff22069e7d9908a28e506c1f5e4d6f6db3d09ef22d893ef3cc09eaa9b2777e982a84341ceaa00d45956f73e484761ce6c61b31e165ccb0edeb7e0fb5255922ce27b13e4790399f8110730740276ba8032fa544919c5493d583cce5eb", Msg => "66aa32cece01bfaed925c97614fee37a52a0228bf47d81c868d984b8f07f1c96a5b3cbecbb67086406b2e5dabd7defb57f805678936d4e94746ab4818dc5f50c41e32cf32e7a8aafb300fb91af6406108cfbf5627dbd374903b10230b6a63d7642249c0ab0a20d38e7f953c27219f03383fb497038d705901e96b6edf48abb7b", Mac => "6e2ba26b55bc023c53dabb4c8476d240b60a5febb38d6f34a8f81d7031949f81"); Test_HMAC_SHA512 (Key => "671fe8eb38047cafb577a5ed0989825fdecda94e210d0ef1063c27f54dac4d5dc381668c0b66c1a09e7e4102119dbe3b97b9a80ac69bedb39eda1d99c70acd0f1a31396c637a2d5d652e25801fdfb32e4ee7219833115715969500ba0b4ae92c7417a9b2c7aa878e126d988ebcb628de0d3f5b20f0d514bef854167fa2d26a59da1b0087c05e99dbab25e3", Msg => "ff44aa46bd6671aaa0c866bfc760b2d6ceadf1f04152408056059772dba75a6b6db42a53ebde01112af57e95ea0a7d1c09d4ebaff753d9ed6ab2ce0b5372621910c50887e3382ce7a3957ef4b1088dd42e80979a6b589f0fa137c1b2e335c3fd503fecea8dbc19b673700de504a10986a4799cb886acbd6d645b176e7337a4a0", Mac => "8def5273d5341f709b16467f48d3ae46ec35dd20f4449dda7657c21ac1a2f073"); Test_HMAC_SHA512 (Key => "f795ab87cce39d5f7786037e6bf704ba3466a45c07fbf3829e6184c2438521102a9bbde20363aa92d0aa0d03f4138e878d175400044b3046e3e118c9e672d87854fb04e18f253199eac964debcb3cb7bb3a6abec6aa19ac33d61ee4a5c27756a1ebb67cb98b1983d6febf257ea5f235d4b1a9367608599c055e8ee8dcc2c62af2fe5cdea4590494604189e", Msg => "331c94c1ed01e9f7ec5f0448564defa62082d8968dc5b741f1a431c8bb69bcd9b24a05807fe08f3f6cdb9c606bf3508a5a221493851039956dcfdd44c8c8137ec8f53e24a051be29458dcfe87105adbbeef2fdc911e1681f8564890349070984fc850856593cbfddfedf6488716b4e60645c5ae138208d08c1ccfbad490ee713", Mac => "9ea4cc85332df7f5f73415ddc94764227da7845adf1227c39fccbe0254970195"); Test_HMAC_SHA512 (Key => "a686aba184bae89ac5af1efdcb55476df8908b015c4706f590b8cba0e10e29a6b1352d6f1bed67d8d61df1285c6aae454b09d0280bd19d8eb19572f023b008b67de1f6a8b45a77a57a136e976164a7a642d360ace02b08e9c9ce46f97d4b3d02d2330f3297299f6978399c32216bbbf8a7974377237acf70a00a4fa1370751f478d37ff70c83688c993683", Msg => "8c562a0b7e50074e62deed2a664797b853fc4394641e1e835840fd58c66e4d18b16e4d5c5c457bf75ffe4bd9fba61f33ab9b74dcfb0759f49da726c7bad16af386b525ce17e33802770d197af80ecb82c72c0e29c49ad3ea9141f28ce9c11f4734b21b28582f27b7d195bed6048883ecd037794367e172af5c99ca71fd46545a", Mac => "ae4cd8fd5518706daab064f327553b23e221d8bd1b0b005ac634a14cceef2cba"); Test_HMAC_SHA512 (Key => "f3e81c3dcfa5305c9ff15edf303103fdedf7fc73af841525d78bc4099b3818419d71ec87c25c60ce41218a26faf168e10a4719f49c6d4da00143fb51043c52c677a9f172123a5a227ec1a4e1ac3a71186b0920fa3a82441f5aae546f284ca442aa1793c6684706a07d5a16d6ed1406ec39c5784d31cae0ed0a56382db073f6ff5d433b4a6b8c4d90677347", Msg => "155e66936d319f169db519d51763f9b43de5d54177d5689783c88b820d8b61e380acd1561b3c391347d4601228d6ad7372f5971c7ef85da49dbaf770ac764c1be841a51b04d862a2799cecc31edbead6f851b81d53ef14a811db1b7543b775dcf626cc2a4f8c828ddb16a33020fb18a678011e8c1f42f76a8a30dfdbfad742ee", Mac => "6251628d0e65b0aac304695a2059fb7cdd6e787b6d3787ea544a4a53e861bf5467d9d3faa8cca13e"); Test_HMAC_SHA512 (Key => "fbbbdd42e5fc631968985c0657ec42ef0db17af0497ecffe3d8e1fcae1c454e88dec9631c744c0665a3b1016a87822c1401e1f3db34f3259a4ef3bc11faac8212c38418da3df6221413aeee4fc3aa2f2946a68db6b77ce4696efb6da34494f5efe26441e20d63391481e603afc38abcc301cbf9118fe8d0c3b18f9dec9a9d2e62e3e08ace7301900946ecd", Msg => "7a03ff3737a8b26de4f9fa293b94899cb9d5d9b2ac9fd5f28c59d6a78e36d03d77baceedae7a9b9d9623c2011abdb9078a315a72a50992c4f7785d62659af2f306fc3a09345f8703e3b98332327d673a401c6dbb41cc8731d188511987584456ced22dd2f0e1de6874c52402aa5bf9fe849ffad7a76f1b01c29299141ff8302d", Mac => "0f19b00a7f9c96a0d88fba43cc55cbd04c0dce844a945320c041e36c3f8c5b5af5eb9f38ed7b071c"); Test_HMAC_SHA512 (Key => "05dca0efde68f835650ca4a7eb21a907be12d8b159bea420d71e31b3ae28adb199f3e38cd61b0d629267eac9a2a911cc73e6853144b789fe92efb63bd47e4af86996c392cf0cad331500b89893c00d17d8eae2e0e4d14c83982255b26ac84f485d0c688b31017eaed61f349b272e45efd5661845a1d495b7cfff38a2d7cc63aa5d9ff9fe63c328ddbe0c86", Msg => "c1993dbf1dc2436639784627d83c581cb5af21a0d29bd06f0d375708f4a7d856dac35a902b19c15efc35fd3de62081241526f7689cdc32dd0b62643e44e691ce8a694340dbc680d480f0f9c4e27b84de9f5ecc72ddf7476edf4f69c8d6a0181cf9145f97d7d06613ec31a283735549927cde09873ef2f96cae86d06f51dd5588", Mac => "42e45ef94ceeb15b5c5a1b6c6f26412e7e63a15dac6eb912bcbcfffac4ae7dae5f42fa7e6b1d7447"); Test_HMAC_SHA512 (Key => "cc17a0b3a2d1051123c11c5bd918dff0c0b93e5356f6cc19f29ab906562d00738773e1f2dd3692355645322c2fbdfe6eb687c7da5a22a47e04a3e4b8aafa469a21766d93328c8e4cf1d46cd14a5486f1dd018ee70c831e3a5139a7e1d57daaab3f292adeca59611e9b73b2915165df41dd2e7cc294a0a3148264eaca023e926c8c92011bcd287273fd2cec", Msg => "ebdf5cc51dcc4827c2ba27d22b86f03220a6d206776a6cc1e582403013c1655ef4217db55706e765b8c7360a5c6ae1899daf3b3a8251a64d92880466ead26f8b8ef32a40fd3ad7f00807ea8fe38a5d7e7dcda6af0df5e609edc5630eac6338bb5f5f4baf37f1809059822cabe96ecdda6809f8ab41e092be9e41436f80fd28b5", Mac => "30e125c44f1e06a333fab208db7b4f0eafbabaf3da5596daf7b17b17e215fe469ca829b8c8f31da3"); Test_HMAC_SHA512 (Key => "aedbe9ac8e96e95bb5c6a392247fab23b53c5d8a477721201a77ee927c6a0d92a6b320cce185621cedb130fea2bcc946d835521185451dfb25882a925f1bee0be5f754349c7d02aafd51dd4cbb6ccfefa56dc854cf300257eca28a68ffd4fc3f334e8dcc06a54f6dad50b164b4b74588e68dc73a6c605a9b396e14fda5bbbd975760d47c6926d3cec753b5", Msg => "12720cff0ca649ff2e1c9355cba8020fc96dbe05af9fb4bc008d8d8ac8dee0fb741aa674e66def16c9a8d4e52289ad2a283c84165621c9a7bed046d0a05b56d43bd352f3e30d4d4854a501f246440872421f5054b3c0c91240096035597631bd10a2f8c32b0dc95d771c02c25f617daebc1d0a08ef031cc32e3fc2021bb7d97f", Mac => "6c5f36354db5957016edcffbff8e52148c35de807c320ea58a622910e4472440087212f5d7025555"); Test_HMAC_SHA512 (Key => "89f6ce9c23e9f65f67b9f0736841fda218b64bf4b17f762354464e4ff04fdbf366089e18ebe21ac8ad6093c6b96d167c1cf3b93548a9248cba2d5024da528f9a23bbcdb883a915ec051157f8adf268eaa3e54a4f95f6aea456b2b70dcb81014a0736e2e6b5e5efb1b6f4c2710c75fbd5f7b385aa5d0b1b516ffe0a718a8438e95ba26509473eb1010a335e", Msg => "1784de20dbd9410f06ab0f19caf7a146e0240f59ca3899a85c4c452a7a3ecad223a5ad1baf0aaae55455557fef85010501a4e1ecf8fa6ddbb18207bc3a9adf14dcfe148f59f71ce072d065c7ac8a3c7354d1ef0bc12e2e88d97db7c5d7a233d94b785aa4610a5ea86706871a8a6e1a39e09180dfac3aa456dd279d6cd7bc8dca", Mac => "a4271a7cc9f6e4c0eb1b8386cbf3119b6f333a40da853f09e119cedcbdd384973c55291560d44db3"); Test_HMAC_SHA512 (Key => "cd8e4a0a21484000fbc7da29d8669b4e6dd5004a3c61b36c6676011dc0628ec3285b47e51ac4998f7eace0f8c49823623382fe427e21dfa1996b76c2ca59660503ea410b6f6ab31b4bf4fdc4f736a5c44d746c2931cf81b669c8f488b0006dfa05411ec549c2f66c09a718d799c88b3d62b333487cf40074809465b997df0c69d76ac85bd055cb4961ce19", Msg => "a4946aa5aca018655242bf0fb9194e65ee16c4fb848ef3eb7b8d83cb676e3bdccda87c84d1eb0eff0e6c2051c67d897f3b6054fe5c5d7c6ca412f47e400bea3a70924d662fc88d4016f5a26f7e1d4f3ae5d4a8f89352d2c77cca0a8169f8e8ec53fae5310f601c9031864d512a2227feb319c7cf6f977c66cb5ecdbc2a5ebd5c", Mac => "12b4f4334e5498393832f146c7e5c0afad6ac9ba02021363570090a9140a786225c48d45018ecf58"); Test_HMAC_SHA512 (Key => "d6ec1de088eb1b2efab889a79233993cc211f67e2e7607c911c573bbdcb7e0eb21aa01d8b03ccf20001916f3d01134c60d6e1d4cf784a3a28089f5caf4a7655adf506e752cd2f5fb8a2bcffd141e847430865232b7eb75185753a68a365ae220d8856c9e43d415276196bbada58110acf1029c18b8d2069460ca8fe4eaf8dfa5d4f2043b3e6ab80c4d03e2", Msg => "9638216939c172f74e845ecc4486eda080e6d0345305f29329e94f9703e409b02770b8e1155e020bbe306d6ef1c3706d1631d0911ef52ad1ba50cb11cbecc8e81ac04ca64a332c960b84c1809069f67242f6a0c0b6c10e4adc44e1fd7a821e9dd9ee82c1bf88161f9c49030908c1a6386dffe7c901b1c785f88c3965f7ee3355", Mac => "11304e9a457258ad7be884ede48b466b976b572bebe8a615bfcdb8b6e8758ecc2adc99bad372fd37"); Test_HMAC_SHA512 (Key => "65cd0e941290a0848c8bb67080c603caeb5719718133e62650447e3fa1bc1b9f1fa861e53bc8e7e4ce9ef45400c586c66a8499de77a3a5bc107d69bb7857e75e74f0b087b05961ea5e076ec220271ec22831d74f9dc09cec41a1d4f6522a4d91aecd80e23aed177f83efac23a695d4a76e875c2dbd33d29f2dd74758f6dc542013665b5ea0290f89877e37", Msg => "6eeb152015e6939ef579840d299f0bd01289a053048964043e2eb19f20b1f6af988fc252de781e3c616820fe0114bd887e87dfed300db767f950559b79c1761e80399d37c9e065e7e54f152675f175709cafe080b4cc9b5c400d6591221e4fc00f31ce593fe80fa769758a0dee00da8f5548cc93f78eb6e9fbaf0a0a85902a9d", Mac => "1685a4dbc1af73b97a2ede015075dd73d4a07b3c059850307966ddb9d6fa82f520b5db07f5e9fd82"); Test_HMAC_SHA512 (Key => "7668d18d60fe54739fb1286d927543268a6918d62bac18b9167279c1c5573688b5f35788cbae728ef1d5726c00ee97eee249be10f8d8e36eb940e4fc9c3087f738f2bf1caa402b173858e03e3453687f22b20a971d3a4c857602b73f9fcadaa3478e92b0c75b88f6bd62fa4bf64bbfc092cb85d462795ee795dd7bf194ca36732aee56aee8a88f14c81949", Msg => "338ca368ad156741f6018e48a6d891e61ccfe19570ed7b2fa96cbd6b306278a485a146dd31db1e03fc0a25715f0ec7ba3c9807a2cd48136ddb121c5d30e664764e90998461dd615f73ff366edf32746a08a0b0644a824c0a31894826e97c5b67f6224364256259dec3a968450c8cbf7ee6af85e4d0e54d8d1598eace456c8501", Mac => "602d5b37355707b54724bfd1416061ab895d3d7911d8fafd1da25e546aa07db0f2de49f324ab298e"); Test_HMAC_SHA512 (Key => "3ce78309d9f006e07308508ffde48da2a58aff635ac0a1f38bc40a9a323d935c1272bccd3cbacc26d833b89722b746dfb30c721b025b11db2ae4b47beeefcfb1fa061b626b6138ba92a2977bf5c39795974ceef87ac94ba6617b3a0cda4e47927c0b66716ecf92c429bcb5e37eeec8ecdab03ba2c9f0977bb9f162f40140432821e966a14bea226e23e8d9", Msg => "768aa679f74bd6cf8822f6c1fc221b20b4be400c1e38e9097c5c0756e76d1c7a93609f1f5448a2236112b2ed5972fffd831dbdc75a39c9c2491190bcb30e2d7036e3d15a310768ca83687938965e4ed79ddd566c19f0c761a2628715e4be4d77e87b04d3957070ec768e134abdcd52d58867d4a364452b0f0fb6b60b8367c5b7", Mac => "37a6e1502f0ac608701d68b4fad3b9e80121d4eb8af7573b6dcb5162121894f6cda020d44a74ae80"); Test_HMAC_SHA512 (Key => "9a54c64057af3f7bef4797501ef71084dee1166a8a037c11430c09bc936d339250b22a97c31318db0a46a7f2bb98c5a3ca3ca4e4ade30407bd8db42ee09e5604653464af2fb8700016b3b0ed8ae3b942798f8b937317ce750dcf5bee830dfe29a1817a6ee3c5ce52db35b72bd30176c7b481d35e26c862c4f97b05e3c4e4b269cb4277be2663bb392075c6", Msg => "0b6dfbe3665881bae120b8a3ba1d6bd0a73ba5abbd4cbbc68fa38c159ade085be103efe2d4cfdb6f764a8175bf9f34893f2bab1605d40352bf9c07702375b0188d58e814e991934cd35dd0f4fdb67c04d16ef9e8587b2d795b92cd2dc8f7db8a56936de16c47b13840802e883c0b4c29a52b178a7ee94025aaac64b25209919b", Mac => "fb4cf434e81cb3ea9ca88dc827b799d45f0adabdd3be3722f7b5299bc3ec3924bfbbbdbdf2c48c9b"); Test_HMAC_SHA512 (Key => "16d9fd38c5d4345c381bbbf52952375d9a43db506923964d24168a3f1ef6c15dc3501b4f28b08b92e71f831d29e9ad4504a4dcde086d42a31475e3d86ebd492d131d7ae64c8b2739829a26f75341236fe6de92907b7ae74d464f0a467d8705a4b047004459ec7019b4958bcbd0e1ffa4e6fae3adebd2ee1461ace7d172df5c893fd697b3765ccef922169a", Msg => "c9da201165a6165755cd01bdeedd817275989f68e1a7b3aae38c85ef24d9b26fce9f51f54d2ad73657eb386129b64ff7142e80dd397d9cb09148045830e112e0cabfb484762c5a0cb23e1359a708f23eaf11b7911506ab811cabcc2942172a66c52191e6671668826eadd9cef03c33ee4d2b8cabfda9aac68c9f248be2e2c4aa", Mac => "37d2820226c124868624270db08a64d1c218f34e907c8c7d8e0ff52e0ac641e8bc6b384d6c536e22"); Test_HMAC_SHA512 (Key => "f543ca501f80215b0adbff3b3a1822877c1fe3001c5d0d175967efaf16e0b023d29ee38bda085b3bbdc2418d018d63e11468cfe185fba10a743619684836f1a0a068ed348bf0b303fb4cdd0f77344d8311c5c0f598dfa6e80ecc32955c22adeb45ea0fd49901d0baabbffc4a04d78677597edec2bbd0c5b90e6f61bebc6d8c0aab6c72f26c035b68b564c5", Msg => "41b7a26c17ed19ffbb2a26c6d9b9fcfc4d596cfe93e3fb0b7f2c38482e2d4d073c61d348376feb8054098a9a6114143cfb092d4b019bccb1499a905e9117588cb8c90e482eafc32ea9f70174191f5c2adf5a4bbf393536c8017ad0fd9854a7841db5fa73e2f5ca9020bc335be921fd4e5f136f6324f863d71195a02d2b2e6377", Mac => "374afe237c3ac24e36368006609c1f8ef87255b0a25d7bb4020c0defc52de461f21495bc0f151845"); Test_HMAC_SHA512 (Key => "3d31cf76288ba777d0da29e9ce21d69dc6419c153e7a4d2eb02f5001dde9970c659fd08d9535e02f80428de851167a22dffc591982bc5c842664ec779d489e883a4863319b51ff75c627bcc678615f27b9b55b8eb475458cc65a882fd5815a28e3b3ee29e2e9eb91ca0f1e4bea096bf37bf40a3b7baef08eb9988af32c9ab1338868db3e13048ecbb5851b", Msg => "7efcd40347389e6fe10b791e53753825b04d27323bd74cc1ce94ed937d5e535c76b4cdbd2b52f771b4043bcb6ebd9960e9e3a40101eecdec4a31e442b2f7dcbc61d2cf9ae43041dd8b2fa9b60fb32e3e78b5ae673ede0433af548b2490d4def30701e285b9fb071a2f34cac87e7f7f28276a4d4f3cce7affc4a4e81f611ae069", Mac => "0829a099abd50327669d003b67678bb9cfe3559db9fea54b13647ba1db19d0a15b49acce0f4413cc"); Test_HMAC_SHA512 (Key => "77b60a4989c45160c1e2e41978530e6b5b62f99f1c480c57675076ce18390b61abdc504ff30fd1bd0fc8bbfd9b86a60f23ecb368ddafd7f397b37656ee713476c19c083de504929b1abaaeca3e7549d7c134735e5925b695f7c6a68bf94abab2a13e5a9cc66c3902c900e50acbe99dc91d826207f87250436fd12ff7a18c461e330a6ff2fe0f71fa04e189", Msg => "534c85dd76baf3aa0e3cd31ace049d931b39ec18789d8d10426ed6499d8a393caed619930bdfdbe86fc241d0b34af318f9595f4e2b89c383a41288502cefd2172a3c558b15e36a732c7762ab67601a6bad39cfcb47763487954ac200ffc850842f48e3cf7d0cc7d2ab23dfb3d38e39149da2e598b5ad08a37ddc2c62ff5cda0c", Mac => "1577561f5f3c0bf523cd8cc470e9c1b9507bc6991a53dfe2735f033bbf881c513b3153172502c6cf0194fc00980e1fdc"); Test_HMAC_SHA512 (Key => "a18a27748ef39b49be984e8d18520110008bc8a1d5aeb424bedcaee5a7e1a62c8666ee12e367e09297e8c7e3d4e4fd056587509b379daaf81949f27cc0fa2d210e9be951940adbfb55ccc7e5ccffa044318ff18af9ad7b7f9c7d1f939a0fff72c091e1daa7c3d4a97fab153b0a8933f2eb0d721621c86de0cfe100d13e09654824b09d54277912c79dec7a", Msg => "29c4ae3484dc27c0360343fd0b2058ba261ac3acf6f87fb56647f66554bc16c2451ba8445757dd2477fb2ad7d3c856d592a0d29ec3a348ff94977691c58d3d845cc1f59a99c304762cd4af17a69330a02ed9085a75e196fbecace92934a3d33ad57f3e3e3466c33fbf5679c76bc70ba3608c0ee7f2fb9132d44df5338848ff6c", Mac => "26a37c97b7c13097c5735bc31f8bdcdc27dfa96e991219e708c23d1b32c04d88a89a86a1c217724f4ce5bb580a1a71c0"); Test_HMAC_SHA512 (Key => "988deffa74a9cb1073252f9fd70b89ae954b9b44abba7389b55a9e28bbdc99f74e6388dad38b2ae51eaa0dc04356fe50a827c4935fbd0eccb305a9e101b9f601ca269c8905327a29ba9de043cc87fe9317339c15ba0a0c23b6e35ddeb981d2d0345d92d0b3a6a1256e870fee1ba870c107f78c9265a857d6e67a23e98a3d14adb591d47585f0892163ef04", Msg => "6e8c74df65f0a6708270eb9963f9075d0e4f442e4009670f01dde3f67c1d4d740e8210979d2962102bdb7691aa91f3791237a6b3b2b173dbc31c92a34356f87601c0125bf442b91bd09063a6dbac96b3fdada3a717be90b89669565248164db96ecee4f1124595db9b1818a09e53d752f736a3d11939a5eca24d97c933653487", Mac => "553d71c6e005589f195283b6a4b190ebc88a2cfd9e44c7c283ba13666cb032de35a04fb8391fdfa7f29b9629cae6d2f2"); Test_HMAC_SHA512 (Key => "2021755f1edb657857df8ab2ec9a307d9d984360e14706e135fe08a9b43d55e4e837e9e7e08d6a15825d1603237bfada55fe64fd00ff9cecb59dcf693e444cd97a30f3ec682ce98081a091c34bcab8982b4c103d7ae7e02adc86f93ccd7eec127d147ab8de404c82fbb0e53b8b10d47fc6892e6677873b6353c0706b89729d599aeb68916b4ffae39996f8", Msg => "d6a871085b50187629d6edfebed8e9476d68a512495e652844f25691988a140766d06fab9d086ff61ea196f11e0964a9cbc621dd32c3d6fb60e79d4bc7ec1a69e46f4af81f437b95f30b9c0a4e08b7c43b2fbc88be7f8061ff9105ddab71fc7898ac8859a8aa453cef3e89b0187cea8204cb0079b53b6c436b1818b00cbfc11e", Mac => "2f10f4d5303c5b237594ba5bdda13951be2fea63c02e0f2c1821c8798dec4dc7927b41bb7c41192f6cb1234a71de905d"); Test_HMAC_SHA512 (Key => "b7c3c673bf96cd22a641eea1c83f036e79289af445e053607c0f8ab0efd2360cf4b1115ab0d0fa0d9569973d29793efd09ba16e92ed279fe70ca9daf48c17434dae2d0263393cb49cfef66a95e7770e8c704aad66e012842b3d6fa10bba70c8c723f4bfed047097f5cbca30aefa061d6bbef9de38bd428d34c1de9fccdedc7bbc3b0ca0b10547c5645b796", Msg => "a550b9edf71774d43ca00fa13da13ad1d59c421053b193ab20b87b44a28c30c95fa915a766fa393aebec208831c7c730ad3ee29d6845687fa522517cc4c79f22665f9b21d22761b7977f9e6b734199fe7451709f5d75a45e4b67d8e39829d6600099d3c40245f432898011b1ccb6b82573fc757efbeb502f5baf98e1e85bdf69", Mac => "8d0af6a102ca32bdff8862a35f59726628818a3dd076158eef955e58e52a15178da59d8453882bd5af2dd84da7eb8153"); Test_HMAC_SHA512 (Key => "41d7851e98c51d6da7e612c43aa3b87d56be5a01cd9373300f9d2003433bd66f97b4508dd479ccf935ab777879dd26dd371b462d722b16016d12142cc0dbb49eac935888ac987dc14c1432693ec4cfccabfee388c7f26ef3a83051b7586a02bf297b845748a9978e95272cdfb2de1b115a6e185cf56fe4cd69fcc0ec3272279bb575bc41d1348228b8ee4b", Msg => "767c2c4723f582437374f26bd6fe7e85882c6c9707d151a9cadd6fcb3081405ab79453806e3657faadb3761e03aae41c706eb784d4acf908a84efb84eca0ed3b60b1ac63f7fddbe58948355ec8cd216975988720d431e3e05d7a984db4da8696db9bdefba791358c70fdd8330db060f4ff748674eda738b85129ec30707934f4", Mac => "466b3245ddc7a5beb00fd06ab35877ab60264571f16a1c5d7162442dad42a30c3b4a449c799846e44c96ba43c8c9b039"); Test_HMAC_SHA512 (Key => "1c458931cd6ea07c7fdff6bf29c5d7a42033d8fe38b919ff2c39c8ab40f6e68c24ee4ea81c6af3b05ed3697abbc7a7b1826c0bcca2049e3c0ec29aea66dc29e0d3e27046334ecc91765c5bf7471cbf26efc51e35774c6ddb0d35efdfaaaaf8cff1caf7f55943b3878e23d51e15eba7692fe51b2301b80f42f13acf725385dcc1454dec9cd77131fa70cfde", Msg => "47c39405f78038cad3a5dde2bba4fc6f93df3e07e9be4068d8ff93672c4e082ac6162a9743960b0cd8374451801d37cb5afc97f24c2d2b05ed01cefca255bbbe0766079490e76fdd70515404b97b04b0c56a3b3ad66aea64f95d36483054c48ecf5c34e2279beba5629b16e3aee5eb869ed232c9cc9e05efc4bed4341d73ac04", Mac => "800632a5afbe6e2d03bb2cf4e930b675864e93bf27b679b625f0724f17bb4a66e78cc06facc19945c46768832026e05b"); Test_HMAC_SHA512 (Key => "0eb602843c11877141d8ea6069bd65b7556c40a640c13dfe8838344769a5fb0d0b25887abf545a2a85c0153ad39e6ca291bc43c568b715473c6e941ff7b690ed89501a8d2d18e9eced7efd1a683a81a1d33cf6163ee28eed186ed691f6b798b5901f00e40cc4fd6080fbea29b2fa6e5c22d4a1be4aab7099242042c7ed0fdc0c297a81a9e7c25e2d461d26", Msg => "67818341abb04645ef2a3f5edb0ceca2725a0f573993f81e9b88066b8c6d6c386d3131fb2f0b7bd5bc560c0c929e0dbbb1fb0ac8b89d3f174ba912fdb744e0f8d9ecfc9d3c0ff5d181d6183c044236fbbc7ba89563658f31d7736006c1c0a112745ced0f18e33ea307556cd77721f0ca5a83eea7821073d40990fb6cf00b36f0", Mac => "0216330dac742a5b8023fb09812d8a08619047fd28cadc12f37c4443a9263262588d0c43661eb7d6b36a801dbdcee794"); Test_HMAC_SHA512 (Key => "2c5354e0c3f86ebee987fe9af1db03c7f376877867c6d325f3a7df30822a0cc99694150fdfaa43770c2ce172e1a0f04a8a501c4d2f96ee2ec85742a833cefc64838bf71d9cbb3e02fda97f5cdc85bc70786544a7ab89e2ecbee3545682d6fe079c3fe05421b2c6266306be9f0a13cf0166bae8cc032617277e52fb8198cb7c7889b8b9fa971742aae64988", Msg => "f784430144b3ac1e25ae26b68b30ca8c012429013417ea2ab2eeb426f2d44eaf957704eeeb744d94b90fac263928d498636b0f1e6bc6e03f8b20e72b0248064e5d2bc225f54bec51b96c80ea2d90cd15b326d6d90a7ff92e1481ce57dc9f5272d709454e6a1fd07cad2c6ba96f51fe2b7abf46d917297b20d57a305387c37a43", Mac => "993a5bd06cb1062b06a2956744f0d74b8ee6416a7e9ca44964953684d47250049dc7f603bd4b7e541770326cc0c8fe96"); Test_HMAC_SHA512 (Key => "8b80d993c7f44057d20e8123f8377347ddd4f4f96f6e7d991810fa3a38f1d85dd2535fff86ab42d7bf0274d92d9b3efe76d68f4728549300f35c8642157ecbbb157638b1b453b54521d805f56c22e3653d8b515fc6cf2d18f66d05b5ef502c0dbbaf0db13a32c02a5f56db819c128b059bbbe3482f25736b8a0b1d9bb0b024dc2cc7860501908c0ce3459f", Msg => "003ec4e4208538ec15be8171a8e1cbbc8e19a3f4e26a0ce4d297cfff984312a1ac562c9837a2b8e3cbc7e8b952531dce452eb4d11f36223910264341f5bcef31881bcfe0d46e6e77edce9377dd66cffee1d45246d6d3026eee17cf7da77940a4fe5452c3df2f832fe19c2ab3305f09d4cad32559ef8ad60bd2341aba95c22e80", Mac => "40e8c2efb1083622a677b59fab9c008ea81afbc58bf719674e6a71bb94eaac304631427abf41acb3c87dcc65dc485b62"); Test_HMAC_SHA512 (Key => "0fe553a781639eb8b8c2b12aa091f59502c1a01ffb4ed143ad22dcd13436e236dbfaa6fe90f79b9796b242587ad4b2c148897805fe26a2c5410e171f4fd62ae735a76e3442e4cb1fbb0dd1c7d0e44d99cfce1ace987b3a3451c925325be6610684b553527e7455d7909b09808b07eca200572e82b097c118441cb0123eaeb21c30edff5f2bed62477b248f", Msg => "1a84994d864a65d08ec6735d025837e91730abd5b958441222f5258aacca94bbe3fdaaa5df1e4ee7d1656425db3b41ac25fc62592dfc5eb75ec81a67e5ae3cc5c07fe2c81793932ad00e76c95e62c14ed915750c54c5492b6b69e3051bd94ed0d791a97ed7b11ce1b449111332d4a0155c024ab6d7bbebb67060ea2cf754b325", Mac => "1d94fc28212de0e3d3254b7edb00fe55d2a0fa823714329b5a2f7fd502d4c71955988f54e6a08929b687b9ea47448d5e"); Test_HMAC_SHA512 (Key => "c0fdca48cc354a8cf616cdce0d80c39113bd5f0ef163ea346a7b5ced4ee22da3f0f06903d9580300be4f6b1bb0f162e293e00eb7d12e49d3507d3f8ba16438d17a15b2fd663db3cebb2c5dabcc36c32f6159fbe564207550ddc68a2f219f58fe45b4cec0d9ad03fcd3f5cc06ca188d7f65704f1f120013b2fba06661365b36333b15e4d49c709a94f0f1df", Msg => "f3ec088ba8d08bb36350413144d285479d39408abc665c8904fe7caf436eea6b3f2dd08d9241acf4b805fe66672943bf1efa274e01e4f77ce43555aea6232f6dc011f2c51d0efaea2d9f4e2235be8adee9221c2a3cc1b3487794f598889a71bc9d1fd4f8f23e5fdfe7a5982c569840ee233986e815067a37e4a3c43593da969e", Mac => "2881746de7893d92c0a0421db7e7325dcdc4860d3b10df1270c508c531d0505100d17d48c2e55766200750dc03e1778d"); Test_HMAC_SHA512 (Key => "05d2120be33cff0014bd83a4da9e8eb642c248534e3a522252134fd09f72a4bc5fe47bf3c0ef0e5e55ed223ab91ad1c975eb8d4723a16220d41f7b60b0f8e86bdccd9feea1d6c015cabe1dff4db4f96f2ebf10c4a151d82b6f2007139a3155e1443583e5cd199c8d3cd97bd9e0958d0f37e6d8b00e723caaeabef9cfa74472865fc631c18de12a2f72e544", Msg => "e733c695bef2faec2b99794ea1a06f8dbef895ce2394a630822813aff831f7479e354d5c5b4c6159fcdf849886b00482ca1a5bf73b9ba7f0fd8f5a623e3e3366c9196d98d84136bc2a4962a8563d615e5fe36e7888400ac96a5ea941434dab1191688d10e0d9615de0607b46ba506e69a4da3719b48db704f11e6712b0654790", Mac => "8ef1c2ddcacb92e5a66d02e008d4e6830c66082a1188047826a3c08842c126c3d0550a41309fb69c5fd12d5f0eca5187"); Test_HMAC_SHA512 (Key => "1f2468935aa2a207dac977e94f5b31ae68191bc5e9883679fef52d18ceb78b5554b42ceb6a27f18327a0b8d86b4c8c19b876188f444e627f4ce9b652aa8adff3aa209e791a0f5406a03302ee5122731c7eb2b8b2d1bcd5f0991fba576307750eca6fa58490e43257ed8c3b752668508162d6e278ba5af7948f9d227020b6b36e5ba92b56f42df33fb5b34d", Msg => "ea2f8f950949227cab95e57a1c421f4880f1bcb3ba0d4d978d5b4f0a01d2b0d809ac8f3062bd449cbe04a0362280751a8d445917dacea8aae795c82cf7e1b14a55dfacb63bf55a1cf153f95839cbe3e6ebe25799dd277c9005c3a367e252cdaa17f16d8f5a986fe48cab784629cb7094e3f23ea38abfd2332f0e692289cc0ce0", Mac => "ae673ba704e7b8f7adba1ca451c96c9189456220c8b5fd8f3cd87737c88390b250170936bd9522dc021a1d1593034c40"); Test_HMAC_SHA512 (Key => "07d1cd3f695b642016a3dc06b70140a2cf3d479dedf42921263db19ac28d93be36d801cb53f9790fbc54e1ae9dbad5a09a8d40f90624296d5670d013d5e0fa6999838999b56d4ffab05b24da369a367b0e24a15b4c0d40b8c81dc254cebf007617198d31f87d8fe8da00ce12ea680b3b124c934b2776140b648caee517f04dec9ae4371c85f2e1e2228b07", Msg => "156fce19f4609057ee8df69cf72b33e27026509c4bb972ee6f3b5c1d5e3c344515d08a4a342b96105e6ec1efe3c168619ca2dcfe177cadabf47c280e8fa01e45e011e7d79fb2a7eaabf9d0b7acfee83cf7d18d30b311b63c3aba3b68c23f98d43dd9eea87e1e4a4d9cd52ade9b093dd9495c6b1b679e150b099e9e1540402a5a", Mac => "f3a6a3c11b618d5af52ec6f501a6eaf90c889297316a7ab6ae3e2c65da06e77338d92a4ac0fe44a96340c9ff18a25f6c"); Test_HMAC_SHA512 (Key => "a08e14c2671ef79f81f732df2df3835ab0cd0db9e190fb88eb4f668c4f1778562822d218b34d2cb80ecc3b23401dd8e47a3a5ef59d1354d4fb3b4cda62e20ac95703e9a49fde7bc304a970265583b90aafa9edbafbeceba8b863c1bcfb5dccecb399210d32ba2ce8e9f59791730d6df4d68180b10504082aa92d8cd9207006e8c64d42fb74c78751471879", Msg => "0fd5e53b9797cc3ea75fcb7e70a93b80b54091762b0bdfb7252a9e6d7042aa8d7c148e0dbd55025151b9b2e6e3524172cf188eeb87c9360835f35af5a24ea24b5650813f01fcbb1a19fb25e9c5edac75fa019975e3c314038736e64da623838de3b0473b29340080474aadefdd2585707c233b7c09a48190621ccbdb4467553a", Mac => "b07d4e89d7fbca2db335e807f9ec131dbc75b878c513f6cf6595d7545571fd1361d8229dfa6949cd97de564462937b35b92320e3ab30d9d9"); Test_HMAC_SHA512 (Key => "ec4698b68d26f2fc0428f413a0ef0dc4d6b0e6233e2e8b1cdee8cb4fab90e11e4dc0540323e91b27878c053153ac585ca383b8cddd744b23ef411b4fd87ebca66a452e344e2c04544874c67ebc83955f72940d2f96ae703f03d200d1c179ac2dcb3eeff116d7f6a9d049019fe55c0bf5c84dadf070c44097a105427d6c6afadbf9115fe184d2374ea6747c", Msg => "f1450e17beb57bdc8e2ab1b9b6b35553993681e8cc080d8578bb0d7900379a09e40cd665e6072adb6b04d24b23029cdbec7decebf4f8044c1ed982aca8792a550a7ce618215e0b838c4fde5b57415746d63f25c7d400f16feebce752393e73b92b3b4816b8e2a73dbbb4ded098960ffb1f243262b4495d58ad0c4352fcadfc9b", Mac => "664a4b280edef3004ca8032a424206083baf4ed3f055f1958d84d7deb8ec7eab7f9285a3b0dce0997c07b38eaee1853aa5c6de7989338d5a"); Test_HMAC_SHA512 (Key => "7ee879498441719e0d48af2010edfdc5b28bd4715fb214d21a29f7881133488a7512d0c588ca1206f82738196b014c335bbfab8d241ab7525b24cdbb628877783913e253977392103a3f54977b38745525cf31df87e76ed8c8dbaa167bc3320073f3953ad9c559857b99ece06719ddf3b9c24caeb1a0a02e095878e0856ce3e8cbbbd3c47547cf2c653be9", Msg => "378385ff81dd16b3702920075bf93f3c48c658aff7e3c46623b0b0e90410c353181d02a8231af16975a8fb666b3d14d438d39d9fe5dd8802977fbc5411febb25797682895fcbb1b4fbe1ebc7b61080eaedd2499bf1bfd44552bcc1155d6f6c09e3f6cd4a3cd89cbb8c3bb8d24558c9a7ed2d244a2271f05adbcd87d3f0491f28", Mac => "0c79d26868ba4802dc8af7d0ac89b608b6a1255f005a9cb65755ff98c4e6f45dba10dab91d0bdbe9f15b0ce693cba841c0bc12ecbeef8227"); Test_HMAC_SHA512 (Key => "97449ca6c272484156c84d60b7afc1cc59546a46cba1df1bf56beaf89eed31003175151cc05ddb92493d09da385f13ad2e73375e0184a66d042be45a880371b7a25ca9812f34e9b01663f30dcd1594441f7d843a2cc88da0b150efc9891304b87463207e18dfbbc345a1d2a27db98abab4da17815454dcdc8442d3edaa05302c2ef141ba824599f25f616d", Msg => "a0be64e0d1c2cd877e16048abdc5f7f007b30964eb83643803b78cab28193a67e25a674e22faa7763467b872ef695bd42fbd62ef85010be22cd08cd23f2def762a2520d95fb0455b4ad94df9861ecccf511a06db3d61490429ac815b703606a06065b808eead4e3da7b2eba7eaacf2ea55101cb07d6dc8a8e29392cf22fb26ee", Mac => "978c5b056ca1342170b158a73704c35885f5e8db7d76c2fe74466913103df9dde24e1100413bdee4347771ae355150256a8df0a56baedbb4"); Test_HMAC_SHA512 (Key => "c52103e948ebf17ea6b3303a479580ad0748c9ef2f45aee4a52c64bd5f64c5c21d02a04f58ed541d753f9dc33feead7d94ab7f2b5e0a689dc6e4ef0da4fadeed39da99e42007af138254af9c8a913d6518696419ba8b2e70d80872b12efcee757f7195ad88802ae634b90ecc0ec657edfb4a21c0290f29e6436198afe7b51ce0598f3db479a2ef20f23863", Msg => "6f8f23414c2907bf8c753b13fd1b9e320fdcb80f366a4211907de8c4c8234dcf3a57502658d68e804c2e270cdf18c65f9907dbb129012b4a08ae8b375aafe84115308b2064c19beb4e61e4d393dcd611d658d11d012aa021e6ee43ad22d6f1ac47425d973a9139e8d937f8d2e110d92f0ff521ba868ca77e7164968ee9416ff7", Mac => "d65b12dc067e2b1eebb59c6aa1b13a02bf7c2841422952b4379c61324897b2906832dfde7797a644f5ed9eff9ef0dd723da7fd2fdb7cc120"); Test_HMAC_SHA512 (Key => "ed8269eb2ebcfda7d381d4f8a5049edc74674c905ae675624453f8c1adc2e396ad8593d7335b1d588ee4ede53358ad8fba79694329c6f0a175f27d0a469496fbfb20359aee16268ff979b015398377511197a1e2727738b95ab7cf2b9b726944de3b965fe756dff31b2964b03fedc4cb82a93d96be611553fb8a384a35c222195fbeff4ca784112dfcda53", Msg => "23fe5ba70eab493c715416c16050096e00be19748e760c8fa23fdcdfb5425ef4e1be2528e9fea531798894f6af9896a2d9cc18f781217ce6a71e775c4d4fb85e39f5cb58f6fc3cb21c2dffa5d1a50f4d908656ff29eccddc0923e4a6bc1724d3b00b13e03c8e58e8e0ab1f75cf61bf96aa539a328fbf459b52b4ea660a80ea7b", Mac => "8749a3f31a8ba6373caf881459b4bbe7b57a217e399e61c8204557c6d10d45b9fb1bf4682054076fcd8b4dc5472a865b5c7e7bdfed9ef420"); Test_HMAC_SHA512 (Key => "3e0913221bafacfce39482279ef2fb3f06eac4153b6c1eaeb856788f86e04337af3702eef668a0bdc58007be67f1ee967738f23f99bde90b68fb73e5afe0d1dadb77fbd9b0c4ecb73cf0417609a602c797bcc0cd0916e0241fc73622647ad65da911266db18b38f32e2b57daecd6e0dc4dbe5448f53daa03c603eacd0f74f7c6004cac3162852b77857a72", Msg => "82e05400d01a7f3843b02d191cf0477e1ab1190c9be39e69056afea9642d55095569b6e0224c70d22ebf8f479483a61b0b7fcc980d58e5a13843232ff417cc0256a73d90444e2f42dacb39df0d4f96488ed52967f1b2be620f6d9314a9d017bd4e3ff1f87e4944ee0f7d31cad07f9e6d6d5b36629218b1145391563ecc80bea4", Mac => "4b80f01d188bed5cc7aed1e9f5bc16595df37fcbc8732d668d228d4cdfa60b66c4d9b5becacb2eafc28c31db904c41473b31a987ff46d3f6"); Test_HMAC_SHA512 (Key => "af28226e910a27a751c2545db05f91b1dda4a121e8ae3f5179d76d0bc2db0984b239a1e16bdc88f9f7fb295d363e9c961b2277ad189ee7f1d707fff42b314fd746d7b9c72c3c80c86813a2b1fd9c68789f113bb02340b950357908b649aa6aecd4c91229bb72379b0bd26663ecc31ce2d0389433f0dcdef8f9f6315a0290824bc2d8550e00c6d4fa4aff1e", Msg => "5ff266343b057668b2a5c81ae08ef906e178afc639eb22457355dc76095abd46846b41cfe49a06ce42ac8857b4702fc771508dfb3626e0bfe851df897a07b36811ec433766e4b4166c26301b3493e7440d4554b0ef6ac20f1a530e58fac8aeba4e9ff2d4898d8a28783b49cd269c2965fd7f8e4f2d60cf1e5284f2495145b723", Mac => "047fbd637fb3d82f6eadc40fd8ac221ef3e33cfddf6f4cbd8be6ce0e2278980c241a70962efa61b67ca13b8b15222b0a589df4f4a56d8deb"); Test_HMAC_SHA512 (Key => "8b5b16537dcd2245ac73db5dd4e6febaadd025ddbf663b52783233937c16f9293c8ea914ca35006dec8b104a6ff537e2bd0551f2b2fc2d5fac8d3e1ce1e4934ef6e709aecdbcc02f9e8bcbe249852c16ea25ffc3aeb5f529e61504b45ab85d23e0ef9fe92d6a4ad3eafb76ec0b9ec59e5cb796195c9a7bf94f50ee228f993fef232dd18d924786a1f96478", Msg => "ba33904d04c8b08bb2c9d104f62d579901f0a23dc8c3ee4b0802771d87e6e1da9efcd88ff4d5f4828cffdfc30235b90311d3bba9598d1b235f5f307ad6c7d72a1d33153008b5fe64e3fed509b48a74a3c118ee08525d74bab8f975748eaa09033fc09057c9d196dac0adfb019594502018a783823c9dbfb91ab78e3339f6410e", Mac => "bc6f6f9ad5bf623506f1242364e4d9c94b8624c86b08a9af59bcdefbeea09bf0d8c7b2cc84578b518945c67abae81f9389b17c5bc88589ff"); Test_HMAC_SHA512 (Key => "b39b9aa4e2c72a00ed85931dd26c6069108aba7cb0578aac86e8dedbb5658e9471bd1f570998e730248e728e4a962553a7c121280c286b133722494b54bbef4bc4625a251ce27d1971949b66d3d2f46017aea3c3dae4c747c20ee17407177db832f215b7258c32e25cffd44b720814b7e7bb08f52075e76faf136dffd561810445d516b42b7e4fb46d37e6", Msg => "5c3a432b965ab1b6bfcbe3d2902895a2af56a8ce3cc560dea6f2cfe7c431916a21a9ba7997a00d1b1ff96ff2e7fa9b1ba55316562c5c66673c9f7fbc9f967e4f71b699cec0ac56fa55e6fc4dd05547dffb71608a587e0c4cfc0e24eea0c845e3f667c8733906f519089a732974c003b558b96fb2e9b2bc578d49a7c6f14e50ee", Mac => "653cde316c2a653cac8b1f6bf9bd5c870a606def9c113804130153d76df6ddb51109a96fc022acbc020f8688029f13e0cb0ad67301a6c4a0"); Test_HMAC_SHA512 (Key => "e7e687fa0e3d5d25c5a8a8dd13a541a9292e8386e733f4f2a2472844259ae33ef5277ee5da2e8c909ae5bd40086b022f3dfdf1ac266c6c253fce7d869d7485c2321d96ae4d691d166091c40b0654967a443564030fe368070ff92903a3e79e1d253096fd6fd758de9e1386e5164a47b1c63da433ad8133c09c2ef3643edb787a57c94879495e8411dcd5cb", Msg => "3d0278735b4bf056152f4e5aef2fe220541b0b1c3828fc48fc43bc1a92a470b3e1a5dd596bd529272d48e103c63241d1dcb4afe6bcf688c040761ff4f6a003677e9e81c134716a1f10411709caf1a9a341f795271d6b6192b35da89e2a6c64f1dc946d94ff483ca685c1f5524095a5fe4a8bc7c5a4ae0e281da05e0076311bb7", Mac => "747d22793557864754598e570379f66cc46bc439e68638f505833ecf6c51b70403315ff216d6664c0c9b3065f8ee9a48077b23a7bbf68562"); Test_HMAC_SHA512 (Key => "1435f0178e91c13ba11f03ee55d6a4fc9df0c3943641b840d2c8541a7684693e21888d7bae521c4efb597c104be5a56ee923e01a0f79cec00517ad3c8dcfd70a7f268bfdb1abf0341987574b3656c1ceab35a1f32e1ce388a06f2c2a7dcf64b8773672075e4346d743d21d06ddd000042c4e8e875bd3fc80ebf75a4d0e2d183051e1c8007ec3251ec16255", Msg => "f18ab3088ab39d5ba081437d3bed8561d3a03e06b5c0c6f1a90abcdad22102a6d52508953e884ebd1f1d24b7f972b598e0604322dbe0b43c8a204ea00bd7bfd41dd5605b86deba2cb3b84a639f838137f6490f2c79d66189a4ca680d8eec9dde12c142c22c5eea91a57a3bebf3c7f3265b83298a5849d6c1402e93892509a4ac", Mac => "b219778681f759a0c9ae6b9a8f74d282d47c0278184c9c89629ac8be7cfc7747dc957ed94e5f1c5c6cd3081f98c0efb25f24e1c5d4984a71"); Test_HMAC_SHA512 (Key => "67a259321cab0901526602d1ebbcdfe5f21d9a5bdcb9f3020ef3166ba0127843613a02df1b9c711918e9fd5be40c38f955183ac4c97ffbdcaf8600c549f53abdaf132b4d18d14a1f5546a90f9e5bd58491c8fd01783f57f7cbe6c0def60ba3835b141ba49bb45cba11654f16a0127c2faf132d3b715fd0fc6afd9edd2fbc7a3d6d241c0b2cac6e93552e36", Msg => "8f18140963d761c2956c66a83f94b88c42c0dd70e7200b3bc60031b1e7573ca1289d9360dedee377bf0d2299009aced8ba46761892377cc3994719be71a2a19cb29009128b8fa6abada537bd64f4269c078f0b0d938c72fe935bde7443560ec4f4987e06b21331c725ddaefeb5cb4941f141a339324874547be188b9a49a0881", Mac => "8b534eff22fa08f408f8f7ec5b300a5320ca0df43d41b506a38315be34536295a1e1c7b5bb9052d2be32e03fe0a48f6071d870be71ddc7cd"); Test_HMAC_SHA512 (Key => "e6965a05cf02e24aa7c20ada24045aea3746678a3ebba7297bf0855cc5afb1db7d24baccc43ede45eb58210c2b199ca19798187e4ec4db9df504c23b651a90dca04d868f0ac73473d63c8e7abecc426df72b493064ffbc480a89ea9ac488a775375ae7d309658bdc4eb57aac43e6f4563f452329e632f332a0c924014ac19eb02b93042229df8b893c0c0d", Msg => "13bd4ca671b6688488a34f05a5a868840a1395ea4c35ba21fa7179cc7f9240354a6186862c78513d0151fcda92a237dabaed4fe9c852b05425a9a8bd37cd6d12843a62c01bdb9623301d8d41064844b9120f6ff65d6605a82a93fe75d9885ceb0b7068ba07883e205c308ba4c842960759a27d78d216c1075058055c2d6a13a9", Mac => "56aa0a589f3f732d3828f8ecee6b22ab6a56af8eaa07ea840e61336abfd5f71583ab2577a3865b552c0b0efca3ce988af9096b8478f0677f"); Test_HMAC_SHA512 (Key => "45b07738277c0501b83ca6bbf19bab8544d1bb7e231a73dac16750351c54cf263b5bd218b447465572eb0364b513f3955abb77da5d7f06d89c53183ede744256139fa2dade807d08506d27f8f754232e17f28c6c3746b3c9df460a07a1d0412256e3ae25aa0ff241db2ada20bd45837702dec2dbb858c2d513a8ef386d5013b28b91bfa222dced29998be3", Msg => "246690b11b6910d8f438d91d8799a8199a889a4359d942b60020f935dbce756c709c9e78fb2d9caa1aee3588ca42561592dcef53fe6b04054f7d02b9719d4f062dbf2413a0df9f58ece414a92dcaa570af00123a5e0fd2757d7d62779bf1ddc3c397cd88f4c6406bd0e11f86987bbcb158beaa005f0dd18df2e8c1774210472a", Mac => "6507b66e18d6927d0b525ad606d6dedaadcfc31e089c9038f5a364b48b97a33c1015b8441e9c8207a635a1cee6dbb4ffce58770625f7ecd7"); Test_HMAC_SHA512 (Key => "95af10920dc788269e70b8560b73135cf7f6f5b04a502c7bd61cb74f3b8ccd160701224922d865636a860d949ae755b970d3858c0ff37418a2d24b7142378ba11ab352e5c876da1a076642728b73916b2d24f8024876572363e7036510cec7f413ed28cec749ed33be3adf56a8bece597612d478bf84de85628367946df887f73dd92d6de7faa896d7276d", Msg => "61d91f317a902ea0944e11e92e6657a589e17abc027fcd869ff8b030e8870662f8a9e91ed3239cecfa42c0343d66cbebd1c2b771a25df7baea5cafad038424c97afb720e644e7d1bf5b829944ea2cec69766e68e4e580976de071c2274c0c5eb0e5421c9d51bba76ac39b3d009204680035771d9ad79eb02a3805d58e243cf0e", Mac => "6e989ec9cbf010ad6691a672ff4ca90a00275f9ba4c81cd147cc506e1dbc8bc93b1d96a375e493503c0ac697f7c45e4fadf138242df7e06e677de245afa97780"); Test_HMAC_SHA512 (Key => "27e6c9f270b9855c9658ad0e3d6c9a111a624f66fa64a49a0688a49b454733ca6230f451b0dd69b76b275cb241967e3c101b4fe8f2023d77772210a63157854b763239a061eec9df1aa6380f57c6911d23c0cd2edf00f63486218dbf35612a17ea5262878bd3edfb2b3f08ce8ae419dddab792e0c94517fabbede38e574d685546fa35ad37741d34275996", Msg => "df24279bf8277ad1091972b82594d84677e54fe5d65786d19ab5b2c1ae0a3cc9e7abb67f9477145d575e196633200f0ce557bb5278b8902e1496233117a7df69660bfa87068aa73de61e8eeaffb179799f275086029f47c323f6569bd18dea15054ddafa73e89c3a5f61b98cb2ce7e554d5df4cb9d95135a70de33470744c393", Mac => "e6f6061275a89345f5463cfa198d528e14047d478f69ad7a73432f18f88bc68a1b8aba2c3b025c93b25deb8f403763a55024408a97a903e95f0cb6178e7be389"); Test_HMAC_SHA512 (Key => "59aa9d7f583f6ab90b472935aa6dea95e2fbe402cbf70c6e1992e61c96c49b63d0304daf0e4da7c889c7b857d92301a6aea3cca7c069c03809deb3a53155bf6e4aec984bbdb31c6e84112c089a63bb0eb0e5243d22d6c15c29d7b9c1529519162fa7275d4cbaf33264eb2e50d5743f57528b94cdd8873662e345a178e1cad2e2e729a1eca3a7519c921e66", Msg => "b9a8865c3a6ba8f2c13f35730b39fc3c92405c06bb6e116851b84d9d32d20a88484d9ff5bb03922265b4ae7e87f155b0ba3917db28638321fb3b3c661670505603aec6a92d0776a550971ee52d68b15a8293f28f39a84231e050b6ce59316dddd31221fff940fb846830ac316765b940d29416a95807f7a0e73fe35f63dd0a25", Mac => "d78285ab97dffed5f16d00a7f277eee9e9bbbc5eb14fab10c189739965fb3dd1c196fbe3b01363260bf688955278884812286dcf81c25f1eb17cd2503ffc7acc"); Test_HMAC_SHA512 (Key => "51f9ab865146187fe650e49d45421fff28c45c3bd8c465458b762d93f199067e0afd14ec3a42022c9fe2f321a272bca3cc245022dc917b8c16b5d471dd3bed6684fbcca762c29f002451abed67a8860087848683b126795f4056963c46a8b4ea68febafff04e57c21da5f348bd6ce5ddfeebe6a6820bc584b1605d3a5366c5d35e0bc63e0c6e923c31e7b2", Msg => "b96ac1ed835f1e58f5327338fd604fabd399bb65e6d9cdf716d57a512398ac86656e94d0be0142d4cec27327658aaa103e818290ea40429f0a32b2b9c1402d9969adf845853ed24af79fcc4974025bb23409acd0eee6370603c19758fa59992c2cef9352c060f743da9127a6100f8b191ef7e22dda14d5b26a48d236b42d17c8", Mac => "d6aa880ea45e0ab267e47374598086784a7db2169043073614c4a1917e90e8dd2818f63bf8a899d0bc615e60abc57d45e20638dec691b4750a36079a330e5270"); Test_HMAC_SHA512 (Key => "9cb3288f3b04f0442f2ca8cdc41b0f39ddf93f898868e312d509a422e941e4e64e3daf8b8d33eea4ffebdecce07fc18ca55fd47f8f9780b38155d4530fa53383d7804a8c14054539700643811ac607651901f01ce02d2b6e2200275ee732490be084e2d8f7015ecb2b84be339b7a488ee0e97ca9a0b24b096013848a9a6f8f4610525db85fb09f22d76d36", Msg => "96a83010f9d4f0405826e8cc941190e07c33d933362db680e1b1db3a78ddc47cf9c7fa3fc75992cf4d5ff680e5dee89cf8a7c3a1662d04a928940a2a340a1adfa05aa6060bbecfcc39f52806fd96bd215ca4545cef62f2348969a1201af7717fd38abdcf8baeaf1f621306c7a4e21756f05112cc9976870a4c582986f34cd143", Mac => "cb700e68aec9448b67ab8e15d491aa070242b4430d6c70db6b736ad66756065f417c0b201395e203c57bd7809272ce34d4dfe1972b7c5277a28d71c7f52c32fd"); Test_HMAC_SHA512 (Key => "cf44b9d057cc04899fdc5a32e48c043fd99862e3f761dc3115351c8138d07a15ac23b8fc5454f0373e05ca1b7ad9f2f62d34caf5e1435c451f3d927940e8a92c805ee3e754117c45fe0de0545e7d1b3f0b71912aa2deef5e5ee661a6e95a06f8727ea158000c91fa067b03a7378066619bd61f4ae33b7ec2fabbf1d0dc3078c3ab0a5919004c159f7fd79a", Msg => "ff24c8943c8e6d3db40c7ac16776f756c44803ee07a3c95bc594afb7c599d0031261ad0e4ed41f98495391b8d3416b7bcec2d1ce87c28e9e463a4b3d23ae05081cfbbe47654f7254ff794c008c631a3262dcffd1de9b67e4fa8140f8221f68c24478610627084cb8fd0515603be4ebc3a81ff3bfb4363d770cf4f7b06bf3e07b", Mac => "2c537d0edfa86126672ca6f0081e8c13fd161510d56c0bb6ef015ec35cdcbadf4fe68594fe70820ebfd99cfb83a1fd18febfde2743bf408479a52c3334e39141"); Test_HMAC_SHA512 (Key => "0f55624e40771d01c2643c2bef1c97d5fd0eaa1ede76953064e96874a92e9e02ae50e75c42f12b5b26e1cb696ef02af12a006c14465e7d9eaf525538b7f47bdfbb42c89403706e55e97f394d3e111448e97cce69d11d1e1ffeefe555fb5bb4e97e528e604a9aefd855650c3d26285dc082aa5985475c819c98e89f333a0c500a3ea9c027e117b5cab0bccf", Msg => "0f565c68deda3bc803d93246a1fc18ede3cf16d1e217adfcc965faab37eb39bbe48f895e883eee12f8839cd492587390dc3cc6dd688560e7fbf8c9aced97c56cd3ba1e5a5c61a39879c97162c13d718a132f22247d8799825c3bc663c520f8672400a3c623ec6242ced3385af4541bc1d0d1b30ee8c55fb536577936862fdb94", Mac => "db88ffd6256ef15c09d67244d84d4ba61730ee6eaa565cfcc4fe587e6a950cbf69a7ca19ef489b68f8dec772550795198462e87ae414ad604591d765b6a2ad0a"); Test_HMAC_SHA512 (Key => "a50b14fc2b1852542a497dddb86709c49b3285f26af9d93fef69cce2d0a3c92c6e91e2770e79155937d2ce1d5a57ae73b95b8b66815cb88f39da868860690aa4520621dd6ca7b20e701633632bfe6f0d5546863ab89f354495595728437bac3b1912da188ec9b1dd9fbab3977184d4fa389e7e5657ebd8c6c98e48abbfff37588a5e140fbc089b2d8a6957", Msg => "f4d6aedd9a34e0a1822362714d4e81794b53b266417678c16a97887bbb612cc96bc5e532b3a654e5d3d65a5155427ff09569906381138cc49e3fc2384c5d33c34abd3d617c487b52ec6ee7b5105f41584b7eb5cfb512b8c31f3f338d5236e30398a8ff927e801c8ed7d14fc5040d915a737967d166ddc266f68023a357530431", Mac => "0d99228df5e7ec538be55d8852a0c4ad0ca61befb94f988d2d3cb68c006c0fed69b867e1a4f2a50348890fc1ec82c46ba72fb8d585376037f94c9fd18b67a839"); Test_HMAC_SHA512 (Key => "bd619ca4cf382df22b99f1310a6498633bbf0100220a578e011681727691b90645c57aeb5883a0a10459cb548e0b04f9ee41a39ad27e6feee651082d53cf82228540538232196f7c982bb19106197da69d0fa45858b1878f4a52805627677dea063bee1065e4e2ac6e756c9079754c92d190cbe1bb8de799b480b094fb41f2844f1c143efaca40590ea0c5", Msg => "acf723e38ad26db1560747fa39674eb6d8546af98625a677b7cc3f47b8b5fae79ef2bb817d96546cda5e9bf66297bf61dc3bdc2b5c5ecc93b9c8415842e410c4add9d0e950f6a42b945355fea6b5a4f16fb3deecc717b0b5e5873db91a656e0ac0f389a46dbb06f46c2e9e9b6d8ba46f7b0298c22f1afae823505cf3aa00bbc1", Mac => "3c13c0897926d1d45c67f68a4e1c1bdbee8f601affa0edf8ebc6b567d920962fb9f14a4fc92276ee1a266258ea7f71e09241225053edbeb7f31130b36022dc13"); Test_HMAC_SHA512 (Key => "107ed9ca1f16fbdcbdfa5211b1a9ec8d9e03bbcb1f0a468715e99fdb403695a80d742a37afdc4820715daf6b4be132f6b3d22316b5dc0c8146f59f6cd69bf0f0245de2b2569ddfc34994cdc526973d503698e594f7ef503f6f5bd4a1c043c50dfd42e8833ce32a8deca9926769537562ce5de98a0bca7b87372125c127b67ac83f2a24f28835904603a3e8", Msg => "204058177a61aa45bd666bd0f3870645fd6b9330cb91a89ad3f072cfbbda04655926ee79de8e123c4e56b3af342fcfaa935aaf231f10bcadad22943fe9dd5d3747305a9e3c11bbaead1cba91a87de36c5211b39c20c865404a4e09f77dead6ebd1a6c10efab04fa3c200a701b73beb9320d7c82436814c5991bbf87fe1ca1787", Mac => "1bc503398a25223fb9e93ea65228d2727b201f0a3fb544a300dc804340b6ab3676862b6320bce35adabef387ec628da38277f7de6929c44810c47f2a7acbeb03"); Test_HMAC_SHA512 (Key => "8aa3ae798494805441b45a59bce230f9b2bbb960b15f2456727807636879983799241f48ad4fabbd44e7048b8d35e2de15605cbadc34a3e2ae21f0f9b087bbe73a312e7ee41fd95ee488a715971f118b5d96919eaa605a095abc468a45ef104414d0c362538a72fdc79e2a3f012725c933624053436daf921e4ff05f4f39fd15d00cc63b1f1ade63953175", Msg => "20d04970ba4d2cfcb4c4e1cfa3fc6406011e8a31e869e4ac1b28e62d46e1489987d0ad1c2c938378bf272a9d4013587bb1e3bc14d8d8e1d540de562681be0c40c195ff3e7b8518777faa520c3a501dbd38630001e72681559e2849d4dd758408d70987002d8ab5a2fd36a3431b1a7a759e849d209fbc8cd53def095ee46c799a", Mac => "45560765e5e4644476206c7af9a2744de1768b44692a1e38567390eab59b951e6c311576b8c33b8e8769149c9bed6b5e1698ee209a8b464e032f4bdef057065c"); Test_HMAC_SHA512 (Key => "be0a902d7d0a1a31c76982a5a4612e27ce13c887656f94cae453017554f77e08bf888ec8e8131fc139a5180cfdb1314ecfb10781521070f723480b9b0c481c7b7b18978332bf7b8b3f6561952fb5554f7f85e4e053b976e06a64dfa8523130cdd802d3e7c3d6d797c2f088c8a2364334c4d7882acf30518fa2f1a2248d7b6206c08d697b0320daeba88fb3", Msg => "6e3662888bd3f3d6d980684854d93883dcd2da3637a8e6aa5618779bd9ced347d5204ec4d4fc6b961d1f458136882d9ca82d95a702ec2d9e20c44b8ead4590a8e745c994a2d5130890744398bf8284d063f74280d6544757ddda24b32dfad3b82e0e9aa0fe463251b9e52935f8ad85469797aa68bcc87efc14c1cab260d6e49e", Mac => "4a87dba3c394b7f9c0d55041043e9637bc5713a9664daf4077a37fc55ebfadc5fd04a28a9bd13caeda0a7db4ea7a01eeb1410d35a821b1cf4e8c66475549f43d"); Test_HMAC_SHA512 (Key => "6dfc8966adf3c592d0d2895f5ba20d3cce6d7eac6ef6e99d47a75bf672cb476f94fd27a5a7e0666efd117e69815a5eda41290eb5294095f911ad1b3ffbfd4b9395adfb8206e10f74e6589a3d8ea047ee9386f8f18dd1ac551d30a6662e70cc817af24d26505d864f959027000adb9120cc6e83872111f65871164591938c91e04bb664b910bc94a5129f6b", Msg => "97449ca6c272484156c84d60b7afc1cc59546a46cba1df1bf56beaf89eed31003175151cc05ddb92493d09da385f13ad2e73375e0184a66d042be45a880371b7a25ca9812f34e9b01663f30dcd1594441f7d843a2cc88da0b150efc9891304b87463207e18dfbbc345a1d2a27db98abab4da17815454dcdc8442d3edaa05302c", Mac => "2ffef9fe1a0a7ecf39d730564020b8f0ccadca49e4c1780e193e1901a19787db8aec9d7af3b9b7d5a96c2d948f81d89b0b0aa23e4fa350c3d8983556e1be2f4c"); Test_HMAC_SHA512 (Key => "1f2855e133cefd5e9e295a3c63fcb3f9185b5fdcf56b7ddc2b69e5bf76ed5e7ff67011f13b0c3da89f842d18d88467f7cd2a27e9a9c40b5b2edc10af4d72bd9af3889ecb25e4f4ce4f11ab2fd9a78ce2fcccb4e2d4fb4519b6045b80c3544287bd77e6b71adb8a9657d7bdcb8feb8a824c4af0129d9592dd69eaae78021d530dfd45cffd427b67c95fde4c", Msg => "b55e84a2c74e837420120c9babb9813dff4d545833587664f4a71334d64e7c1ee8ed655b8b3150b0849d494e4f8ad4f8b66c2463a3588de233c33c430b8d26f3ef3e3e69918febc2a62cb9a93fb84f7a5711a1a7a8d6665ac427cd5c60ac6b35f3d9789580703cf2af47c473234bd90d08c533ecebdce914cf5b2c487db5352a", Mac => "61a87e67cdb1cc9b3aedc912b28f086c0a23cb5be98a51d60cdf1ab3e0d288fb443881a10205778c6f599d79dfedd4af27f1417131d9263d995748df45342d2d"); Test_HMAC_SHA512 (Key => "f37bfaeac36a4ec9d379ac509b49fe50f85a995a89d8c22f59b87178bf0455b78373177e423de3df142d25236bf890be3fcd6583682df2154bfd599eb8da92c313acb3d7b27e6f4e878ddd75ff9e7b61299573251b441d499281c477d87bad76eb4e555ddbd4fb0074be5eaf1de4c82000da4ba96bc44bb2766b3d6be790adba5280867885e88edc23eb30", Msg => "a781be58853dcea37c1a30ca5db6e16b9ebdaab800ffea2670c695652b667d952615d0b7adfde2614a902db6e81c9796389ff31254dcc923a3ae5a9bfc9ddf5b0eaf12c7ff80ef775395bc2f10ee47121fda6f12f610e5ab74fa34d10c54ff2726f68a71c2ee7d4c5fd2e41d1b5579471b1726a12dc2c627ac522cefa5b4665f", Mac => "66dadec2dd4e47418e8116d5ce4c2a9e85fb82ea0a96257b661d5ee9f4b8568a0021602f698f20b5c3c77d2533e1c6760eca0abaff7f1cb0834cc5064b19b102"); Test_HMAC_SHA512 (Key => "1bcaf96dfdbaab1028396865bff3fd9a87a6046e9130aae91aedb54aaf3fc542956ed95f67b316cb018fc4369d619a113c383bfd48e600837756f805f21f2df4b75829443bafb91d54b5f1d4577c70197d64e6728c32d3e8b36291ffb5bf94ec4a30f103c2d51d6feb52f725356b091b14d20bb4a63ca97f96ba872240478191159d3784414ec9278c0fdf137e57", Msg => "9d1c57b3e625d6a7f38462459c442efd5d842c0b576c3104976654af9b8a97171259c9dee4afaad472f351c81f91cb9f0faa05a32f0aeb1d755ad225699613b9e4c2f90d17d9de22d007909af917facb612f0012c0bbaa69f5a7853c91d1467999beb1e7888cb9b89427e96132c002a9dc7be6001268b4139fb5359d1d227780", Mac => "ca7f6abed1c2252fb7f08706d119fedd83df9e09c12e481267ef733bc053f945"); Test_HMAC_SHA512 (Key => "f473204e1113981c4bbae6ab7207fabb97d6112a7114346800d2022b6f97b0643ffb4e71a2714c9425653ca49287d902156649cf9d409f5c8518a4e2740ad77482dcb2319cd52fbe29d28bf4ed964ad52e627bc516c53df759b6822518e01384043dd5f7c6e64a829f2a5a024bdd541c2cf23074a44d171fc3d2255a22c26d7c0e473d29e94da4c9ce9432387403", Msg => "61a9c83487fdb8df536e2a79f5777f716e2a4c92adc7a634f88d9db48ed006218b4c7e380bb9ab9392a0c51dac6c55c9d0c43d848a18f968da7a2432d7b03ef69787ac11536a0060c7327bafd840d07479c92bbecf727268931dcb92b9025e514f015ca6a73640adb8cf5517c21a78da31e21f27c4fc9a9dee1d99bc7defef9c", Mac => "9ef822b71d2b1f44c0c478d0a16e48ae105fc01e4c0cc52e9dbc6821a1ca1e3a"); Test_HMAC_SHA512 (Key => "bab50194e96f3edd4fb82ee8d860b4201440934a836fd35c10b96793db4c0cc03bb574e3040ba4fa056a9b1bd5a334c1d0324d645c71294c710b13a658b244d8b2150712bd0c1b25d3165999330696f904f9cb72978b749ded4b3598796cc35b26bd02499cdb6b06bfa4b18979f0a472ba7c559dbd277bf78c611590c6e051f2a094adb22ade5c44d4fdeb1330c9", Msg => "11d69a89bb195025ebba1bfc00ed6d84277bfc73cf66cd815dd0916f211935488948b5e795ac31b98bc342c4ec5a8ee8a6f69a658b73e09e02eb221dfdd9fdd62b7ec1b06e8480418fe265d931ff47c3031a7ec73ae9f6f33f80829ca475729f5d4267ec2dea66465ee02c44b524c19ca5af50a0c31136097a5959f40035bb2a", Mac => "6a3577b4161fd63d6b87301c41e4a62dbf1fade9fbd73150e03e1d1e1dec72e9"); Test_HMAC_SHA512 (Key => "232bb8903d88e295eb89fb358d617dd28c233eb98f2746a9f2afdd8f74cae9942f797759ce119881fae06e71151386532bd7686125bf6d604066d16abe5509f1dc27570103eb9bc542c96c4dfce9678ede90c7ab148c3773bdd3e42a9c67d58c107c7f0f46dd9469ad8c1d52aaa8c88b8e94831fc55649e94f3d3c5675c7f56cb4c1180bfeb02b732270a807881b", Msg => "807e05575f3ef05a4bd64e0b15278fedbf7ae63930679cde2bf7a9c68205855b87ea3c4ac459c186ec878491118f46f716162c1b682a1335e970249c2d7fa841e9871d7ca836890cc0dc0e5985cdbffbbc07b2805314566a4f32077805b2e0278d9ed177749ef1f2b11c15ebdaa7a10498959ef359ed0d8544847be27265d614", Mac => "ef070024ec611efa3315566a486300a0130447a3b25e25cc818bedaef568e4c2"); Test_HMAC_SHA512 (Key => "88fcb4049978707d6c8ecae02ec20005aeb8fbbec101d452e635982d264248d53e032420001529a5f7e6d9704a0e3afae2e32158cf47b0b2e8c51ef7b2ddb6cf849b23d1e86feaf74338384eb9a2def24bb29a3a429f9830d1e43844f6931241a1ec387f182eba5b9aad70e44225f3d72f4eedcee2b093b4e7b96f7cb80d6312de1deb9259fba2b9426d0899af40", Msg => "97115f35a4f5d6a41c7fa2446c3aafa4fcbec6b505310473a30e8bc72b2577acbee414921ed44effc166687c24f0f1af62f3f4c5059f70131c9907fc8efbfa15ad9d55870e9367b599f6751fdce8b086a4d26352cff071305c10ffffc4966eed8dc48cdd1c380b0dcbb632f53b28d272ece37c230a2cf1138afbda9976ffb97d", Mac => "35ec99a24129c23e90e4d299dbf1eaf4b76063d927ac7362550ef20c7b2de0cf"); Test_HMAC_SHA512 (Key => "303134472adab1a8be3c75e3bc73791991ca2d0dc92f1a32d2e5c5090379d7a9dcf77c9f905d09f9c050e19e8a0e99e1c2a45a557f6187e2da8aa018f24f67c434fe41c1d977de11afe01c2c1d9a29986173e8ba1d1d97ec12dfaed02b8a0ae3bdaf4a550d0f7a181353ef377dfd7169f79fa0e6aa4a9079024ab7d6b510092f01706102350d233572111f64b321", Msg => "6d7b0d59dec1b52e30970ed18231cd2fdb0dc8d36c255db71569125a2b6c7912795e57a4843a0412144015b4efa6398ae88b61d1182c24d46c5a6105602c264c09f1d09f596874d39f347eb24d8a984dfe2dce94b79cef236d89365fc88e29c2271cc273e4b4cd1ad95991f22345b22025db5643d0dd874c22dfd990edfb4c1b", Mac => "adfdf26fbb84fc8a43bb56affcdb0248180ee613cc52ecef61dfd18d3dd94fae"); Test_HMAC_SHA512 (Key => "86f7194925ba3118aa93abd532fbaf55500d7d295d895ec50f1ed9e24de929204239eff0b19525b188005319b77b05d742cc7c76957ea485192946f504f37fc2755771d6c025382a06ca1f2e0ad2146b3fab5a6626ac7ec8d6558cbddcd9829a46d905c2fb7353ca4e7b79dbd208c6586f337fc1b51bd4d8712d13027ea21cefde48157d09865fda859ac8e9b726", Msg => "057df9cea6836a2dad42f66e7d5e40f5f6074b0d497ae98a0bca76ad89e0c5475cc05b213d0fdb9c1ad2c2956979548bbc1cd7049504fe2c7c6da8c0508acb2adbcaaaeea85a4f4419eb3506b4b545cdbebc03580b520a2d14ddb6824ada205daa224ffb926cac6fd314b78b071bf903256e39d0526bf3d3faa106bb20d7ad28", Mac => "b038ea88226289a74e946cfd88d5ccaf290036160c27e7ae512f7d7f0d05932a"); Test_HMAC_SHA512 (Key => "3464e7149f386cc608bce78676aab7885c7909956dde4cafb194e5f8d95924d0d039773e920ede9141489f4776ea3b2dd5d5a0c8e449a0f41da9a2cb417e98c8f0bf312c77504fa1e9c8bb1e7177180ae6a815a4a023e7a28af6f7187975d79cbc807ba8f504a64027c4a2d40f5a3467b878cff14a74080222044aa92846cb945d03be78b434cbb423c5bc31f99a", Msg => "39b67d9e4acaac11338d2f66ddcfe708dc6998bcac724a793bb6ef79a86347904b0601bdf5b623ff798fab696b63767927ab62a615c4b0382c58ac5cb51a8f7852b6a4bc3e07aafad68b7ab75915e982ecc2f084e12e0a5938e8de1e66231ecb56aeafc3ae260aaa536ae2772f4f07ca32958a7f961a2283684ecee644e7bc32", Mac => "2e8d890e823b46ae168ec19c67e777809e8f94bdb0119222d53106e470e060e5"); Test_HMAC_SHA512 (Key => "98ef836985b9b46eef4ec02a5a6f730b0d986d00c7e17582ae2210d5885a528b2d52f54b3c7da8d00e23a934e8be966f75a5811b73e7427aac7a11b928955476a15ab58137b878df65900b153416dfa3ae7b77ce96c9bfa2560e9e3839bcce35da50ec93dd32cba4dcdc0e53a43ff6aea26278a1984d93049425e0d923986bcec27cc10a95b24a255c51d978a200", Msg => "d0c0498f4dd2b8967cb7f26da95cc2011cb7d4a4ed5021b31a00ae76d7f876472506a4f7a614066db0f2bf90a0553c68711f697f8de0248ee29df25539d1f0cbc3b20d77f5b5771e9654539e170fb11a22b1bf5775d43c66f1a73084eeefdb3ed24cebd9e2bef2f05867165fb5930b6058f53ef4503353856fa6d2c99f5b1de9", Mac => "35a6692e0928dee1d02af26f0b541019c0b517d387562e27d73abd6e6f66107b"); Test_HMAC_SHA512 (Key => "deddcd62e35315ca2d328695b618917d21af8a99fade092e3e4191c91ed76f8a00fbe5c3c79688c25492e7ea4c926d091ce089e53ba60b18af62d21ed394a4ad57b95d44887d4c07d22ddaca836b6c6cd1258b661fc843a37cb0c8936de4607bec007c0fb0722842afe9a65de20b564e4867da432daa7678ac15bd4d732e6a9cc6b68c49c7dce61bf4b095caf1da", Msg => "7bc9db647d4a08111fa66bbed1a090591cabe8258647c6afb68eae03d80acf1f43cacea859b5c5dcaf1e8cc86f9837bbfa0bdffad107a6b5b559f53a0ddc08698992ad6805f34898b0851bc76dadc4a779c5077e4e6ece20c8286e1b87202c319448000b47ad992b6806a02394884104e202e81ac72548d63723a20c0d7d445f", Mac => "2bf0422bff8e360dfcb02f8a80a8c3de837f4f0af5a3f48331be6f30bba000be"); Test_HMAC_SHA512 (Key => "a5f018b221cec80442616b4c1dfe51a727d048ba40ccc049f0e72d05f087ada6ec38eb3a87a143bda0b627e9d32fc14f4338d9a7976afa6543fad08d0930d5c7bf1b2db65284cd860b20e3c411097273306f3d5cd88be7a569d558a5ad7763f7a601a5cd8b5eb0870d076985de76ae3974de3c800b19d032e9e28df7e5449e5d2a521c28391932ea2dd37fd3435e", Msg => "581bab213da5a7a29b1ebe1754f6708d87da8a32fd85a6c8c4d9f154192e31168cea06be5e516fdd2e9f919ad454b4a68ed08f725a1fc59fa216afb61e9f5c19f751d6392844a70a2a239cb4d082c98c7072cd424353585b0eeaeae202b4dd5be179a5f963235711d8d168cd0e28b72575e9ce0b81c965e6507d28428d14bbc6", Mac => "26e309186f09e64b23db3bc2adb2ae4de485cbe1df97b96e304d4ef9767896d2"); Test_HMAC_SHA512 (Key => "14c4e7563119242a560883d2546b81a3bce24ee24f78dc87b684354074ce13b918f3aa1bb70bc9d3998821943361e49f55719342a51a119e4c2dfbaeef0e3c85e113dbd7972e18bb5cccb8af45fc9ddd68d4999d4910843a95fd8cf91396cd57d7ec2293b9cb3a6c059aee2c7483d1e55bd409fb23a55ee2f9bc9129c6adefb8624525560529566efebb6b12a73d", Msg => "fd43f5fe73922e22d7370c60de1f9b1ab2e0e9c24e927d4a2be025db1c5ef5c9761e8cc7757e9957db439e85daecf4d53440107aa12a04c871c648ec72bcbbdb14cde588cbab7f5ab50e35dd7d04aab87f88bddf2d570b09b1ffb465d43963881e7888aa3ec2e813adbf58d08f10c5aadae17859b9c298f433b2f1ac087df3ba", Mac => "6f8859b69cfee89dee650d16fd00749c9f660e6fc9b927caf02bb891c812def0"); Test_HMAC_SHA512 (Key => "63dfb4078cb38bcc97bd250fda0e286ecd4e64046a985bdfda8b01b34d9dc0cf2ab3bf5168ef64963bc918f5f4624aad2214b61bfe4ee731069ffa23e710a663a0b779d0e589642bc1707aca809ef590cc207a1c16b69e4138e2a8b6583f980f0f1469ecca29947171d9d5f6476931ff1298386e7b7788f7b77b92d567d1a1bbbdf1180ee176fa51932db0e1116c", Msg => "1cc6063e9ca0afe0201a714d023517b113938ed73a89a5e55e7711478654b4e93f8d1fa93f10550c47a3d12f4e7bcb01db0ab8b0b3181061b415532401ae4e275f9e9b2adfc76732be81778289326dc7841f48934d812b0cbddc5fe60f8c9a8e44a082a8c5ec6dbc4b5a6b2cfc81866ad779486751ed7e4f40713c73f9162187", Mac => "9a3819ae5774023c1d7deeca6f15a732f87671b5dcba791ffa5340f841b9015c"); Test_HMAC_SHA512 (Key => "321e8dd5b0b7c660b3090544612c5476b0d4e17ae0cba47a499f429556983279d2ec1e3462368c475325bdfc9671d5fa09143d17f9b6466de4690fb08396a8bf07377778a447dbd14c771024bd2353cbbd8446eda42795971c9eda0f2575be655c68614a7cd2fd252569c664dc291410548ec3a5eb06da2078a66c59441cbc9356e5a452f4c0386d6662a663fd6b", Msg => "cfb4c87716df82d2a97ee4333417a67fd5e66be2da89a11ecdfda823aec936e17f79fa5a064e7ffbce34542c6ff46a260fabbd04297b361d8d80d092a806fb2306f93e47159c1f7b2c7e47dacbabe2ee251f45c6db80d3480b0c21c989d058db6c1adb66cd322afbcb450764d2a2d7801e294a4e7aff3e474e87e1f1d88e16b1", Mac => "4c978f61005e9a04a733205f9e8f2f3a40b8266206558bcee20b5193792fdce3"); Test_HMAC_SHA512 (Key => "36dc8b8b97c105dc9c03908fccda0e4844c4990d08857462976c41b2c2d974f1bdfc078077df705127a7d04b27176df00655623dd9f195d1d123ea521354b60dc3e077dc621bc24d5b927c00d8934d51daef523789fe126cc9e4b4cf0d136f0670114167027ce4195f4bfe76875698b4e919d1c5c1b4d37ba43707f0591d8525eb16cfe9fc0abefd5c5abc75db69", Msg => "b5fdea4779f5787e6b947d0b3333fcb115528b816b3862a353dab253a5fe382a28a0119f0595d0cd7b6ece77d59fc14999e1906003d4660db1e906d6a07f5ebe574c5ec762ff0ab40223ce132347127b8e5c0f13605ee153bb37dd0fbbe024b1acc978c67a7b4fbc687c26e9057218d05d8cafa06c1efafed88be004df68b38a", Mac => "0c27ccc84bf1ab92f42edc8188a1a0b6b38ef732ffda929f767c0970b27ec9f8"); Test_HMAC_SHA512 (Key => "750d16ba014522c2ab475e8638535d5e729fce4a284aa48777917560484520471a7cb32402888cedef25be7733f6b68c3f331e3dae9c017986b130dfba24e5d1f38fa7ca8f636df1ea2006eeddccb8fc859e283f46fa79590fa2b838df2a783188acb953b3be0ff524a100923fbbadd7cb47b5f9f74c564c9acbd512bf3d2090613db3687381b822240e720c60ac", Msg => "6e9aef113947fafb961eefef891ea3f83ae018a45670ff6fb35b7b8033092893ea4d5c37833bad39df3ab360005a0f5a26e7abf7373e449564df26dc0ac437abd6f137512d4d4601cbb0a780aa3dc32125f271f35d7d7439dc51451a78fa149a7aad09c90024cf3aa0a953b74e70c9338029f10090d6984361da61a44553c54a", Mac => "90781faa0146879a3645319c5390bae2d0ad0612bf2e6e7dc741e7c74b2ab65c520403410f1eca27"); Test_HMAC_SHA512 (Key => "3f64c815f2793ed4933e374950f77e685ae3dc21f309d340c9358f92823d1a499888cfa167d111c484293deb513bdcc7ced41e1fb2a384babb3ddc7f426372db128885637a8ef8bba1d14ab61a66c8beb8a50177a4e47b9fac86a439de350bea566bd0a354375a80923e47f0d400a917c05c6f70f05621b74619d1067f384e3e0b399aa81c549edcfe781de2a68f", Msg => "fe7ae0cc9e99c1b0a2bb11d71db429cfba959e655bc80860ff5c086fe99d895fffe8459170bd8bac9916408f2af7258a844757cd66de1c20c9dfdcd508486efb44c796d507d0cb8b27ec3d1eee5416a177be00a75b77e8f88eb2028883200ea997c0d97facf906b414e60e6eb2f1867e5ba3a1db82baf54e157c826ea24cf0cf", Mac => "4bbba9ca72b720356a2ce80f32ed65f6988b8769721413ae44014a72cf34efc965cfaeb44b294445"); Test_HMAC_SHA512 (Key => "696b28929d149b340ffd609ee488e7d420748133bea31456012013370560ad9699c8459f517023c7d62769f781b748ec286a73de38ccd45f04b37f875d7de44e639948399a49763941a5b1d0dfe4ee751ed7403adcb694ac801f9efa8a5c135a6fe519a9a325fc51f781227025974137a9c3cf90d3e8ba031b6d5adab485a48364b4a037928f1dd9a1c3a3217c58", Msg => "c66a563cfa22744dc310137966f1488f433efaee105f4352651c18ed7d542dba3bf1130e6b1ba3704baca0aa49e498200f5f0b61bd43d0fc75beb3951db0633760a48cecf605408b268f9bd28903a7b4101f7df448cdadf3dd9be0c75e6bbc8c3f6b08ff244811495d9f4c18acb53cf44f6796d13a64a4e0a599e7abc6ed0061", Mac => "dc6891c9ba1d783cd0ce19c2e009ecb70d4fe5f99340db8dcdae1f51c741781e1bbd5bca92af6f5f"); Test_HMAC_SHA512 (Key => "c5dd58111a50eec6d5d19591733ad0b8b39f78834a2e0c43d85948931b38f9de62280f2245b9f4f394c71cc28de6de5f520482bd9a499bf6a642978e773f94fc3ef97566147835adeb347ca9c47b70b62312ce6fc01f39b98046d204a31308cd3f98b267ed575bfcc262dccf81c031c30e13852126788f964eaf217b097cfe594e4cedad391c0be8019765ba2a7e", Msg => "44c8c5204a8d2e01951e67d1f2e2cccdb7a784d556e6b1cd3148e943b06aea5291dd89c68072ec80e8b4f91d08b50ed2490ef39acf210d944ea1d4a61f55876793181e3c872580c13891f66a5919df6a631ea6d32deef2ffbc451c305c14e673ef806aca862e50892ebe44010d95a75cade085c897d5c8d8243cab26902f713e", Mac => "b83b4c548687d6f09ad25065657faf047989e52ab5d4147eb09a1ee13e69a1ba59d5e3291a2e9b98"); Test_HMAC_SHA512 (Key => "c8ce9ef354069f3408c9fe64d39649a7d758d3d71e4608818808fd31081b4cf010761e0a4a6e891589d71d2eff6cb986b071a31e2696d8ce671fa18c244267eb33d0c8e24018ebcfbf0910bb24966be0575f3268628df5786dfd2e6deda219661824c5029ccd6b6b90a60093abdd06bdb46aa74039f2048784eccb5dcb020767a7ba3df2c755b4f0e6f8143cfa09", Msg => "e83b5b65f66715b9b53e9856a845250eabf61c48da130af5b039e2c66cb88b9cb9a29b418d226355520f2b8b44c1be151a242a5ce80ac1f544c663d0a8f600b317a058e7038105326fa1bc05512bd0f53a7cf76f387a51a8fc27a6d43876f0984b5d19c1202b0536531cd32b962a609854270dea9409c3f81f853438e5df6333", Mac => "b9e52ed0c04ef11f6fd3d17a35281cf18647df94a069a2a59bc73f007cba1b683536bd447eb915e6"); Test_HMAC_SHA512 (Key => "6a53dbaa79037233321b9f88e341c68bae9eb8dc8bd7d662903f7a28714b926b43468ef185457d9c605e723e2e152daf3a17f71dc62bcea45365c21e1c9c9f3de41fccd7f1a473805981e25e7c1f3239d2ab26d2e70e5576a3208cd2cf186e09d5485d04c7079e0aa3eeb790d6471c52fec20ba2f46ab5000ad89eec91a646f89f2709210f55445fc80bb97b4375", Msg => "e107f34b5d86d7b32763d7345ecbb49b6f0dd5c39309eaae99e4cfd4e501b3bbb92d79c8b31a5e55970fdd044fddd0523015d76f7f78fd4d34af99f6fd3d732486b1280bf820d07ac0d2dd22913c4635ac2ee6345f4e1f02cbc5c23ceb3833cdd2fac8bc348073492815a1392cce616e6ac1c9ba3a7295f5e78e124db6dc3bde", Mac => "b0d64486b92f3cf41e8a696ef372143673904dda2301635f139952587f35dbcc209169c07ffe065b"); Test_HMAC_SHA512 (Key => "796692a748b89bcb60228ab4bff874f93123ab6dc7c6d7ec852148545bb58ad157a83a5e186c1988869c5f75c026522656af16f9b933c772efecc53a8b764f68dd30540066e585b98eacaf049a0c4849d86448741c8a3ab070b39272089341ba74c58796196c08e7e21b236733f27feb1f0ae6e6da14572f713c5604b854874e842e7b261b49ca99e9b062a87520", Msg => "dfa3aa8e29f56b6d68dff72a4c23983a8484990cd487faeb6877692568ab6e6dcc0ce67e72d1b2016d8db0b1a16ceabd8db90e6d67a41f096e4369f77cd6ba23da4fcfa459120d9c9ef9725fbe9bcad80bce26292d6a8a927450e6946cab4756b2764f47073fe305a32a237ecb389f55a6c9c7874d60a44e21a7c64561b37ecd", Mac => "baa1d4878b8aef2c59d782bb655e9f51b0c3210f39644adfdb8715a84cb9de57d3177f5a72ad5b6f"); Test_HMAC_SHA512 (Key => "c6173613801fbde3223f883f158f609e86d5058c5ea5c6f275cd509602f0c4e557700cf1cb916eb6f7dc61a125c2a05305827ea2a24d79e095a711607810db379ee4d1400180ec637ca6f5163b2398236faebaac46140c6d1a92e042e9823ce9053b2d080c325e721b65e9a63ff96d992c2161b53243a8216c5665433b8f1083f23cca52d3f0ed6b3be0e859198d", Msg => "a05cd06ae605a3c988227edf935ff24b38f7d5da1fc238acfe6e9992690c5abbeccf7290571163dc59976c305016ff8660f67524c25501c35f4fe2f19e7dddb47abbeb70d72f2f0a16872a4ee781328e5eb1208c4a7f4a9bc26fb10000a57b9e73a8a3d30f66ef9de8782201ffa873ad5bb03fdc5c45fb7a4d546c88388c1ac3", Mac => "f4247272014df37543abc7645722fd3ec0aeb89b6f49dfd36d11daebec40bfa3bfbb16f9d44b1c84"); Test_HMAC_SHA512 (Key => "3d6f9ac66786d1eae1a7ffea8417e7cd49b96e355fd44f3f7a150fab6dd8343dfba3b262eaf3a6175a3c4607552b18f3a72e6357f036e44bf7bcc1a74102c36ae39bbf5d942d55f30676dd74778d9f5a836a42fc3ca988697c8b38977a3e5bbd9c5eaafd8cbb48468e5dad7911c5e2ca8376f46a6ab4a363b18c5ac33f1464fccff45c8bfb25e5d899f99c5d4b5c", Msg => "2b28f00a57d2b2cd36fc1a23cfa8f533f6636c16b91b8644fb31ee4c5fcff7c9687cdd91deed4e2f731e2894a6a28509e838f568fd9e0a8ca6aa1a067d964011209ca4c991c2fc97ddf853f0fc60093ff9ed1c1f532fa5cea26da6de7df5022e9cb0cd193af9c6edbdaf229f99898cbd72aa69a3817660f238a31a3e29934607", Mac => "27f5aecf0d153a94598848d42272c7e36c0ba4aa658d2cd73c1ab775bd4812dfb2713dde11868ff6"); Test_HMAC_SHA512 (Key => "19a76e3342eaa5ccfc6d4b92c603f39beb16703cfb4aebcf7b5d33b3dc525395aace6aee06c2b7cd564af4d73bd5e58cc48730cce1db6f991a8d841e80b72cf0e43ad895485fb84393be18e9895fef74f920b54b3856761bcfb725da7178320630b25e2ef00acfb41b915fd196e93ad9f4aaa8c1ea0327de03a5bdef95dc8c5ef4ffa7c3e50b24aa568b73964cbb", Msg => "fdefd6dbd43cb817b132754633c0ce724be5572e4e732b7d4813ddef9489b20da9390df737ea2a4c73cb0f4aaeb3c0372dadb3ff35b4831e65bbe8c049f1e7272b42464e2c2143cc948586fa673153583939042d42c2b76eb50944e14ea772822a136a26dc686b5ebd68c09e83c1ef9f169034019f242d35e104d79acc33b9e6", Mac => "cf049f7c069e0954b9c76f22a517eca694e4e4abc5d41190b64943be8649da34dd9f0bb54cde4bfa"); Test_HMAC_SHA512 (Key => "d7e34449b142a6e1edc5b7210ff3b0f0b7fcd01dc74ca495c46085da7fd862b0f4cec01a7267fe84fca7de42f08a4139e65032dcdb18265b8fb082162bac5e5827b589426b24cd05b4d074553a230a1a90746568cb90e3b1e69af3396516d7cb3940a8abe4a29acbdde5814136e894f97c0f71a7dfde620092c6df2a753e5471f216243b2408ed3e3f910ef02cff", Msg => "19c9441fd9382728e5de19e630b0cb95156b9972eed5bc1fe246c148fe683987873bb3858f5ce763c786345894594d9b655a2f83433c56ecaa5e30de9794d269e22aead3ce26f4f6dfceb1e3eb6ad5cb744b0020350cf0f7fb18f5b1b66ca5dad09fd051bd1fb7a9d4bd78d05d6ccdeeeb45f690eccff4067e7ef80984791ba2", Mac => "024226ba95f0c73567a20f9077abc8a8ce1fa766dae177f3c8d39982654a0dee7cadf131f0c645c0"); Test_HMAC_SHA512 (Key => "b7c3c77899440e81200be3c06e411fb6cf96fdc3f67b7ef38a910b1be1615c250b4d9aa812c6c0bc80c0470c2263022c0c04472ddd534f6f44d6dfb7c3962881b318ed98898ee3e3574f5d829685281a2225b46c8625752d7ae98911aafe9b2ab90a077086033fa1aea06d4b520d5a261ae38ea87957b9d433b251531d017dc5240d3259918d9b9b8c9bbf8ede65", Msg => "87b0745d346851f812070f3053c39a906c1123d9246bceedeb51abeb6e8ee89c68bc450ebb0ac77ebf3db17bdaf5b049513256845d16c90582edbd0a1c6a9f903b331304b0a1a11b68c0abfff99ea3ab7bc27b9899fa5c99e75a9a037781e812a71ec8883cb34697b599e601d945db7e93c9795eff9ded6fc5a02c21a65a29e8", Mac => "8cab0aba5c0428a037b4a467c32d4d576ee3ba2de6d56c37e81d5c651435e556105caf703daed9d2"); Test_HMAC_SHA512 (Key => "f871dc8772df3e9bc76b342df66cc7ef7abf7342c16935fae07de5618541c67e2d8c5c9797727df47823abe67011a1083d512cc52f443c1adb763b9d14c69dbf17c8b94e0667d73e98cf8aa80e8a401369e817f3daa5f26f7ac6cd673bc44db61eec9bb4a70673ff8f35787cb81ecb98664cdbd4abd37f80233442c6e281fdebabc2acd262967ac2c41e1e685616", Msg => "64c673e5532ce4debe2682a3d104eaab398860797ff0c4c09430c1caad80481a50163d51af35704e3666ce996006d902ce0055859adc4471e9f915cabf1619eb1817366f3406df5232594354e073c59ed26dada8b1151d5ad6374672171cdb25e151c60988a91b32da854a9bfa5398c86c55d0aa6ca435c38474bc8b5d997811", Mac => "6427232699c7b9d67b7f302757a147f8d3e97895a4d6d547514cda97fa348c6b82afe0bb863afd04"); Test_HMAC_SHA512 (Key => "70c06d7e2fde3dce44d5f9f8e5cfaf28a2f1843bf598ed211ae222862071d0b1416b0eac6fc593a52fc22694aab6551e01106ab9e2979b1259f481ace871ccc9d900348dd37fb361ac3af1967eb2004afd9d4990072dc6cb7d95725b52cafe7ce186c66a849303ca62464245884a15763c9e08068de1d6152fcedddc8603d0910106ac8ba989eda7faed01eaf106", Msg => "2eba90d1335117922bf5cbdb66432159a97f9c952e89f180ed0c6a4e1af98888ef34ec5dab8d773adbf1b19ad8e1671e912499e08ab9930525105991217a487f60ddfb12edac6c663d165b4ab57ef4526d2cac2734426c22d4f1f11997ec7379091d849500983c3edacd939406010e1bc6ff9e12320ac5008117fa8f84394f9d", Mac => "170b060a7dcbbdb3ff6c2f6d99354748a0e9bf7ab801b91339252ba2cb842a19dda5cf637a6c389d"); Test_HMAC_SHA512 (Key => "01a6f9e95494bf281ed74fae28284e1ed375c1f5fc34187722f76beacb40030123971c9be7dbe9ae81d6d97d75131912fbf45ae8edffd4e8e4798b969f36d18da4af0c292955b9833425b1a2027dabefa62e03eaf2d2ba1c9a60bd4c97fd6af6ca1550f9e2ab36907fed5f83970c0d9f1a4a4463d155d0fc8cd38a747c3ed626def27075d98469bdaa566c8afe68", Msg => "11f77655d955725a18ebfd1612b7a91d15a055280db75c7252bc0c61c4e45a691ad9d32e7703d6e83e06010c288ce92994440e0f1e2b0e37720a185f633fa47537c161b6455f6f17c348cfe4d9d018a7f9716b4b7310a8814482e2632f4f115710b607376cf1a6af4cba4fe64c0d9d60ef30542335f19418702f53b5539b0ad9", Mac => "972ed368bbc123e2894aaa1ed0b3002f1f2f0f2ea9c3f55eb52418fa82c7878537fff0f39957d387"); Test_HMAC_SHA512 (Key => "f01aaa41528ebfecdb9fcd42948047bf9c2366861e5dc0a480451c95dddd8509b6f49de8e44a3493d1f6196de805309a4a64c506c30020a9fc2b5a0af2426f02a68c93c31766ca186d9db3ef771ca41457c7fc3f7ca6b551d14639db345c77e02aac35dcd129a804165e42d0270ccbb72c15b3393298a723675e620f8d75c62aa91a2b3afbddf7df33ff6e18e21f", Msg => "7bda43e90479f852717f4786b267ca874fed63805a2bd007a2027f9f29bba381d8ee879c72a322dac7b8eda52a83f1aa24b724dc6a8cf5bc0d1a26d8f106da928061ef239fcd8de0e1e2ffbbfbd0c20c7945dc92af916fb4f1088e0d07a74f28dbfb2288753f61ec29c528d10f976637b45d34a80f816677b792604653e62cca", Mac => "0201dbe5ef4095f4d4b3306d9b2d7552e0d68c591ea88368195f66280b80ba0f2f6ae436c423c5c9393aa9f4588b0107"); Test_HMAC_SHA512 (Key => "931b7d98f580e6d2278d1b671117e6047a59edcccda191a81c4917de65e905e614cbcf79ca9fb3ea5d70e2b920d7e066646f2d833e88250d8b2025fc320fef19a9815010bba900c688b4c9eccdfcebd5657fc084108f9c0a74cbf70f614dceae592546865006930db0401828a0eecff98671ecf8ca1dbd46de31d53e7b0d694c2d9ffa02111f3468ddfc17942216", Msg => "9f848cbef3e29e43766825a1c38dcca8f84eadda22d0672bf5477105c116ae8fa138412ff6dea24e1359f15b3a3b8b12c8b9dcfeac54743c1db95c838de5aa61d88c53c7c2bc41c8a0bea59e553d8fee80a9bc4df4deae026901020d71abff69ad4a6b8f40c4a23b845de972fcdaffc48ae6f5cfe2b640043fe90dae55b2d42f", Mac => "9575d542bc82ea5defa50698a7e77c4bc68f47fd332cb3eb52f009987a7bd289ad3837ee50360264c95467c76c0e8ac3"); Test_HMAC_SHA512 (Key => "f2af375607397f0793f7624c3fbcf530ff81da1d9fad72439f944f3d403de8f2df6891ba82cfaac3b1ad16b2877def8d080477d8b59152fe5e84f3f3380d55182f36eb5f7d24d9af7c99648ab8bea7ed4920887760f8ebce1faf263faea1b4a48b222d8b21be75949dc5341bfd08871769ddf642c769a57b8a1ece68ca826e5f9a323f879627e73abb396fae7ce1", Msg => "ebda765da63dcf09bde64e646505edcf8aa4213c67e80d925393f653decef87c1c26f7ac41d4d8896e41f05fcbc9bc0bd6bfd318fbb21a2764ef3794124748562d13d427987501e6c9e00839d8dae776d50056c45f4bfb7d7293e1d7815127c4c5a9f516d4a8b4e775ca7f38b3bfd4d8306e9088bc3b1a5c2685de645273fd8c", Mac => "0b7a197e76e58bb8b3ea8b28a25cfa35bd30c274d41ca25387d43d5ea7145cfa08ecca6e49e45bcf9a7ca1b280cc0295"); Test_HMAC_SHA512 (Key => "f6f938107a56a48534248a25a03c6f2f9274e2ca27c20d47fba589a79cc0775d3fc8cc55b2a1ec3492c47be2bee46f460bd16a503a9c483d27fcf31642f07f7a43a6739e1a9c64922505c9c6a66e0acc74a1da5ff1cac7a53bd80fb1a726b64c6b5bd5f59a8f352656af1cd94122674b34acd9003493b307a101857fb1aa435a1dae9b611ac186788b891e247547", Msg => "b4b884477b9691658c61733ecd7ad261e00b0169489b3f2ccde0363521d4c875c30b0b352443924f093def9e30cb75b3362b43c9b8937efbb90dddb543856b6951208883edd0319e962682f8e46779236fe1fdfeec7f1fe4999c9f23dc15b2b026a202191e66f7bafcc435343275661b52d739ef2c88aa4e3634856732ab25b2", Mac => "343a2499482bcf541bc68e55eff02875eabd96b4e2adba90390ccbe7b8b02c095f29f7b681d97f5435108ef27265e164"); Test_HMAC_SHA512 (Key => "409ea037d05a6c189bed16324a2ea9b0694838abbdbcd04dd7a5ab37e940a621d9abf5c094ed16eda5370303066aac8935d8a4118b4f1b5fca540ccef5acb7f0642152751782fc4e4becf2124b4805a089154c06ed6816a16d302286debf132109861e1c02200682b5934a25c2d29d3d8b8696518a0da95be9c356274c81a0fcf264c17efcd01cd30cb47305120f", Msg => "c482a31e43855cee2527df70c1364e8f5fa66077929056b2c87b31901fdb22cd7ad7426ed54f83ecd51ee694a39cef2efb6757dd8064004653002ef4e3bcf3fb07e8ebdc4aae2aa98553736ab4baaabe022a8cc626509e3ef28863ed2958d240923d07324aab396e5e4fecb8999768899b7469f92b5f18e2cf9a3a4399b8a8e2", Mac => "204cdc33a2b804bc8d1332a0f9b82e07c50d51c3f645898de4148a7005a13b9c7599e92a4540c2a23996b5547594e39f"); Test_HMAC_SHA512 (Key => "79d5a72e90bbbaeeaf84297bb7a07ad7f141e5ebf5b3597acbebc054516284ccdc24526b22231ee658d2674e97efbc8784a07ffb30c2e98f3d7e4ed7431da285711d3d287884db13a474e79a4c00f9856d3e9dbe929d564df779e286ededc08180e9f0cb5884fa5bdd9331c89f7a39b9f442c79ce3eca89b400505cb197be5a751aff3be8bcb82a84956ce3e5506", Msg => "94c75d7a30d8b1267b527a6c0bba34a469ccbe077d1c6a6f46fd515ecfa2e9425e83d9f7ee020b8edf4f034ded8970f65f26014d80947ad4532007d98318d0b2992ccd48711adcd2ef8b11e3ee374da7795012693e1e95593fe7158dcb116c45ad8ae473a3684b7b12cd4a37f70ef23e211498669e02e3877317238290d7e482", Mac => "68f507eb2c0ae009965302b8387196cc83860839d9e40f058642552fbe93cfd9765a1812b658d8f5056169fb608c2c31"); Test_HMAC_SHA512 (Key => "52b400b5fe5956268f393e1418ea8a5329896e9ea447ed38cc2492d49ffb60b366bf0b0c8a0469b0a9c123eee954b0b48cc684f8c5518456ca1fbefb2b5557c16250c49bab2e3d3416916fd3da9f7282ec4efa6fd0ded192b0a78590ab145ee06ff0922c0ae0bcfafd318b8b92d4b70370a73acb6df7bc34a3424f5dc6415c56b525dd854e22cd49872adddebafb", Msg => "b1e81f17c2b8e4654625f56ace0814f2c5b79317ae33ba13ada2695249fffecc70107991bb98dfa5f4cfdc0fd60fab2d13d03b4a9cd68a721ca95585c546f48b501480473f19360f666e20dba9f0f29b073932ced8cf9b50529ac473529cfd525adc7962d5a3b34aa3eb0af5d115aee5a8dac0caea84b553585efc447769e0c9", Mac => "29fb2bd6920873e7e73c06e48cf21b2569e36c7da879b802ad22dd376cb5c01c9b76dec775d87de289c82555ca3a9c9c"); Test_HMAC_SHA512 (Key => "e4e4d9924d57bb7741d86243d2818e8cd133acd74037ef5c0625a20ae605bdcbb2b5b609bc8b99718e3a5bf7dbfa6c1ab5e38b69ff9ade46263042ea0c47e0a94577017786f023ac5a604b0417179eea11692bf60d530cb4f962ada7dad16b8d05f161e592ce7eaf0e10db73701f4c844e8b368651aaa02ee7838c4937ea87005aed7f5ac86fd5021013b34bcd5c", Msg => "101c3e74ab6b30458346b7a1df2582490b7655c307845c59819dbf65017476cc64c45fc98b368eec5485e462c9e0e3769890c058c4daba1d9927ab08e562dd0865a21e817e09174f2decd9094133b982c8035e96c79b18232e7c73550acd0d27fdfda426ebaa7378f7c2bf1eaee8ad7681195604798f1d7126e541d4d97dae31", Mac => "2aa697d6b6bc98c1295d74280b8b8aeca85b970ae9afce5a53ad846e1af75221194242cf3f000696f1ba6d50d613105e"); Test_HMAC_SHA512 (Key => "95308d9fdcf997893fab34e3e4e35368e956ab894c21b861085a00eb81eb9b7322a0f24a457ec7be535776492c9b7a09c97132702006e53d472505abdd09b0e8a66f7cc875ef74bb4f8b5efdcd89400cc27e225f1eac1455128d736c75b069b367c4b38234f3a7687b7175658f54ad591da601bd0fb84d91b1bad4951289ccbcaec81ede493267ad1e2e42ea39a4", Msg => "88e1be9b171e8606c966cc153b77ab86fe26ef05e39979fd75b6e6adc6db6b7e6fd00394d2facda3a2d1af04a6944008b93be58c16ad3acdd233b37eaa2c8318ff03bc721f5fb891c699b9c1e573cce4a107f30b9ffd82437f01cab2a674f5e24162315c86b511793da82f75807e17c5bf7360aa07f31c07830a7370431c8a83", Mac => "703898c05011fc49007a182d0e4d2adc1de189013f3080e4767a1e4c32e3e4aad2fec73ce44af52d8283981de55c1a54"); Test_HMAC_SHA512 (Key => "8b78fff13bf0484ad184c56029f2546a27e309fba60fc53fb1a80a81f6f60df1773f0da583e9e4dde5e2dc8b5b40c3134a25424fafe66ad6596c907e56da5b1fab6f1b9a48af5c1a3abdbc9a230cf9a8e7364e68a92c00dbf69034613f5f037d8dd3d0d97088d98a38dd0d94689d1eb168dfd64e7a2aaed7efdd9d349bce2e948632d569e4bd83b3480a7882143c", Msg => "5af4e9eda7da0b4f6919028f7caa329003b281b3afb2b8a83efd2c8441709f13235d616f67c8bad131d68da8088235e8da92b3a540c90be0045feba1e1ae8e46892ee01aeda3e329b89551531c0183a0d24e91d35c82bb428eb607e44cc82cac954faf15c1d44cff063f97b9418fe35ff3ce63668a448f75e3ecc9760c2441ee", Mac => "5d843f0479edf1b6ab5483521cf5353706dcee0f8437b828fe80f60c44c33abef2955b612c376dfffcd67fea585c6d50"); Test_HMAC_SHA512 (Key => "7711be3686e1a1d9f6c2a51c8455754c58edafde234c97556aad0d662208bc5a7c9195b502817c15e31a405c8be5d111773fad0448139c3116e99de70620202a1f77755559d38504f73cc0301728569c88fcaa70dbd00424bd7285a084ae61a207cd485fb35c256ddb2f0be050a56cb4322c8d6b050836f60751aed9c13be78bdd9bf51b37a6c41937fb0bb45de4", Msg => "51dac8cff6c0d3b27fca03803e554836c8f10c6aee7ac38dee84c46deafc57fd980d0f593c415a05d3e9567591bee6d38ec806fcbd7f5bcc1d310e9b33a3db07b7fb65f48eddcdd2f8d5821f0bf55b2c60bfe3230c45f449d18e8781963cca12156c73a9d4de54a2565630839241cec9a49c4be8c312b48d7364d526fb0e4ba4", Mac => "c8909eccd81ac5c763cbe4c2ccb537298026781ea0f7cb7ac43c0aedf8d369bcf6f40d0ff315672e73294dcc4400e4c8"); Test_HMAC_SHA512 (Key => "205f40ae5dd58fec68ad60b3a29041ad2110148001a108f3ffe4c853432cf2157e3bcabc354c30fd5d57cf21279098ac1d306f3c6e7923b386f4a498e2fe70bb23824f18610840fec1efb3714af6f8ccf402f8ab021b230792b7a9a3733beda736bf378b8811a837bffd7469b2cc4b56ce0b1894668eee374bb43f3b9deb5022e077e9dd527051f07c0a7ad2081a", Msg => "fe0bcb445797a28e53597311250b23f0fa7763e72cdb86d2b9918f6ff3ef8f64796d2e846505874ec7e039b6532eba295656efcbef4ffa037b4d543951a11bdeb0daadadf5317531112405883b606566e2e4ab5de664cc5b07ebb2749ec58fe18b9c70496ee115401a6e000e4669ccb1866bc0257ae1a4e245b3d3a741249276", Mac => "e85d23f403ce6224efc217efc09d90f56a0fad52dc7471499199a126872d07834603ba26512116ecee901083e0ec7cd4"); Test_HMAC_SHA512 (Key => "75e3ac050d30c6f8b3fc66496e03eb2cb0bb826a2fda9a05f018981fa436cc18383fa4f7a80e200b141086d2154b5719519f81654d4cd69283b5bdbab5642858804dc6ad34577963e3180a71b8e01c3e8afa5e09b12e0588198a7acf95634f74759678f15a13b849499d59efffcb20e38453801e03870e30d9203528ec3b2bb43ea12389c24bc5056e26db139113", Msg => "404d7a28f4bbd3753c928114aaad41d7919fb0fc0fa36bb94bd27518fc99d9052b6990a539b0a4ea2309966505affe5bdd38711a9280a78d35e3dd0f86af797dbad8ed8f7beedd68314d846b809454511158dc789619ef7e0874030f339bd7fb7503598cc35cc616ecc613cf22428ce1b666bbbe23568bb44eefadc10c453ba8", Mac => "3c226c574944ed5caa2d511740d995ca468185c426f47547c2456f2e262808fe55b0a0da08a720dee83bd7dc6e898924"); Test_HMAC_SHA512 (Key => "004e324f0a500b652622671dd7c984d1dc9ab39db1adfe70598f0d635b374b4a0b3b44890a44512a10c0782ce9d68e1dbe9f9eeb96938ff71c41006ba34477ce6772bbd516567e7c8fe13f56e95c6f21b7a1d39e8a8b29a0b8ab0e625c3c1f1d9e595fda356ed9852aed8644de4270074e08185f967d1593b433fff18f098b62385af7416f74a96d694c139dd070", Msg => "f4572bea6966ef05235dddff26bec1853eb36840434604a79cd4d11702bff9258664b633d64db641bca7c306e7f6a33fee073d489226fee944927b72e72e580ad679684429c015f3349303405175f0f9e0d7df2c8b4875f5cfe6a394b71885c2eb7f8a46ea29d6c39408e4d4eba3705a1a0c9415b712317245b790a4fde549f6", Mac => "5c6c83482e60d6d787074d18ef5b1fdd05cc4844235e7b8d6f705bb07c9cb0d32c1b66491fd638fbc41956041bba7088"); Test_HMAC_SHA512 (Key => "61956d7ac4068b0f7eac617bb1ee43127067f9d1d1a26d454422a7a923a6fb4f8aab81416831c627d6c2c16ba8b1099c42a04510ae44e3ceeb6d0daa8740d8b270c7bfc907ad51927642269043c5178b26e3ae35187bdc0dada4ea84a3f1b25ebbf40f5cc700921805337730abb4d7a6c33a1f8739cec0cb33d1287da040f21c14375940d3b4f3802c9e9c940806", Msg => "97648538cb39ec8887444d24c0b7e0eb278a88c7501514e014debe1034b0f8983eed6911b52432a56ce6757e33d6187fb500c632a16c370208f2b2ab074fd0eea5798289fe305566a2d6f5133880f072674dbdb2f6f7fd7d31a700738f0e8bd893b1d989f084df35f0bbd5c916ddf12c031a762d96deedba57a6b2521613b3bc", Mac => "9b2cf9090a25b8528c159e96290fbf41e077bc42cae131b89e4a212d20f8e0680e255c3906d09cdd60f3de1fcb68c1d6"); Test_HMAC_SHA512 (Key => "c937c7387738e5be8761a41603a204cd93128fdaa18698d3bc62c1613aafc0f2226e62ad492ccfabbad711645bd0d067ce415f4f96b1fdf27bd654db2faa46fb31c1e99bf2d9d09537b38dc4be2173b92461a1af06a93cc16703fb5b515be9efbfd666e9bb666fe4c49c201e72bd77295d175be43a95ddaa4792bdc9eaeb30369458e07fecfc35002a3ad35ac0cb", Msg => "92cf3716e22f68d30211401034fc3839c94f473695e0f836a0e4bfab1e0f8d95a2fca2048ecea3d8ce18ecccc6fa27b3888d1d014b81cd8c1905bb94c7e78b012afdceed88c31c624d456365ff407e3374840aca439c75ab78b157df8cac0638949b65d9b856fcf8e7624ee3c9156641f5fbb49b6579171b26b03b9354a425c0", Mac => "490450772d57cde7f86f9d685d070c23794cedc113143c441dbf5b4d787fe6e619b6e6a286a3913e1d713f4b28af2477cf3453c41529c2ec"); Test_HMAC_SHA512 (Key => "49a75faf8232544d78234c3f4fd9bd7b35996217f5d579b2c9ae2f1070b7590481fc6493ff438f562d915720a4f033e1a27082caa56cc2b2390e02b90e159a2b4dd619a72c817f80c1a6ad6313f8193a7750c6511af574b7da1a14e85aa87ea8553e663232768c92d96b3450c678d64e5b4216f37bf8f68954d94be47cf76e45403b337e39aa1f5620e6d52ee2f8", Msg => "e4437faeaa8e071f7fd71b5d9b42db5643d0d7ad9ee17f5fc5f8dca619bf7e1dd94bb625f4a005881b78d35d1b40642c6a640952ffcc93a667a70d5c1667ab2afb0cfdaa57a66800ce15d7bcbf14ae02d17600e8ceae011fb595bed60a680bdb7110bd037ba71acdc0378e422ec5a01fa08e2336b290b112d44c55da9ecb8877", Mac => "a093df05d8df35bb12de09c9aedb23dcfcd517df6f0cdd1886d4c736c85068f9f19486051d223df48509a2a6e1b50ce22429efb8f0797823"); Test_HMAC_SHA512 (Key => "ab3ec2eef335aef9a9d3d0da7082ffdcf77e93ca737e77af4d9680e0175cfd3cc54a90b31a633c056019becc5c6f21bd815b8d2b646e60cc70b67fc0dbe4efcfd8aa9ff30f6788164a06f81c71232b24b8701c0b17589a32fbe29e823bd7dcad4d2798b6ba89bbb3cf6226d295e8469a0487e9737484506954e0852d1e7fef5c8a8923040311fd6557f4f0f4b204", Msg => "81159166393b6f178964edf61b612215cb6af701001d24e93dc45b03f3d7c22c9ac2a7cfffe77007e0e7d008b61d41bbd26caea8ab3b6f1977bd7b7cf876d90a99fb58a6b9f980084778c81a8f610aa2533e33221e423ffcd58965da8fa08e4da6480cb50f778960e6a03df64d3465147769f037003a7bdc80af7fe55f5ec93f", Mac => "866fd902b3bca0ae39abf8712fc35ce9bc0ae280b6bff7078b5d17711d7662eb547fb5326a9f739a5e24ab125386392ca74d24d10335acbf"); Test_HMAC_SHA512 (Key => "e5ce84beecfd6fdf2ba0a229dd18d214eeafec6460729fa1ed3f1ac8ee1e17407bd4180fd4b6f04effbc86dab3d6d64d7583382d019fe563eb7cb7ee863530d8053fbe69e0413d9c7a26becf007087be94cf5bb2abf2fbf6b39dec8bfafc7b1ccb37ff34da465eafe107d26f8c8ded5093bbdb5d2512e8448dc84107101afff514e361d9886c59717f864b211ed6", Msg => "db6e03879e21326121aaa331892a3d5199e7825077fc6f43b34fa35b85c4c4bd56b01f8d82918e4c5dfc9f6574d6f20215c7e32411ec69f3c0cc3e53468e41b71569183ab35b19ecbe1e6b692d5868b1d81246333b6bf72b768d4d2e99e162031f7f37b5b8e99be64cf84f663c166705ebaef3a57de1df93de7b18170625f049", Mac => "478afd001acd85badaacf824427098bd5c574340e837bab8c8e608b0654cd2de85e3e697252803cbeccb8770b1fe3b5ac1915b1b9b93864b"); Test_HMAC_SHA512 (Key => "79e902e852b2e7be8347f379fa29b636ef0439acd1d792698056b65ebc8d8f9edec54e63c5ab035214af6a009bab08b412c5776f0d96ff292c8c665e928c08c999dc2a70c4418be0f6643cbae17ab26ec0241a474994eca8ddf2c39503fe6c7414f63c1538baa7f1902e0fafb5e0daed62ebc73c6d1b826cfc51760bf529e228b6db2f5c075f810c4cd58ce80023", Msg => "7d1cb6b5c810a2dccdc7651cb460f4a5b9b315347586c4e65f05d54e926cdcc5d1074a01c85cd8ea94a729a88686aa0124f6bee2717e183b6faa6710e1bb39ce559d19db6219fb702f4cdbab3458a0e045594631cc9b3c5e560a0bde51e9392e13c76d691fafd319a4a0c24c473c9deb22c4f7480d44faf61c0b09dd695ea48d", Mac => "d1004dc9d78d4559d2592cc1e8d960fead0f94ecb45e8f538883d930f227ba26e865fd366ac706823729977cdc50eaf03bdb1727d2818cf9"); Test_HMAC_SHA512 (Key => "78d9947c69e6154472e40ccdcb41fc21a18329030195a0ddf85e77faf99856f57ee03772f209690bcfb6db8e0428976599548d559539926c2070a834e505802dba853d7a83587bdb535190dbd584114beb5899ee94ddc576135f83af4e3b8dfb74f130fee27b529a48ddb31e07fe73badeb6d537c62842e41a5291d4fbe28546f34b9765d819f632f481cdbe623d", Msg => "5c128db8116c5615164550d509171ee4b4d1014d847beeff3d1ce4d2eddc7cc51f66c28950904344a73e678fe08301c08a0a256f72b53a335f834fadffb7b3c82237bf3e2632f75fb205520ea860d50c54a46679ea90e0972f1d63d276a6eefdce4c2fdf7a9999eea164b85a47f4c14d7c686e72d35508b416b2c54838f155ed", Mac => "6ade4411b042e26847ffba81f9d77f1d6d452ae12aec7eb2926a6db35e1a339f2ad3c628a7ad61c7cffd301dd18403703059e6e218508f7e"); Test_HMAC_SHA512 (Key => "b6ee6f1a804c6552d1b06ed4b3117b5e3f2f19da056cf4d6aedd9a34e0a1822362714d4e81794b53b266417678c16a97887bbb612cc96bc5e532b3a654e5d3d65a5155427ff09569906381138cc49e3fc2384c5d33c34abd3d617c487b52ec6ee7b5105f41584b7eb5cfb512b8c31f3f338d5236e30398a8ff927e801c8ed7d14fc5040d915a737967d166ddc266", Msg => "1fa2f26ced0d74dcf81a0640c50a708990f8f939e31792c7673c5245fb9c224003d6bae80234cc706c2d7eb8b52f1e2aae9c11e211130d115af089a3d916711f06ec1dcf14a58422c9c5ad4e8ce06739c0a53a9a501c9d5b8b2c694333608ed1d0eb056b4ae906b8b7e77a4a72a6b3806d1c5baac8bcaa6fa2f7dc6c2f03e31e", Mac => "e145c5715b9442347f09405640f2af5bec8d8699f458d4c69a0f823fe9e2a6676759359c8a73ccbc34253f38c81c7ebacdd433ee1913d19c"); Test_HMAC_SHA512 (Key => "63c866198ef4216d41106fda34c4ebdd040a39de8731f3585d28e639c7f97f8cbc9480553acef7bcdba9716ea8d66b4131780917de2b0b048045fcb32b5cac054808e1fce6e94ad851ecb47fe6cb802225d3551e08ea122093d0078dada564212eacf1d6394e0007cc62a1d595ab14ca08a284bcae76f2f4c0526f90f4de8e26970819aadc04039274919e375e7f", Msg => "afc68ef8a54dfdea5bceceb387f88b0c0ee86c981ced13c4738e79f303ce29d8bbaeac22a0f4445f1c2bdd1a98eb40474d5a8ae256f3dcd20a8655138a803d14966d835ea5bb6a7734c17f065e00ce37ada85561305eb9e7cd3c385cd919dfeae60bfdf4dc2bd7fa4c989dbd00bf9da4d7d9b75fd0b411ca64b70c1419217620", Mac => "2c547e05592dc04ea530c9ae8949f3f9aa6f9563e69c1de166591e24a6bb4e6b1414a079734ff28597cab217161e147fb51a1434e9fd21e3"); Test_HMAC_SHA512 (Key => "7f432d3c5b0b0276bdf36541c2f180ee0684ec7e174fca642a070f8c0d901f9b5d639e79f933820db6d06d47554b3b64b25bd66d3dff5201ae653655f50b177970246cdd613d9d139f205dd68cf93a4c46b7728822b50953569a182cf57e688d214e3f707c717a12dfabdcf74f42a62e2c6068d6acb916e1886d5e18f530395fd6a8c13b30164291de3993b18670", Msg => "15ef510c252e80f44e537b0f1fbbf3d57dc69ac349e8e6083dfd128217dd67e8fa31b949118534b5759e593a510d431244042f1a06693b864f296ed3f4cff9fe5355bcf4f2390c4963d4b42c6be8399b637863d3dddcf80b8b14cb615d5df515ea0263f511759118e09e94cfb4735ed9a2c93ed61669a6feba6731139aafe494", Mac => "74787330ed257b3c1f545207d42470732c4415ff9f19b243128c9cd9724ebbc15cdd14b1d8d5b12a709e5709691c334207e940b6701661ae"); Test_HMAC_SHA512 (Key => "ce7509e8e7c29911223037bdce5c5d8cda10fcc050ba1b4e201cc1341f44160e4fbfc5e4610aa4477849979c303bb2b7df6e9dac1baf3de17cc59068a25fd98c7a4afeaabee72e43bbddc64e570b76d352c1a0b5cc2f00d0081d92436fddb00fd87e7be206437d2d72538d7c4bb2f207bc70cb846d21ae404c8d8f6e8da8e3bfefc406334205da2e2615b2ce151a", Msg => "f6152e7422034d9c5c8192d1ec85a965eb978bb555903d095fa2babb0a982e9cf85f64937ec68287fc82f47f6975a608323076d845b6e9b068821c87d0ccfee4ef09bd8c8db17e5d1a44517a438f64a8c32c77f87c488fa7c6a8ef4207ee440d841920a6764ca9e661d09308a15b4b0d4593755e21ce99b41f1c1935d68767e0", Mac => "4a8dfd230cd6f466a29c8f0737f5c8253f06694a43a6f1bd78cdee2fdc397eb68f70e242992d68f23904cfdcbf4080b4fb91da0cd58f7384"); Test_HMAC_SHA512 (Key => "c73132626516889283f28fef56fa340450a6a592396d0a7b81cf70ded5990584f0658b7bb46007007950b9a3a5d551a57cee60a53ac00d7b5f9309654b1ec5610a04e2d9719ee9856afb3c8e8c254cefefa60d213e4ba7f70d286fc76ddc15cabe171ec5c55995e9fffcfef834748caa4ed6944f6c9740b53396884c645d5e88b4a42987d81775f4df5ae92bc449", Msg => "b1e626fd2455c59e04b0ff4e1d2894d9dff62765aa92a2474926d71bbc4263133ad1d88f764c1bee222d0aa4b1a7628d6294e0827aafa729d003e2118fa3aafe389c2a81e62801ccd624e7c526c49459dd86de132c6421edf44ee36687d7b8d4b32f64fcfd5140e02a7ddfd804e9f0e45ab46641491bd73abaef22412c46553e", Mac => "2b5ec29766abddac4939a3610ebf2a043873cd15bc121d8ae6dea60af0fd03b348f835b32988998630590994217d053cee8fcc4017efed80"); Test_HMAC_SHA512 (Key => "e0ff5e7b2612bbe69ebeb72d5826ff1b820f4e4adb8a86e96bd4ffbd727a1f669ec02be480445c5941df361091cc15bfe10c0909d208e347ed7990889485a6d6382a3dbccde000057b7a84c5974ed89ed1955d3caf15d7223afdc5a9f710ee4518053d0bf42ece70b559495450f46f3fbb74f2ea5af78a01ba27452781621f3ba519d2d9dd76ef2455422ec3a605", Msg => "c213d3695012190b4ea9dd66912db20d687b897d758328b9bb08d831f7a15ee834042dd69a83da8c87d7d016e11d4525aa1e6d6ed4d3ed4d572992ae8201432d8e7b347c79745d05124d2bd150ee75a9e70bb17b1da668ffdad6e799ffc63882f900502396ec8ac11793545f86a928e04acbbf6df80581166c973fbc19f9242e", Mac => "1252ceb41afebe8dd9ca1d4a01d1c07b6e39a0462c497eee7a778757aea39d0e5f0a1239f452663ada69d55cf2ba14836b40e2457933e37c"); Test_HMAC_SHA512 (Key => "59b5247df0ce81b59d0b40546ed185ff440be012d91d753702195a3832364011407e564a6ac66a8399e35151e71b8a485eda1e5902a6ca5f125560f48c7e6b89ef2d12b644db3fce5f9d00b7639b2df884c44b1411c0b017b126e86eedf058fbee2c216988f447bd789f132eea39b5373f312eea0c526d8766f4b84d5d744e90c6e14b0c3ef8cb796b53526085dd", Msg => "7dd26a4d522342a5e9c081e18925c6f2ef6adb5141674240481b1052d94fff2d9476be8fd2d88b8fd8ef042651113aedfb500828a09fa3044836711dad371f43ef91ee7e89244d4f8427ad39eac791807e11e431aa129062b93d4cbb460db536f4eba1226051b06e543024243e8ff234e0751873480a32e303f948358e18eb8c", Mac => "0c9eeaa855d460d0cfc0babe4c57110f0737b79e80fe76422832e47657afaf00944a061bf31c897e0a96abee0614eb755e37f1a7a2699f5d"); Test_HMAC_SHA512 (Key => "57c2eb677b5093b9e829ea4babb50bde55d0ad59fec34a618973802b2ad9b78e26b2045dda784df3ff90ae0f2cc51ce39cf54867320ac6f3ba2c6f0d72360480c96614ae66581f266c35fb79fd28774afd113fa5187eff9206d7cbe90dd8bf67c844e20228d8507ab87e993125c4643cfd8c58bab7053c64f4da5c6604a92f6eacb6380226e12a166ad54fdeac83", Msg => "ec99b8d92c7b68072a2e8b2d4c4eda6d3cab78b63e4ddde9c1b5123a336624da1aa4d3d3617c8a33ef04946c7fe48cfbab15154849e9cccdfb4c7b7b0249905953d0cd6fedb640e269fd7660d356ecbeb8e4c6e08043c3dafec97154460b9d33bfa30e767931735dc0a099d1f1abe1008c9ff2488b62ab56f2b45b8fa8b535ae", Mac => "fbc3d7351550d40e77bac577fd9c180f2c9487d301a5d0e44f4b8dd207980c24973964ec21920ceac324fad4c88ca235d00e86ff9264d2d5"); Test_HMAC_SHA512 (Key => "3fd3dd9d3a7c5cf7e2a1d60f489f84471902179f21f656ce0fff089278ea14441e04e7af71891622565f44c428044728fcc686212a32a5d809ce651bf90bc5f8a7756e8b8c2d4d14b799824ccd5a79fa4e7e56c119f7973c334cf44dc48f8ab1628f39d8924e4bf48cb656513f8763e495944f26f82f722315e27fcde060ab97d8ba123f8cd656eb5e1e89788775", Msg => "05b2305a6264fb92280197a579b4d336395d5b51148adbfec2a3671589641b530490feae24e42ce6744a355da150c02839d87466b31118d0b0a6f89280358b5ae80254ae22ed068226a1eb0a280f86cd621b78fb1394a000c86a8659da1bfaa6386ff8016665cf8fc66d825417d76f4c3b8c2eb73dfcbcb49257d9119f00ae62", Mac => "9b4f475853a268a72f31364df38438d3fdad705c9c50c8dab3d64e6c193dc63c6bbf399035641cd222c05aead20ba55c0df360483eadd7a6"); Test_HMAC_SHA512 (Key => "01b95a887927ce31b1242391bbd00965eb77a903d4b8399b72e6cebda9ae721beefa779145160b626b110cc554671da0d8dcf993a9ab073888e02fa9b803ed43b3f6a3aa1d20340df6ccceac13cb0797cf612cb8fe5fd513228cbd4de249d16bb77587dde98f71bbba1a124ee046f0d239ccea7abb1accb5aab021b00dca491c623fcb3191a9ecf31fc680b4a41e", Msg => "632afa8e79b14b2a3604f5855d2bf182d3c56d6853f21fe46271da5286065f38b31f751306b63c57b679beb14729c78f0040f7e2a0d615224dc5a693cd0cbec8f87117656d6b6029853ed72b85681a63183c3a6dfccd128afb0dd7e81d36f0231c69070b189560a88c9b697b81b0930701026190cf9ebe23559194d6de4d9a51", Mac => "210ad45ca2fd1f105c0a18f993774f933ece57ace4da619689e1cb8b491a189cc6e4ee1954a32201072e70f934837c0fb6e239b4fdfbd26ebf11b9a919eafd09"); Test_HMAC_SHA512 (Key => "61096f4fe5340488916de293be38cc3ae0c877670c713637b760d74fc18ac773b2e27d5543cf16aa20dd3d83ecb34edb8545bb6c8a4aaec81bf1f0a4e0cf09774d1ca944242046b33be807677f3de18c39d700af90cd68d34f50dcc1e999fe9fbb20b9c4900fdccb6af607e680c0cb7583e60dd825e2ab81dce7634de3cff0148355757f90841f19366f06a9f623", Msg => "67e704046f98cb5aa97da95b19147391f05788f811366b0ece44b12af2b11e0e05780bbfcbd90a950e0acd8e9d2a44e7957606eedfbff212fa1c163cfbdcd062d2be3259ce65abea6406e4292c64e9022cfe89155986ffc45b96d289919ff98d552243778122f68231d9b6d3cbaaa9093d57d9158674da4c781bacbabce2e2ba", Mac => "9a2d147e50827157f3866e868c1cca9f081579c92f25da8cebc9ed249928c82bead39d480ecbb5b5d0e0755029aebf3e0206984f3ea83f4d6372f4453390e070"); Test_HMAC_SHA512 (Key => "c5c06993d43f27e86bff96ca7511176974bb63e618bfc4b610e0854820a3a6e77453d5e134479ae95868d2babeed5efd79691c6d6d0816391915faa9b3c0cb057a1fd5b34872e69f66abbbe0a52eb998aad5de1b8a37f654972a12657986368e802c5250384773d23ed23b83535b8f01af068f3a97d4cbd13225b3c3997c504a2d8332012d4faa4988e439eceffc", Msg => "b53127b89772ea1ca6dd27277da80ed972e82f1232a73d4ba537118418c5f17d9a311329a61e5d6003456fd4e90ee3466561d3fafeb99c68997be2349a87d5604c0cb2c183a08caf80904c011474f73909072ffbbd36fdc41077cdd8805cba7c93680c667621ff72e366c7964703d01825834afeb546e5c7d2d3d958136e2a39", Mac => "e3a4d32f262c6cb0e99195c7439ad2731185c58811f40ecd32af214a21c20869aef5297cd951fec2a145e15f982266c46f7a60c9fb0bd0c6b16f5ee40fb44708"); Test_HMAC_SHA512 (Key => "5860501208a4c922ad7550dbd931a19ac1434750e63d5f34f528a0b5eb1798b37c0338eeb6d293bfe2b9e306abc4cd6382b3e6a94008758f0d5e7ba981fcf0970aaa507d8ec456b3518c07bd18c4f37d8f7db8a7e82ac776c5f86b9d58620781c8ff9fa5d79f9965c397c5e869599c50b048c53325cade4fe39e7879b67063d780aa2d4fdb8ee53fff82246fe7aa", Msg => "c35b26bd02499cdb6b06bfa4b18979f0a472ba7c559dbd277bf78c611590c6e051f2a094adb22ade5c44d4fdeb1330c924d1f9a3330c55ac07035735fbb7c877b64527844f72ee7eb58817074f61dff8dfc1ca56ace9e782e06855af2f350699b9fbc37532b47023407992ab24980ee79de8337d0959fb11cecf8eb8f83108af", Mac => "8c385547a8eba518e777c3593c5b7ce0bd7c859af6d67b6238d20a58b8d0d74d80d18ab358ef1c1218b928a026ae8c4e3b73bb5bc0914de905d499c75e6f3d9f"); Test_HMAC_SHA512 (Key => "fe4c83e8496a69b7a251228396a5d2b4849edcee0ab1f8dabd6d872a1da324d7c8c97cadeda05f0a041517e3bc65f807358538a870c1011704a3c5cf1216d2b57acb269e4fdc841289b0c750fa1e779184d59a9188fbcc4ca11492059326ec8d7e1a29c25866ff5699e9dbd2381676dad755a9b23ba68201fe8897d588199ae83b7e2e22ee85f95e9d89fb715e97", Msg => "c24fab7f7998c69063c2d1103e60a6c4cb03206add01d09faf75f1007a879e9047ee435a02b35257d1373791a4778d890c8f92d6507dd810be283eec3fa11fa82ea8c9aa6a723164aaa9e57a11b54127033ae6dd36e1682b0c5c47e420a4217e1e8525b8d95dcb7f9721c213afa02a66570c04c5b7b6e7b94219f430451a0cd8", Mac => "d725750a042de65607af5ef523e3c86d08be52427b7036ad514b9596c901e96d76b5e58f68907044282e695b3b875c09ad49ecd9950fe312a59dad691471c572"); Test_HMAC_SHA512 (Key => "41f4749cded6e44c11b8118c38cd71cb95a26f9eff01bbbdd716e44e3ed02867858a8bcee5eb2603710ac28048d6a53f0fb6ac7d9f6c9abefa3fb01184597e95706ef83c789ecccfd19df3325e1186ea243bd4dcfedab157914c115583f7d5fee8e7e46efdb87eb819b7cd2be044bdd4ba7b0e438413a89285852ea4a371d5abd63e77edde02e3c731a178f23838", Msg => "5c74212dfc2a80d30c39d680327d2488838c35d6503c1a8c4366d7eaabe95c7115f1b7481c7987de820eb4d17fd65d0f58d2123b346044522c04f98ea167c48ad2a0f5a8adb30db0e65775b947fd6f4d470d4cc8dd73e001965a332ce63779ffbb0a441458e1f98f619d800032f8408b75c74b46f47dd5e2abf1eb8e22616218", Mac => "7e983cd601ff5837e7d170f3092e914e076c21b31761eb7b9ec211e3506758d8d1395ea914c0350afdd6827c0283ea4af188cf30c1fdf075e41363fbdbb29eed"); Test_HMAC_SHA512 (Key => "fe27bbc87755aacc37f667f8ca37f8888fc9dc530fe4f8f38e8cd426e01307747edff012d96da707ee96338d1b11feba313a865fca115431dd8632268ff499224ceb69d31732dcd91e0cbd2b92bbd5b6b543a74735705daab81a0114b8a8f0be91d38cd3d8ad328cefe16c99d63c67c4446ca7d1f708f9a848d1a9b60238f6907420c3d9c5e48f67889ca7a1909c", Msg => "99841c3e4a41b53c30267dc056e7e9b8f9994494dfbba363ea761c38ec2433d3bd10957d8b7c093472e9a3084c923ac5cb3a1dd2c5270259ce6f3fa80c723dd847a829ac409decbb44395ed20045b694972b4663f2fd658458b9ac7d3ecc65c260d4409110aa481bcea016e41a07446c86f5250f0f45b32aaddec97f293993db", Mac => "562b5ef3d5cec882a2f54f8169612dba2b033325ce5ed924024e7806c745de9e7612dbcfcbb95ea3fdb93de9c6460a866bd412b45eaba5139939fe43d20f9315"); Test_HMAC_SHA512 (Key => "29f8eb9fc8ab58fef681f9faaf934e992d42046f0ccd2fc9ab23d42bd5f5aafda110218196eaa408137a1b66ee4db5a35cd7e4f31107a9e8a81e11e744c000d9784b2d2264696ed721e1362b60b35b2b4d631dacba95658179da4af109cad9687653166c7a503ed3e85d4f334aeaca9bc98fb8804e9febfae70086316c3ac01162cde4461fc89c642f977065f71d", Msg => "3ac2ffbc5b6b2334809232c0f8151ed379a8634d70d3f5a1963a7637c421ad0f082f34a8f872702046a4c69c95ad0cea8b683e6528aa731956810f28c1b9396de8a5905e751c1937c9c17c55dc8771df447575ac93a7c161e6967cdabb9930cc03ab7ba8796e07c23170bbb274ad33facb566eea5ad1c7c16f0127155bc77875", Mac => "38ca18d60f180fd2a40e342272190d9b84ba37bbccf59b29bcbdb08762a90e1f8b28349ca634a6f955cc08c96835ee70a2267444fde88b45b8e313b0daf6e12f"); Test_HMAC_SHA512 (Key => "345479ae901adbac7223f5f9edc419bb64665cba4e3684b7371e28ff07f3124087f0e89a21630cf9e8a6c0a3d8518e0d5eaee7f31b6d0aa7e59927aa0ecbc479e99e61a98b625736cf1506199d8f2f186bfc9fe2038f0e5b87754635b30888c063462b035581860b2f571083c4e5c6859338cdb09004597b2899cdc87f1224bdfcd08fcf07275f1f1156260ad5bd", Msg => "e4b38e556aa285688979a55eeacd7d953f1ee0ab8109444c7cc068488eb83ae9aca1f783a59b944caba75d6e0f5bdc5b4cdbfc6147046e7ed5ea4c757e85fc2181a7580a17310b36fc873e422c4175b1ea24b3830750e50961ba7df9aadd5ebe6badf81148cdb4cd850192ffc9e6103d22e14f3a4a557197291945fb9a292665", Mac => "24d2dd3d082e6556dbe27381640837a23e5d4a4d6822066cd09217a677068e5b8901c1eca7da77a9595be271abfa76f9d40656cfbae050ff6d8ddedb0f4c82ed"); Test_HMAC_SHA512 (Key => "2aa1d94ec83ce7c3c75c6bc847759b085234fd44b407d8f80ddfe93c243556e87e4be8fb30b4743ef1169a24732fb2f5f416042b10c3371dd9d20dda29844d58370700ce69f7df5e69240df77b96027a0ecec71b904f690b875da854de05ef047c5d898d1c0d116c580e2a0906b271dec8e5b0dcdfb2550a40092270eabf253376d6eb01f0fff1afe55d5b21bd8c", Msg => "acf624e86580af11d0d23c19df6969fe2ec2cdc737bfd00bc54dc0b2ab4421ffb58f44cfdf8c1b1bc5b54bc45b818390de850c6f0adfa2048ed48360bdb8c511860eec5ba6f1bcc51cb34cd8ddc35c23cad4e882df3bfea0ad99ccbb0abbfda707be461622773b16bd1268dbcff89dbfdaf789871d9d8ae80ae4c44afa1571cb", Mac => "b6e82d35182ec417bb33d9230a55690f8720d32191cb5cd46bfd591421911727a0f8ff64ba6e16f25aa10669a85bf2ba74d84a754ed947335b7a17af0297accc"); Test_HMAC_SHA512 (Key => "cea946542b91ca50e2afecba73cf546ce1383d82668ecb6265f79ffaa07daa49abb43e21a19c6b2b15c8882b4bc01085a8a5b00168139dcb8f4b2bbe22929ce196d43532898d98a3b0ea4d63112ba25e724bb50711e3cf55954cf30b4503b73d785253104c2df8c19b5b63e92bd6b1ff2573751ec9c508085f3f206c719aa4643776bf425344348cbf63f1450389", Msg => "f3ac4422cc724378100d7515ddfbf3fe340002b7976c43acd69c2acf26c3b18173eb4eb6f73622540c6a73dd3eac5c4ea58cc34772428c6bc7370c0accc8c1feff4640d2cb416e2a5d06f35eb366ec69f5b9e0020923f6086216652318182ba93ec702be701a90c0abe9dee261b00b16cd9042318596e9494e401b62333d594a", Mac => "d336f2002c558eb518c773608387bd500704156043b76104eca2309afa67d69ad9b00e6b83417e088d3f93435922d4e8242e9631f962cd9fc258f3505305d636"); Test_HMAC_SHA512 (Key => "ef71b7b3ca0f904dc50447ae548096b2b3603b312a5e59d490851b270ee99aef259401bdf2c3efc3b1531ce78176401666aa30db94ec4a30eb281494bef5205dd87f3350c1c4a56f3d040b12167214391b30b121697a7915e9224b871a3c355f111a9493be7b7df870ff5c589bdedbc4dada062b3072ac2c93590829ab26a09dd74d6eaf714e3e07532c57e09921", Msg => "50ec304fa342839457d7eb28791b671ba5c425f711c3a351cc76149d481f0547179540fff239f054ff2c078454bfdd92b72b199aa783d562a1e6fd319cf9f8e4d6948b3ed2bcfa80a1d270396209a060051eada0544347f3335c1872266d5e6c1553d9b54cb3e740c631eef0abe2faac1703a7b21deb422d0c3e2b09f0647d06", Mac => "39d94c4e1c8456bed8637e592e4231854df3a6ffce98463e4a85c477d9fd34d27035cdfccfcfd385d91e4e38e8c75d9ff941de80742e985baa9c94dbec5a6837"); Test_HMAC_SHA512 (Key => "e5606f31ca4d0f5d62730f443f6db0edd8224f1881eaf27f9af3215d06e2f72ddfbd78b467082541422ece34e323a8bd45489fe6db8fedd4c9dfec4954ba286e971db9d078a7d0a8dbfe8f5f166f1e51a4d4fbd21dbb916e65c40d75244b6db87747d98de672371995abfacebe983a325e8f0ae22fb706d7d76a2be95fdeec91e60581f397b1831cd8fcb688c4e7", Msg => "082e7b4604dbd3608df7932475e4279bb288688ef998cceb8e16d9695a18e06f3ecce733a7b9e71f62473878b2824941a01b945d93afd1f5204c6a19233230aa0fd64c77822d78a61d266f569279a182fe9f2c287a2108abec16817724e7ebe32456915bbebfeebe659d20053d4f9926741d1837d576d7d79a7b06ca82c279e3", Mac => "d675982ccc457324e24a8ac6db3710b38e5f18c5057730cb7ea2a37b4ba44c41dde0874e43836cc95e97ff0b3ac10410497f9664177b0e576be8c508ab1c7857"); Test_HMAC_SHA512 (Key => "8a0349d4d1ed8c4af533e9e83468b5859bb68237798038171346684499c9dc2b5970730533eb2ca04d1680630820f58d32ecf0bd7db7cab72ffc27651c94831cd1220e2113aeba6c889092abb3904d8a264b2332f2d9df0f63ac36d7eabb57c85be0c331587f5f330d69c7c91f00e606de9bc49ec22c9ea815203ca2ed867fb65d743a3beca6427f4669c9c432b7", Msg => "035f55033df01f670015a828eff154a245e8ca7474b0b3330cabbe5fdd74e89560b8fa075347532aa46ae7ae907888b30ca4653a6419d0d9224944b43181a6a842c1cbc96fcc3b0f1e7b344c2956f2613c652eb27e44e5d773765a9521fb5e0c7125cf31d9a75f7f38ef96ea01b61b159cd52fc4095a7a94c7db0aeaf40a9929", Mac => "3780ef695742f09a160c8dd7d35e2758b08284e8150934d222db31df2767d40d7c815c526ecee5f787030c8dc5f050c419ec6ea7563650dcce1480892d3088e6"); Test_HMAC_SHA512 (Key => "f78343071f61ee7d9f791bd53132e6d557928bcfe4b214bebf6f3592e46374c7ab148c3c4d6a1443a4675cf4321298c865b440631947b6b05f2c2a337d1cbb9b3661de974b4604eb41cc77c3659e85470e47e16f22a34619db935d59cbf5e1101ed401c020db069eff1035e9d1bff77bd8b3379e05ac0c20bc0e98aad7d7304dedd3bc5ed4136184649b5e0f7e5b", Msg => "d63b50b54e1536e35d5f3c6e29f1e49a78ca43fa22b31232c71f0300bd56517e4cd29ba11ee9f206f1ad31ee8f118c87004d6c6dfe837b70a9a2fa987c8b5b6680720c5dbf8791c1fcd6d59fa16cc20df9bc0fb39f41598a376476e45b9f06add8e34af01b373a9ce6a3d189484cacb6cbe0d3d5ef34d709d72c1dee43dc79da", Mac => "086f674d778db491e73b6fbc5126233c6b6e1f066963356d49ea386d9c0868ad25bf6edad0371cde87cea94a18c6dba47535dfce2e40d2246ab17980495d656c"); end Test_HMAC_SHA512_NIST; --------------------------------------------------------------------------- procedure Register_Tests (T : in out Test_Case) is use AUnit.Test_Cases.Registration; begin Register_Routine (T, Test_HMAC_SHA256_Auth'Access, "HMAC SHA-256 (RFC 4868 - AUTH)"); Register_Routine (T, Test_HMAC_SHA256_Prf'Access, "HMAC SHA-256 (RFC 4868 - PRF)"); Register_Routine (T, Test_HMAC_SHA256_NIST'Access, "HMAC SHA-256 (NIST L=32)"); Register_Routine (T, Test_HMAC_SHA384_Auth'Access, "HMAC SHA-384 (RFC 4868 - AUTH)"); Register_Routine (T, Test_HMAC_SHA384_Prf'Access, "HMAC SHA-384 (RFC 4868 - PRF)"); Register_Routine (T, Test_HMAC_SHA384_NIST'Access, "HMAC SHA-384 (NIST L=48)"); Register_Routine (T, Test_HMAC_SHA512_Auth'Access, "HMAC SHA-512 (RFC 4868 - AUTH)"); Register_Routine (T, Test_HMAC_SHA512_Prf'Access, "HMAC SHA-512 (RFC 4868 - PRF)"); Register_Routine (T, Test_HMAC_SHA512_NIST'Access, "HMAC SHA-512 (NIST L=64)"); end Register_Tests; --------------------------------------------------------------------------- function Name (T : Test_Case) return Test_String is begin return Format ("HMAC SHA2"); end Name; end LSC_Test_HMAC_SHA2;
pragma License (Unrestricted); -- implementation unit specialized for Linux with C.signal; package System.Interrupt_Numbers is pragma Preelaborate; First_Interrupt_Id : constant := C.signal.SIGHUP; Last_Interrupt_Id : constant := C.signal.NSIG - 1; -- SIGRTMAX (__libc_current_sigrtmax) = NSIG - 1 = 64 function Is_Reserved (Interrupt : C.signed_int) return Boolean; end System.Interrupt_Numbers;
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- Copyright (C) 2013, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with ASF.Views.Nodes; with ASF.Components.Base; with ASF.Components.Widgets.Inputs; with ASF.Components.Widgets.Gravatars; with ASF.Components.Widgets.Likes; with ASF.Components.Widgets.Panels; with ASF.Components.Widgets.Tabs; with ASF.Components.Widgets.Selects; package body ASF.Components.Widgets.Factory is use ASF.Components.Base; function Create_Accordion return UIComponent_Access; function Create_Input return UIComponent_Access; function Create_Input_Date return UIComponent_Access; function Create_Chosen return UIComponent_Access; function Create_Complete return UIComponent_Access; function Create_Gravatar return UIComponent_Access; function Create_Like return UIComponent_Access; function Create_Panel return UIComponent_Access; function Create_TabView return UIComponent_Access; function Create_Tab return UIComponent_Access; -- ------------------------------ -- Create a UIAccordion component -- ------------------------------ function Create_Accordion return UIComponent_Access is begin return new ASF.Components.Widgets.Tabs.UIAccordion; end Create_Accordion; -- ------------------------------ -- Create a UIInput component -- ------------------------------ function Create_Input return UIComponent_Access is begin return new ASF.Components.Widgets.Inputs.UIInput; end Create_Input; -- ------------------------------ -- Create a UIInput component -- ------------------------------ function Create_Input_Date return UIComponent_Access is begin return new ASF.Components.Widgets.Inputs.UIInputDate; end Create_Input_Date; -- ------------------------------ -- Create a UIComplete component -- ------------------------------ function Create_Complete return UIComponent_Access is begin return new ASF.Components.Widgets.Inputs.UIComplete; end Create_Complete; -- ------------------------------ -- Create a UIChoser component -- ------------------------------ function Create_Chosen return UIComponent_Access is begin return new ASF.Components.Widgets.Selects.UIChosen; end Create_Chosen; -- ------------------------------ -- Create a UIGravatar component -- ------------------------------ function Create_Gravatar return UIComponent_Access is begin return new ASF.Components.Widgets.Gravatars.UIGravatar; end Create_Gravatar; -- ------------------------------ -- Create a UILike component -- ------------------------------ function Create_Like return UIComponent_Access is begin return new ASF.Components.Widgets.Likes.UILike; end Create_Like; -- ------------------------------ -- Create a UIPanel component -- ------------------------------ function Create_Panel return UIComponent_Access is begin return new ASF.Components.Widgets.Panels.UIPanel; end Create_Panel; -- ------------------------------ -- Create a UITab component -- ------------------------------ function Create_Tab return UIComponent_Access is begin return new ASF.Components.Widgets.Tabs.UITab; end Create_Tab; -- ------------------------------ -- Create a UITabView component -- ------------------------------ function Create_TabView return UIComponent_Access is begin return new ASF.Components.Widgets.Tabs.UITabView; end Create_TabView; use ASF.Views.Nodes; URI : aliased constant String := "http://code.google.com/p/ada-asf/widget"; ACCORDION_TAG : aliased constant String := "accordion"; AUTOCOMPLETE_TAG : aliased constant String := "autocomplete"; CHOSEN_TAG : aliased constant String := "chosen"; INPUT_DATE_TAG : aliased constant String := "inputDate"; INPUT_TEXT_TAG : aliased constant String := "inputText"; GRAVATAR_TAG : aliased constant String := "gravatar"; LIKE_TAG : aliased constant String := "like"; PANEL_TAG : aliased constant String := "panel"; TAB_TAG : aliased constant String := "tab"; TAB_VIEW_TAG : aliased constant String := "tabView"; -- ------------------------------ -- Get the widget component factory. -- ------------------------------ procedure Register (Factory : in out ASF.Factory.Component_Factory) is begin ASF.Factory.Register (Factory, URI => URI'Access, Name => ACCORDION_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Accordion'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => AUTOCOMPLETE_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Complete'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => CHOSEN_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Chosen'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => INPUT_DATE_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Input_Date'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => INPUT_TEXT_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Input'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => GRAVATAR_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Gravatar'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => LIKE_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Like'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => PANEL_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Panel'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => TAB_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_Tab'Access); ASF.Factory.Register (Factory, URI => URI'Access, Name => TAB_VIEW_TAG'Access, Tag => Create_Component_Node'Access, Create => Create_TabView'Access); end Register; end ASF.Components.Widgets.Factory;
package Giza.Bitmap_Fonts.FreeMonoBoldOblique24pt7b is Font : constant Giza.Font.Ref_Const; private FreeMonoBoldOblique24pt7bBitmaps : aliased constant Font_Bitmap := ( 16#01#, 16#E0#, 16#3F#, 16#07#, 16#F0#, 16#FF#, 16#0F#, 16#F0#, 16#FF#, 16#0F#, 16#E0#, 16#FE#, 16#0F#, 16#E0#, 16#FE#, 16#0F#, 16#C0#, 16#FC#, 16#1F#, 16#C1#, 16#F8#, 16#1F#, 16#81#, 16#F8#, 16#1F#, 16#81#, 16#F0#, 16#1F#, 16#01#, 16#F0#, 16#1E#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#7E#, 16#0F#, 16#E0#, 16#FE#, 16#0F#, 16#C0#, 16#78#, 16#00#, 16#3E#, 16#1F#, 16#BF#, 16#0F#, 16#DF#, 16#87#, 16#CF#, 16#83#, 16#E7#, 16#C1#, 16#E3#, 16#E0#, 16#F1#, 16#E0#, 16#78#, 16#F0#, 16#78#, 16#78#, 16#3C#, 16#38#, 16#1E#, 16#1C#, 16#0E#, 16#0E#, 16#07#, 16#0E#, 16#03#, 16#83#, 16#01#, 16#80#, 16#00#, 16#1C#, 16#1C#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#7C#, 16#7C#, 16#00#, 16#7C#, 16#7C#, 16#00#, 16#7C#, 16#7C#, 16#00#, 16#F8#, 16#F8#, 16#00#, 16#F8#, 16#F8#, 16#00#, 16#F8#, 16#F8#, 16#0F#, 16#FF#, 16#FF#, 16#1F#, 16#FF#, 16#FF#, 16#1F#, 16#FF#, 16#FF#, 16#1F#, 16#FF#, 16#FF#, 16#1F#, 16#FF#, 16#FE#, 16#03#, 16#E3#, 16#E0#, 16#03#, 16#E3#, 16#E0#, 16#03#, 16#C3#, 16#C0#, 16#07#, 16#C7#, 16#C0#, 16#7F#, 16#FF#, 16#F8#, 16#FF#, 16#FF#, 16#FC#, 16#FF#, 16#FF#, 16#FC#, 16#FF#, 16#FF#, 16#F8#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#0F#, 16#00#, 16#1F#, 16#1F#, 16#00#, 16#1F#, 16#1F#, 16#00#, 16#1F#, 16#1F#, 16#00#, 16#3E#, 16#1E#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#7C#, 16#7C#, 16#00#, 16#38#, 16#38#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#01#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#FF#, 16#01#, 16#FF#, 16#FF#, 16#81#, 16#FC#, 16#1F#, 16#C1#, 16#F8#, 16#03#, 16#C0#, 16#F8#, 16#01#, 16#E0#, 16#7C#, 16#00#, 16#40#, 16#3F#, 16#00#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#FE#, 16#00#, 16#0F#, 16#FF#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#07#, 16#E0#, 16#E0#, 16#01#, 16#F0#, 16#F0#, 16#00#, 16#F8#, 16#F8#, 16#00#, 16#FC#, 16#7E#, 16#00#, 16#FC#, 16#3F#, 16#81#, 16#FE#, 16#1F#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#0F#, 16#F8#, 16#00#, 16#7F#, 16#E0#, 16#03#, 16#C3#, 16#C0#, 16#0E#, 16#07#, 16#00#, 16#70#, 16#1C#, 16#01#, 16#C0#, 16#70#, 16#07#, 16#01#, 16#C0#, 16#1C#, 16#0E#, 16#00#, 16#78#, 16#78#, 16#00#, 16#FF#, 16#C0#, 16#03#, 16#FE#, 16#1F#, 16#03#, 16#E3#, 16#FC#, 16#00#, 16#7F#, 16#C0#, 16#0F#, 16#F8#, 16#03#, 16#FF#, 16#00#, 16#7F#, 16#C0#, 16#03#, 16#F8#, 16#7C#, 16#0F#, 16#07#, 16#FC#, 16#00#, 16#3F#, 16#F0#, 16#01#, 16#E1#, 16#E0#, 16#07#, 16#03#, 16#80#, 16#38#, 16#0E#, 16#00#, 16#E0#, 16#38#, 16#03#, 16#80#, 16#E0#, 16#0E#, 16#07#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#7F#, 16#E0#, 16#01#, 16#FF#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#01#, 16#FF#, 16#80#, 16#3F#, 16#FC#, 16#03#, 16#FF#, 16#E0#, 16#1F#, 16#FE#, 16#01#, 16#F1#, 16#E0#, 16#1F#, 16#04#, 16#00#, 16#F8#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#3E#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#3F#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#7F#, 16#E3#, 16#E7#, 16#FF#, 16#3F#, 16#7E#, 16#FF#, 16#FB#, 16#E7#, 16#FF#, 16#9E#, 16#1F#, 16#F1#, 16#F0#, 16#FF#, 16#8F#, 16#83#, 16#F8#, 16#7C#, 16#1F#, 16#C3#, 16#F0#, 16#FF#, 16#9F#, 16#FF#, 16#FC#, 16#7F#, 16#FF#, 16#E3#, 16#FF#, 16#FF#, 16#0F#, 16#FD#, 16#F0#, 16#1F#, 16#80#, 16#00#, 16#7E#, 16#FD#, 16#F3#, 16#E7#, 16#8F#, 16#1E#, 16#78#, 16#F1#, 16#E3#, 16#87#, 16#0E#, 16#18#, 16#00#, 16#00#, 16#18#, 16#00#, 16#F0#, 16#07#, 16#C0#, 16#3F#, 16#01#, 16#F8#, 16#07#, 16#C0#, 16#3E#, 16#01#, 16#F8#, 16#07#, 16#C0#, 16#3E#, 16#00#, 16#F8#, 16#07#, 16#C0#, 16#1F#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#1F#, 16#00#, 16#7C#, 16#01#, 16#F0#, 16#07#, 16#C0#, 16#3E#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#0F#, 16#80#, 16#3E#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#0F#, 16#80#, 16#3E#, 16#00#, 16#FC#, 16#01#, 16#F0#, 16#07#, 16#C0#, 16#1F#, 16#80#, 16#7E#, 16#00#, 16#FC#, 16#03#, 16#F0#, 16#07#, 16#C0#, 16#1E#, 16#00#, 16#00#, 16#C0#, 16#07#, 16#80#, 16#3F#, 16#00#, 16#FC#, 16#03#, 16#F0#, 16#07#, 16#E0#, 16#1F#, 16#80#, 16#3E#, 16#00#, 16#F8#, 16#03#, 16#F0#, 16#07#, 16#C0#, 16#1F#, 16#00#, 16#7C#, 16#01#, 16#F0#, 16#07#, 16#C0#, 16#1F#, 16#00#, 16#7C#, 16#01#, 16#F0#, 16#07#, 16#C0#, 16#3E#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#1F#, 16#00#, 16#7C#, 16#01#, 16#F0#, 16#0F#, 16#80#, 16#3E#, 16#01#, 16#F0#, 16#0F#, 16#C0#, 16#3E#, 16#01#, 16#F0#, 16#0F#, 16#C0#, 16#3E#, 16#01#, 16#F0#, 16#0F#, 16#80#, 16#3E#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#07#, 16#C0#, 16#08#, 16#3C#, 16#09#, 16#F9#, 16#E7#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FB#, 16#FF#, 16#FF#, 16#87#, 16#FF#, 16#E0#, 16#07#, 16#F8#, 16#00#, 16#7F#, 16#C0#, 16#07#, 16#FF#, 16#00#, 16#7F#, 16#F8#, 16#07#, 16#E7#, 16#E0#, 16#3E#, 16#3F#, 16#01#, 16#E0#, 16#F8#, 16#0E#, 16#07#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#7F#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FE#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#F0#, 16#7E#, 16#07#, 16#C0#, 16#FC#, 16#0F#, 16#81#, 16#F0#, 16#1E#, 16#03#, 16#E0#, 16#3C#, 16#07#, 16#80#, 16#78#, 16#0F#, 16#00#, 16#E0#, 16#0C#, 16#00#, 16#7F#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FE#, 16#3C#, 16#FF#, 16#FF#, 16#FF#, 16#CF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#C0#, 16#FC#, 16#1F#, 16#83#, 16#F0#, 16#1F#, 16#8F#, 16#C0#, 16#1F#, 16#1F#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#7C#, 16#F8#, 16#00#, 16#F9#, 16#F0#, 16#01#, 16#F3#, 16#C0#, 16#07#, 16#CF#, 16#80#, 16#0F#, 16#9F#, 16#00#, 16#1E#, 16#3E#, 16#00#, 16#3C#, 16#78#, 16#00#, 16#F8#, 16#F0#, 16#01#, 16#F3#, 16#E0#, 16#03#, 16#E7#, 16#C0#, 16#07#, 16#8F#, 16#80#, 16#1F#, 16#1F#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#F8#, 16#7C#, 16#01#, 16#F0#, 16#FC#, 16#07#, 16#C1#, 16#FC#, 16#3F#, 16#81#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#F8#, 16#03#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#7E#, 16#00#, 16#0F#, 16#F0#, 16#01#, 16#FF#, 16#80#, 16#1F#, 16#FC#, 16#03#, 16#FB#, 16#E0#, 16#1F#, 16#9E#, 16#00#, 16#F0#, 16#F0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#7C#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#78#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#78#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#78#, 16#01#, 16#FF#, 16#FF#, 16#9F#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#3F#, 16#FF#, 16#F0#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#03#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#F0#, 16#01#, 16#FF#, 16#FE#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#7F#, 16#07#, 16#F0#, 16#1F#, 16#00#, 16#FC#, 16#0F#, 16#80#, 16#1F#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#F0#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#7F#, 16#80#, 16#70#, 16#3F#, 16#80#, 16#3E#, 16#1F#, 16#FF#, 16#FF#, 16#07#, 16#FF#, 16#FF#, 16#C1#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#FC#, 16#3F#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#0F#, 16#FE#, 16#00#, 16#1F#, 16#FF#, 16#80#, 16#1F#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#F8#, 16#0F#, 16#81#, 16#FC#, 16#07#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0F#, 16#C0#, 16#01#, 16#FF#, 16#C0#, 16#01#, 16#FF#, 16#C0#, 16#00#, 16#FF#, 16#80#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#1F#, 16#F8#, 16#00#, 16#00#, 16#FE#, 16#00#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#FC#, 16#3C#, 16#01#, 16#FC#, 16#3F#, 16#FF#, 16#FC#, 16#1F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#3F#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#3F#, 16#C0#, 16#01#, 16#FE#, 16#00#, 16#0F#, 16#F8#, 16#00#, 16#7F#, 16#E0#, 16#03#, 16#FF#, 16#80#, 16#1F#, 16#BC#, 16#00#, 16#7C#, 16#F0#, 16#03#, 16#E7#, 16#C0#, 16#1F#, 16#1F#, 16#00#, 16#F8#, 16#78#, 16#07#, 16#E1#, 16#E0#, 16#3F#, 16#07#, 16#81#, 16#F8#, 16#3E#, 16#07#, 16#C0#, 16#F0#, 16#3E#, 16#03#, 16#C1#, 16#FF#, 16#FF#, 16#CF#, 16#FF#, 16#FF#, 16#BF#, 16#FF#, 16#FE#, 16#FF#, 16#FF#, 16#F3#, 16#FF#, 16#FF#, 16#80#, 16#00#, 16#F8#, 16#00#, 16#3F#, 16#F8#, 16#01#, 16#FF#, 16#E0#, 16#07#, 16#FF#, 16#80#, 16#1F#, 16#FE#, 16#00#, 16#7F#, 16#F0#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#7F#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#E0#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#F7#, 16#F0#, 16#00#, 16#FF#, 16#FE#, 16#00#, 16#7F#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#F0#, 16#0F#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#F8#, 16#3C#, 16#03#, 16#FC#, 16#3F#, 16#FF#, 16#FC#, 16#1F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#F8#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#00#, 16#01#, 16#FC#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#1F#, 16#FF#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#FF#, 16#FE#, 16#01#, 16#FE#, 16#1C#, 16#03#, 16#F8#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#3E#, 16#FF#, 16#80#, 16#7D#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#E0#, 16#7F#, 16#87#, 16#F0#, 16#FF#, 16#03#, 16#F0#, 16#FC#, 16#01#, 16#F0#, 16#F8#, 16#01#, 16#F0#, 16#F8#, 16#01#, 16#F0#, 16#F8#, 16#01#, 16#F0#, 16#F8#, 16#03#, 16#E0#, 16#F8#, 16#03#, 16#E0#, 16#FC#, 16#07#, 16#C0#, 16#FE#, 16#0F#, 16#C0#, 16#7F#, 16#FF#, 16#80#, 16#7F#, 16#FF#, 16#00#, 16#3F#, 16#FE#, 16#00#, 16#1F#, 16#FC#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#7F#, 16#FF#, 16#FD#, 16#FF#, 16#FF#, 16#E7#, 16#FF#, 16#FF#, 16#BF#, 16#FF#, 16#FE#, 16#FF#, 16#FF#, 16#FB#, 16#E0#, 16#03#, 16#CF#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#78#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#7C#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#3C#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#3E#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#FF#, 16#E0#, 16#07#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#C0#, 16#FC#, 16#1F#, 16#C3#, 16#F0#, 16#1F#, 16#8F#, 16#C0#, 16#1F#, 16#1F#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#7C#, 16#7C#, 16#01#, 16#F0#, 16#FC#, 16#07#, 16#E0#, 16#FC#, 16#1F#, 16#81#, 16#FF#, 16#FE#, 16#01#, 16#FF#, 16#F0#, 16#01#, 16#FF#, 16#E0#, 16#0F#, 16#FF#, 16#E0#, 16#3F#, 16#FF#, 16#E0#, 16#FE#, 16#0F#, 16#C3#, 16#F0#, 16#0F#, 16#C7#, 16#C0#, 16#0F#, 16#9F#, 16#00#, 16#1F#, 16#3E#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#FC#, 16#FC#, 16#03#, 16#F1#, 16#FC#, 16#1F#, 16#E3#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#F8#, 16#03#, 16#FF#, 16#C0#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#3F#, 16#F8#, 16#00#, 16#FF#, 16#FC#, 16#01#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#FE#, 16#03#, 16#F0#, 16#7F#, 16#07#, 16#E0#, 16#3F#, 16#07#, 16#C0#, 16#1F#, 16#0F#, 16#C0#, 16#1F#, 16#0F#, 16#80#, 16#1F#, 16#0F#, 16#80#, 16#1F#, 16#0F#, 16#80#, 16#3F#, 16#0F#, 16#C0#, 16#7F#, 16#0F#, 16#E1#, 16#FF#, 16#07#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#BE#, 16#01#, 16#FF#, 16#7C#, 16#00#, 16#FC#, 16#7C#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#1F#, 16#C0#, 16#38#, 16#7F#, 16#80#, 16#7F#, 16#FF#, 16#00#, 16#FF#, 16#FE#, 16#00#, 16#FF#, 16#F8#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#07#, 16#83#, 16#F1#, 16#FC#, 16#7F#, 16#1F#, 16#83#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#3C#, 16#1F#, 16#8F#, 16#E3#, 16#F8#, 16#FC#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#FC#, 16#03#, 16#F8#, 16#07#, 16#F0#, 16#0F#, 16#C0#, 16#0F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#03#, 16#E0#, 16#0F#, 16#C0#, 16#1F#, 16#00#, 16#7C#, 16#00#, 16#F0#, 16#03#, 16#E0#, 16#07#, 16#80#, 16#1E#, 16#00#, 16#38#, 16#00#, 16#F0#, 16#01#, 16#C0#, 16#07#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#1F#, 16#FC#, 16#00#, 16#01#, 16#FF#, 16#00#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#01#, 16#FF#, 16#00#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#07#, 16#FC#, 16#00#, 16#01#, 16#FF#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#07#, 16#80#, 16#1F#, 16#FF#, 16#FF#, 16#CF#, 16#FF#, 16#FF#, 16#F3#, 16#FF#, 16#FF#, 16#FC#, 16#FF#, 16#FF#, 16#FF#, 16#3F#, 16#FF#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#FF#, 16#FF#, 16#CF#, 16#FF#, 16#FF#, 16#F3#, 16#FF#, 16#FF#, 16#FC#, 16#FF#, 16#FF#, 16#FF#, 16#3F#, 16#FF#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#00#, 16#FF#, 16#80#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#FF#, 16#C0#, 16#01#, 16#FF#, 16#80#, 16#03#, 16#FE#, 16#00#, 16#07#, 16#FC#, 16#00#, 16#1F#, 16#F8#, 16#00#, 16#3F#, 16#F0#, 16#00#, 16#3F#, 16#C0#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#FC#, 16#01#, 16#FF#, 16#E1#, 16#FF#, 16#FE#, 16#3F#, 16#FF#, 16#E7#, 16#FF#, 16#FF#, 16#F8#, 16#1F#, 16#FE#, 16#00#, 16#FF#, 16#80#, 16#1F#, 16#F0#, 16#03#, 16#E0#, 16#00#, 16#7C#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#E0#, 16#07#, 16#F8#, 16#07#, 16#FE#, 16#01#, 16#FF#, 16#80#, 16#7F#, 16#C0#, 16#0F#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#3C#, 16#00#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#3F#, 16#00#, 16#0F#, 16#E0#, 16#01#, 16#FC#, 16#00#, 16#3F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#7F#, 16#F0#, 16#01#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#E0#, 16#3F#, 16#07#, 16#E0#, 16#7C#, 16#07#, 16#C1#, 16#E0#, 16#07#, 16#87#, 16#C0#, 16#0F#, 16#0F#, 16#00#, 16#1C#, 16#3C#, 16#00#, 16#78#, 16#78#, 16#07#, 16#F1#, 16#E0#, 16#3F#, 16#E3#, 16#C1#, 16#FF#, 16#87#, 16#87#, 16#FF#, 16#0E#, 16#1F#, 16#9E#, 16#1C#, 16#7C#, 16#3C#, 16#78#, 16#F0#, 16#78#, 16#F3#, 16#C0#, 16#E1#, 16#C7#, 16#83#, 16#C3#, 16#8F#, 16#07#, 16#8F#, 16#1E#, 16#0F#, 16#1E#, 16#3E#, 16#1C#, 16#3C#, 16#7F#, 16#FC#, 16#78#, 16#7F#, 16#FC#, 16#F0#, 16#7F#, 16#F1#, 16#E0#, 16#3F#, 16#E3#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3F#, 16#01#, 16#C0#, 16#7F#, 16#FF#, 16#80#, 16#7F#, 16#FE#, 16#00#, 16#7F#, 16#F8#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#00#, 16#3F#, 16#FE#, 16#00#, 16#01#, 16#FF#, 16#F8#, 16#00#, 16#07#, 16#FF#, 16#E0#, 16#00#, 16#1F#, 16#FF#, 16#80#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#00#, 16#3F#, 16#F0#, 16#00#, 16#01#, 16#EF#, 16#C0#, 16#00#, 16#0F#, 16#9F#, 16#00#, 16#00#, 16#3C#, 16#7C#, 16#00#, 16#01#, 16#E1#, 16#F8#, 16#00#, 16#0F#, 16#87#, 16#E0#, 16#00#, 16#3C#, 16#0F#, 16#80#, 16#01#, 16#F0#, 16#3E#, 16#00#, 16#0F#, 16#80#, 16#F8#, 16#00#, 16#3F#, 16#FF#, 16#F0#, 16#01#, 16#FF#, 16#FF#, 16#C0#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#3F#, 16#FF#, 16#FC#, 16#01#, 16#FF#, 16#FF#, 16#F8#, 16#0F#, 16#C0#, 16#07#, 16#E0#, 16#3E#, 16#00#, 16#0F#, 16#87#, 16#FF#, 16#03#, 16#FF#, 16#BF#, 16#FC#, 16#1F#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#FF#, 16#C1#, 16#FF#, 16#EF#, 16#FE#, 16#07#, 16#FF#, 16#00#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#FF#, 16#01#, 16#FF#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#FF#, 16#80#, 16#7C#, 16#00#, 16#FC#, 16#03#, 16#E0#, 16#03#, 16#E0#, 16#1E#, 16#00#, 16#1F#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#0F#, 16#80#, 16#0F#, 16#80#, 16#7C#, 16#01#, 16#F8#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#1F#, 16#FF#, 16#F8#, 16#01#, 16#FF#, 16#FF#, 16#C0#, 16#0F#, 16#FF#, 16#FF#, 16#80#, 16#7F#, 16#FF#, 16#FC#, 16#03#, 16#C0#, 16#0F#, 16#F0#, 16#3E#, 16#00#, 16#1F#, 16#81#, 16#F0#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#03#, 16#E0#, 16#78#, 16#00#, 16#1F#, 16#03#, 16#C0#, 16#03#, 16#F1#, 16#FF#, 16#FF#, 16#FF#, 16#9F#, 16#FF#, 16#FF#, 16#F8#, 16#FF#, 16#FF#, 16#FF#, 16#87#, 16#FF#, 16#FF#, 16#F0#, 16#1F#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#03#, 16#FF#, 16#E6#, 16#00#, 16#7F#, 16#FF#, 16#F0#, 16#1F#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#81#, 16#FF#, 16#0F#, 16#E0#, 16#07#, 16#E1#, 16#F8#, 16#00#, 16#3E#, 16#1F#, 16#00#, 16#03#, 16#E3#, 16#F0#, 16#00#, 16#3C#, 16#3E#, 16#00#, 16#03#, 16#C7#, 16#E0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#70#, 16#7E#, 16#00#, 16#1F#, 16#07#, 16#F8#, 16#07#, 16#F0#, 16#3F#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#F8#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FF#, 16#F0#, 16#07#, 16#FF#, 16#FF#, 16#80#, 16#7F#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#FF#, 16#E0#, 16#1F#, 16#00#, 16#FE#, 16#01#, 16#F0#, 16#07#, 16#E0#, 16#1E#, 16#00#, 16#3F#, 16#01#, 16#E0#, 16#01#, 16#F0#, 16#3E#, 16#00#, 16#1F#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#3E#, 16#00#, 16#1F#, 16#03#, 16#C0#, 16#01#, 16#F0#, 16#7C#, 16#00#, 16#1F#, 16#07#, 16#C0#, 16#03#, 16#F0#, 16#7C#, 16#00#, 16#3E#, 16#07#, 16#80#, 16#03#, 16#E0#, 16#78#, 16#00#, 16#7E#, 16#0F#, 16#80#, 16#07#, 16#C0#, 16#F8#, 16#00#, 16#FC#, 16#0F#, 16#80#, 16#1F#, 16#80#, 16#F0#, 16#07#, 16#F0#, 16#7F#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FF#, 16#C0#, 16#FF#, 16#FF#, 16#F8#, 16#0F#, 16#FF#, 16#FE#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#FF#, 16#F8#, 16#3F#, 16#FF#, 16#FF#, 16#C3#, 16#FF#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#FF#, 16#00#, 16#78#, 16#00#, 16#F8#, 16#07#, 16#C0#, 16#07#, 16#C0#, 16#3E#, 16#00#, 16#3E#, 16#01#, 16#F0#, 16#F1#, 16#E0#, 16#0F#, 16#0F#, 16#8E#, 16#00#, 16#78#, 16#7C#, 16#00#, 16#07#, 16#FF#, 16#E0#, 16#00#, 16#3F#, 16#FE#, 16#00#, 16#01#, 16#FF#, 16#F0#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#00#, 16#FF#, 16#FC#, 16#00#, 16#07#, 16#C3#, 16#C0#, 16#00#, 16#3E#, 16#1E#, 16#1E#, 16#01#, 16#E0#, 16#E0#, 16#F0#, 16#0F#, 16#00#, 16#0F#, 16#80#, 16#F8#, 16#00#, 16#7C#, 16#07#, 16#C0#, 16#03#, 16#E1#, 16#FF#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#FF#, 16#87#, 16#FF#, 16#FF#, 16#FC#, 16#3F#, 16#FF#, 16#FF#, 16#C0#, 16#03#, 16#FF#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#FF#, 16#F8#, 16#1F#, 16#FF#, 16#FF#, 16#F0#, 16#3F#, 16#FF#, 16#FF#, 16#E0#, 16#3F#, 16#FF#, 16#FF#, 16#C0#, 16#1F#, 16#00#, 16#0F#, 16#00#, 16#3E#, 16#00#, 16#1E#, 16#00#, 16#78#, 16#00#, 16#7C#, 16#00#, 16#F0#, 16#70#, 16#F8#, 16#03#, 16#E1#, 16#F0#, 16#E0#, 16#07#, 16#C3#, 16#C0#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#00#, 16#1F#, 16#FF#, 16#00#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#FC#, 16#00#, 16#01#, 16#FF#, 16#F0#, 16#00#, 16#03#, 16#C3#, 16#E0#, 16#00#, 16#07#, 16#87#, 16#C0#, 16#00#, 16#1F#, 16#07#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#C0#, 16#00#, 16#3F#, 16#FF#, 16#80#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#01#, 16#FF#, 16#FE#, 16#00#, 16#01#, 16#FF#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#07#, 16#F8#, 16#60#, 16#03#, 16#FF#, 16#FF#, 16#00#, 16#7F#, 16#FF#, 16#F0#, 16#1F#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#E0#, 16#7F#, 16#80#, 16#FE#, 16#0F#, 16#E0#, 16#03#, 16#E0#, 16#F8#, 16#00#, 16#3C#, 16#1F#, 16#00#, 16#03#, 16#C3#, 16#F0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#7F#, 16#FC#, 16#F8#, 16#0F#, 16#FF#, 16#EF#, 16#80#, 16#FF#, 16#FE#, 16#F8#, 16#0F#, 16#FF#, 16#CF#, 16#80#, 16#7F#, 16#F8#, 16#F8#, 16#00#, 16#1F#, 16#0F#, 16#C0#, 16#01#, 16#F0#, 16#FE#, 16#00#, 16#1F#, 16#07#, 16#F8#, 16#07#, 16#E0#, 16#7F#, 16#FF#, 16#FE#, 16#03#, 16#FF#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#01#, 16#FF#, 16#0F#, 16#F8#, 16#0F#, 16#FC#, 16#7F#, 16#F0#, 16#7F#, 16#F1#, 16#FF#, 16#C1#, 16#FF#, 16#C7#, 16#FE#, 16#03#, 16#FE#, 16#1F#, 16#F0#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#1F#, 16#00#, 16#3C#, 16#00#, 16#78#, 16#00#, 16#F0#, 16#01#, 16#E0#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#1F#, 16#00#, 16#3E#, 16#00#, 16#7C#, 16#00#, 16#FF#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#1F#, 16#FF#, 16#FE#, 16#00#, 16#7F#, 16#FF#, 16#F8#, 16#01#, 16#FF#, 16#FF#, 16#C0#, 16#07#, 16#80#, 16#0F#, 16#00#, 16#1E#, 16#00#, 16#7C#, 16#00#, 16#F8#, 16#01#, 16#F0#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#0F#, 16#00#, 16#1E#, 16#00#, 16#3C#, 16#00#, 16#F8#, 16#07#, 16#FE#, 16#1F#, 16#F8#, 16#3F#, 16#F8#, 16#FF#, 16#F0#, 16#FF#, 16#E3#, 16#FF#, 16#C3#, 16#FF#, 16#8F#, 16#FE#, 16#0F#, 16#FC#, 16#3F#, 16#F8#, 16#00#, 16#03#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FF#, 16#C1#, 16#FF#, 16#FF#, 16#E0#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#F0#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#01#, 16#FF#, 16#FF#, 16#C1#, 16#FF#, 16#FF#, 16#E0#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#F8#, 16#1F#, 16#FF#, 16#F8#, 16#00#, 16#00#, 16#07#, 16#FF#, 16#FE#, 16#00#, 16#1F#, 16#FF#, 16#FC#, 16#00#, 16#3F#, 16#FF#, 16#F8#, 16#00#, 16#7F#, 16#FF#, 16#F0#, 16#00#, 16#7F#, 16#FF#, 16#C0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#07#, 16#00#, 16#0F#, 16#80#, 16#1F#, 16#00#, 16#1F#, 16#00#, 16#3E#, 16#00#, 16#3C#, 16#00#, 16#78#, 16#00#, 16#78#, 16#01#, 16#F0#, 16#01#, 16#F0#, 16#03#, 16#E0#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#0F#, 16#80#, 16#3F#, 16#00#, 16#1F#, 16#C0#, 16#FC#, 16#00#, 16#7F#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#FF#, 16#E0#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#00#, 16#3F#, 16#FC#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#C3#, 16#FE#, 16#0F#, 16#FF#, 16#8F#, 16#FC#, 16#1F#, 16#FF#, 16#3F#, 16#F8#, 16#3F#, 16#FE#, 16#7F#, 16#F0#, 16#7F#, 16#F8#, 16#7F#, 16#C0#, 16#1F#, 16#01#, 16#FC#, 16#00#, 16#3E#, 16#07#, 16#F0#, 16#00#, 16#78#, 16#3F#, 16#80#, 16#01#, 16#F0#, 16#FE#, 16#00#, 16#03#, 16#E3#, 16#F0#, 16#00#, 16#07#, 16#DF#, 16#C0#, 16#00#, 16#0F#, 16#FE#, 16#00#, 16#00#, 16#1F#, 16#FE#, 16#00#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#FE#, 16#00#, 16#01#, 16#FC#, 16#FC#, 16#00#, 16#03#, 16#E0#, 16#FC#, 16#00#, 16#0F#, 16#81#, 16#F8#, 16#00#, 16#1F#, 16#01#, 16#F8#, 16#00#, 16#3E#, 16#03#, 16#F0#, 16#00#, 16#78#, 16#03#, 16#E0#, 16#00#, 16#F0#, 16#07#, 16#E0#, 16#1F#, 16#FE#, 16#0F#, 16#F8#, 16#7F#, 16#FC#, 16#1F#, 16#F8#, 16#FF#, 16#F8#, 16#1F#, 16#F1#, 16#FF#, 16#F0#, 16#3F#, 16#E1#, 16#FF#, 16#C0#, 16#7F#, 16#80#, 16#03#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#1F#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#0E#, 16#00#, 16#F0#, 16#01#, 16#E0#, 16#3E#, 16#00#, 16#7C#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#F8#, 16#01#, 16#F0#, 16#1E#, 16#00#, 16#7C#, 16#07#, 16#C0#, 16#0F#, 16#9F#, 16#FF#, 16#FF#, 16#F7#, 16#FF#, 16#FF#, 16#FE#, 16#FF#, 16#FF#, 16#FF#, 16#9F#, 16#FF#, 16#FF#, 16#F1#, 16#FF#, 16#FF#, 16#FE#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#3F#, 16#C1#, 16#FF#, 16#00#, 16#1F#, 16#F0#, 16#7F#, 16#C0#, 16#07#, 16#FC#, 16#1F#, 16#F0#, 16#03#, 16#FE#, 16#01#, 16#FE#, 16#01#, 16#FE#, 16#00#, 16#FF#, 16#80#, 16#FF#, 16#80#, 16#3F#, 16#E0#, 16#3F#, 16#E0#, 16#0F#, 16#FC#, 16#1F#, 16#F0#, 16#03#, 16#FF#, 16#0F#, 16#FC#, 16#00#, 16#FF#, 16#C3#, 16#EF#, 16#00#, 16#7D#, 16#F1#, 16#F7#, 16#C0#, 16#1F#, 16#7E#, 16#FD#, 16#F0#, 16#07#, 16#DF#, 16#BE#, 16#78#, 16#01#, 16#E3#, 16#FF#, 16#1E#, 16#00#, 16#78#, 16#FF#, 16#CF#, 16#80#, 16#3E#, 16#3F#, 16#E3#, 16#E0#, 16#0F#, 16#8F#, 16#F0#, 16#F8#, 16#03#, 16#C1#, 16#FC#, 16#3C#, 16#00#, 16#F0#, 16#7E#, 16#1F#, 16#00#, 16#7C#, 16#1F#, 16#07#, 16#C0#, 16#1F#, 16#00#, 16#01#, 16#F0#, 16#07#, 16#C0#, 16#00#, 16#78#, 16#07#, 16#FE#, 16#01#, 16#FF#, 16#83#, 16#FF#, 16#C0#, 16#FF#, 16#F0#, 16#FF#, 16#F0#, 16#7F#, 16#FC#, 16#3F#, 16#F8#, 16#1F#, 16#FE#, 16#0F#, 16#FC#, 16#03#, 16#FF#, 16#00#, 16#07#, 16#F8#, 16#07#, 16#FF#, 16#0F#, 16#FC#, 16#0F#, 16#FF#, 16#0F#, 16#FC#, 16#0F#, 16#FF#, 16#0F#, 16#FE#, 16#0F#, 16#FF#, 16#0F#, 16#FE#, 16#0F#, 16#FE#, 16#01#, 16#FE#, 16#00#, 16#F8#, 16#01#, 16#FF#, 16#00#, 16#F0#, 16#01#, 16#FF#, 16#01#, 16#F0#, 16#01#, 16#FF#, 16#81#, 16#F0#, 16#03#, 16#FF#, 16#81#, 16#F0#, 16#03#, 16#EF#, 16#C1#, 16#F0#, 16#03#, 16#CF#, 16#C1#, 16#E0#, 16#03#, 16#C7#, 16#E3#, 16#E0#, 16#07#, 16#C7#, 16#E3#, 16#E0#, 16#07#, 16#C3#, 16#F3#, 16#E0#, 16#07#, 16#83#, 16#F3#, 16#C0#, 16#07#, 16#83#, 16#FF#, 16#C0#, 16#0F#, 16#81#, 16#FF#, 16#C0#, 16#0F#, 16#81#, 16#FF#, 16#C0#, 16#0F#, 16#00#, 16#FF#, 16#C0#, 16#0F#, 16#00#, 16#FF#, 16#80#, 16#0F#, 16#00#, 16#7F#, 16#80#, 16#7F#, 16#F0#, 16#7F#, 16#80#, 16#FF#, 16#F0#, 16#3F#, 16#80#, 16#FF#, 16#F0#, 16#3F#, 16#00#, 16#FF#, 16#F0#, 16#1F#, 16#00#, 16#7F#, 16#E0#, 16#1F#, 16#00#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#03#, 16#FF#, 16#80#, 16#01#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#F8#, 16#0F#, 16#F0#, 16#7F#, 16#83#, 16#F8#, 16#03#, 16#F0#, 16#FC#, 16#00#, 16#7E#, 16#1F#, 16#00#, 16#07#, 16#E7#, 16#E0#, 16#00#, 16#7C#, 16#F8#, 16#00#, 16#0F#, 16#BE#, 16#00#, 16#01#, 16#F7#, 16#C0#, 16#00#, 16#3E#, 16#F0#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#3E#, 16#F8#, 16#00#, 16#07#, 16#DF#, 16#00#, 16#00#, 16#FB#, 16#E0#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#0F#, 16#CF#, 16#C0#, 16#01#, 16#F0#, 16#F8#, 16#00#, 16#7E#, 16#1F#, 16#80#, 16#3F#, 16#83#, 16#FC#, 16#1F#, 16#E0#, 16#3F#, 16#FF#, 16#F8#, 16#03#, 16#FF#, 16#FE#, 16#00#, 16#3F#, 16#FF#, 16#00#, 16#03#, 16#FF#, 16#80#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#03#, 16#FF#, 16#FE#, 16#00#, 16#7F#, 16#FF#, 16#F8#, 16#07#, 16#FF#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#80#, 16#7F#, 16#00#, 16#F8#, 16#01#, 16#F0#, 16#0F#, 16#00#, 16#1F#, 16#01#, 16#F0#, 16#01#, 16#F0#, 16#1F#, 16#00#, 16#1F#, 16#01#, 16#F0#, 16#03#, 16#E0#, 16#1E#, 16#00#, 16#7E#, 16#01#, 16#E0#, 16#0F#, 16#C0#, 16#3F#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#0F#, 16#FF#, 16#F0#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#0F#, 16#FF#, 16#F0#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#07#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#F8#, 16#0F#, 16#F0#, 16#7F#, 16#83#, 16#F8#, 16#03#, 16#F0#, 16#FC#, 16#00#, 16#3F#, 16#1F#, 16#00#, 16#07#, 16#E7#, 16#C0#, 16#00#, 16#7D#, 16#F8#, 16#00#, 16#0F#, 16#BE#, 16#00#, 16#01#, 16#F7#, 16#C0#, 16#00#, 16#3F#, 16#F0#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#3E#, 16#F8#, 16#00#, 16#07#, 16#DF#, 16#00#, 16#01#, 16#FB#, 16#E0#, 16#00#, 16#3E#, 16#7E#, 16#00#, 16#0F#, 16#8F#, 16#C0#, 16#03#, 16#F0#, 16#FC#, 16#01#, 16#FC#, 16#1F#, 16#E0#, 16#FF#, 16#01#, 16#FF#, 16#FF#, 16#C0#, 16#1F#, 16#FF#, 16#F0#, 16#01#, 16#FF#, 16#FC#, 16#00#, 16#1F#, 16#FE#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#1F#, 16#F8#, 16#38#, 16#0F#, 16#FF#, 16#FF#, 16#81#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#F0#, 16#1F#, 16#80#, 16#00#, 16#03#, 16#FF#, 16#FE#, 16#00#, 16#3F#, 16#FF#, 16#FC#, 16#01#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#FF#, 16#00#, 16#7C#, 16#03#, 16#F8#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#1E#, 16#00#, 16#3E#, 16#00#, 16#F0#, 16#01#, 16#F0#, 16#0F#, 16#80#, 16#1F#, 16#80#, 16#7C#, 16#01#, 16#F8#, 16#03#, 16#E0#, 16#3F#, 16#80#, 16#1F#, 16#FF#, 16#FC#, 16#01#, 16#FF#, 16#FF#, 16#80#, 16#0F#, 16#FF#, 16#F8#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#1E#, 16#07#, 16#F0#, 16#01#, 16#F0#, 16#1F#, 16#C0#, 16#0F#, 16#80#, 16#7E#, 16#00#, 16#7C#, 16#03#, 16#F8#, 16#03#, 16#C0#, 16#0F#, 16#C0#, 16#FF#, 16#E0#, 16#7F#, 16#CF#, 16#FF#, 16#01#, 16#FF#, 16#FF#, 16#F8#, 16#0F#, 16#FF#, 16#FF#, 16#C0#, 16#3F#, 16#DF#, 16#FC#, 16#01#, 16#FC#, 16#00#, 16#0F#, 16#E1#, 16#80#, 16#0F#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FC#, 16#07#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#C1#, 16#FC#, 16#0F#, 16#E0#, 16#7C#, 16#01#, 16#F8#, 16#3E#, 16#00#, 16#3E#, 16#0F#, 16#80#, 16#0F#, 16#03#, 16#E0#, 16#03#, 16#C0#, 16#FC#, 16#00#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#07#, 16#FF#, 16#80#, 16#01#, 16#FF#, 16#FC#, 16#00#, 16#3F#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#F0#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#03#, 16#E1#, 16#E0#, 16#00#, 16#F8#, 16#F8#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#1F#, 16#8F#, 16#C0#, 16#0F#, 16#C3#, 16#FC#, 16#0F#, 16#F0#, 16#FF#, 16#FF#, 16#F8#, 16#3F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FE#, 16#03#, 16#9F#, 16#FE#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#3F#, 16#FF#, 16#FF#, 16#CF#, 16#FF#, 16#FF#, 16#F7#, 16#FF#, 16#FF#, 16#FD#, 16#FF#, 16#FF#, 16#FE#, 16#7F#, 16#FF#, 16#FF#, 16#9F#, 16#07#, 16#83#, 16#E7#, 16#81#, 16#E0#, 16#FB#, 16#E0#, 16#F8#, 16#3C#, 16#F8#, 16#3E#, 16#0F#, 16#3E#, 16#0F#, 16#07#, 16#CF#, 16#03#, 16#C1#, 16#F3#, 16#81#, 16#F0#, 16#38#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#78#, 16#00#, 16#07#, 16#FF#, 16#F8#, 16#01#, 16#FF#, 16#FE#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#E0#, 16#07#, 16#FF#, 16#F0#, 16#00#, 16#3F#, 16#F0#, 16#7F#, 16#E7#, 16#FF#, 16#8F#, 16#FF#, 16#7F#, 16#F9#, 16#FF#, 16#F7#, 16#FF#, 16#1F#, 16#FE#, 16#7F#, 16#F0#, 16#FF#, 16#C1#, 16#E0#, 16#00#, 16#F0#, 16#1E#, 16#00#, 16#1F#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#3E#, 16#00#, 16#1E#, 16#03#, 16#E0#, 16#01#, 16#E0#, 16#3C#, 16#00#, 16#1E#, 16#03#, 16#C0#, 16#03#, 16#E0#, 16#7C#, 16#00#, 16#3E#, 16#07#, 16#C0#, 16#03#, 16#C0#, 16#78#, 16#00#, 16#3C#, 16#07#, 16#80#, 16#07#, 16#C0#, 16#F8#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#07#, 16#C0#, 16#F8#, 16#00#, 16#78#, 16#0F#, 16#80#, 16#0F#, 16#80#, 16#FC#, 16#01#, 16#F8#, 16#0F#, 16#C0#, 16#3F#, 16#00#, 16#FF#, 16#07#, 16#E0#, 16#07#, 16#FF#, 16#FE#, 16#00#, 16#7F#, 16#FF#, 16#C0#, 16#03#, 16#FF#, 16#F0#, 16#00#, 16#0F#, 16#FE#, 16#00#, 16#00#, 16#3F#, 16#00#, 16#00#, 16#7F#, 16#F0#, 16#1F#, 16#FF#, 16#FF#, 16#C0#, 16#FF#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#7F#, 16#E0#, 16#3F#, 16#F8#, 16#7C#, 16#00#, 16#1F#, 16#01#, 16#F0#, 16#00#, 16#78#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#1F#, 16#80#, 16#1F#, 16#00#, 16#3E#, 16#00#, 16#78#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#03#, 16#E0#, 16#1F#, 16#00#, 16#0F#, 16#C0#, 16#7C#, 16#00#, 16#1F#, 16#03#, 16#E0#, 16#00#, 16#7C#, 16#1F#, 16#00#, 16#01#, 16#F0#, 16#7C#, 16#00#, 16#07#, 16#C3#, 16#E0#, 16#00#, 16#1F#, 16#9F#, 16#00#, 16#00#, 16#3E#, 16#FC#, 16#00#, 16#00#, 16#FB#, 16#E0#, 16#00#, 16#03#, 16#FF#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#F0#, 16#3F#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FF#, 16#FC#, 16#1F#, 16#FF#, 16#FF#, 16#E0#, 16#FF#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#1E#, 16#00#, 16#01#, 16#E0#, 16#F0#, 16#7C#, 16#1F#, 16#07#, 16#83#, 16#E0#, 16#F0#, 16#3C#, 16#3F#, 16#07#, 16#81#, 16#E3#, 16#FC#, 16#7C#, 16#1F#, 16#1F#, 16#E3#, 16#C0#, 16#F9#, 16#FF#, 16#3E#, 16#07#, 16#CF#, 16#F9#, 16#F0#, 16#3E#, 16#FF#, 16#CF#, 16#01#, 16#E7#, 16#BE#, 16#F8#, 16#0F#, 16#7D#, 16#F7#, 16#C0#, 16#7B#, 16#CF#, 16#FC#, 16#03#, 16#FE#, 16#7F#, 16#E0#, 16#1F#, 16#E3#, 16#FF#, 16#01#, 16#FF#, 16#1F#, 16#F0#, 16#0F#, 16#F0#, 16#7F#, 16#80#, 16#7F#, 16#83#, 16#FC#, 16#03#, 16#F8#, 16#1F#, 16#C0#, 16#1F#, 16#C0#, 16#FE#, 16#00#, 16#FC#, 16#07#, 16#F0#, 16#07#, 16#C0#, 16#3F#, 16#00#, 16#3E#, 16#01#, 16#F8#, 16#00#, 16#01#, 16#FE#, 16#03#, 16#FE#, 16#03#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FE#, 16#07#, 16#FE#, 16#03#, 16#FC#, 16#03#, 16#FC#, 16#00#, 16#FC#, 16#03#, 16#F0#, 16#00#, 16#FE#, 16#07#, 16#E0#, 16#00#, 16#7E#, 16#1F#, 16#C0#, 16#00#, 16#3F#, 16#3F#, 16#00#, 16#00#, 16#3F#, 16#FE#, 16#00#, 16#00#, 16#1F#, 16#FC#, 16#00#, 16#00#, 16#0F#, 16#F8#, 16#00#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#F8#, 16#00#, 16#00#, 16#7F#, 16#F8#, 16#00#, 16#00#, 16#FC#, 16#FC#, 16#00#, 16#01#, 16#F8#, 16#7E#, 16#00#, 16#03#, 16#F0#, 16#7E#, 16#00#, 16#07#, 16#E0#, 16#3F#, 16#00#, 16#0F#, 16#C0#, 16#1F#, 16#80#, 16#7F#, 16#E0#, 16#7F#, 16#E0#, 16#FF#, 16#E0#, 16#FF#, 16#E0#, 16#FF#, 16#E0#, 16#FF#, 16#E0#, 16#FF#, 16#E0#, 16#FF#, 16#E0#, 16#7F#, 16#C0#, 16#FF#, 16#C0#, 16#7F#, 16#C0#, 16#7F#, 16#FF#, 16#F0#, 16#3F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#7F#, 16#80#, 16#FF#, 16#87#, 16#C0#, 16#1F#, 16#01#, 16#F8#, 16#0F#, 16#80#, 16#3E#, 16#07#, 16#C0#, 16#0F#, 16#C3#, 16#E0#, 16#01#, 16#F1#, 16#F0#, 16#00#, 16#7E#, 16#F8#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#03#, 16#FE#, 16#00#, 16#00#, 16#7F#, 16#80#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#78#, 16#00#, 16#07#, 16#FF#, 16#F0#, 16#03#, 16#FF#, 16#FE#, 16#00#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#C0#, 16#0F#, 16#FF#, 16#E0#, 16#00#, 16#01#, 16#FF#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#F8#, 16#07#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#E0#, 16#3F#, 16#FF#, 16#FC#, 16#07#, 16#C0#, 16#3F#, 16#00#, 16#F8#, 16#0F#, 16#C0#, 16#1F#, 16#03#, 16#F0#, 16#03#, 16#C0#, 16#FC#, 16#00#, 16#F8#, 16#3F#, 16#00#, 16#0E#, 16#0F#, 16#C0#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#01#, 16#F8#, 16#0E#, 16#00#, 16#7E#, 16#03#, 16#E0#, 16#1F#, 16#80#, 16#7C#, 16#07#, 16#E0#, 16#0F#, 16#01#, 16#F8#, 16#03#, 16#E0#, 16#7E#, 16#00#, 16#7C#, 16#1F#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FF#, 16#81#, 16#FF#, 16#FF#, 16#F0#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#3F#, 16#F0#, 16#0F#, 16#FC#, 16#03#, 16#FF#, 16#00#, 16#FF#, 16#80#, 16#7C#, 16#00#, 16#1E#, 16#00#, 16#07#, 16#80#, 16#01#, 16#E0#, 16#00#, 16#78#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#7C#, 16#00#, 16#1E#, 16#00#, 16#07#, 16#80#, 16#01#, 16#E0#, 16#00#, 16#F8#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#7C#, 16#00#, 16#1E#, 16#00#, 16#07#, 16#80#, 16#01#, 16#E0#, 16#00#, 16#F8#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#7F#, 16#E0#, 16#1F#, 16#F8#, 16#07#, 16#FE#, 16#01#, 16#FF#, 16#80#, 16#FF#, 16#C0#, 16#00#, 16#20#, 16#03#, 16#C0#, 16#3E#, 16#01#, 16#F0#, 16#0F#, 16#C0#, 16#7E#, 16#01#, 16#F0#, 16#0F#, 16#80#, 16#7E#, 16#03#, 16#F0#, 16#0F#, 16#80#, 16#7E#, 16#03#, 16#F0#, 16#0F#, 16#80#, 16#7C#, 16#03#, 16#F0#, 16#1F#, 16#80#, 16#7C#, 16#03#, 16#F0#, 16#1F#, 16#80#, 16#FC#, 16#03#, 16#E0#, 16#1F#, 16#80#, 16#FC#, 16#03#, 16#E0#, 16#1F#, 16#00#, 16#FC#, 16#07#, 16#E0#, 16#1F#, 16#00#, 16#FC#, 16#07#, 16#E0#, 16#1F#, 16#00#, 16#F8#, 16#07#, 16#C0#, 16#3E#, 16#00#, 16#F0#, 16#07#, 16#80#, 16#38#, 16#00#, 16#FF#, 16#C0#, 16#7F#, 16#E0#, 16#1F#, 16#F8#, 16#07#, 16#FE#, 16#01#, 16#FF#, 16#80#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#07#, 16#C0#, 16#01#, 16#E0#, 16#00#, 16#78#, 16#00#, 16#1E#, 16#00#, 16#0F#, 16#80#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#07#, 16#C0#, 16#01#, 16#E0#, 16#00#, 16#78#, 16#00#, 16#1E#, 16#00#, 16#0F#, 16#80#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#00#, 16#07#, 16#80#, 16#01#, 16#E0#, 16#00#, 16#78#, 16#00#, 16#1E#, 16#00#, 16#0F#, 16#80#, 16#7F#, 16#C0#, 16#3F#, 16#F0#, 16#0F#, 16#FC#, 16#03#, 16#FF#, 16#00#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#08#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#3C#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#FE#, 16#00#, 16#1F#, 16#F0#, 16#03#, 16#FF#, 16#80#, 16#7F#, 16#F8#, 16#1F#, 16#CF#, 16#C3#, 16#F8#, 16#FE#, 16#7E#, 16#07#, 16#EF#, 16#C0#, 16#3F#, 16#F8#, 16#03#, 16#FF#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#E0#, 16#7F#, 16#FF#, 16#FF#, 16#FB#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#EF#, 16#FF#, 16#FF#, 16#FF#, 16#00#, 16#60#, 16#F0#, 16#F8#, 16#7C#, 16#3E#, 16#1F#, 16#0F#, 16#06#, 16#00#, 16#3F#, 16#E0#, 16#03#, 16#FF#, 16#F8#, 16#07#, 16#FF#, 16#FC#, 16#07#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#7F#, 16#FE#, 16#03#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FC#, 16#1F#, 16#FF#, 16#FC#, 16#3F#, 16#FF#, 16#FC#, 16#7F#, 16#00#, 16#78#, 16#7C#, 16#00#, 16#78#, 16#F8#, 16#00#, 16#F8#, 16#F8#, 16#03#, 16#F8#, 16#FC#, 16#0F#, 16#FE#, 16#FF#, 16#FF#, 16#FF#, 16#7F#, 16#FF#, 16#FF#, 16#7F#, 16#FF#, 16#FF#, 16#3F#, 16#FD#, 16#FE#, 16#0F#, 16#E0#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#01#, 16#FF#, 16#00#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#FE#, 16#00#, 16#07#, 16#BF#, 16#FC#, 16#00#, 16#3F#, 16#FF#, 16#F8#, 16#03#, 16#FF#, 16#FF#, 16#C0#, 16#1F#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#03#, 16#F8#, 16#07#, 16#E0#, 16#07#, 16#E0#, 16#7E#, 16#00#, 16#3F#, 16#03#, 16#E0#, 16#00#, 16#F8#, 16#1F#, 16#00#, 16#07#, 16#C0#, 16#F0#, 16#00#, 16#3E#, 16#0F#, 16#80#, 16#01#, 16#F0#, 16#7C#, 16#00#, 16#1F#, 16#03#, 16#E0#, 16#00#, 16#F8#, 16#1F#, 16#00#, 16#0F#, 16#C0#, 16#FC#, 16#00#, 16#7C#, 16#0F#, 16#E0#, 16#07#, 16#E3#, 16#FF#, 16#C0#, 16#FE#, 16#3F#, 16#FF#, 16#FF#, 16#E1#, 16#FF#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#FF#, 16#E0#, 16#7F#, 16#9F#, 16#FC#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#00#, 16#1F#, 16#E3#, 16#80#, 16#7F#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#E0#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#F8#, 16#FF#, 16#01#, 16#F8#, 16#7E#, 16#00#, 16#7C#, 16#7E#, 16#00#, 16#3E#, 16#3E#, 16#00#, 16#0E#, 16#3E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#0C#, 16#7F#, 16#80#, 16#3F#, 16#1F#, 16#FF#, 16#FF#, 16#8F#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FF#, 16#80#, 16#7F#, 16#FF#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#3F#, 16#87#, 16#C0#, 16#0F#, 16#FF#, 16#7C#, 16#03#, 16#FF#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#F8#, 16#0F#, 16#FF#, 16#FF#, 16#81#, 16#FC#, 16#0F#, 16#F8#, 16#3F#, 16#00#, 16#3F#, 16#83#, 16#E0#, 16#01#, 16#F0#, 16#7C#, 16#00#, 16#1F#, 16#07#, 16#C0#, 16#01#, 16#F0#, 16#F8#, 16#00#, 16#1F#, 16#0F#, 16#80#, 16#01#, 16#F0#, 16#F8#, 16#00#, 16#1E#, 16#0F#, 16#80#, 16#03#, 16#E0#, 16#F8#, 16#00#, 16#3E#, 16#0F#, 16#C0#, 16#07#, 16#E0#, 16#FC#, 16#00#, 16#FE#, 16#07#, 16#F0#, 16#3F#, 16#F8#, 16#7F#, 16#FF#, 16#FF#, 16#C3#, 16#FF#, 16#FF#, 16#FC#, 16#3F#, 16#FF#, 16#FF#, 16#C0#, 16#FF#, 16#E7#, 16#F8#, 16#03#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#FF#, 16#F0#, 16#03#, 16#FF#, 16#F8#, 16#07#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#FE#, 16#1F#, 16#E0#, 16#7E#, 16#3F#, 16#80#, 16#1F#, 16#3F#, 16#00#, 16#0F#, 16#7E#, 16#00#, 16#0F#, 16#7F#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#F8#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#1C#, 16#7F#, 16#01#, 16#FE#, 16#7F#, 16#FF#, 16#FE#, 16#3F#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#F0#, 16#03#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#3F#, 16#FF#, 16#00#, 16#07#, 16#FF#, 16#F0#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#1F#, 16#FF#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#7F#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#E0#, 16#00#, 16#78#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#07#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#F0#, 16#07#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#0F#, 16#FE#, 16#FF#, 16#03#, 16#FF#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#FF#, 16#0F#, 16#FF#, 16#FF#, 16#F1#, 16#FC#, 16#1F#, 16#FE#, 16#3F#, 16#80#, 16#7F#, 16#03#, 16#E0#, 16#03#, 16#F0#, 16#7E#, 16#00#, 16#3E#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#F8#, 16#00#, 16#3E#, 16#0F#, 16#80#, 16#03#, 16#E0#, 16#F8#, 16#00#, 16#3C#, 16#0F#, 16#80#, 16#03#, 16#C0#, 16#F8#, 16#00#, 16#7C#, 16#0F#, 16#C0#, 16#0F#, 16#C0#, 16#FC#, 16#01#, 16#FC#, 16#07#, 16#F0#, 16#7F#, 16#80#, 16#7F#, 16#FF#, 16#F8#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#EF#, 16#00#, 16#03#, 16#F0#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#1F#, 16#FF#, 16#E0#, 16#03#, 16#FF#, 16#FC#, 16#00#, 16#3F#, 16#FF#, 16#80#, 16#03#, 16#FF#, 16#E0#, 16#00#, 16#3F#, 16#F8#, 16#00#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#FF#, 16#80#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#01#, 16#F1#, 16#F8#, 16#00#, 16#79#, 16#FF#, 16#80#, 16#1E#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#FF#, 16#80#, 16#FF#, 16#07#, 16#E0#, 16#3F#, 16#00#, 16#F8#, 16#1F#, 16#80#, 16#3E#, 16#07#, 16#C0#, 16#0F#, 16#81#, 16#F0#, 16#03#, 16#C0#, 16#7C#, 16#00#, 16#F0#, 16#1E#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#1F#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#F8#, 16#01#, 16#E0#, 16#3C#, 16#00#, 16#F8#, 16#0F#, 16#00#, 16#3E#, 16#1F#, 16#F8#, 16#3F#, 16#EF#, 16#FE#, 16#1F#, 16#FF#, 16#FF#, 16#87#, 16#FF#, 16#FF#, 16#E1#, 16#FF#, 16#FF#, 16#F0#, 16#3F#, 16#E0#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#FF#, 16#C0#, 16#07#, 16#FF#, 16#80#, 16#0F#, 16#FE#, 16#00#, 16#1F#, 16#FC#, 16#00#, 16#3F#, 16#F8#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#3F#, 16#FF#, 16#FC#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#E7#, 16#FF#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#F8#, 16#1F#, 16#FF#, 16#F0#, 16#3F#, 16#FF#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#0F#, 16#C0#, 16#FF#, 16#FF#, 16#03#, 16#FF#, 16#FC#, 16#07#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#C0#, 16#0F#, 16#FC#, 16#00#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#3C#, 16#3F#, 16#F0#, 16#0F#, 16#1F#, 16#FC#, 16#07#, 16#C7#, 16#FF#, 16#01#, 16#F1#, 16#FF#, 16#C0#, 16#78#, 16#7F#, 16#E0#, 16#1E#, 16#3F#, 16#80#, 16#07#, 16#BF#, 16#80#, 16#03#, 16#FF#, 16#C0#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#07#, 16#FF#, 16#80#, 16#01#, 16#F7#, 16#F0#, 16#00#, 16#7C#, 16#FE#, 16#00#, 16#1E#, 16#1F#, 16#C0#, 16#0F#, 16#83#, 16#F8#, 16#1F#, 16#E0#, 16#FF#, 16#EF#, 16#F8#, 16#3F#, 16#FB#, 16#FC#, 16#1F#, 16#FE#, 16#FF#, 16#07#, 16#FF#, 16#9F#, 16#C0#, 16#FF#, 16#C0#, 16#00#, 16#7F#, 16#F0#, 16#01#, 16#FF#, 16#C0#, 16#03#, 16#FF#, 16#80#, 16#07#, 16#FF#, 16#00#, 16#0F#, 16#FE#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#7F#, 16#FF#, 16#F9#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#CF#, 16#FF#, 16#FF#, 16#00#, 16#00#, 16#07#, 16#81#, 16#E0#, 16#3F#, 16#BF#, 16#9F#, 16#E1#, 16#FF#, 16#FE#, 16#FF#, 16#87#, 16#FF#, 16#FF#, 16#FF#, 16#1F#, 16#FF#, 16#FF#, 16#FC#, 16#7F#, 16#C7#, 16#F1#, 16#F0#, 16#7E#, 16#1F#, 16#87#, 16#C1#, 16#F0#, 16#7C#, 16#1F#, 16#07#, 16#81#, 16#E0#, 16#7C#, 16#1E#, 16#07#, 16#81#, 16#E0#, 16#F8#, 16#3E#, 16#0F#, 16#83#, 16#E0#, 16#F8#, 16#3E#, 16#0F#, 16#83#, 16#E0#, 16#F8#, 16#3C#, 16#0F#, 16#03#, 16#C1#, 16#F0#, 16#3C#, 16#0F#, 16#07#, 16#C1#, 16#F0#, 16#7C#, 16#1F#, 16#07#, 16#C1#, 16#F1#, 16#FE#, 16#1F#, 16#87#, 16#EF#, 16#FC#, 16#7F#, 16#1F#, 16#FF#, 16#F3#, 16#FC#, 16#7F#, 16#FF#, 16#CF#, 16#F3#, 16#FF#, 16#FE#, 16#3F#, 16#8F#, 16#E0#, 16#00#, 16#01#, 16#F8#, 16#01#, 16#F9#, 16#FF#, 16#80#, 16#FE#, 16#FF#, 16#F0#, 16#7F#, 16#FF#, 16#FC#, 16#1F#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#07#, 16#E0#, 16#3F#, 16#00#, 16#F8#, 16#1F#, 16#80#, 16#3E#, 16#07#, 16#C0#, 16#0F#, 16#81#, 16#F0#, 16#03#, 16#C0#, 16#7C#, 16#00#, 16#F0#, 16#1E#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#1F#, 16#03#, 16#E0#, 16#07#, 16#80#, 16#F8#, 16#01#, 16#E0#, 16#3C#, 16#00#, 16#F8#, 16#0F#, 16#00#, 16#3E#, 16#1F#, 16#F8#, 16#3F#, 16#EF#, 16#FE#, 16#1F#, 16#FF#, 16#FF#, 16#87#, 16#FF#, 16#FF#, 16#E1#, 16#FF#, 16#FF#, 16#F0#, 16#3F#, 16#E0#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#7F#, 16#FC#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#C0#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#03#, 16#F8#, 16#FE#, 16#00#, 16#FE#, 16#7C#, 16#00#, 16#3F#, 16#7C#, 16#00#, 16#0F#, 16#BE#, 16#00#, 16#07#, 16#FE#, 16#00#, 16#03#, 16#FF#, 16#00#, 16#01#, 16#FF#, 16#80#, 16#00#, 16#FF#, 16#C0#, 16#00#, 16#FB#, 16#E0#, 16#00#, 16#FD#, 16#F8#, 16#00#, 16#7C#, 16#FE#, 16#00#, 16#FE#, 16#3F#, 16#81#, 16#FE#, 16#1F#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#FE#, 16#01#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FC#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#07#, 16#F9#, 16#FF#, 16#C0#, 16#1F#, 16#F7#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#FF#, 16#C0#, 16#7F#, 16#F0#, 16#3F#, 16#80#, 16#3F#, 16#80#, 16#1F#, 16#80#, 16#7E#, 16#00#, 16#3F#, 16#00#, 16#F8#, 16#00#, 16#3E#, 16#01#, 16#F0#, 16#00#, 16#7C#, 16#03#, 16#C0#, 16#00#, 16#F8#, 16#0F#, 16#80#, 16#01#, 16#F0#, 16#1F#, 16#00#, 16#07#, 16#E0#, 16#3E#, 16#00#, 16#0F#, 16#80#, 16#7C#, 16#00#, 16#3F#, 16#01#, 16#FC#, 16#00#, 16#FC#, 16#03#, 16#FE#, 16#07#, 16#F8#, 16#07#, 16#FF#, 16#FF#, 16#E0#, 16#0F#, 16#FF#, 16#FF#, 16#80#, 16#1E#, 16#FF#, 16#FC#, 16#00#, 16#7C#, 16#FF#, 16#F0#, 16#00#, 16#F8#, 16#7F#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#FF#, 16#F0#, 16#00#, 16#07#, 16#FF#, 16#E0#, 16#00#, 16#0F#, 16#FF#, 16#C0#, 16#00#, 16#1F#, 16#FF#, 16#80#, 16#00#, 16#3F#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#07#, 16#FF#, 16#3F#, 16#C0#, 16#FF#, 16#FD#, 16#FE#, 16#0F#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#FF#, 16#8F#, 16#E0#, 16#7F#, 16#F8#, 16#FC#, 16#00#, 16#FE#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#7C#, 16#00#, 16#1F#, 16#03#, 16#E0#, 16#00#, 16#F8#, 16#1E#, 16#00#, 16#07#, 16#C1#, 16#F0#, 16#00#, 16#3E#, 16#0F#, 16#80#, 16#01#, 16#E0#, 16#7C#, 16#00#, 16#1F#, 16#03#, 16#F0#, 16#01#, 16#F8#, 16#1F#, 16#80#, 16#1F#, 16#C0#, 16#FF#, 16#03#, 16#FC#, 16#03#, 16#FF#, 16#FF#, 16#E0#, 16#1F#, 16#FF#, 16#FF#, 16#00#, 16#7F#, 16#FF#, 16#F8#, 16#00#, 16#FF#, 16#E7#, 16#C0#, 16#01#, 16#FC#, 16#3C#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#07#, 16#FF#, 16#80#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#07#, 16#FF#, 16#F0#, 16#00#, 16#3F#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#3F#, 16#C3#, 16#FE#, 16#07#, 16#FC#, 16#FF#, 16#E0#, 16#7F#, 16#DF#, 16#FF#, 16#07#, 16#FF#, 16#FF#, 16#E0#, 16#7F#, 16#FF#, 16#1C#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#00#, 16#FE#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#07#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#F0#, 16#0F#, 16#FF#, 16#FF#, 16#00#, 16#FF#, 16#FF#, 16#F0#, 16#07#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#3F#, 16#CE#, 16#03#, 16#FF#, 16#FC#, 16#0F#, 16#FF#, 16#F8#, 16#3F#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#C3#, 16#F8#, 16#0F#, 16#87#, 16#C0#, 16#0E#, 16#0F#, 16#80#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#3F#, 16#FF#, 16#80#, 16#3F#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#C0#, 16#1F#, 16#FF#, 16#C0#, 16#01#, 16#FF#, 16#80#, 16#00#, 16#3F#, 16#1C#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#7C#, 16#FC#, 16#03#, 16#F3#, 16#FF#, 16#FF#, 16#E7#, 16#FF#, 16#FF#, 16#8F#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#F0#, 16#00#, 16#FF#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#7C#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#7C#, 16#00#, 16#07#, 16#80#, 16#00#, 16#78#, 16#00#, 16#7F#, 16#FF#, 16#EF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#E1#, 16#F0#, 16#00#, 16#1F#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#1E#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#3E#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#3C#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#7C#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#7E#, 16#00#, 16#F7#, 16#FF#, 16#FF#, 16#7F#, 16#FF#, 16#F3#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#80#, 16#7F#, 16#80#, 16#7F#, 16#01#, 16#FF#, 16#FE#, 16#07#, 16#FF#, 16#F8#, 16#1F#, 16#FF#, 16#F0#, 16#3F#, 16#FF#, 16#E0#, 16#3F#, 16#C7#, 16#C0#, 16#07#, 16#8F#, 16#80#, 16#1F#, 16#3E#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#78#, 16#F8#, 16#00#, 16#F1#, 16#F0#, 16#01#, 16#E3#, 16#E0#, 16#07#, 16#C7#, 16#C0#, 16#0F#, 16#8F#, 16#80#, 16#1E#, 16#1F#, 16#00#, 16#7C#, 16#3E#, 16#01#, 16#F8#, 16#7E#, 16#0F#, 16#FC#, 16#FF#, 16#FF#, 16#F8#, 16#FF#, 16#FF#, 16#F1#, 16#FF#, 16#EF#, 16#E1#, 16#FF#, 16#BF#, 16#80#, 16#FC#, 16#00#, 16#00#, 16#7F#, 16#F0#, 16#7F#, 16#FF#, 16#FF#, 16#0F#, 16#FF#, 16#FF#, 16#F0#, 16#FF#, 16#FF#, 16#FF#, 16#0F#, 16#FF#, 16#FF#, 16#E0#, 16#FF#, 16#E1#, 16#F8#, 16#03#, 16#E0#, 16#0F#, 16#80#, 16#3E#, 16#00#, 16#F8#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#F8#, 16#00#, 16#FC#, 16#1F#, 16#80#, 16#07#, 16#C1#, 16#F0#, 16#00#, 16#7C#, 16#3E#, 16#00#, 16#07#, 16#E7#, 16#C0#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#03#, 16#EF#, 16#80#, 16#00#, 16#3F#, 16#F0#, 16#00#, 16#03#, 16#FF#, 16#00#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#1F#, 16#EF#, 16#FC#, 16#03#, 16#FF#, 16#FF#, 16#C0#, 16#7F#, 16#FF#, 16#FC#, 16#07#, 16#FE#, 16#7F#, 16#80#, 16#3F#, 16#C3#, 16#E1#, 16#F0#, 16#F8#, 16#3E#, 16#3F#, 16#0F#, 16#03#, 16#E3#, 16#F1#, 16#F0#, 16#3E#, 16#7F#, 16#1E#, 16#03#, 16#E7#, 16#F3#, 16#E0#, 16#3E#, 16#FF#, 16#BC#, 16#03#, 16#FF#, 16#FF#, 16#C0#, 16#3F#, 16#FF#, 16#FC#, 16#03#, 16#FE#, 16#FF#, 16#80#, 16#3F#, 16#EF#, 16#F8#, 16#03#, 16#FC#, 16#FF#, 16#00#, 16#3F#, 16#8F#, 16#F0#, 16#03#, 16#F8#, 16#7E#, 16#00#, 16#3F#, 16#07#, 16#E0#, 16#01#, 16#F0#, 16#7C#, 16#00#, 16#1E#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#FE#, 16#0F#, 16#F8#, 16#3F#, 16#F0#, 16#FF#, 16#C1#, 16#FF#, 16#8F#, 16#FE#, 16#0F#, 16#FC#, 16#7F#, 16#F0#, 16#7F#, 16#C1#, 16#FF#, 16#00#, 16#FE#, 16#1F#, 16#C0#, 16#03#, 16#F9#, 16#FC#, 16#00#, 16#0F#, 16#FF#, 16#C0#, 16#00#, 16#3F#, 16#F8#, 16#00#, 16#00#, 16#FF#, 16#80#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#00#, 16#FE#, 16#FE#, 16#00#, 16#0F#, 16#E3#, 16#F8#, 16#00#, 16#FE#, 16#0F#, 16#E0#, 16#3F#, 16#E0#, 16#7F#, 16#C3#, 16#FF#, 16#87#, 16#FF#, 16#3F#, 16#FC#, 16#7F#, 16#F9#, 16#FF#, 16#E3#, 16#FF#, 16#87#, 16#FE#, 16#0F#, 16#F8#, 16#00#, 16#01#, 16#FE#, 16#03#, 16#FE#, 16#03#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FF#, 16#07#, 16#FE#, 16#03#, 16#FC#, 16#03#, 16#FC#, 16#01#, 16#F8#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#03#, 16#E0#, 16#00#, 16#FC#, 16#07#, 16#C0#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#00#, 16#7C#, 16#0F#, 16#80#, 16#00#, 16#7E#, 16#1F#, 16#00#, 16#00#, 16#7E#, 16#3E#, 16#00#, 16#00#, 16#3E#, 16#7C#, 16#00#, 16#00#, 16#3E#, 16#78#, 16#00#, 16#00#, 16#3F#, 16#F8#, 16#00#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#FF#, 16#00#, 16#00#, 16#7F#, 16#FE#, 16#00#, 16#00#, 16#07#, 16#FF#, 16#FF#, 16#83#, 16#FF#, 16#FF#, 16#81#, 16#FF#, 16#FF#, 16#C1#, 16#FF#, 16#FF#, 16#E0#, 16#FF#, 16#FF#, 16#E0#, 16#7C#, 16#0F#, 16#E0#, 16#3C#, 16#0F#, 16#E0#, 16#1E#, 16#0F#, 16#C0#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#1F#, 16#80#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#3F#, 16#00#, 16#F0#, 16#3F#, 16#00#, 16#F8#, 16#3F#, 16#FF#, 16#FC#, 16#3F#, 16#FF#, 16#FE#, 16#1F#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#FF#, 16#0F#, 16#FF#, 16#FF#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#1F#, 16#C0#, 16#1F#, 16#E0#, 16#1F#, 16#F0#, 16#0F#, 16#E0#, 16#0F#, 16#C0#, 16#07#, 16#C0#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#00#, 16#78#, 16#00#, 16#7C#, 16#00#, 16#3E#, 16#00#, 16#1F#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#80#, 16#3F#, 16#80#, 16#3F#, 16#C0#, 16#1F#, 16#C0#, 16#0F#, 16#E0#, 16#07#, 16#F8#, 16#00#, 16#FC#, 16#00#, 16#3E#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#80#, 16#07#, 16#80#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#00#, 16#7E#, 16#00#, 16#3F#, 16#80#, 16#1F#, 16#E0#, 16#07#, 16#F0#, 16#03#, 16#F8#, 16#00#, 16#78#, 16#00#, 16#01#, 16#E0#, 16#3C#, 16#0F#, 16#81#, 16#F0#, 16#3E#, 16#07#, 16#80#, 16#F0#, 16#3E#, 16#07#, 16#C0#, 16#F0#, 16#1E#, 16#03#, 16#C0#, 16#F8#, 16#1F#, 16#03#, 16#C0#, 16#78#, 16#0F#, 16#03#, 16#E0#, 16#7C#, 16#0F#, 16#01#, 16#E0#, 16#3C#, 16#0F#, 16#81#, 16#F0#, 16#3C#, 16#07#, 16#80#, 16#F0#, 16#3E#, 16#07#, 16#C0#, 16#F0#, 16#1E#, 16#07#, 16#C0#, 16#F8#, 16#1F#, 16#03#, 16#C0#, 16#70#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#FC#, 16#00#, 16#7F#, 16#00#, 16#3F#, 16#C0#, 16#0F#, 16#E0#, 16#03#, 16#F0#, 16#00#, 16#F8#, 16#00#, 16#7C#, 16#00#, 16#3E#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#80#, 16#07#, 16#80#, 16#03#, 16#C0#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#F8#, 16#00#, 16#7E#, 16#00#, 16#3F#, 16#C0#, 16#0F#, 16#E0#, 16#07#, 16#F0#, 16#07#, 16#F8#, 16#07#, 16#F8#, 16#03#, 16#E0#, 16#03#, 16#E0#, 16#01#, 16#F0#, 16#00#, 16#F0#, 16#00#, 16#78#, 16#00#, 16#7C#, 16#00#, 16#3E#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#00#, 16#1F#, 16#80#, 16#7F#, 16#C0#, 16#7F#, 16#C0#, 16#3F#, 16#C0#, 16#1F#, 16#C0#, 16#07#, 16#80#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#7F#, 16#E0#, 16#39#, 16#FF#, 16#E0#, 16#F7#, 16#FF#, 16#E7#, 16#FF#, 16#CF#, 16#FF#, 16#FE#, 16#0F#, 16#FF#, 16#38#, 16#0F#, 16#FC#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#0F#, 16#80#); FreeMonoBoldOblique24pt7bGlyphs : aliased constant Glyph_Array := ( (0, 0, 0, 28, 0, 1), -- 0x20 ' ' (0, 12, 31, 28, 12, -29), -- 0x21 '!' (47, 17, 14, 28, 11, -28), -- 0x22 '"' (77, 24, 34, 28, 5, -30), -- 0x23 '#' (179, 25, 38, 28, 4, -31), -- 0x24 '$' (298, 22, 30, 28, 6, -28), -- 0x25 '%' (381, 21, 28, 28, 5, -26), -- 0x26 '&' (455, 7, 14, 28, 16, -28), -- 0x27 ''' (468, 14, 37, 28, 14, -29), -- 0x28 '(' (533, 14, 37, 28, 5, -29), -- 0x29 ')' (598, 21, 19, 28, 8, -28), -- 0x2A '*' (648, 24, 26, 28, 5, -25), -- 0x2B '+' (726, 12, 14, 28, 6, -6), -- 0x2C ',' (747, 24, 5, 28, 5, -15), -- 0x2D '-' (762, 7, 6, 28, 11, -4), -- 0x2E '.' (768, 28, 38, 28, 3, -32), -- 0x2F '/' (901, 23, 31, 28, 6, -29), -- 0x30 '0' (991, 21, 30, 28, 4, -29), -- 0x31 '1' (1070, 26, 30, 28, 3, -29), -- 0x32 '2' (1168, 25, 31, 28, 4, -29), -- 0x33 '3' (1265, 22, 28, 28, 5, -27), -- 0x34 '4' (1342, 25, 31, 28, 4, -29), -- 0x35 '5' (1439, 24, 31, 28, 7, -29), -- 0x36 '6' (1532, 22, 30, 28, 9, -29), -- 0x37 '7' (1615, 23, 31, 28, 6, -29), -- 0x38 '8' (1705, 24, 31, 28, 5, -29), -- 0x39 '9' (1798, 10, 22, 28, 11, -20), -- 0x3A ':' (1826, 15, 28, 28, 5, -20), -- 0x3B ';' (1879, 25, 21, 28, 5, -23), -- 0x3C '<' (1945, 26, 14, 28, 4, -19), -- 0x3D '=' (1991, 25, 22, 28, 4, -23), -- 0x3E '>' (2060, 19, 29, 28, 10, -27), -- 0x3F '?' (2129, 23, 36, 28, 5, -28), -- 0x40 '@' (2233, 30, 27, 28, 0, -26), -- 0x41 'A' (2335, 29, 27, 28, 1, -26), -- 0x42 'B' (2433, 28, 29, 28, 3, -27), -- 0x43 'C' (2535, 28, 27, 28, 1, -26), -- 0x44 'D' (2630, 29, 27, 28, 1, -26), -- 0x45 'E' (2728, 31, 27, 28, 0, -26), -- 0x46 'F' (2833, 28, 29, 28, 3, -27), -- 0x47 'G' (2935, 30, 27, 28, 1, -26), -- 0x48 'H' (3037, 25, 27, 28, 3, -26), -- 0x49 'I' (3122, 31, 28, 28, 0, -26), -- 0x4A 'J' (3231, 31, 27, 28, 0, -26), -- 0x4B 'K' (3336, 27, 27, 28, 1, -26), -- 0x4C 'L' (3428, 34, 27, 28, 0, -26), -- 0x4D 'M' (3543, 32, 27, 28, 1, -26), -- 0x4E 'N' (3651, 27, 29, 28, 3, -27), -- 0x4F 'O' (3749, 28, 27, 28, 1, -26), -- 0x50 'P' (3844, 27, 35, 28, 3, -27), -- 0x51 'Q' (3963, 29, 27, 28, 0, -26), -- 0x52 'R' (4061, 26, 29, 28, 3, -27), -- 0x53 'S' (4156, 26, 27, 28, 4, -26), -- 0x54 'T' (4244, 28, 28, 28, 4, -26), -- 0x55 'U' (4342, 30, 27, 28, 2, -26), -- 0x56 'V' (4444, 29, 27, 28, 3, -26), -- 0x57 'W' (4542, 32, 27, 28, 0, -26), -- 0x58 'X' (4650, 26, 27, 28, 4, -26), -- 0x59 'Y' (4738, 27, 27, 28, 2, -26), -- 0x5A 'Z' (4830, 18, 37, 28, 10, -29), -- 0x5B '[' (4914, 13, 38, 28, 10, -32), -- 0x5C '\' (4976, 18, 37, 28, 5, -29), -- 0x5D ']' (5060, 20, 15, 28, 8, -29), -- 0x5E '^' (5098, 29, 5, 28, -2, 5), -- 0x5F '_' (5117, 8, 8, 28, 13, -30), -- 0x60 '`' (5125, 24, 23, 28, 3, -21), -- 0x61 'a' (5194, 29, 31, 28, 0, -29), -- 0x62 'b' (5307, 25, 23, 28, 3, -21), -- 0x63 'c' (5379, 28, 31, 28, 3, -29), -- 0x64 'd' (5488, 24, 23, 28, 3, -21), -- 0x65 'e' (5557, 28, 30, 28, 4, -29), -- 0x66 'f' (5662, 28, 31, 28, 3, -21), -- 0x67 'g' (5771, 26, 30, 28, 2, -29), -- 0x68 'h' (5869, 23, 29, 28, 3, -28), -- 0x69 'i' (5953, 23, 38, 28, 3, -28), -- 0x6A 'j' (6063, 26, 30, 28, 2, -29), -- 0x6B 'k' (6161, 23, 30, 28, 3, -29), -- 0x6C 'l' (6248, 30, 22, 28, 0, -21), -- 0x6D 'm' (6331, 26, 22, 28, 2, -21), -- 0x6E 'n' (6403, 25, 23, 28, 3, -21), -- 0x6F 'o' (6475, 31, 31, 28, -1, -21), -- 0x70 'p' (6596, 29, 31, 28, 2, -21), -- 0x71 'q' (6709, 28, 22, 28, 2, -21), -- 0x72 'r' (6786, 23, 23, 28, 4, -21), -- 0x73 's' (6853, 20, 28, 28, 5, -26), -- 0x74 't' (6923, 23, 22, 28, 5, -20), -- 0x75 'u' (6987, 28, 21, 28, 3, -20), -- 0x76 'v' (7061, 28, 21, 28, 3, -20), -- 0x77 'w' (7135, 29, 21, 28, 1, -20), -- 0x78 'x' (7212, 32, 30, 28, -1, -20), -- 0x79 'y' (7332, 25, 21, 28, 4, -20), -- 0x7A 'z' (7398, 17, 37, 28, 10, -29), -- 0x7B '{' (7477, 11, 36, 28, 11, -28), -- 0x7C '|' (7527, 17, 37, 28, 6, -29), -- 0x7D '}' (7606, 23, 10, 28, 5, -17)); -- 0x7E '~' Font_D : aliased constant Bitmap_Font := (FreeMonoBoldOblique24pt7bBitmaps'Access, FreeMonoBoldOblique24pt7bGlyphs'Access, 47); Font : constant Giza.Font.Ref_Const := Font_D'Access; end Giza.Bitmap_Fonts.FreeMonoBoldOblique24pt7b;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.STRINGS.WIDE_WIDE_BOUNDED.WIDE_WIDE_HASH -- -- -- -- S p e c -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ -- Is this really an RM unit? doc needed ??? with Ada.Containers; generic with package Bounded is new Ada.Strings.Wide_Wide_Bounded.Generic_Bounded_Length (<>); function Ada.Strings.Wide_Wide_Bounded.Wide_Wide_Hash (Key : Bounded.Bounded_Wide_Wide_String) return Containers.Hash_Type; pragma Preelaborate (Ada.Strings.Wide_Wide_Bounded.Wide_Wide_Hash);
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S T R I N G S . W I D E _ W I D E _ U N B O U N D E D . A U X -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This child package of Ada.Strings.Wide_Wide_Unbounded provides some -- specialized access functions which are intended to allow more efficient -- use of the facilities of Ada.Strings.Wide_Wide_Unbounded, particularly by -- other layered utilities. package Ada.Strings.Wide_Wide_Unbounded.Aux is pragma Preelaborate; subtype Big_Wide_Wide_String is Wide_Wide_String (Positive); type Big_Wide_Wide_String_Access is access all Big_Wide_Wide_String; procedure Get_Wide_Wide_String (U : Unbounded_Wide_Wide_String; S : out Big_Wide_Wide_String_Access; L : out Natural); pragma Inline (Get_Wide_Wide_String); -- This procedure returns the internal string pointer used in the -- representation of an unbounded string as well as the actual current -- length (which may be less than S.all'Length because in general there -- can be extra space assigned). The characters of this string may be -- not be modified via the returned pointer, and are valid only as -- long as the original unbounded string is not accessed or modified. -- -- This procedure is more efficient than the use of To_Wide_Wide_String -- since it avoids the need to copy the string. The lower bound of the -- referenced string returned by this call is always one, so the actual -- string data is always accessible as S (1 .. L). procedure Set_Wide_Wide_String (UP : out Unbounded_Wide_Wide_String; S : Wide_Wide_String) renames Set_Unbounded_Wide_Wide_String; -- This function sets the string contents of the referenced unbounded -- string to the given string value. It is significantly more efficient -- than the use of To_Unbounded_Wide_Wide_String with an assignment, since -- it avoids the necessity of messing with finalization chains. The lower -- bound of the string S is not required to be one. procedure Set_Wide_Wide_String (UP : in out Unbounded_Wide_Wide_String; S : Wide_Wide_String_Access); pragma Inline (Set_Wide_Wide_String); -- This version of Set_Wide_Wide_String takes a string access value, rather -- than string. The lower bound of the string value is required to be one, -- and this requirement is not checked. end Ada.Strings.Wide_Wide_Unbounded.Aux;
-- CE2401C.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK READ (WITH AND WITHOUT PARAMETER FROM), WRITE (WITH -- AND WITHOUT PARAMETER TO), SET_INDEX, INDEX, SIZE, AND -- END_OF_FILE ARE IMPLEMENTED FOR DIRECT FILES WITH -- ELEMENT_TYPE CONSTRAINED ARRAY, AND RECORD WITHOUT DISCRIMINANTS. -- APPLICABILITY CRITERIA: -- THIS TEST IS ONLY APPLICABLE TO IMPLEMENTATIONS WHICH SUPPORT -- DIRECT FILES. -- HISTORY: -- ABW 08/18/82 -- SPS 09/20/82 -- SPS 11/09/82 -- JBG 05/02/83 -- JRK 03/26/84 -- EG 05/16/85 -- TBN 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE -- RESULT WHEN FILES ARE NOT SUPPORTED. -- DWC 08/10/87 ISOLATED EXCEPTIONS. WITH REPORT; USE REPORT; WITH DIRECT_IO; PROCEDURE CE2401C IS END_SUBTEST: EXCEPTION; BEGIN TEST ("CE2401C" , "CHECK READ, WRITE, SET_INDEX " & "INDEX, SIZE, AND END_OF_FILE FOR " & "DIRECT FILES FOR CONSTRAINED ARRAY TYPES, " & "AND RECORD TYPES WITHOUT DISCRIMINANTS"); DECLARE TYPE ARR_CN IS ARRAY (1..5) OF BOOLEAN; PACKAGE DIR_ARR_CN IS NEW DIRECT_IO (ARR_CN); USE DIR_ARR_CN; FILE : FILE_TYPE; BEGIN BEGIN CREATE (FILE, INOUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR | NAME_ERROR => NOT_APPLICABLE ("USE_ERROR | NAME_ERROR RAISED " & "ON CREATE - CONSTRAINED ARRAY"); RAISE END_SUBTEST; WHEN OTHERS => FAILED ("UNEXPECTED ERROR RAISED ON " & "CREATE - CONSTRAINED ARRAY"); RAISE END_SUBTEST; END; DECLARE ARR : ARR_CN := (TRUE,TRUE,FALSE,TRUE,TRUE); ITEM : ARR_CN; ONE : POSITIVE_COUNT := 1; TWO : POSITIVE_COUNT := 2; BEGIN BEGIN WRITE (FILE,ARR); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON WRITE FOR " & "CONTRAINED ARRAY - 1"); END; BEGIN WRITE (FILE,ARR,TWO); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON WRITE FOR " & "CONSTRAINED ARRAY - 2"); END; BEGIN IF SIZE (FILE) /= TWO THEN FAILED ("SIZE FOR TYPE CONSTRAINED ARRAY"); END IF; IF NOT END_OF_FILE (FILE) THEN FAILED ("WRONG END_OF_FILE VALUE FOR TYPE " & "CONSTRAINED ARRAY"); END IF; SET_INDEX (FILE,ONE); IF INDEX (FILE) /= ONE THEN FAILED ("WRONG INDEX VALUE FOR TYPE " & "CONSTRAINED ARRAY"); END IF; END; CLOSE (FILE); BEGIN OPEN (FILE, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("OPEN FOR IN_FILE MODE " & "NOT SUPPORTED - 1"); RAISE END_SUBTEST; END; BEGIN READ (FILE,ITEM); IF ITEM /= ARR THEN FAILED ("INCORRECT ARRAY VALUES READ " & "- 1"); END IF; EXCEPTION WHEN OTHERS => FAILED ("READ WITHOUT FROM FOR " & "TYPE CONSTRAINED ARRAY"); END; BEGIN READ (FILE,ITEM,ONE); IF ITEM /= ARR THEN FAILED ("INCORRECT ARRAY VALUES READ " & "- 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("READ WITH FROM FOR " & "TYPE CONSTRAINED ARRAY"); END; END; BEGIN DELETE (FILE); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN END_SUBTEST => NULL; END; DECLARE TYPE REC IS RECORD ONE : INTEGER; TWO : INTEGER; END RECORD; PACKAGE DIR_REC IS NEW DIRECT_IO (REC); USE DIR_REC; FILE : FILE_TYPE; BEGIN BEGIN CREATE (FILE, INOUT_FILE, LEGAL_FILE_NAME(2)); EXCEPTION WHEN USE_ERROR | NAME_ERROR => NOT_APPLICABLE ("USE_ERROR | NAME_ERROR RAISED " & "ON CREATE - RECORD"); RAISE END_SUBTEST; WHEN OTHERS => FAILED ("UNEXPECTED ERROR RAISED ON CREATE - " & "RECORD"); END; DECLARE REC1 : REC := REC'(ONE=>18,TWO=>36); ITEM : REC; ONE : POSITIVE_COUNT := 1; TWO : POSITIVE_COUNT := 2; BEGIN BEGIN WRITE (FILE,REC1); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON WRITE FOR - " & "RECORD - 1"); END; BEGIN WRITE (FILE,REC1,TWO); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON WRITE FOR - " & "RECORD - 2"); END; BEGIN IF SIZE (FILE) /= TWO THEN FAILED ("SIZE FOR TYPE RECORD"); END IF; IF NOT END_OF_FILE (FILE) THEN FAILED ("WRONG END_OF_FILE VALUE FOR RECORD"); END IF; SET_INDEX (FILE,ONE); IF INDEX (FILE) /= ONE THEN FAILED ("WRONG INDEX VALUE FOR TYPE RECORD"); END IF; END; CLOSE (FILE); BEGIN OPEN (FILE, IN_FILE, LEGAL_FILE_NAME(2)); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("OPEN FOR IN_FILE MODE " & "NOT SUPPORTED - 2"); RAISE END_SUBTEST; END; BEGIN READ (FILE,ITEM); IF ITEM /= REC1 THEN FAILED ("INCORRECT RECORD VALUES READ " & "- 1"); END IF; EXCEPTION WHEN OTHERS => FAILED ("READ WITHOUT FROM FOR RECORD"); END; BEGIN READ (FILE,ITEM,ONE); IF ITEM /= REC1 THEN FAILED ("INCORRECT RECORD VALUES READ " & "- 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("READ WITH FROM FOR " & "TYPE RECORD"); END; END; BEGIN DELETE (FILE); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN END_SUBTEST => NULL; END; RESULT; END CE2401C;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- A driver for the Cyclic Redundancy Check CRC-32 calculation processor. -- The CPU transfers the data to the CRC processor. -- Note this API is for the STM32 F4x family. Other STM MCUs have additional -- CRC capabilities. private with STM32_SVD.CRC; package STM32.CRC is pragma Elaborate_Body; type CRC_32 is limited private; procedure Reset_CRC (This : in out CRC_32) with Post => Value (This) = 16#FFFF_FFFF#; -- Reset the unit's calculator value to 16#FFFF_FFFF#. All previous -- calculations due to calls to Update_CRC are lost. Does not affect -- the contents of the unit's independent data. function Value (This : CRC_32) return UInt32; -- Returns the currently calculated CRC value, reflecting any prior calls -- to Update_CRC. This is the same value returned via the Update_CRC.Output -- parameter. -- The Update_CRC routines can be called multiple times, back-to-back, -- presumably with different input blocks, in order to update the value -- of the calculated CRC checksum within the CRC processor with differing -- input values. procedure Update_CRC (This : in out CRC_32; Input : UInt32; Output : out UInt32); -- Updates the 32-bit CRC value in This from the 32-bit Input value and any -- previously-calculated CRC value. Output is the resulting CRC-32 value. type Block_32 is array (Positive range <>) of UInt32 with Component_Size => 32; procedure Update_CRC (This : in out CRC_32; Input : Block_32; Output : out UInt32); -- Updates the 32-bit CRC value in This from the 32-bit Input values and -- any previously-calculated CRC value. Output is the resulting CRC-32 -- value. type Block_16 is array (Positive range <>) of UInt16 with Component_Size => 16; procedure Update_CRC (This : in out CRC_32; Input : Block_16; Output : out UInt32); -- Updates the 32-bit CRC value in This from the 16-bit Input values and any -- previously-calculated CRC value. Output is the resulting CRC-32 value. type Block_8 is array (Positive range <>) of UInt8 with Component_Size => 8; procedure Update_CRC (This : in out CRC_32; Input : Block_8; Output : out UInt32); -- Updates the 32-bit CRC value in This from the 8-bit Input values and any -- previously-calculated CRC value. Output is the resulting CRC-32 value. type IDR_Address is new Natural range 1 .. 4; procedure Set_Independent_Data (This : in out CRC_32; Value : UInt8; Address : IDR_Address := 1); -- Assign the internal "independent data" value. There are four 8-bit -- quantity that can be used for arbitrary purposes, eg temporary storage. -- It is not affected by resetting the unit, nor is is affected by the CRC -- calculations invoked by calls to Update_CRC, hence the "independent" -- nature. function Independent_Data (This : CRC_32; Address : IDR_Address := 1) return UInt8; -- Returns the current "independent data" value. procedure Set_Initial_Value (This : in out CRC_32; Value : UInt32); -- Write the CRC initial value. type Polynomial_Size is (Bit_32, Bit_16, Bit_8, Bit_7); procedure Set_Polynomial_Size (This : in out CRC_32; Value : Polynomial_Size); -- Control the size of the polynomial. procedure Set_Polynomial (This : in out CRC_32; Value : UInt32); -- Write the coeficients of the polynomial to be used for CRC. If the -- polynomial size is less than 32 bits, the least significant bits have -- to be used to program the correct value. type Data_Input_Order is (Not_Affected, Byte_Reversed, HalfWord_Reversed, Word_Reversed); procedure Set_Data_Input_Order (This : in out CRC_32; Order : Data_Input_Order); type Data_Output_Order is (Not_Affected, Bit_Reversed); procedure Set_Data_Output_Order (This : in out CRC_32; Order : Data_Output_Order); private type CRC_32 is new STM32_SVD.CRC.CRC_Peripheral; end STM32.CRC;