SHA256
1
0
forked from pool/libcotp

5 Commits

Author SHA256 Message Date
cb3a99e751 Accepting request 1324209 from devel:libraries:c_c++
- Update to 3.1.1:
  * Security
    + Memory sanitization: Sensitive cryptographic data is now
      securely cleared from memory
    + Buffer safety: Fixed potential overflow in base32 decoding
  * Improvements
    + Type safety: Migrated to unsigned integers for crypto operations
    + Performance: Optimized base32 length calculations and removed
      redundant calls
    + Code quality: Simplified token formatting and enhanced
      error handling

OBS-URL: https://build.opensuse.org/request/show/1324209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=15
2025-12-22 21:52:30 +00:00
abb13026c1 - Update to 3.1.1:
* Security
    + Memory sanitization: Sensitive cryptographic data is now
      securely cleared from memory
    + Buffer safety: Fixed potential overflow in base32 decoding
  * Improvements
    + Type safety: Migrated to unsigned integers for crypto operations
    + Performance: Optimized base32 length calculations and removed
      redundant calls
    + Code quality: Simplified token formatting and enhanced
      error handling

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=40
2025-12-22 16:43:22 +00:00
1d66b33237 Accepting request 1206644 from devel:libraries:c_c++
- Update to 3.1.0:
  * add support for mbedtls (#69, thanks to @Rockyshen123)
  * add support for big endian archs (#68)-

OBS-URL: https://build.opensuse.org/request/show/1206644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=14
2024-10-11 15:02:17 +00:00
af06271578 - Update to 3.1.0:
* add support for mbedtls (#69, thanks to @Rockyshen123)
  * add support for big endian archs (#68)-

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=38
2024-10-10 07:59:52 +00:00
449a609949 update spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=36
2024-04-08 11:47:32 +00:00
6 changed files with 48 additions and 27 deletions

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Mon Dec 22 16:42:11 UTC 2025 - Paolo Stivanin <info@paolostivanin.com>
- Update to 3.1.1:
* Security
+ Memory sanitization: Sensitive cryptographic data is now
securely cleared from memory
+ Buffer safety: Fixed potential overflow in base32 decoding
* Improvements
+ Type safety: Migrated to unsigned integers for crypto operations
+ Performance: Optimized base32 length calculations and removed
redundant calls
+ Code quality: Simplified token formatting and enhanced
error handling
-------------------------------------------------------------------
Thu Oct 10 07:59:18 UTC 2024 - Paolo Stivanin <info@paolostivanin.com>
- Update to 3.1.0:
* add support for mbedtls (#69, thanks to @Rockyshen123)
* add support for big endian archs (#68)-
-------------------------------------------------------------------
Mon Apr 8 05:55:19 UTC 2024 - Paolo Stivanin <info@paolostivanin.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libcotp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,15 @@
#
%if 0%{?suse_version} > 1600
%ifarch x86_64
%bcond_with criterion
%endif
%endif
%define libsoname %{name}3
Name: libcotp
Version: 3.0.0
Version: 3.1.1
Release: 0
Summary: C library for generating TOTP and HOTP
License: Apache-2.0
@@ -32,10 +36,8 @@ Source2: %{name}.keyring
BuildRequires: cmake
BuildRequires: gcc
%if %{with criterion}
%ifarch x86_64
BuildRequires: libcriterion-devel
%endif
%endif
BuildRequires: libgcrypt-devel >= 1.8.0
BuildRequires: pkgconfig
Obsoletes: libbaseencode <= 1.0.15
@@ -68,9 +70,7 @@ Pkg-config and header files for developing applications that use %{name}
%build
%cmake \
%if %{with criterion}
%ifarch x86_64
-DBUILD_TESTS=ON \
%endif
%endif
-DBUILD_SHARED_LIBS=ON \
-DHMAC_WRAPPER="gcrypt"
@@ -80,14 +80,12 @@ Pkg-config and header files for developing applications that use %{name}
%cmake_install
%if %{with criterion}
%ifarch x86_64
%check
cd build
./tests/test_base32encode
./tests/test_base32decode
./tests/test_cotp
%endif
%endif
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff0b9ce208c4c6542a0f1e739cf31978fbf28848c573837c671a6cb7b56b2c12
size 18900

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEBgxrfThp8UjExKzUPJvptk7B6mQFAmV5cCsACgkQPJvptk7B
6mTKYw//Qf7pq28s2eYjiG3yo96RDZy+areBqCjs9Hqv9iehgGc1juVeIwVsZ084
RDgQ5FCMFhyp3EfH7qS/z7n9CLvNo/F4gp/Xa0c50GpZvI7fVX5t99IRuqUzAfSK
vVt1uA5hmx4HxhfxGP96zqT2zmhenGJsMWacS8TSFhbyTSEbA9NwRFRvWOGHiMjr
xPmmtQUBT/Sa/WdQFTuUYhhw52K4aML9FRAjCR/2B7v3uPOofDA3SZjdPUSZtbxw
JU4OCUEmHi8HTsGX+GLtb1SUJAEZgpHcbloi6D7g4b4johHhQG2Zpq+SDMSTPJjH
KAqJKoH+7J1dzs6cDSwNRBcLXy4Uj9BwIhTSGD4SLCYzJR/e8zPf4I3/t0BXnPVX
rq7imt539k4gipObEt/q2Vkx8s5OBJfUE9pDpXCNR8Azy8gmtV7+AzjiknBjLxjz
ksa5GFgcQzQqhgflkZfZ90sz9aTzwGlhdyYiZtx27d0KvfYEKiuKuIiV9PMMQDnJ
rQeBbZ8BBNnmfi6C11rig1xhKUEizrDShMTw5FQfh+ueSw3DI7QfopHIdP+KhLNb
oh3ExLDugCmYIYxx+Cm3EMhVkMW0Q/jXd2vggJtYEwRlgUOOUy3MFV05QqkA/0GM
YyvulK68gy6Jf5OYvancgMm9DGdGvV1tUWon2CnEta9zqJPZsmw=
=vVjF
-----END PGP SIGNATURE-----

3
v3.1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b5778b8e38d9b0c33d6331ec980094b0035bf53e6064bbcc2ed988b0d4b3d13
size 20828

17
v3.1.1.tar.gz.asc Normal file
View File

@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJPBAABCAA5FiEEBgxrfThp8UjExKzUPJvptk7B6mQFAmjT4h4bFIAAAAAABAAO
bWFudTIsMi41KzEuMTEsMiwyAAoJEDyb6bZOwepkCqgP/A1BTRoePD/pkjs2/dYa
6hwfcubetydrS3nkAXhUz6IcexAKTPdNsOZRso7k+2gtBcZFmgkpIsR3sQbNmwaN
/NQh4uuj7EV7de38uj/b7DbMbuBv6teqsWTiOxtROhO1RWFVjrdECx/TK+l1uNp2
H6hqU5KornmnGGoLtArdjM24dsyDdSY5Pz6anlUYj+tn6kAK/EVgdwYVg5MKaDgj
jokg7rTlSMOj0HEbxs6kL34Avf7rtn2PHjs5aaGuPJ1c2J4CodhgBo7F8Ys2EmPL
etKOD931a18Y+HYYyITx7Qp36GSr3H6GI/l3QrHVX3CNqb78VPlNUVM2A6QnxA0g
FA3AuI+cAUEvNT1g2UISDyEKJSzXVj7xE8Qw9gW7GwG8WdtQq5rdsUUFwtL/wvRJ
jswVN6XuvUrrtqDDWavtR/4PtegCMX9gA8WKkUICihYvpY2nGs47i6h6kn39+LIX
RjgvuVbgRtnhhsvlmrFufzE55Uwtz+mTPS9kRNqx5yd8UGYBE+SpvihcIxwKkJQ+
4Be1nDmG6+YqddaB8yvK+uN0UfB6K8KOiD0UstAngpZt4feNHWBHjJnm9JlTFsvZ
SG8Ijy+Gm7hw231XRRozFGCwcXTAdmPjTGw14zgcQP74wYFDegrL/l1CR6yE69MH
GwqZVvTNbB/oEZgcAJyQoCvc
=2NBF
-----END PGP SIGNATURE-----