(36 . 6)(36 . 11)
264 -- a. it's C code that should import this, not the other way around.
265 -- b. it needs to be static here.
266 RSA_KEY_OCTETS : constant Positive := 490;
267
268 -- RSA public exponent (e) size in octets
269 -- NB: this should normally match the E_LENGTH_OCTETS in smg_rsa.h
270 -- NOT imported here for the same reason given at RSA_KEY_OCTETS above
271 E_LENGTH_OCTETS : constant Positive := 8;
272
273 -- OAEP constants: defined here as still part of standard spec.
274 -- OAEP package will use those values when using Raw_Types
(68 . 6)(73 . 7)
276 -- raw representations of RSA key components
277 subtype RSA_len is Octets ( 1 .. RSA_KEY_OCTETS);
278 subtype RSA_half is Octets( 1 .. RSA_KEY_OCTETS/2);
279 subtype RSA_e is Octets( 1 .. E_LENGTH_OCTETS);
280
281 -- RSA packets and contained raw messages
282 subtype RSA_Pkt is Octets( 1 .. RSA_PKT_OCTETS );