repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | null | null | null | null | 1,194 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/source/Include_i.h | null | null | null | null | null | null | C | 2026-05-04T19:15:56.083360 | /*******************************************
Main internal include file
*******************************************/
#ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_INCLUDE_I__
#define __KINESIS_VIDEO_WEBRTC_CLIENT_INCLUDE_I__
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#include <winsock2.h>
#include <ip... |
awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | null | null | null | null | 1,194 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/source/Crypto/Dtls.c | null | null | null | null | null | null | C | 2026-05-04T19:15:56.117061 | #define LOG_CLASS "DTLS"
#include "../Include_i.h"
STATUS dtlsSessionOnOutBoundData(PDtlsSession pDtlsSession, UINT64 customData, DtlsSessionOutboundPacketFunc callbackFn)
{
STATUS retStatus = STATUS_SUCCESS;
CHK(pDtlsSession != NULL && callbackFn != NULL, STATUS_NULL_ARG);
MUTEX_LOCK(pDtlsSession->sslLo... |
awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | null | null | null | null | 1,194 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/source/Crypto/Dtls.h | null | null | null | null | null | null | C | 2026-05-04T19:15:56.199991 | //
// Dtls
//
#ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_DTLS_DTLS__
#define __KINESIS_VIDEO_WEBRTC_CLIENT_DTLS_DTLS__
#pragma once
#include "Tls.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_SRTP_MASTER_KEY_LEN 16
#define MAX_SRTP_SALT_KEY_LEN 14
#define MAX_DTLS_RANDOM_BYTES_LEN 32
#define MAX_DTLS_MAST... |
awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c | null | null | null | null | 1,194 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/source/Ice/NatBehaviorDiscovery.h | null | null | null | null | null | null | C | 2026-05-04T19:15:59.789104 | #ifndef __KINESIS_VIDEO_WEBRTC_ICE_NAT_BEHAVIOR_DISCOVERY__
#define __KINESIS_VIDEO_WEBRTC_ICE_NAT_BEHAVIOR_DISCOVERY__
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#define DEFAULT_NAT_TEST_MAX_BINDING_REQUEST_COUNT 5
#define DEFAULT_TEST_NAT_TEST_RESPONSE_WAIT_TIME 500 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND
... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_hash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.294301 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_box.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.295546 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_generichash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.314872 | /* Copyright 2013-2017 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_aead.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.324077 | /* Copyright 2017 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_pwhash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.464448 | /* Copyright 2014 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_kx.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.915088 | /* Copyright 2018 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_secretstream.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.927727 | /* Copyright 2013-2018 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_secretbox.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.947335 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_shorthash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.949592 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_sign.h | null | null | null | null | null | null | C | 2026-05-04T19:16:02.986263 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | docs/vectors/c-source/secretstream_test_vector.c | null | null | null | null | null | null | C | 2026-05-04T19:16:04.130758 | /*
* Copyright 2018 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/minimal/crypto_core.h | null | null | null | null | null | null | C | 2026-05-04T19:16:04.400762 | /* Copyright 2020 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/utils.h | null | null | null | null | null | null | C | 2026-05-04T19:16:04.775482 | /* Copyright 2013-2017 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/builds/msvc/version.h | null | null | null | null | null | null | C | 2026-05-04T19:16:05.754337 |
#ifndef sodium_version_H
#define sodium_version_H
#include "export.h"
#define SODIUM_VERSION_STRING "1.0.20"
#define SODIUM_LIBRARY_VERSION_MAJOR 26
#define SODIUM_LIBRARY_VERSION_MINOR 2
#ifdef __cplusplus
extern "C" {
#endif
SODIUM_EXPORT
const char *sodium_version_string(void);
SODIUM_EXPORT
int sodi... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aead_aegis128l.c | null | null | null | null | null | null | C | 2026-05-04T19:16:06.519132 |
#include <errno.h>
#include <stdlib.h>
#include "core.h"
#include "crypto_aead_aegis128l.h"
#include "private/common.h"
#include "private/implementations.h"
#include "randombytes.h"
#include "runtime.h"
#include "aegis128l_soft.h"
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
#include "aegis128l_armc... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_aesni.c | null | null | null | null | null | null | C | 2026-05-04T19:16:07.242699 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis128l.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#if defined(HAVE_AVXINTRIN_H) && defin... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | docs/vectors/c-source/sealbox_test_vectors.c | null | null | null | null | null | null | C | 2026-05-04T19:16:07.523719 | /*
* Copyright 2017 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_core.h | null | null | null | null | null | null | C | 2026-05-04T19:16:07.532490 | /* Copyright 2017 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/crypto_scalarmult.h | null | null | null | null | null | null | C | 2026-05-04T19:16:07.539511 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_aesni.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.061238 | #ifndef aegis128l_aesni_H
#define aegis128l_aesni_H
#include "implementations.h"
extern struct aegis128l_implementation aegis128l_aesni_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c | null | null | null | null | null | null | C | 2026-05-04T19:16:08.356681 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis128l.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#if defined(HAVE_ARMCRYPTO) && defined... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.410950 | #ifndef aegis128l_armcrypto_H
#define aegis128l_armcrypto_H
#include "implementations.h"
extern struct aegis128l_implementation aegis128l_armcrypto_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_common.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.495784 | #define RATE 32
static void
aegis128l_init(const uint8_t *key, const uint8_t *nonce, aes_block_t *const state)
{
static CRYPTO_ALIGN(AES_BLOCK_LENGTH)
const uint8_t c0_[AES_BLOCK_LENGTH] = { 0x00, 0x01, 0x01, 0x02, 0x03, 0x05, 0x08, 0x0d,
0x15, 0x22, 0x37, 0x... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/minimal/crypto_scalarmult.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.561250 | /* Copyright 2020 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_soft.c | null | null | null | null | null | null | C | 2026-05-04T19:16:08.655739 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis128l.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#include "crypto_aead_aegis128l.h"
#in... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/sodium_core.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.709622 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/minimal/crypto_pwhash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:08.719256 | /* Copyright 2020 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/minimal/crypto_shorthash.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.081072 | /* Copyright 2020 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/aegis128l_soft.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.121990 | #ifndef aegis128l_soft_H
#define aegis128l_soft_H
#include "implementations.h"
extern struct aegis128l_implementation aegis128l_soft_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aead_aegis256.c | null | null | null | null | null | null | C | 2026-05-04T19:16:09.232304 |
#include <errno.h>
#include <stdlib.h>
#include "core.h"
#include "crypto_aead_aegis256.h"
#include "private/common.h"
#include "private/implementations.h"
#include "randombytes.h"
#include "runtime.h"
#include "aegis256_soft.h"
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
#include "aegis256_armcryp... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c | null | null | null | null | null | null | C | 2026-05-04T19:16:09.340781 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis256.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#if defined(HAVE_ARMCRYPTO) && defined(... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.538430 | #ifndef aegis256_armcrypto_H
#define aegis256_armcrypto_H
#include "implementations.h"
extern struct aegis256_implementation aegis256_armcrypto_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_aesni.c | null | null | null | null | null | null | C | 2026-05-04T19:16:09.613794 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis256.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#if defined(HAVE_AVXINTRIN_H) && define... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_common.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.687816 | #define RATE 16
static void
aegis256_init(const uint8_t *key, const uint8_t *nonce, aes_block_t *const state)
{
static CRYPTO_ALIGN(AES_BLOCK_LENGTH)
const uint8_t c0_[AES_BLOCK_LENGTH] = { 0x00, 0x01, 0x01, 0x02, 0x03, 0x05, 0x08, 0x0d,
0x15, 0x22, 0x37, 0x5... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_aesni.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.915340 | #ifndef aegis256_aesni_H
#define aegis256_aesni_H
#include "implementations.h"
extern struct aegis256_implementation aegis256_aesni_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/implementations.h | null | null | null | null | null | null | C | 2026-05-04T19:16:09.945749 | #ifndef aegis256_implementations_H
#define aegis256_implementations_H
#include <stddef.h>
#include <stdint.h>
#include "crypto_aead_aegis256.h"
typedef struct aegis256_implementation {
int (*encrypt_detached)(uint8_t *c, uint8_t *mac, size_t maclen, const uint8_t *m, size_t mlen,
cons... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_soft.c | null | null | null | null | null | null | C | 2026-05-04T19:16:09.946287 | #include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aegis256.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h"
#include "utils.h"
#include "private/common.h"
#include "crypto_aead_aegis256.h"
#incl... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis256/aegis256_soft.h | null | null | null | null | null | null | C | 2026-05-04T19:16:10.012885 | #ifndef aegis256_soft_H
#define aegis256_soft_H
#include "implementations.h"
extern struct aegis256_implementation aegis256_soft_implementation;
#endif |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.328687 | #include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aes256gcm.h"
#include "crypto_verify_16.h"
#include "export.h"
#include "private/common.h"
#include "randombytes.h"
#include "runtime.h"
#include "utils.h"
#if defined(HAVE_ARMCRY... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.349692 | #include <errno.h>
#include <stdlib.h>
#include "crypto_aead_aes256gcm.h"
#include "private/common.h"
#include "randombytes.h"
size_t
crypto_aead_aes256gcm_keybytes(void)
{
return crypto_aead_aes256gcm_KEYBYTES;
}
size_t
crypto_aead_aes256gcm_nsecbytes(void)
{
return crypto_aead_aes256gcm_NSECBYTES;
}
size_... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/builds/msvc/resource.h | null | null | null | null | null | null | C | 2026-05-04T19:16:10.447878 | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Resource.rc
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE ... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.531779 | #include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_aes256gcm.h"
#include "crypto_verify_16.h"
#include "export.h"
#include "private/common.h"
#include "private/sse2_64_32.h"
#include "randombytes.h"
#include "runtime.h"
#include "u... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/chacha20poly1305/aead_chacha20poly1305.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.607026 |
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_chacha20poly1305.h"
#include "crypto_onetimeauth_poly1305.h"
#include "crypto_stream_chacha20.h"
#include "crypto_verify_16.h"
#include "randombytes.h"
#include "utils.h"
#include "private/chacha20... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/aead_xchacha20poly1305.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.631323 |
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include "core.h"
#include "crypto_aead_chacha20poly1305.h"
#include "crypto_aead_xchacha20poly1305.h"
#include "crypto_core_hchacha20.h"
#include "crypto_onetimeauth_poly1305.h"
#include "crypto_stream_chacha20.h"
#include "crypto_verify... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_auth/crypto_auth.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.779768 |
#include "crypto_auth.h"
#include "randombytes.h"
size_t
crypto_auth_bytes(void)
{
return crypto_auth_BYTES;
}
size_t
crypto_auth_keybytes(void)
{
return crypto_auth_KEYBYTES;
}
const char *
crypto_auth_primitive(void)
{
return crypto_auth_PRIMITIVE;
}
int
crypto_auth(unsigned char *out, const unsigned... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512.c | null | null | null | null | null | null | C | 2026-05-04T19:16:10.976837 |
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "crypto_auth_hmacsha512.h"
#include "crypto_hash_sha512.h"
#include "crypto_verify_64.h"
#include "randombytes.h"
#include "utils.h"
size_t
crypto_auth_hmacsha512_bytes(void)
{
return crypto_auth_hmacsha512_BYTES;
}
size_t
crypto_auth_hmacsha5... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c | null | null | null | null | null | null | C | 2026-05-04T19:16:11.258835 |
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "crypto_auth_hmacsha512.h"
#include "crypto_auth_hmacsha512256.h"
#include "crypto_hash_sha512.h"
#include "crypto_verify_32.h"
#include "randombytes.h"
#include "utils.h"
size_t
crypto_auth_hmacsha512256_bytes(void)
{
return crypto_auth_hmacsh... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.c | null | null | null | null | null | null | C | 2026-05-04T19:16:11.317221 |
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "crypto_auth_hmacsha256.h"
#include "crypto_hash_sha256.h"
#include "crypto_verify_32.h"
#include "randombytes.h"
#include "utils.h"
size_t
crypto_auth_hmacsha256_bytes(void)
{
return crypto_auth_hmacsha256_BYTES;
}
size_t
crypto_auth_hmacsha2... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/bindings/randombytes.h | null | null | null | null | null | null | C | 2026-05-04T19:16:13.851746 | /* Copyright 2013 Donald Stufft and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
pyca/pynacl | https://github.com/pyca/pynacl | null | null | null | null | 1,193 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/libsodium/src/libsodium/crypto_aead/aegis128l/implementations.h | null | null | null | null | null | null | C | 2026-05-04T19:16:14.496949 | #ifndef aegis128l_implementations_H
#define aegis128l_implementations_H
#include <stddef.h>
#include <stdint.h>
#include "crypto_aead_aegis128l.h"
typedef struct aegis128l_implementation {
int (*encrypt_detached)(uint8_t *c, uint8_t *mac, size_t maclen, const uint8_t *m, size_t mlen,
... |
strazzere/android-unpacker | https://github.com/strazzere/android-unpacker | null | null | null | null | 1,177 | null | null | apache-2.0 | null | null | null | null | null | null | null | hide-emu/hide.c | null | null | null | null | null | null | C | 2026-05-04T19:16:16.773069 | /*
* stupid hide qemu ld_preload hack for APKProtect
*
* Tim "diff" Strazzere <strazz@gmail.com>
*
* Likely took a some of code from @pof :)
* https://github.com/poliva/ldpreloadhook
*/
#include <stdlib.h>
#include <dlfcn.h>
#include <android/log.h>
#define LOG_TAG "StupidHideQemu"
#define LOGD(...) __andro... |
strazzere/android-unpacker | https://github.com/strazzere/android-unpacker | null | null | null | null | 1,177 | null | null | apache-2.0 | null | null | null | null | null | null | null | native-unpacker/kisskiss.c | null | null | null | null | null | null | C | 2026-05-04T19:16:16.791273 | /*
* Unpacker for various Android packers/protectors
*
* Tim 'diff' Strazzere <strazz@gmail.com>
*"
* For education use only - find them malwares
*
*
* Tested against malware packed with the following;
* - Bangcle (All versions)
* - APKProtect (native versions w/ crypto)
* - LIAPP (prereleased de... |
strazzere/android-unpacker | https://github.com/strazzere/android-unpacker | null | null | null | null | 1,177 | null | null | apache-2.0 | null | null | null | null | null | null | null | native-unpacker/definitions.h | null | null | null | null | null | null | C | 2026-05-04T19:16:16.812419 | /*
* Header file for the definitions of packers/protectors
*
* Tim "diff" Strazzere <strazz@gmail.com>
*/
typedef struct {
char* name;
char* description;
char* filter;
char* marker;
} packer;
static packer packers[] = {
// APKProtect
{
"APKProtect v1->5",
"APKProtect generialized detection",
... |
strazzere/android-unpacker | https://github.com/strazzere/android-unpacker | null | null | null | null | 1,177 | null | null | apache-2.0 | null | null | null | null | null | null | null | native-unpacker/kisskiss.h | null | null | null | null | null | null | C | 2026-05-04T19:16:27.438848 | /*
* kisskiss.h
*
* Tim "diff" Strazzere <strazz@gmail.com>
*/
#include "definitions.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/ptrace.h>
#include <dirent.h>
#include <fcntl.h> // open / O_RDONLY
#include <unistd.h> // close
#include <errno.h> // perror
#include <string.h> // strlen
#include <math.h>... |
citronneur/pamspy | https://github.com/citronneur/pamspy | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pamspy_symbol.c | null | null | null | null | null | null | C | 2026-05-04T19:16:29.768763 | #include <stdlib.h>
#include <stdio.h>
#include <gelf.h>
#include <string.h>
#include "pamspy_symbol.h"
/******************************************************************************/
/*!
* \brief loop on symbol in the file by parsing the ELF
* \param file elf file opened
* \param symname name of the symb... |
citronneur/pamspy | https://github.com/citronneur/pamspy | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pamspy.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:16:29.771830 | // SPDX-License-Identifier: BSD-3-Clause
#include "vmlinux.h"
#include "pamspy_event.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
char LICENSE[] SEC("license") = "Dual BSD/GPL";
/******************************************************************************/
/*!
* \bri... |
citronneur/pamspy | https://github.com/citronneur/pamspy | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pamspy.c | null | null | null | null | null | null | C | 2026-05-04T19:16:29.793083 | #include <argp.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <bpf/libbpf.h>
#include <stdbool.h>
#include <sys/resource.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "pamspy.skel.h"
#include "pamspy_symbol.h"
#include "pamspy... |
citronneur/pamspy | https://github.com/citronneur/pamspy | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pamspy_event.h | null | null | null | null | null | null | C | 2026-05-04T19:16:29.891182 | #ifndef __EVENT_H__
#define __EVENT_H__
/*!
* \brief information tracked by pamspy
*/
typedef struct _event_t {
int pid; // pid of the process
char comm[16]; // name of the process
char username[80];
char password[80]; // secrets
} event_t;
#endif
|
citronneur/pamspy | https://github.com/citronneur/pamspy | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pamspy_symbol.h | null | null | null | null | null | null | C | 2026-05-04T19:16:29.891642 | #ifndef __PAMSPY_SYMBOL__
#define __PAMSPY_SYMBOL__
/*!
* \brief loop on symbol in the file by parsing the ELF
* \param path path to the elf module
* \param symname name of the symbol
* \return -1 if not found or offset of the symbol
*/
int pamspy_find_symbol_address(const char *path, const char* symnam... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/priority_queue.c | null | null | null | null | null | null | C | 2026-05-04T19:16:36.770496 | #include "priority_queue.h"
#include "heap.h"
PriorityQueue *__newPriorityQueueSize(size_t elemSize, size_t cap, int (*cmp)(void *, void *)) {
PriorityQueue *pq = malloc(sizeof(PriorityQueue));
pq->v = __newVectorSize(elemSize, cap);
pq->cmp = cmp;
return pq;
}
inline size_t Priority_Queue_Size(Priori... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/alloc.c | null | null | null | null | null | null | C | 2026-05-04T19:16:36.784623 | #include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "alloc.h"
/* A patched implementation of strdup that will use our patched calloc */
char *rmalloc_strndup(const char *s, size_t n) {
char *ret = calloc(n + 1, sizeof(char));
if (ret)
memcpy(ret, s, n);
return ret;
}
/*
* Re-patching RedisM... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/periodic.h | null | null | null | null | null | null | C | 2026-05-04T19:16:36.790110 | #ifndef RMUTIL_PERIODIC_H_
#define RMUTIL_PERIODIC_H_
#include <time.h>
#include <redismodule.h>
/** periodic.h - Utility periodic timer running a task repeatedly every given time interval */
/* RMUtilTimer - opaque context for the timer */
struct RMUtilTimer;
/* RMutilTimerFunc - callback type for timer tasks. The ... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/logging.h | null | null | null | null | null | null | C | 2026-05-04T19:16:36.792127 | #ifndef __RMUTIL_LOGGING_H__
#define __RMUTIL_LOGGING_H__
/* Convenience macros for redis logging */
#define RM_LOG_DEBUG(ctx, ...) RedisModule_Log(ctx, "debug", __VA_ARGS__)
#define RM_LOG_VERBOSE(ctx, ...) RedisModule_Log(ctx, "verbose", __VA_ARGS__)
#define RM_LOG_NOTICE(ctx, ...) RedisModule_Log(ctx, "notice", __... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/periodic.c | null | null | null | null | null | null | C | 2026-05-04T19:16:36.807551 | #define REDISMODULE_EXPERIMENTAL_API
#include "periodic.h"
#include <pthread.h>
#include <stdlib.h>
#include <errno.h>
typedef struct RMUtilTimer {
RMutilTimerFunc cb;
RMUtilTimerTerminationFunc onTerm;
void *privdata;
struct timespec interval;
pthread_t thread;
pthread_mutex_t lock;
pthread_cond_t cond;... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/heap.h | null | null | null | null | null | null | C | 2026-05-04T19:16:36.818073 | #ifndef __HEAP_H__
#define __HEAP_H__
#include "vector.h"
/* Make heap from range
* Rearranges the elements in the range [first,last) in such a way that they form a heap.
* A heap is a way to organize the elements of a range that allows for fast retrieval of the element with the highest
* value at any moment (wit... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/heap.c | null | null | null | null | null | null | C | 2026-05-04T19:16:36.923256 | #include "heap.h"
/* Byte-wise swap two items of size SIZE. */
#define SWAP(a, b, size) \
do \
{ \
register size_t __size = (size); \
register char *__a = (a), *__b = (b); \
do ... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/redismodule.h | null | null | null | null | null | null | C | 2026-05-04T19:16:37.049046 | #ifndef REDISMODULE_H
#define REDISMODULE_H
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
/* ---------------- Defines common between core and modules --------------- */
/* Error status return values. */
#define REDISMODULE_OK 0
#define REDISMODULE_ERR 1
/* API versions. */
#define REDISMODULE_APIVER... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/exp/exp.c | null | null | null | null | null | null | C | 2026-05-04T19:16:37.053057 | #include "redismodule.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int DoCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
if (argc == 2) {
size_t cmd_len;
siz... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/priority_queue.h | null | null | null | null | null | null | C | 2026-05-04T19:16:37.390364 | #ifndef __PRIORITY_QUEUE_H__
#define __PRIORITY_QUEUE_H__
#include "vector.h"
/* Priority queue
* Priority queues are designed such that its first element is always the greatest of the elements it contains.
* This context is similar to a heap, where elements can be inserted at any moment, and only the max heap elem... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/strings.c | null | null | null | null | null | null | C | 2026-05-04T19:16:37.754517 | #include <string.h>
#include <sys/param.h>
#include <ctype.h>
#include "strings.h"
#include "alloc.h"
#include "sds.h"
// RedisModuleString *RMUtil_CreateFormattedString(RedisModuleCtx *ctx, const char *fmt, ...) {
// sds s = sdsempty();
// va_list ap;
// va_start(ap, fmt);
// s = sdscatvprintf(s, fm... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test_heap.c | null | null | null | null | null | null | C | 2026-05-04T19:16:37.968739 | #include <stdio.h>
#include "heap.h"
#include "assert.h"
int cmp(void *a, void *b) {
int *__a = (int *) a;
int *__b = (int *) b;
return *__a - *__b;
}
int main(int argc, char **argv) {
int myints[] = {10, 20, 30, 5, 15};
Vector *v = NewVector(int, 5);
for (int i = 0; i < 5; i++) {
Vect... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test_periodic.c | null | null | null | null | null | null | C | 2026-05-04T19:16:38.087035 | #include <stdio.h>
#include <redismodule.h>
#include <unistd.h>
#include "periodic.h"
#include "assert.h"
#include "test.h"
void timerCb(RedisModuleCtx *ctx, void *p) {
int *x = p;
(*x)++;
}
int testPeriodic() {
int x = 0;
struct RMUtilTimer *tm = RMUtil_NewPeriodicTimer(
timerCb, NULL, &x, (struct time... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test_priority_queue.c | null | null | null | null | null | null | C | 2026-05-04T19:16:38.253224 | #include <stdio.h>
#include "assert.h"
#include "priority_queue.h"
int cmp(void* i1, void* i2) {
int *__i1 = (int*) i1;
int *__i2 = (int*) i2;
return *__i1 - *__i2;
}
int main(int argc, char **argv) {
PriorityQueue *pq = NewPriorityQueue(int, 10, cmp);
assert(0 == Priority_Queue_Size(pq));
fo... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/sds.c | null | null | null | null | null | null | C | 2026-05-04T19:16:38.273544 | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Oran Agra
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test_util.h | null | null | null | null | null | null | C | 2026-05-04T19:16:38.388079 | #ifndef __TEST_UTIL_H__
#define __TEST_UTIL_H__
#include "util.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define RMUtil_Test(f) \
if (argc < 2 || RMUtil_ArgExists(__STRING(f), argv, argc, 1)) { \
int rc = f(ctx); \
if (rc != REDISMODULE_OK)... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/sdsalloc.h | null | null | null | null | null | null | C | 2026-05-04T19:16:38.482835 | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test.h | null | null | null | null | null | null | C | 2026-05-04T19:16:38.560473 | #ifndef __TESTUTIL_H__
#define __TESTUTIL_H__
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
static int numTests = 0;
static int numAsserts = 0;
#define TESTFUNC(f) \
printf(" Testing %s\t\t", __STRING(f)); \
numTests++; \
fflush(stdout); ... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/test_vector.c | null | null | null | null | null | null | C | 2026-05-04T19:16:38.668546 | #include "vector.h"
#include <stdio.h>
#include "test.h"
int testVector() {
Vector *v = NewVector(int, 1);
ASSERT(v != NULL);
// Vector_Put(v, 0, 1);
// Vector_Put(v, 1, 3);
for (int i = 0; i < 10; i++) {
Vector_Push(v, i);
}
ASSERT_EQUAL(10, Vector_Size(v));
ASSERT_EQUAL(16, Vector_Cap(v));
fo... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/alloc.h | null | null | null | null | null | null | C | 2026-05-04T19:16:38.784926 | #ifndef __RMUTIL_ALLOC__
#define __RMUTIL_ALLOC__
/* Automatic Redis Module Allocation functions monkey-patching.
*
* Including this file while REDIS_MODULE_TARGET is defined, will explicitly
* override malloc, calloc, realloc & free with RedisModule_Alloc,
* RedisModule_Callc, etc implementations, that allow Redi... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/util.h | null | null | null | null | null | null | C | 2026-05-04T19:16:38.904147 | #ifndef __UTIL_H__
#define __UTIL_H__
#include <redismodule.h>
#include <stdarg.h>
/// make sure the response is not NULL or an error, and if it is sends the error to the client and
/// exit the current function
#define RMUTIL_ASSERT_NOERROR(ctx, r) \
if (r == NULL) { ... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/vector.c | null | null | null | null | null | null | C | 2026-05-04T19:16:39.022029 | #include "vector.h"
#include <stdio.h>
inline int __vector_PushPtr(Vector *v, void *elem) {
if (v->top == v->cap) {
Vector_Resize(v, v->cap ? v->cap * 2 : 1);
}
__vector_PutPtr(v, v->top, elem);
return v->top;
}
inline int Vector_Get(Vector *v, size_t pos, void *ptr) {
// return 0 if pos is out of boun... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/vector.h | null | null | null | null | null | null | C | 2026-05-04T19:16:39.052828 | #ifndef __VECTOR_H__
#define __VECTOR_H__
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
/*
* Generic resizable vector that can be used if you just want to store stuff
* temporarily.
* Works like C++ std::vector with an underlying resizable buffer
*/
typedef struct {
char *data;
size_t elemSize;
... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/util.c | null | null | null | null | null | null | C | 2026-05-04T19:16:39.450126 | #include <stdlib.h>
#include <errno.h>
#include <math.h>
#include <ctype.h>
#include <sys/time.h>
#include <stdarg.h>
#include <limits.h>
#include <string.h>
#define REDISMODULE_EXPERIMENTAL_API
#include <redismodule.h>
#include "util.h"
/**
Check if an argument exists in an argument list (argv,argc), starting at offs... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/sds.h | null | null | null | null | null | null | C | 2026-05-04T19:16:42.403978 | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Oran Agra
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
n0b0dyCN/redis-rogue-server | https://github.com/n0b0dyCN/redis-rogue-server | null | null | null | null | 1,159 | null | null | apache-2.0 | null | null | null | null | null | null | null | RedisModulesSDK/rmutil/strings.h | null | null | null | null | null | null | C | 2026-05-04T19:16:42.701217 | #ifndef __RMUTIL_STRINGS_H__
#define __RMUTIL_STRINGS_H__
#include <redismodule.h>
/*
* Create a new RedisModuleString object from a printf-style format and arguments.
* Note that RedisModuleString objects CANNOT be used as formatting arguments.
*/
// DEPRECATED since it was added to the RedisModule API. Replaced wit... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/keyword_spotting/main.c | null | null | null | null | null | null | C | 2026-05-04T19:16:45.153985 | /*
* Copyright (c) 2018-2020, Jianjia Ma
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-03-29 Jianjia Ma first implementation
*
* Notes:
* This is a keyword spotting example using NNoM
*
*/
#include <stdint.h>
#include <string.h>
#include <stdbool... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/keyword_spotting/mfcc.h | null | null | null | null | null | null | C | 2026-05-04T19:16:45.171559 | /*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/l... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/auto_test/main.c | null | null | null | null | null | null | C | 2026-05-04T19:16:45.179691 | /*
* Copyright (c) 2018-2020, Jianjia Ma
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-06-30 Jianjia Ma The first version
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "nnom.h"
#include "weights.h"
int8_... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/keyword_spotting/mfcc.c | null | null | null | null | null | null | C | 2026-05-04T19:16:45.181075 | /*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apa... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/mnist-simple/mcu/image.h | null | null | null | null | null | null | C | 2026-05-04T19:16:45.186022 | #define IMG0 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/mnist-densenet/main.c | null | null | null | null | null | null | C | 2026-05-04T19:16:45.202863 | /*
* Copyright (c) 2018-2020, Jianjia Ma
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-02-05 Jianjia Ma The first version
* 2019-04-18 Jianjia Ma use callback to save layer's output
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/rnn-denoise/equalizer_coeff.h | null | null | null | null | null | null | C | 2026-05-04T19:16:45.986075 |
#define NUM_FILTER 20
#define NUM_ORDER 1
#define NUM_COEFF_PAIR 3
#define FILTER_COEFF_A {1., -1.96123368, 0.96283383, 1., -1.95164666, 0.95824788, 1., -1.93714371, 0.95310919, 1., -1.91617215, 0.9473545, 1., -1.88677298, 0.94091414, 1., -1.84649779, 0.93371159, 1., -1.79232148, 0.9256631, 1., -1.72056016, 0.91667... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/octave-conv/main.c | null | null | null | null | null | null | C | 2026-05-04T19:16:45.987001 | /*
* Copyright (c) 2018-2019, Jianjia Ma
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-05-14 Jianjia Ma first implementation
*/
#include <stdio.h>
#include "stm32l4xx_hal.h"
#include "rtthread.h"
#include "rtdevice.h"
#include "nnom.h"
#include "wei... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/rnn-denoise/main_arm.c | null | null | null | null | null | null | C | 2026-05-04T19:16:46.059612 | /*
* Copyright (c) 2018-2020, Jianjia Ma
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-09-09 Jianjia Ma The first version
*
*
* This file is apart of NNoM examples, which aims to provide clear demo of every steps.
* Therefor, it is not optimized fo... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/mnist-cnn/mcu/main_cnn.c | null | null | null | null | null | null | C | 2026-05-04T19:16:46.088441 | #include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "nnom.h"
#include "weights_cnn.h"
int8_t* load(const char* file)
{
size_t sz;
int8_t* in;
FILE* fp = fopen(file,"rb");
assert(fp);
fseek(fp, 0, SEEK_END);
sz = ftell(fp);
fseek(fp, 0, SEEK_SET);
in = malloc(sz);
fread(in,... |
majianjia/nnom | https://github.com/majianjia/nnom | null | null | null | null | 1,151 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/rnn-denoise/mfcc.c | null | null | null | null | null | null | C | 2026-05-04T19:16:46.109982 | /*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.