blob: abae4f3fa0b0bf4db5c068562e8582581f39ba5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
namespace Org.BouncyCastle.Crypto.Modes.Gcm
{
[Obsolete("Will be removed")]
public class BasicGcmMultiplier
: IGcmMultiplier
{
private GcmUtilities.FieldElement H;
public void Init(byte[] H)
{
GcmUtilities.AsFieldElement(H, out this.H);
}
public void MultiplyH(byte[] x)
{
GcmUtilities.AsFieldElement(x, out var T);
GcmUtilities.Multiply(ref T, ref H);
GcmUtilities.AsBytes(ref T, x);
}
}
}
|