Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Primitives.cs
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Text;
4
5
namespace
Waher.Security.PKCS
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
}
Waher.Security.PKCS.Primitives
Contains static functions used by different algorithms.
Definition:
Primitives.cs:11
Waher.Security.PKCS.Primitives.CONCAT
static byte[] CONCAT(params byte[][] OctetStrings)
Concatenates a series of octet strings.
Definition:
Primitives.cs:17
Waher.Security.PKCS
Definition:
CertificateRequest.cs:6
IoTGateway
Security
Waher.Security.PKCS
Primitives.cs
Generated by
1.9.5