The X25519 implementation comes from libsodium. Explicit copyright notices have been added to each file as well as some portability changes (e.g. align.h).
		
			
				
	
	
		
			8 lines
		
	
	
		
			197 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			197 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef CRYPTO_ALIGN
 | 
						|
# if defined(__INTEL_COMPILER) || defined(_MSC_VER)
 | 
						|
#  define CRYPTO_ALIGN(x) __declspec(align(x))
 | 
						|
# else
 | 
						|
#  define CRYPTO_ALIGN(x) __attribute__ ((aligned(x)))
 | 
						|
# endif
 | 
						|
#endif
 |