Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
0237-crypto-replace-byte_size-1-by-bit_size-1.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0237-crypto-replace-byte_size-1-by-bit_size-1.patch of Package erlang
From 89a14c88f5da12e31d725f06614c3c530ab88e8b Mon Sep 17 00:00:00 2001 From: Kiko <kikofernandezreyes@gmail.com> Date: Thu, 2 Feb 2023 09:17:43 +0100 Subject: [PATCH 2/2] crypto: replace byte_size/1 by bit_size/1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com> --- lib/crypto/src/crypto.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index 32cbf89738..a61ccc87bc 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -2276,9 +2276,9 @@ srp_pad_length(Width, Length) -> (Width - Length rem Width) rem Width. srp_pad_to(Width, Binary) -> - case srp_pad_length(Width, byte_size(Binary)) of + case srp_pad_length(Width, bit_size(Binary)) of 0 -> Binary; - N -> << 0:(N*8), Binary/binary>> + N -> << 0:N, Binary/binary>> end. srp_host_secret_nif(_Verifier, _B, _U, _A, _Prime) -> ?nif_stub. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor