Objet : Discussion list for Belenios
Archives de la liste
- From: Julien Moutinho <julm+inria AT autogeree.net>
- To: belenios-discuss AT lists.gforge.inria.fr, Mieux Voter <contact AT mieuxvoter.fr>
- Subject: [Belenios-discuss] Which BASE64()?
- Date: Thu, 15 Aug 2019 17:04:27 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=julm+inria AT autogeree.net; spf=Pass smtp.mailfrom=julm+inria AT autogeree.net; spf=None smtp.helo=postmaster AT chomsky.autogeree.net
- Ironport-phdr: 9a23:UmhU8RIolecVCJbKudmcpTZWNBhigK39O0sv0rFitYgeL/jxwZ3uMQTl6Ol3ixeRBMOHsqgC0rGP+PC4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCejbb9oMRm7oxjdusYVjId+N6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqxbrhy/uhJxwIHbb52IO/V8cKzQZtwaSXZbU8tLSyBMGIGxYo0SBOQBJ+ZYqIz9qkMKoxujAQmsBf3gyjlVjXHx2q06zvghEQDA3AwgGNIFrXPZrNfoNKcWVOC5y6jIzTPZb/NXwzjw85LHcg09ofGLUrJ/b9DRxlcxGA/fiFWft5DlMiqT2+8QvWab6O9gWviui24hswxxoyagxtsiioXTgYIV0F/E+CNky4g2Pd21UEp2bcO+HJdOqi2XNpF6Tt4/T210oio3xLwLtJimdyYQ0psn3QTQa/mffoiI/B3jUOGRLC9ki3Jlf7K/gg2y8Uugy+HmTMa0zUpKri1KktbSrHACyQLc5tKBSvRj4ketwTeP1wbN5eFYOU05kbfXJ4Q/zrItl5cfq1nPEjLqlEnsgqKbd10o+u2y5OTmZrXmqIWcN4hxigzmMKQuh8i/AeE/PggPWWib4+W826f48ELjXbVKkvo2kqbHv5DAO8sUuLS1AwlL3YY/8xq/FSup0MwEnXkbK1JIYAmIgJbtO17QJvD4DPC/g0+1nDh2xvDGJaHuAojWLnjYi7rhebd961VAyAoo19xf6JxUCrYbIPL8RED9rt3YDhkjMwy12enrEtt91plNEV6IV6WUNK7UsFiTo+4uOOKRf5Q9vDfmN+Nj6PDpl3A0314bZ6igm5UNLDidH/l7Mw2nZmbhmJ9VGmAMogM1UMTviVCfQSBUe3uoGawmsGIVEoWjWKXeQoGghvSk2zqnH5tWYSgSCE2IFDTpcZ+FUt8FdT6VLcJ7nzFCU7W9HdxynSqyvRP3nuI0ZtHf/TcV4Mq6iIpFotbLnBR3zgRaStyH2jjQHWhpgmQHSiU70eZ5rFAvkg7eg5g9uORREJlo390MUgo+MsSHned6DNXpWROHd8qVT1mrWNirRzc8UoBpmo5cUwNGA9ynyyv78W+vCr4RmaaMAcVpoKvBw3/+KtxwxjDA2bVz1lQ=
- List-archive: <http://lists.gforge.inria.fr/pipermail/belenios-discuss/>
- List-id: Discussion list for Belenios <belenios-discuss.lists.gforge.inria.fr>
Hi belenios-discuss@,
In section "4.12 Ballots" of the 1.6 specification of Helios-C,
a BASE64() function is mentioned,
one would expect it to be the base64 encoding of RFC4648.
But currently Belenios uses Cryptokit.Base64.encode_compact
> Same as Cryptokit.Base64.encode_multiline, but the output is not
> split into lines, and no final padding is added.
> This is adequate for encoding short strings for transmission
> as part of URLs, for instance.
Source: /usr/share/doc/libcryptokit-ocaml-dev/cryptokit/Cryptokit.Base64.html
And AFAICS encode_compact is not exactly the same as RFC4648's base64,
which requires padding by default:
> 3.2. Padding of Encoded Data
>
> In some circumstances, the use of padding ("=") in base-encoded data
> is not required or used. In the general case, when assumptions about
> the size of transported data cannot be made, padding is required to
> yield correct decoded data.
>
> Implementations MUST include appropriate pad characters at the end of
> encoded data unless the specification referring to this document
> explicitly states otherwise.
Source: https://tools.ietf.org/rfc/rfc4648
Could Belenios use encode_compact_pad?
Regards,
Julien Moutinho
Attachment:
signature.asc
Description: PGP signature
- [Belenios-discuss] Which BASE64()?, Julien Moutinho, 15/08/2019
- Re: [Belenios-discuss] Which BASE64()?, Stéphane Glondu, 16/08/2019
Archives gérées par MHonArc 2.6.19+.