mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 12:39:28 +00:00
Harvest 176 isolated vuln-vs-fix functions (109 CVEs, 352 training rows) into benchmarks/pairs/vfc with provenance and a JSONL training manifest. Score the slice as an honesty dashboard (ousast pairs --slice vfc); keep the pair gate on the local fixtures only.
33 lines
953 B
C
33 lines
953 B
C
/* Provenance: openssl/openssl aes_ocb_cipher (vuln).
|
|
* repo: openssl/openssl
|
|
* commit: 5f489043b662fed32fbf7eb7442c479568eb43fd
|
|
* parent: 5f489043b662fed32fbf7eb7442c479568eb43fd
|
|
* commit_url: https://github.com/openssl/openssl/commit/f87f0b6a8e04bcdeb98afc82b0da06a2d537f399
|
|
* cve: CVE-2026-45445
|
|
* license: Apache-2.0
|
|
* function: aes_ocb_cipher
|
|
* relpath: providers/implementations/ciphers/cipher_aes_ocb.c
|
|
*/
|
|
|
|
static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl,
|
|
size_t outsize, const unsigned char *in, size_t inl)
|
|
{
|
|
PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx;
|
|
|
|
if (!ossl_prov_is_running())
|
|
return 0;
|
|
|
|
if (outsize < inl) {
|
|
ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
|
|
return 0;
|
|
}
|
|
|
|
if (!aes_generic_ocb_cipher(ctx, in, out, inl)) {
|
|
ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
|
|
return 0;
|
|
}
|
|
|
|
*outl = inl;
|
|
return 1;
|
|
}
|