- 7F930C7EA438151F273F7F788B381B7D29DA7CBF2756C231953A56F1C47B14B28BF84B365CF803C56BC4759FC8E43C43A5AD152ED877BC30CCAED1E8D5BD11DC
+ 88B6D8984DF53BCBC6D173D67B4BA34E0F25EF40D204C3787DAAE8BD38C8B633AD4EF8FF39F10BC5D541423774386BA0C671FB49218DF1A89A48A0DDCDFBD324
smg_comms/tests/test_rsa_oaep.ads
(1 . 6)(1 . 7)
170 -- S.MG, 2018
171
172 with Raw_Types;
173 with Raw_Types;
174 with RSA_OAEP;
175
176 package Test_RSA_OAEP is
177 procedure test_char_array;
(10 . 4)(11 . 11)
179
180 procedure Hex2Octets( Hex: in String; O: out Raw_Types.Octets );
181 procedure PrintOctets( O: in Raw_Types.Octets; Title: in String );
182 -- reads a full private key from specified file, in Hex format
183 -- one component per line, in order: n, e, d, p, q, u
184 -- NB: length of each component has to match *precisely* the expected length
185 -- specifically, using Raw_Types:
186 -- n, d are RSA_len'Length*2;
187 -- e, p, q, u are RSA_half'Length*2
188 procedure ReadRSAKey( Filename: in String; Key: out RSA_OAEP.RSA_skey );
189 end Test_RSA_OAEP;