libera/#commonlisp - IRC Chatlog
Search
11:23:46
Guest50
hello, I could use some eyes on a simple ironclad encryption test. https://plaster.tymoon.eu/view/2910/raw?password
11:26:07
flip214
Guest50: my guess is that cipher is modified during encryption... you might need to copy it for decryption
11:27:33
flip214
Guest50: also, the ciphertext will be rounded up to the cipher block size, won't it? so 7 bytes ("testing") are too small?
11:30:13
Guest50
flip214 I haven't read anything about the ciphertext rounding up, but I'll look into it. If that's the case then plaintext needs to be 16 bytes min?
11:33:41
Guest50
from my understanding (which is marginal) there would be no padding since this is an aes cipher with a ctr mode
11:34:37
phoe
if the length of the ciphertext is not an exact multiple of the key size then there will be some padding nonetheless, AES operates on blocks of data of predefined size
11:34:38
flip214
yeah, but the counter gets incremented per cipher block and not per byte, so you'll need whole cipher blocks?
11:35:57
phoe
for aes-256 you need 32 bytes of data per block, so for 7 bytes you'll likely get a plaintext that looks like #x(01 23 45 67 89 ab cd 00 00 00 00 00 00 00 00 00)
11:44:41
Guest50
would I need to check the length of the encrypted data to see if its a multiple of the key size and remove any extra bytes?
11:46:44
phoe
or include a message length in your plaintext, and then truncate the decrypted output to size
13:15:47
chrnybo
My server process, written in Lispworks, holds too many file descriptors. Guess I'm sloppy when closing them. Can I map from the TID (thread id) listed by unix' lsof to something useful within the lisp to help me locate the error?
13:21:25
chrnybo
Feels like submitting a ticket to support while certain that the problem sits in my chair.
13:42:25
rotateq
beach: Even for all the incoming company support? ^^ Okay than one real advanced sorcerer employed for that may be cheaper.
13:44:01
chrnybo
I suppose a sufficiently advanced GPT-n may well keep me entertained with adequate support replies.
15:06:00
phoe
who would be up for helping me with that in exchange for my eternal thanks, a mention in the book, and an ebook copy once that thing is done?
15:06:58
phoe
yes, and what's broken, and what isn't working, and what's badly written, and what's missing
15:32:34
semz
split-sequence declares (ftype (function (&rest t) (values list unsigned-byte)) for its functions. Now type declarations for public interfaces are tricky because in general violating them is undefined behavior, but this one is safe, isn't it? Afaict there is no way to violate it.
15:59:08
utis
what does one do if one wants to call a macro with different arguments? it seems that (dolist (x '(foo bar)) (macro x))) doesn't work, since `x' is not evaluated.
16:08:28
_death
I think a manual macrolet form is generally bad style.. it often just makes it more difficult to read the code
16:09:36
_death
the thinking often goes "I don't want to write this again", but it should be "Will it be harder to read?"
16:14:15
semz
macrolet can work wonders sometimes but often an inline function does the job better in my experience
16:23:06
beach
utis: I haven't been following the discussion, but in that last link, the macro is used only once, so it doesn't seem to serve any purpose.
16:24:53
_death
instead of the double reverse, you can do (append propp (list char)) .. then compare this and simply having two defmethod forms.. if needed, you can define an auxiliary function to reduce
16:27:20
beach
_death: I wasn't commenting on what utis wants. Just the fact that in the code of the link, the macro appears in a single call.
16:33:44
dbotton
Does anyone know of a page some place with lots of Common Lisp quotes? I'd like to have a little tip box appear on my tools start up
16:56:17
Guest74
beach: I think you're the only person I've seen talking about a cl desktop environment. do you have your thoughts written down anywhere?
16:56:36
Guest74
or more specifically anything about multiple desktops/workspaces which is what I'm working on now.
17:07:19
Guest74
Well, I'm only working on a desktop environment, so just desktop stuff. That ones pretty much OS stuff.
17:29:37
jackdaniel
technically speaking clim specification includes abstractions from genera called "silica", that is a windowing substrate. that includes a frame manager that may be used as a wm