return NOT_SUPPORTED instead of INVLID_ARGUMENT
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index eadd428..699b8f3 100755
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1572,7 +1572,7 @@
     }
     else
     {
-        return( PSA_ERROR_INVALID_ARGUMENT );
+        return( PSA_ERROR_NOT_SUPPORTED );
     }
     memcpy( ciphertext + plaintext_length, tag, sizeof( tag ) );
     *ciphertext_length = plaintext_length + sizeof( tag );
@@ -1706,7 +1706,7 @@
     }
     else
     {
-        return( PSA_ERROR_INVALID_ARGUMENT );
+        return( PSA_ERROR_NOT_SUPPORTED );
     }
 
     if( ret != 0 )