Skip to content

Instantly share code, notes, and snippets.

handle SIGUSR1 nostop noprint pass
set print pretty on
define pvec
print *$arg0@vl($arg0)
end
document pvec
pvec - display all elements of vector. Takes vector as argument
*** WARNING - SEGV likely if you put in the wrong thing
end
@cwyang
cwyang / aes_gcm.c
Created May 24, 2024 16:01
bug reporting on VPP native aes_gcm
// src/plugins/crypto_native/aes_gcm.c
static void test_aes_gcm()
{
  u8 src[32] = {0}, dst[32] = {0}, check[32] = {0};
  u8 aad[32] = {0}, iv[12] = {0}, tag[16] = {0}, key[32];
  aes_key_size_t ks = AES_KEY_256;
  aes_gcm_key_data_t kd;
  // prepare key