Search
Thursday, 14th of February 2019, 11:05:04 UTC
11:07:54
White_Flame
ruby etc call out to C libs to perform the crypto. they're not implemented in the interpreted langauge themselves
11:08:11
White_Flame
and as lieven mentioned, timing attacks and such are the primary concern with non-C written algos
11:08:34
White_Flame
those are written to ensure the same amount of CPU work happens regardless of path taken
11:09:24
akater
Would you say it's a bad idea to assign meaning to objects dependening on whether certain slots are unbound?
11:09:30
akater
E.g., (obj :slot nil) means one thing while (obj :slot #<unbound>) means something else, and is also considered a proper object.
11:09:49
White_Flame
yes, use null or keywords or singleton flag objects for EQ comparison
11:10:27
White_Flame
s/null/nil/ ; too much hopping around languages
11:10:29
jimmyjoe
why power consumption is an attack, or monitoring timing?
11:10:38
jimmyjoe
it's on the users pc , which is not monitored
11:10:52
White_Flame
and can be remotely
11:11:01
White_Flame
javascript, injected code, etc
11:11:14
White_Flame
even averaging out network response timings
11:11:16
jimmyjoe
js runs in the browser
11:11:19
jackdaniel
jimmyjoe: please note, that you drift slowly towards offtopic
11:11:24
jackdaniel
and there is #lispcafe for that
20:38:42
drmeister
With Common Lisp CFFI - what is the idiomatic way to allocate an array of characters that I can pass a pointer to a function that will fill it with a zero terminated string. I know the maximum length of the zero-terminated string.
20:40:13
drmeister
https://www.irccloud.com/pastebin/XMzy80vY/
20:40:52
no-defun-allowed
i vaguely remember some kind of "with-foreign-string" thing in CFFI
20:41:12
lacedaemon
with-foreign-string will allocate a Lisp string, copy it into C uselessly just so it can be overwritten
20:41:31
no-defun-allowed
yeah, that wouldn't be it, sorry
20:42:02
lacedaemon
drmeister: use with-foreign-object
20:42:27
drmeister
So allocate an array of characters to put the data into?
20:43:00
drmeister
There is also foreign-string-alloc/foreign-string-free
20:43:10
lacedaemon
with-foreign-pointer-as-string will do that, see the example in https://common-lisp.net/project/cffi/manual/html_node/with_002dforeign_002dpointer_002das_002dstring.html
20:44:28
drmeister
Ok - yeah - that looks like the right tool for the job.
22:09:19
phoe
fe[nl]ix: I think it is time for me to ping you once again
22:40:12
pillton
Xach: Is there something outstanding with issue #1604 in quicklisp-projects?
Thursday, 14th of February 2019, 23:05:04 UTC