diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-02-01 23:19:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-02-01 23:19:49 +0100 |
commit | f0a05b8694fc6c65a6643e62ae309e48399d7066 (patch) | |
tree | 6f287c5b34fcc42ae845ca5ca0649642b701af93 /src/include/taler_crypto_lib.h | |
parent | 37bfb3da42186329f9cf4fa35dabc3fa5b5a2258 (diff) | |
download | exchange-f0a05b8694fc6c65a6643e62ae309e48399d7066.tar.gz exchange-f0a05b8694fc6c65a6643e62ae309e48399d7066.tar.bz2 exchange-f0a05b8694fc6c65a6643e62ae309e48399d7066.zip |
add new TOTP-specfic JSON parsers
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index b872af08d..e3ae829fd 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -938,6 +938,22 @@ GNUNET_NETWORK_STRUCT_END /** + * Compute RFC 3548 base32 decoding of @a val and write + * result to @a udata. + * + * @param val value to decode + * @param val_size number of bytes in @a val + * @param key is the val in bits + * @param key_len is the size of @a key + */ +int +TALER_rfc3548_base32decode (const char *val, + size_t val_size, + void *key, + size_t key_len); + + +/** * @brief Builds POS confirmation token to verify payment. * * @param pos_key encoded key for verification payment |