Commit 38e71615 authored by garciay's avatar garciay
Browse files

STF545: Start ECIES implementation

parent 07f1a5c8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ module LibItsSecurity_Functions {
                                                      in Oct32 p_peerPublicKeyY,
                                                      out Oct32 p_publicEncKeyX, 
                                                      out Oct32 p_publicEncKeyY,
                                                      out Oct16 p_hmac,
                                                      out Oct16 p_encrypted_sym_key,
                                                      out Oct16 p_authentication_vector,
                                                      out Oct12 p_nonce
        ) return octetstring {
@@ -161,7 +161,7 @@ module LibItsSecurity_Functions {
                p_peerPublicKeyY,
                p_publicEncKeyX,
                p_publicEncKeyY,
                p_hmac,
                p_encrypted_sym_key,
                p_authentication_vector,
                p_nonce
            );
@@ -1783,7 +1783,7 @@ module LibItsSecurity_Functions {
             * @param   p_publicKeyY                     The public key (Y coordonate)
             * @return  The encrypted value
             */
            external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_hmac, out Oct16 p_authentication_vector, out Oct12 p_nonce) return octetstring;
            external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_encrypted_sym_key, out Oct16 p_authentication_vector, out Oct12 p_nonce) return octetstring;
            
            /**
             * @desc    Produces a Elliptic Curve Digital Encrytion Algorithm (ECIES) decryption