[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 269044a4a2 082/103: Replace a single use of cl-case
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 269044a4a2 082/103: Replace a single use of cl-case with cond |
Date: |
Sat, 10 Feb 2024 13:00:11 -0500 (EST) |
branch: elpa/base32
commit 269044a4a210906e2ebbf789c029441fcc5cc70e
Author: Vivek Das Mohapatra <vivek@collabora.com>
Commit: Vivek Das Mohapatra <vivek@collabora.com>
Replace a single use of cl-case with cond
---
totp-auth-hmac.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/totp-auth-hmac.el b/totp-auth-hmac.el
index c398450e70..24dd7a2b34 100644
--- a/totp-auth-hmac.el
+++ b/totp-auth-hmac.el
@@ -10,9 +10,9 @@
(defun totp-auth-hmac-algo-block-size (algo)
"Return the expected block size of the given hash algorithm ALGO.
ALGO may be one of: \\='(md5 sha1 sha224 sha256 sha384 sha512)."
- (cl-case algo
- ((md5 sha1 sha224 sha256) 64)
- ((sha384 sha512) 128)))
+ (cond
+ ((memq algo '(md5 sha1 sha224 sha256)) 64)
+ ((memq algo '(sha384 sha512)) 128)))
(defun totp-auth-hmac-xpad (algo char)
"Create a pad of the block size for ALGO, consisting of CHAR.
- [nongnu] elpa/base32 7f0fe12bce 063/103: Fix tests after the Great Renaming, (continued)
- [nongnu] elpa/base32 7f0fe12bce 063/103: Fix tests after the Great Renaming, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 4708406887 067/103: Add comm to package's keywords, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 6843417e38 068/103: Rename interactive entry point from totp to totp-auth, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 c31034feef 069/103: Fix the totp-auth-hmac.el footer comment, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5e5f311775 077/103: Fix a checkdoc warning in base32-lsh, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 60dbfaf621 079/103: Use the warning-suppressing lsh wrapper from base32.el, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 49cb6d5468 078/103: Implement the base32hex encoding from RFC4648, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 a41fe7d0f7 072/103: Trivia: fix markup in test file docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 ed4feed432 080/103: Fix a checkdoc warning., ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 c04d223e11 074/103: Fix a docstring xref, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 269044a4a2 082/103: Replace a single use of cl-case with cond,
ELPA Syncer <=
- [nongnu] elpa/base32 95af9632f3 070/103: Wrap lsh in base32.el to suppress misleading lsh vs ash warning, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 11199b1d22 085/103: Our default base32 dictionary is uppercase only, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 49f2e5e7ad 093/103: Add an autoload for the OTP export function, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5fa6529ace 103/103: Fix another stray docstring reference, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 b048113b66 100/103: Allow user to create secrets interactively, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 19b6939cca 098/103: Prefer the "TOTP" secrets collection over "login" (if it exists), ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 ce7fe1b815 071/103: Tests now indicate where they are loading totp-auth et al from, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 60c0ea49cf 073/103: Suppress more byte compile warnings, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 e28d088223 081/103: Missed a couple of references to totp-auth-lsh, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 ac5b439624 075/103: Document an otpauth-migration URL quirk in a comment, ELPA Syncer, 2024/02/10