smg_comms_rsa_oaep 1
smg_comms_rsa_oaep 2
smg_comms_rsa_oaep 3
smg_comms_rsa_oaep 4
smg_comms_rsa_oaep 5
smg_comms_rsa_oaep 6
smg_comms_rsa_oaep 7
smg_comms_rsa_oaep 8
smg_comms_rsa_oaep 9
smg_comms_rsa_oaep 10
smg_comms_rsa_oaep 11
smg_comms_rsa_oaep 12
smg_comms_rsa_oaep 13 with Raw_Types;
smg_comms_rsa_oaep 14 with Interfaces.C; use Interfaces.C;
smg_comms_rsa_oaep 15
smg_comms_rsa_oaep 16 package RSA_OAEP is
smg_comms_rsa_oaep 17
smg_comms_rsa_oaep 18 Mismatched_Lengths_Error: exception;
smg_comms_rsa_oaep 19
smg_comms_rsa_oaep 20
smg_comms_rsa_oaep 21 type RSA_pkey is
smg_comms_rsa_oaep 22 record
smg_comms_rsa_oaep 23 n : Raw_Types.RSA_len;
smg_comms_rsa_oaep 24 e : Raw_Types.RSA_half;
smg_comms_rsa_oaep 25 end record;
smg_comms_rsa_oaep 26
smg_comms_rsa_oaep 27
smg_comms_rsa_oaep 28 type RSA_skey is
smg_comms_rsa_oaep 29 record
smg_comms_rsa_oaep 30 n : Raw_Types.RSA_len;
smg_comms_rsa_oaep 31 e : Raw_Types.RSA_half;
smg_comms_rsa_oaep 32 d : Raw_Types.RSA_len;
smg_comms_rsa_oaep 33 p : Raw_Types.RSA_half;
smg_comms_rsa_oaep 34 q : Raw_Types.RSA_half;
smg_comms_rsa_oaep 35 u : Raw_Types.RSA_half;
smg_comms_rsa_oaep 36 end record;
smg_comms_rsa_oaep 37
smg_comms_rsa_oaep 38
smg_comms_rsa_oaep 39
smg_comms_rsa_oaep 40
smg_comms_rsa_oaep 41
smg_comms_rsa_oaep 42
smg_comms_rsa_oaep 43
smg_comms_rsa_oaep 44 procedure Encrypt( Plain: in Raw_Types.Octets;
smg_comms_rsa_oaep 45 Key : in RSA_pkey;
smg_comms_rsa_oaep 46 Encr : out Raw_Types.RSA_len );
smg_comms_rsa_oaep 47
smg_comms_rsa_oaep 48
smg_comms_rsa_oaep 49
smg_comms_rsa_oaep 50
smg_comms_rsa_oaep 51
smg_comms_rsa_oaep 52
smg_comms_rsa_oaep 53
smg_comms_rsa_oaep 54
smg_comms_rsa_oaep 55
smg_comms_rsa_oaep 56 procedure Decrypt( Encr : in Raw_Types.RSA_len;
smg_comms_rsa_oaep 57 Key : in RSA_skey;
smg_comms_rsa_oaep 58 Plain : out Raw_Types.Octets;
smg_comms_rsa_oaep 59 Plain_Len : out Natural;
smg_comms_rsa_oaep 60 Success : out Boolean);
smg_comms_rsa_oaep 61
smg_comms_rsa_oaep 62
smg_comms_rsa_oaep 63
smg_comms_rsa_oaep 64
smg_comms_rsa_oaep 65
smg_comms_rsa_oaep 66 procedure Public_RSA( Plain: in Raw_Types.Octets;
smg_comms_rsa_oaep 67 Key : in RSA_pkey;
smg_comms_rsa_oaep 68 Encr : out Raw_Types.RSA_len);
smg_comms_rsa_oaep 69
smg_comms_rsa_oaep 70
smg_comms_rsa_oaep 71
smg_comms_rsa_oaep 72 function Public_RSA_C( Encr : out Interfaces.C.char_array;
smg_comms_rsa_oaep 73 Encr_Len : in Integer;
smg_comms_rsa_oaep 74 Plain : in Interfaces.C.char_array;
smg_comms_rsa_oaep 75 Plain_Len : in Integer;
smg_comms_rsa_oaep 76 RSA_N : in Interfaces.C.char_array;
smg_comms_rsa_oaep 77 N_Len : in Integer;
smg_comms_rsa_oaep 78 RSA_E : in Interfaces.C.char_array;
smg_comms_rsa_oaep 79 E_Len : in Integer)
smg_comms_rsa_oaep 80 return Integer;
smg_comms_rsa_oaep 81 pragma Import(C, Public_RSA_C, "public_rsa_octets");
smg_comms_rsa_oaep 82
smg_comms_rsa_oaep 83
smg_comms_rsa_oaep 84
smg_comms_rsa_oaep 85
smg_comms_rsa_oaep 86
smg_comms_rsa_oaep 87 procedure Private_RSA( Encr : in Raw_Types.RSA_len;
smg_comms_rsa_oaep 88 Key : in RSA_skey;
smg_comms_rsa_oaep 89 Plain : out Raw_Types.Octets);
smg_comms_rsa_oaep 90
smg_comms_rsa_oaep 91
smg_comms_rsa_oaep 92
smg_comms_rsa_oaep 93 function Private_RSA_C( Plain : out Interfaces.C.char_array;
smg_comms_rsa_oaep 94 Plain_Len : in Integer;
smg_comms_rsa_oaep 95 Encr : in Interfaces.C.char_array;
smg_comms_rsa_oaep 96 Encr_Len : in Integer;
smg_comms_rsa_oaep 97 RSA_N : in Interfaces.C.char_array;
smg_comms_rsa_oaep 98 N_Len : in Integer;
smg_comms_rsa_oaep 99 RSA_E : in Interfaces.C.char_array;
smg_comms_rsa_oaep 100 E_Len : in Integer;
smg_comms_rsa_oaep 101 RSA_D : in Interfaces.C.char_array;
smg_comms_rsa_oaep 102 D_Len : in Integer;
smg_comms_rsa_oaep 103 RSA_P : in Interfaces.C.char_array;
smg_comms_rsa_oaep 104 P_Len : in Integer;
smg_comms_rsa_oaep 105 RSA_Q : in Interfaces.C.char_array;
smg_comms_rsa_oaep 106 Q_Len : in Integer;
smg_comms_rsa_oaep 107 RSA_U : in Interfaces.C.char_array;
smg_comms_rsa_oaep 108 U_Len : in Integer)
smg_comms_rsa_oaep 109 return Integer;
smg_comms_rsa_oaep 110 pragma Import( C, Private_RSA_C, "private_rsa_octets" );
smg_comms_rsa_oaep 111
smg_comms_rsa_oaep 112
smg_comms_rsa_oaep 113
smg_comms_rsa_oaep 114
smg_comms_rsa_oaep 115
smg_comms_rsa_oaep 116
smg_comms_rsa_oaep 117
smg_comms_rsa_oaep 118 procedure Octets_To_Char_Array( O : in Raw_Types.Octets;
smg_comms_rsa_oaep 119 A : out Interfaces.C.char_array);
smg_comms_rsa_oaep 120
smg_comms_rsa_oaep 121
smg_comms_rsa_oaep 122
smg_comms_rsa_oaep 123
smg_comms_rsa_oaep 124
smg_comms_rsa_oaep 125
smg_comms_rsa_oaep 126 procedure Char_Array_To_Octets( A : in Interfaces.C.char_array;
smg_comms_rsa_oaep 127 O : out Raw_Types.Octets);
smg_comms_rsa_oaep 128
smg_comms_rsa_oaep 129 end RSA_OAEP;