Add return statement to encryption library

Add return statement to encryption library