From 86f233ce769421c85516e6a113d3ba5101cc0d5b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 29 Sep 2023 10:39:08 +0900 Subject: [PATCH] crypto-auditing: Increase max length of event key name This increases the maximum length of event key names from 32 bytes to 64 bytes, to accomodate TLS extensions with "tls::ext::" scope. Signed-off-by: Daiki Ueno --- crypto-auditing/src/bpf/audit.h | 2 +- fixtures/normal/input.cborseq | Bin 9071 -> 10824 bytes fixtures/normal/output.cborseq | Bin 4830 -> 5190 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto-auditing/src/bpf/audit.h b/crypto-auditing/src/bpf/audit.h index 6bb61e5..84432bc 100644 --- a/crypto-auditing/src/bpf/audit.h +++ b/crypto-auditing/src/bpf/audit.h @@ -12,7 +12,7 @@ typedef enum AUDIT_DATA_BLOB = 2, } audit_data_type_t; -#define KEY_SIZE 32 +#define KEY_SIZE 64 #define VALUE_SIZE 64 typedef enum diff --git a/fixtures/normal/input.cborseq b/fixtures/normal/input.cborseq index f2a1591d178a5b128711059c9e525fd15156d3bf..8ae8da0f4f32ff41984162450fef9a3a9e1dd5c9 100644 GIT binary patch literal 10824 zcmdU#U1%It6vx*@H%)0MjVApkY1K+?Nm^~Fg3!_!#adc@s9Gqcg%~z#8Z^5hyD5o? ztriQ$AQG`C`k+Nn5PYy8X%$QhA}ACTp^8-eqWT~fqxHr5aqi5$v-ghok2?dpjpY{BpN4AV{YnKxq< ze#RZR6T9&$MsXg;>BI6%&2O3i(KYhv!#+{Q2Wsm)>%y7AjC|`A@_rtiFL0~k5wAu8 z{TN1GzHz~KDB}^b`X>6fpFXjG0eU3P9!4I0$kDSybXGt)##gk;*M=;z=o6PkEDkPv z4)%}N<6W%AHq3br9>5BGt$DapJ(HG)vlm=E77w#Ltt5MilcIx534$%1k$#|Uf)(&sCUpggYy*BR~P%6dD^M06VUMRZM~ZurLs@g6p+IOq zR!p8LyrOt&lvhNlm>}PZ_{+&MG8kL1&C)kvt(INZaO4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* zZCHo2dm;OR9M&R><@CFTuE>y)vi4aw(r87BW;^LDgB<%6`4iRdTOq<-hXld~AMUh$ z=p0|eeuDQlYHc4b##a~&`cO@k&WAhx5GWaZ$Wp4n_nJ|JKFpH;)>9p|-pUo565>Ut>-E#z7B(I{t*Wm4}a&iz8cHnA^4pg1&- zL)uFSdk9?*X{CqM(&|{6Pb;LbP)C1b13b_-Yyvi93{3`@wPs%%N)ahz7N4puZJ zlyyUPr9jFcYo1gF&udZ<>)KxPY_)IjD`CoWz?}~3q+zI9ply&gPkRZrXxi2t&xf=h z{AZ5G4A|)@4&;FZz%3M>{6x=y*$c!9LS@;MG3N&?5H9w1d=hfwEEe& z!;)^Pmma|k`tVn?W3WuC9y=N-lT9dnT(GLE<-^+rR~YoclX?r=HL3rlK3Zq}DDXAt zgXi0cS2f>I=*>VMt=A1i39$rW#=T7fCxaV#PW4#qaf;B5k?y^Wo)Rbvi7x2IU$M%g9LjVBKl&u9?1eQJ zURmSiC!)l<63r~u={;4JGaE4R+E)a?f<_*}yHq|Y9UP%&aZe*b!|Ip796x+;`mp)6^HZF|Uuq!o54HdjG34_EI_T#9&8l7d|Sbpcc;L&F&!{g zOQU-Qnn5k)-8@M1R%$TlAj(scW1aw9wh!iYkqhs!s9qQ^CMCCUN-4YMBEbwsG4cM+ z;eO8$w$VI7ku_QtEc#qPZHQ67w0dzT{ZoR)Eag^;(#%^1_xh$>Y7 E15BetrT_o{ diff --git a/fixtures/normal/output.cborseq b/fixtures/normal/output.cborseq index eab5396182cca12e02c6ff61a9c712f764ce6704..4566276307ac020ad427a2e055171ad55bb38d23 100644 GIT binary patch literal 5190 zcmcK8eN0nV6aesw5I!5jP04 zQ!_wnmzb_}bGT%7WFwlfB{e}HG5ccbmXJtrnjnj)lYN@NRI&lGOS|2BsCRd_4f~J7 zALsYZx#!+@U%RX(hh0UDYWZOCW7h(GYGJmgw*9BHVgs0%3#ND(Zw=sb{$&NHOOyigX2qWe9Dg2hShEtj>SD9PFoz=Wr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