1
package org.bouncycastle.jce.provider.symmetric;
3
import java.util.HashMap;
5
import org.bouncycastle.crypto.CipherKeyGenerator;
6
import org.bouncycastle.crypto.engines.Grain128Engine;
7
import org.bouncycastle.jce.provider.JCEKeyGenerator;
8
import org.bouncycastle.jce.provider.JCEStreamCipher;
10
public final class Grain128
16
public static class Base
17
extends JCEStreamCipher
21
super(new Grain128Engine(), 12);
25
public static class KeyGen
26
extends JCEKeyGenerator
30
super("Grain128", 128, new CipherKeyGenerator());
34
public static class Mappings
39
put("Cipher.Grain128", "org.bouncycastle.jce.provider.symmetric.Grain128$Base");
40
put("KeyGenerator.Grain128", "org.bouncycastle.jce.provider.symmetric.Grain128$KeyGen");