hkdf: fix compiler warning
This commit is contained in:
		
							parent
							
								
									abeddd6c4b
								
							
						
					
					
						commit
						13c42a00f6
					
				@ -22,7 +22,7 @@ int hkdf_extract(int hash_idx, const unsigned char *salt, unsigned long  saltlen
 | 
				
			|||||||
      sense), we can use a single 0 byte as the HMAC key and still generate
 | 
					      sense), we can use a single 0 byte as the HMAC key and still generate
 | 
				
			||||||
      valid results for HKDF. */
 | 
					      valid results for HKDF. */
 | 
				
			||||||
   if (salt == NULL || saltlen == 0) {
 | 
					   if (salt == NULL || saltlen == 0) {
 | 
				
			||||||
      return hmac_memory(hash_idx, "",   1,       in, inlen, out, outlen); 
 | 
					      return hmac_memory(hash_idx, (const unsigned char *)"",   1,       in, inlen, out, outlen);
 | 
				
			||||||
   } else {
 | 
					   } else {
 | 
				
			||||||
      return hmac_memory(hash_idx, salt, saltlen, in, inlen, out, outlen);
 | 
					      return hmac_memory(hash_idx, salt, saltlen, in, inlen, out, outlen);
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user