Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omnet/blob/main/om/tka/test/revocation.om # omnet aien-dev/omnet Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omnet / om / tka / test / revocation.om` 90 lines ยท 1242 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Cross-unit regression: trusted authority removal revokes a direct node signature. 3 fn smread d edit uchar 65536 n ulong to ulong 4 p = ulong 0 5 while lt p n bound 65536 6 z = read int 0 d p sub n p 7 if le z 0 8 ret 1 9 end 10 p = add p ulong z 11 end 12 ret 0 13 end 14 fn smlen to ulong 15 b = new uchar 65536 0 16 if ne smread b 4 0 17 ret 65537 18 end 19 n = ulong 0 20 for i ulong 4 21 n = or n shl ulong get b i mul i 8 22 end 23 ret n 24 end 25 fn main to int 26 a = new uchar 65536 0 27 s = new uchar 65536 0 28 t = new ulong 131074 0 29 m = new ulong 132 0 30 node = new uchar 32 0 31 keys = new uchar 16384 0 32 spans = new ulong 256 0 33 if ne tkaselect 0 0 34 ret 1 35 end 36 tkareset 37 n = smlen 38 if gt n 65536 39 ret 2 40 end 41 if ne smread a n 0 42 ret 3 43 end 44 if ne tkaboot a n 0 45 ret 4 46 end 47 n = smlen 48 if gt n 65536 49 ret 5 50 end 51 if ne smread s n 0 52 ret 6 53 end 54 if ne nksdec s n t m 0 55 ret 7 56 end 57 if ne smread a 32 0 58 ret 8 59 end 60 for i ulong 32 61 put node i get a i 62 end 63 count = tkakeys keys 64 if gt count 512 65 ret 9 66 end 67 if ne nksauth s t m node keys count 1 68 ret 10 69 end 70 n = smlen 71 if gt n 65536 72 ret 11 73 end 74 if ne smread a n 0 75 ret 12 76 end 77 put spans 0 0 78 put spans 1 n 79 if ne tkainform a spans 1 0 80 ret 13 81 end 82 count = tkakeys keys 83 if gt count 512 84 ret 14 85 end 86 if ne nksauth s t m node keys count 0 87 ret 15 88 end 89 ret 0 90 end