Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Primitives.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
10 public static class Primitives
11 {
17 public static byte[] CONCAT(params byte[][] OctetStrings)
18 {
19 int c = 0;
20
21 foreach (byte[] A in OctetStrings)
22 c += A.Length;
23
24 byte[] Result = new byte[c];
25 int i = 0;
26
27 foreach (byte[] A in OctetStrings)
28 {
29 c = A.Length;
30 Array.Copy(A, 0, Result, i, c);
31 i += c;
32 }
33
34 return Result;
35 }
36 }
37}
Contains static functions used by different algorithms.
Definition: Primitives.cs:11
static byte[] CONCAT(params byte[][] OctetStrings)
Concatenates a series of octet strings.
Definition: Primitives.cs:17