Exploit database

GH-e0cfbe4175da74c98d9edc01cb3e9d11

keowu/sjcam

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-52656

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files65Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

Lelouch/modified_lelouch_wpa_supplicant_source/src/crypto/aes-encblock.c

C · 923 bytes
/*
 * AES encrypt_block
 *
 * Copyright (c) 2003-2007, Jouni Malinen <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * Alternatively, this software may be distributed under the terms of BSD
 * license.
 *
 * See README and COPYING for more details.
 */

#include "includes.h"

#include "common.h"
#include "aes.h"
#include "aes_wrap.h"

/**
 * aes_128_encrypt_block - Perform one AES 128-bit block operation
 * @key: Key for AES
 * @in: Input data (16 bytes)
 * @out: Output of the AES block operation (16 bytes)
 * Returns: 0 on success, -1 on failure
 */
int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out)
{
	void *ctx;
	ctx = aes_encrypt_init(key, 16);
	if (ctx == NULL)
		return -1;
	aes_encrypt(ctx, in, out);
	aes_encrypt_deinit(ctx);
	return 0;
}