From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: creating unibyte strings Date: Mon, 25 Mar 2019 09:47:26 +0800 Message-ID: References: <83y3b4wdw9.fsf@gnu.org> <83tvhal45r.fsf@gnu.org> <83h8bwt1on.fsf@gnu.org> <83bm24t0hv.fsf@gnu.org> <83wokrs6en.fsf@gnu.org> <837ecrrqdm.fsf@gnu.org> <83sgvfq6yv.fsf@gnu.org> <83ftrcnqp0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b516b60584e1636e" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170546"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Stefan Monnier , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 25 03:00:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8EuK-000iCj-DB for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2019 03:00:12 +0100 Original-Received: from localhost ([127.0.0.1]:34936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8EuJ-0007sY-8s for ged-emacs-devel@m.gmane.org; Sun, 24 Mar 2019 22:00:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8Ete-0007fV-NT for emacs-devel@gnu.org; Sun, 24 Mar 2019 21:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8EiE-0007R9-DG for emacs-devel@gnu.org; Sun, 24 Mar 2019 21:47:43 -0400 Original-Received: from mail-it1-x129.google.com ([2607:f8b0:4864:20::129]:39195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8EiC-0007Pv-V4; Sun, 24 Mar 2019 21:47:41 -0400 Original-Received: by mail-it1-x129.google.com with SMTP id 139so11624258ita.4; Sun, 24 Mar 2019 18:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EKCzE3VtWuxhUC3YhChXYytLFqeyN0v3ohnjGsVoL9o=; b=l8hSMD4zdDK8dOy288iEFDL6lEOjNGmJizqq3ya7zmqbL3SplaOZBxU3v5kBDSG9pQ i5KsTL/8Ac/nFPOqS9SfuDPAJaJwxEBm2iQ/ua5OjPoTR809qTHhLRpRPHcJ+Vc4At2/ YovabnF9NkThkxi/cn5gV9XI1/qyfet0SdVAaNnUAk/rr546L3Mn/bFtW9DxZfA11bwb fqjxrQRjpDN2fPjEwABHGNxKID6a0noBLKDJU7BfaN0uTwzOxIz1KYtLiHRyXSbZjAsT wifECgQdpJ0RcLyoswkHI+M/UaNlW7NpAS5bZvTM7iA6C+1rQEpYxy4YcGl5rwIyRrOD jngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EKCzE3VtWuxhUC3YhChXYytLFqeyN0v3ohnjGsVoL9o=; b=dS+HyG/pSh3T4YJrRLbJrGSmiSdGTGJCnBlbL43w/FoUNZ/ux7EQF8g//JnppAhe+R 1zcBhWs+hWDb24bsvjqWosvDqagxP8yD3S0p0/RHFDjDjQJhppC981oOCsiV6qtdU/Un RaW9qplCOCVCMdyRykInvXZG9y8jY6SWdIz1uGnyJ0ndVBuhASTGnNYxsb3SVu9rDi+N 8tz2Hw8YzxnKc892qC1rFdM+1kuVGn1fDe00N71k5/xeW3f/DJq5+BM8QNsPEjB0dZr/ eZj/apZJ7Ht5d7wWDdxAAfYcqB6B0hwCD1pSj2B+COf7vM05fAfg9A9SAUiIVXzQzsEU fN6Q== X-Gm-Message-State: APjAAAWhratVojmLkpwaDDi+EzjaD9or20maheaEurU6stuLlzAoCanA zDUJ6Cssnfu8AZ1ctODdfT7XLmyhkG/Lp/nrIkyWcw== X-Google-Smtp-Source: APXvYqwFC9bXD3YQpp4kPN9laafU9rJ19z8KyXhj/gSNzzZp0lpoYzR4NHv+BfV9GDpjeT3vYiuiwJQywnJUhFkjSiA= X-Received: by 2002:a24:5089:: with SMTP id m131mr9404429itb.60.1553478458871; Sun, 24 Mar 2019 18:47:38 -0700 (PDT) In-Reply-To: <83ftrcnqp0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::129 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234693 Archived-At: --000000000000b516b60584e1636e Content-Type: text/plain; charset="UTF-8" On Mon, 25 Mar 2019, 01:10 Eli Zaretskii, wrote: > > Can you tell why the byte buffer needs to be exposed to Lisp in this > case? IOW, what would a Lisp program using this module want to do > with these byte buffers? > In this particular case, I'm exposing GSSAPI, which is a rather low level interface to Kerberos (well, it supports multiple systems, but it's mostly used for Kerberos). For example, one function is called gss-unwrap, and it takes an encrypted byte array and decrypts it, returning a new byte array with the decrypted content. What the impact is depends on the Elisp code that uses GSS. In the case of IMAP for example, it's not too bad, since only the initial handshake is passed through these functions (IMAP encryption is handled by TLS, not Kerberos). However, there are other uses where every single package is passed through the wrap and unwrap functions. Regards, Elias Regards, Elias > --000000000000b516b60584e1636e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 25 Mar 2019, 01:10 Eli Zaretskii, <eliz@gnu.org> w= rote:

Can you tell why the byte buffer needs to be exposed to Lisp in this
case?=C2=A0 IOW, what would a Lisp program using this module want to do
with these byte buffers?

=
In this particular case, I'm exposing GSSAPI, w= hich is a rather low level interface to Kerberos (well, it supports multipl= e systems, but it's mostly used for Kerberos).
<= br>
For example, one function is called gss-unwrap, = and it takes an encrypted byte array and decrypts it, returning a new byte = array with the decrypted content.=C2=A0

What the impact is depends on the Elisp code that uses GSS.= In the case of IMAP for example, it's not too bad, since only the init= ial handshake is passed through these functions (IMAP encryption is handled= by TLS, not Kerberos). However, there are other uses where every single pa= ckage is passed through the wrap and unwrap functions.=C2=A0

Regards,=C2=A0
Elias=C2=A0

Regards,=C2= =A0
Elias=C2=A0
--000000000000b516b60584e1636e--