Top Description Constructors Methods
org.bouncycastle.crypto.modes

pack-priv Class GOST3413CipherUtil

extends Object
Class Inheritance
Imports
org.bouncycastle.util.Arrays

Some methods for GOST 3412 cipher algorithm

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static byte[]
copyFromInput(byte[]
input byte array
input
,
int
count bytes to copy
size
,
int
inputs offset
offset
)

copy from input array size bytes with offset

public static byte[]
LSB(byte[]
source array
from
,
int
size of new array
size
)

copy last size elements from from

public static byte[]
MSB(byte[]
source array
from
,
int
size of new array
size
)

copy first size elements from from

public static byte[]
sum(byte[]
clear text
in
,
byte[]
gamma parameter
gamma
)

componentwise addition modulo 2 (XOR)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GOST3413CipherUtilback to summary
pack-priv GOST3413CipherUtil()

Method Detail

copyFromInputback to summary
public static byte[] copyFromInput(byte[] input, int size, int offset)

copy from input array size bytes with offset

Parameters
input:byte[]

input byte array

size:int

count bytes to copy

offset:int

inputs offset

LSBback to summary
public static byte[] LSB(byte[] from, int size)

copy last size elements from from

Parameters
from:byte[]

source array

size:int

size of new array

MSBback to summary
public static byte[] MSB(byte[] from, int size)

copy first size elements from from

Parameters
from:byte[]

source array

size:int

size of new array

sumback to summary
public static byte[] sum(byte[] in, byte[] gamma)

componentwise addition modulo 2 (XOR)

Parameters
in:byte[]

clear text

gamma:byte[]

gamma parameter