File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 3737 @param out The output file
3838 @param taglen The MAC tag length
3939 @param direction Encrypt or Decrypt mode (GCM_ENCRYPT or GCM_DECRYPT)
40+ @param res [out] Result of the operation, 1==valid, 0==invalid
4041 @return CRYPT_OK on success
4142 */
4243int gcm_file ( int cipher ,
@@ -56,6 +57,8 @@ int gcm_file( int cipher,
5657 LTC_ARGCHK (out != NULL );
5758 LTC_ARGCHK (res != NULL );
5859
60+ * res = 0 ;
61+
5962 f_in = fopen (in , "rb" );
6063 if (f_in == NULL ) {
6164 err = CRYPT_FILE_NOTFOUND ;
Original file line number Diff line number Diff line change 5555 @param out The output file
5656 @param taglen The MAC tag length
5757 @param direction Encrypt or Decrypt mode (GCM_ENCRYPT or GCM_DECRYPT)
58+ @param res [out] Result of the operation, 1==valid, 0==invalid
5859 @return CRYPT_OK on success
5960 */
6061int gcm_filehandle ( int cipher ,
You can’t perform that action at this time.
0 commit comments