#1013132 ITP: babassl -- BabaSSL is a base library for modern cryptography and communication security protocols.

#1013132#5
Date:
2022-06-17 16:09:30 UTC
From:
To:
* Package name    : libBabaSSL
  Version         : 8.3.1
  Upstream Author : Copyright (c) 2020-2022 Alibaba Digital Economy
* URL             : https://github.com/BabaSSL/BabaSSL
* License         : Apache 2.0
  Programming Lang: C
  Description     : BabaSSL is a base library for modern cryptography and communication security protocols.

- BabaSSL is a modern cryptographic and secure protocol library developed by the amazing people in Alibaba Digital Economy.
- BabaSSL provides the following major features:
-    Support RFC 8998, Chinese SM cipher suites in TLS 1.3 protocol
-    Support NTLS (formal GM dual-certificate protocol) handshake processing, according to GB/T 38636-2020 TLCP
-    QUIC API support
-    Support delegated credentials, according to draft-ietf-tls-subcerts-10

I plan to package and maintain BabaSSL myself.

Lance

#1013132#12
Date:
2022-06-18 04:57:03 UTC
From:
To:
Hi,

AFAIK this library is forked from OpenSSL with some extensive
modifications to support new crypto technologies, do you think we need
to involve the Security Team to review whether this package can be
supported during the next stable release cycle?

Also this project has a planned rename, and I'm a bit concerned this
could cause some maintenance burden if the rename is not well
coordinated at the time we accept it into Debian.

Regards,
Aron

#1013132#17
Date:
2022-06-20 20:25:33 UTC
From:
To:
What is the plan? Are there any current or new packages which will
depend on it?

#1013132#22
Date:
2022-06-22 14:21:43 UTC
From:
To:
Hello Aron,

Thank you for your email.

I think any reviews and oversight are a good thing. In making this ITP, I figured it would cause discussion as it's a "drop-in" replacement for OpenSSL and the libraries have the same name. I wasn't sure if this was directly permitted so the ITP is a good place to have the discussion.

The rename would help the name conflict issue, but you're also right about maintenance/path forward becoming more difficult. I welcome your input or guidance on how to proceed.

Lance Lin <lqi254@protonmail.com>
GPG Fingerprint:  8CAD 1250 8EE0 3A41 7223  03EC 7096 F91E D75D 028F

#1013132#27
Date:
2022-06-22 14:28:36 UTC
From:
To:
Hello Marco,

Yes, from my understanding it is a "drop in" replacement for OpenSSL. One of my packages (Workflow) uses it but can also use OpenSSL.


I think this package will be beneficial to the Workflow users and downstream OS's.

Lance Lin <lqi254@protonmail.com>
GPG Fingerprint:  8CAD 1250 8EE0 3A41 7223  03EC 7096 F91E D75D 028F

#1013132#32
Date:
2022-06-22 14:28:58 UTC
From:
To:
Have you already designed how will this be packaged to work as a drop-in
replacement for libssl3? I see quite a lot of problems with that,
both Policy ones and technical ones.

#1013132#37
Date:
2022-06-22 18:04:13 UTC
From:
To:
Am Wed, Jun 22, 2022 at 02:28:36PM +0000 schrieb Lance Lin:

Then make it use OpenSSL. If there's anything exciting in BabaSSL, they
should submit it for inclusion in OpenSSL. We should aim for fewer
crypto libraries in our stable releases, not more.

Or if the goal is rather to experiment and expose BabaSSL to the many archs
we have in Debian, then keep it in unstable only by filing a bug to block
it from testing.

Cheers,
        Moritz

#1013132#42
Date:
2022-06-22 19:28:03 UTC
From:
To:
Hi,

Paul

#1013132#47
Date:
2022-06-29 13:43:25 UTC
From:
To:
Hello everyone,

Thank you for your input and guidance. I've only been in Debian for a year so

I still have many things to learn. I assumed there would be issues with library
name conflicts and wanted to get the group's opinion.

It sounds like it would be suitable for the community if I continue the packaging

work but restrict the package to experimental?


I'd like to continue working on it but also want to avoid any conflicts with Debian
policy, security, etc.

Any objections?

Thank you,

Lance Lin <lqi254@protonmail.com>
GPG Fingerprint:  8CAD 1250 8EE0 3A41 7223  03EC 7096 F91E D75D 028F

#1013132#52
Date:
2022-06-29 13:55:54 UTC
From:
To:
As a drop-in OpenSSL replacement or with different file names and SONAMEs?
#1013132#57
Date:
2022-06-29 14:01:18 UTC
From:
To:
Can you explain exactly what benefits these users have from using
BabaSSL instad of OpenSSL? And why only these users and not the users of
other current dependencies of OpenSSL?

#1013132#62
Date:
2022-06-30 03:20:23 UTC
From:
To:
As far as I understand it, the main point of BabaSSL is to add support
for Chinese developed ciphers and algorithms.

Long time ago in my student years, I was working with a German fork of
OpenSSL. The point was to add German elliptic curves (BSI and Deutsche
Telekom). They were eventually merged into OpenSSL.

Regards

#1013132#67
Date:
2022-06-30 12:30:14 UTC
From:
To:
Is supporting Chinese cryptography standards a goal for Debian?
If it is then they should be available to all packages, but if it is not
then I am not sure that having random (?) packages depend on an OpenSSL
alternative would be a good strategy.
Do you expect that support for the Chinese algorithms will be merged in
OpenSSL any time soon? Is there such a plan by the BabaSSL developers?

#1013132#72
Date:
2022-06-30 14:16:47 UTC
From:
To:
    Stephan> As far as I understand it, the main point of BabaSSL is to
    Stephan> add support for Chinese developed ciphers and algorithms.

It looked like there were two main points.
The first was in fact these ciphers.
I don't think that's a good reason for including in Debian because it
looks like OpenSSL is interested in adding these ciphers long-term, and
that appears a much better strategy for us as a ddistribution.

However there are some other features from the ITP:

-    Support NTLS (formal GM dual-certificate protocol) handshake processing, according to GB/T 38636-2020
TLCP
-    QUIC API support
-    Support delegated credentials, according to draft-ietf-tls-subcerts-10

I don't recognize NTLS
and presumably since draft-ietf-tls-subcerts is a working group draft it
will be possible to get into OpenSSL eventually.

#1013132#77
Date:
2023-05-22 21:38:38 UTC
From:
To:
Have been trying to reach you