XSF logo XSF Discussion - 2019-06-25


  1. Kacper has left
  2. lumi has left
  3. frainz has left
  4. frainz has joined
  5. Lance has joined
  6. APach has left
  7. lskdjf has left
  8. mimi89999 has joined
  9. neshtaxmpp has left
  10. neshtaxmpp has joined
  11. alacer has joined
  12. alacer has left
  13. alacer has joined
  14. pdurbin has joined
  15. alacer has left
  16. alacer has joined
  17. sezuan has joined
  18. alacer has left
  19. alacer has joined
  20. andy has joined
  21. waqas has left
  22. UsL has joined
  23. karoshi has joined
  24. adityaborikar has joined
  25. adityaborikar has left
  26. adityaborikar has joined
  27. Nekit has joined
  28. APach has joined
  29. Yagiza has joined
  30. Yagiza Daniel, are you here?
  31. COM8 has joined
  32. Daniel has left
  33. wurstsalat has left
  34. COM8 has left
  35. COM8 has joined
  36. COM8 has left
  37. APach has left
  38. APach has joined
  39. Daniel has joined
  40. alacer has left
  41. alacer has joined
  42. alacer has left
  43. alacer has joined
  44. Daniel Yagiza: yes
  45. Yagiza Daniel, I need to clarify something about OMEMO implementation. Can you help me?
  46. COM8 has joined
  47. COM8 has left
  48. sezuan has left
  49. andy has left
  50. andy has joined
  51. Daniel Yagiza: I don't know. But we can try
  52. Yagiza Daniel, ok, thanx!
  53. igoose has left
  54. igoose has joined
  55. lnj has joined
  56. Lance has left
  57. valo has left
  58. valo has joined
  59. COM8 has joined
  60. COM8 has left
  61. APach has left
  62. APach has joined
  63. Yagiza Section 4.3 says, that I must publish my IdentityKey. But IdentityKey is a public/private key pair.
  64. igoose has left
  65. Yagiza Do I need to publish both keys, or just public one?
  66. Daniel The public key
  67. APach has left
  68. sezuan has joined
  69. Yagiza Daniel, ok. That's the way I did it.
  70. Yagiza Daniel, the only question is why tag name is so ambiguous.
  71. Yagiza <signedPreKeyPublic/>, <preKeyPublic/>, but <identityKey/>?
  72. Yagiza The next question is about section 4.5.
  73. Yagiza It says: "In order to send a chat message, its <body> first has to be encrypted. The client MUST use fresh, randomly generated key/IV pairs with AES-128 in Galois/Counter Mode (GCM). The 16 bytes key and the GCM authentication tag (The tag SHOULD have at least 128 bit) are concatenated and for each intended recipient device, i.e. both own devices as well as devices associated with the contact, the result of this concatenation is encrypted using the corresponding long-standing SignalProtocol session."
  74. Yagiza What does that mean? How to encrypt, "using the corresponding long-standing SignalProtocol session"?
  75. goffi has joined
  76. Yagiza Do I need to use one of pre keys, published by target devices to encrypt key I just generated?
  77. Yagiza Or do I need to use it just for a first message and mark it with preKey="true" attribute?
  78. Yagiza And one I received a key/IV pair from the device, I need to use that key instead?
  79. APach has joined
  80. flow dwd, hmm?
  81. dwd flow, You referred to SCE as SEC in your mail to standards@. I'm disproportionately amused.
  82. flow Ahh, I see.
  83. Daniel Yagiza: you generate a random iv+key, encrypt the message with that key. And then you feed the key into all signal protocol session
  84. Daniel And if no session exists yet you create them
  85. Daniel With prekeys downloaded from pep
  86. Yagiza Daniel, well... What does it mean "to create a session"?
  87. wurstsalat has joined
  88. Daniel That is defined by the signal spec
  89. Yagiza Ok
  90. Ge0rG I actually like SEC much more than SCE, with you-know-what as a close second. Can't we change the title to "Stanza Encrypted Content" at least? 😁
  91. Yagiza The next question is: which functions from libsignal-protocol-c do I need to use to generate key/IV pair? Those from sender_key.h?
  92. moparisthebest has left
  93. moparisthebest has joined
  94. Daniel They are not provided by the library. It's just random bytes
  95. Steve Kille has left
  96. Yagiza Daniel, IC. And which function can I use to encrypt my message using that key/IV pair?
  97. Daniel Some aes gcm implementation
  98. Steve Kille has joined
  99. Yagiza Daniel, ok
  100. mimi89999 has left
  101. mimi89999 has joined
  102. Alex has left
  103. Alex has joined
  104. pdurbin has left
  105. lorddavidiii has joined
  106. adityaborikar has left
  107. adityaborikar has joined
  108. COM8 has joined
  109. COM8 has left
  110. UsL has left
  111. rtq3 has joined
  112. alacer has left
  113. alacer has joined
  114. COM8 has joined
  115. COM8 has left
  116. alacer has left
  117. mimi89999 has left
  118. pdurbin has joined
  119. mimi89999 has joined
  120. UsL has joined
  121. alameyo has left
  122. alameyo has joined
  123. debacle has joined
  124. pdurbin has left
  125. pdurbin has joined
  126. COM8 has joined
  127. COM8 has left
  128. UsL has left
  129. pdurbin has left
  130. lskdjf has joined
  131. alacer has joined
  132. pdurbin has joined
  133. j.r has left
  134. j.r has joined
  135. pdurbin has left
  136. alacer has left
  137. alacer has joined
  138. j.r has left
  139. alacer has left
  140. alacer has joined
  141. pdurbin has joined
  142. j.r has joined
  143. rtq3 has left
  144. adityaborikar has left
  145. adityaborikar has joined
  146. pdurbin has left
  147. adityaborikar has left
  148. pdurbin has joined
  149. Nekit has left
  150. alacer has left
  151. alacer has joined
  152. rtq3 has joined
  153. Nekit has joined
  154. alacer has left
  155. alacer has joined
  156. pdurbin has left
  157. j.r has left
  158. COM8 has joined
  159. COM8 has left
  160. adityaborikar has joined
  161. j.r has joined
  162. adityaborikar has left
  163. adityaborikar has joined
  164. j.r has left
  165. rtq3 has left
  166. j.r has joined
  167. rtq3 has joined
  168. igoose has joined
  169. adityaborikar has left
  170. adityaborikar has joined
  171. j.r has left
  172. j.r has joined
  173. adityaborikar has left
  174. adityaborikar has joined
  175. adityaborikar has left
  176. pdurbin has joined
  177. murabito has left
  178. murabito has joined
  179. adityaborikar has joined
  180. pdurbin has left
  181. murabito has left
  182. murabito has joined
  183. adityaborikar has left
  184. adityaborikar has joined
  185. j.r has left
  186. j.r has joined
  187. murabito has left
  188. murabito has joined
  189. adityaborikar has left
  190. lorddavidiii has left
  191. kokonoe has left
  192. kokonoe has joined
  193. adityaborikar has joined
  194. COM8 has joined
  195. moparisthebest has left
  196. COM8 has left
  197. moparisthebest has joined
  198. alacer has left
  199. alacer has joined
  200. COM8 has joined
  201. COM8 Yagiza: I also had quite a few problems understanding the OMEMO XEP. If you need a working example with documentation look at: https://github.com/UWPX/UWPX-Client/blob/master/XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoMessageMessage.cs
  202. COM8 has left
  203. adityaborikar has left
  204. j.r has left
  205. UsL has joined
  206. Daniel there is also https://wiki.xmpp.org/web/Tech_pages/OMEMO which can be interesting to people implementing omemo
  207. Daniel it doesn’t answer the specfic questions Yagiza had. but _other_ questions
  208. Yagiza COM8, Daniel, thanx!
  209. Daniel would be interesting to know what problems you COM8 ran into so we can mention it on the tech pages or elsewhere
  210. adityaborikar has joined
  211. UsL has left
  212. COM8 has joined
  213. karoshi has left
  214. karoshi has joined
  215. Yagiza has left
  216. alacer has left
  217. alacer has joined
  218. Yagiza has joined
  219. vanitasvitae Yagiza: for which client are you doing your implementation?
  220. Yagiza vanitasvitae, eyeCU.
  221. COM8 It were some general problems with understanding What the XEP wants from me and which parts comes from libsignal and how it is used in combination with OMEMO. Quiet abstract without a concrete example - at least for me. I had planned to create a PR with changes to the wording and adding some more examples but on the Sprint in Berlin I was talking to people which mentioned there would be some planed changes to the XEP so I will wait until they have been merged before I start updating it.
  222. rtq3 has left
  223. COM8 has left
  224. adityaborikar has left
  225. rtq3 has joined
  226. Yagiza COM8, ok
  227. UsL has joined
  228. j.r has joined
  229. karoshi has left
  230. karoshi has joined
  231. Andrew Nenakhov has left
  232. Andrew Nenakhov has joined
  233. UsL has left
  234. UsL has joined
  235. pdurbin has joined
  236. pdurbin has left
  237. adityaborikar has joined
  238. Lance has joined
  239. Lance has left
  240. edhelas has left
  241. nyco has left
  242. adityaborikar has left
  243. nyco has joined
  244. edhelas has joined
  245. adityaborikar has joined
  246. pep. COM8, I don't think these changes are coming soon tbh, most of them might be breaking from what I understand. So if yours are cosmetic, do PR
  247. adityaborikar has left
  248. adityaborikar has joined
  249. adityaborikar has left
  250. COM8 has joined
  251. adityaborikar has joined
  252. dwd has left
  253. dwd has joined
  254. COM8 pep: Ok thanks for the information - will start working on it.
  255. COM8 has left
  256. dwd has left
  257. dwd has joined
  258. adityaborikar has left
  259. Steve Kille has left
  260. Steve Kille has joined
  261. sezuan has left
  262. andrey.g has left
  263. andrey.g has joined
  264. dwd has left
  265. dwd has joined
  266. kokonoe has left
  267. kokonoe has joined
  268. adityaborikar has joined
  269. lumi has joined
  270. dwd has left
  271. adityaborikar has left
  272. eevvoor has joined
  273. COM8 has joined
  274. lovetox has joined
  275. adityaborikar has joined
  276. COM8 Is it only me or is somebody else getting duplicate messages in here since ~3 days
  277. Ge0rG COM8: must be you
  278. Ge0rG COM8: must be you
  279. UsL has left
  280. COM8 Ok 🤔
  281. COM8 has left
  282. adityaborikar has left
  283. jonas’ Ge0rG, you troll.
  284. pdurbin has joined
  285. Ge0rG SCNR
  286. sezuan has joined
  287. wojtek has joined
  288. sezuan has left
  289. sezuan has joined
  290. adityaborikar has joined
  291. pdurbin has left
  292. sezuan has left
  293. sezuan has joined
  294. sezuan has left
  295. sezuan has joined
  296. alacer has left
  297. alacer has joined
  298. sezuan has left
  299. sezuan has joined
  300. sezuan has left
  301. sezuan has joined
  302. adityaborikar has left
  303. sezuan has left
  304. wojtek has left
  305. sezuan has joined
  306. sezuan has left
  307. sezuan has joined
  308. sezuan has left
  309. sezuan has joined
  310. sezuan has left
  311. sezuan has joined
  312. sezuan has left
  313. sezuan has joined
  314. sezuan has left
  315. sezuan has joined
  316. Andrew Nenakhov has left
  317. sezuan has left
  318. sezuan has joined
  319. Andrew Nenakhov has joined
  320. UsL has joined
  321. sezuan has left
  322. sezuan has joined
  323. Andrew Nenakhov has left
  324. adityaborikar has joined
  325. goffi has left
  326. sezuan has left
  327. eevvoor has left
  328. Andrew Nenakhov has joined
  329. j.r has left
  330. j.r has joined
  331. matlag has joined
  332. valo has left
  333. lnj has left
  334. dwd has joined
  335. j.r has left
  336. lumi has left
  337. j.r has joined
  338. lovetox You have to understand the signal protocol and librarys that implement it first
  339. lovetox then you read the XEP and learn how you can wrap that for xmll
  340. lovetox then you read the XEP and learn how you can wrap that for xmpp
  341. lovetox RFCs for xmpp also dont describe how TLS works, you have to understand what TLS is, that there are librarys for it, how to use these librarys, and then you read the XMPP RFC, on how to use it in context of XMPP
  342. Andrew Nenakhov has left
  343. lovetox So yes if you have no idea what the signal protocol is and how to use the librarys and expect the XEP tells you all that, this will not work out
  344. Andrew Nenakhov has joined
  345. dwd has left
  346. dwd has joined
  347. Douglas Terabyte has left
  348. dwd has left
  349. frainz has left
  350. frainz has joined
  351. dwd has joined
  352. lumi has joined
  353. alacer has left
  354. UsL has left
  355. Lance has joined
  356. rion has left
  357. rion has joined
  358. pdurbin has joined
  359. Nekit has left
  360. pdurbin has left
  361. Yagiza Daniel, so, I use Signal Protocol session to encrypt key/IV pair instead of messagea. And messages themself are encrypted with that key/IV pair, which a generate randomly right?
  362. valo has joined
  363. Lance has left
  364. Daniel Yes
  365. Daniel The IV isn't encrypted. But yes
  366. Yagiza Daniel, so, then.. what is GCM authentication tag, whih I need to concatenated with a key?
  367. Daniel Yagiza: your gcm library will either give that to you or append that to the cipher text
  368. Yagiza Daniel, IC.
  369. sezuan has joined
  370. sezuan has left
  371. sezuan has joined
  372. dwd has left
  373. dwd has joined
  374. dwd has left
  375. mimi89999 has left
  376. mimi89999 has joined
  377. dwd has joined
  378. Wojciech Kapcia has joined
  379. Wojciech Kapcia has left
  380. matlag has left
  381. dwd has left
  382. dwd has joined
  383. matlag has joined
  384. Nekit has joined
  385. Yagiza has left
  386. debacle has left
  387. madhur.garg has joined
  388. madhur.garg has left
  389. sezuan has left
  390. Lance has joined
  391. j.r has left
  392. Douglas Terabyte has joined
  393. j.r has joined
  394. zach has left
  395. zach has joined
  396. rtq3 has left
  397. andy has left
  398. rtq3 has joined
  399. lovetox has left
  400. rtq3 has left
  401. rtq3 has joined
  402. eevvoor has joined
  403. Lance has left
  404. mimi89999 has left
  405. Nekit has left
  406. mimi89999 has joined
  407. eevvoor has left
  408. eevvoor has joined
  409. Lance has joined
  410. lovetox has joined
  411. pdurbin has joined
  412. eevvoor has left
  413. lovetox has left
  414. pdurbin has left
  415. waqas has joined
  416. rtq3 has left
  417. murabito has left
  418. murabito has joined
  419. wurstsalat has left
  420. rtq3 has joined
  421. rtq3 has left
  422. rtq3 has joined
  423. j.r has left
  424. rtq3 has left
  425. lnj has joined
  426. UsL has joined
  427. UsL has left
  428. UsL has joined
  429. Lance has left
  430. UsL has left
  431. UsL has joined