Top Description Methods
org.bouncycastle.crypto

public Interface AlphabetMapper

Known Direct Implementers
org.bouncycastle.crypto.util.BasicAlphabetMapper

Base interface for mapping from an alphabet to a set of indexes suitable for use with FPE.

Method Summary

Modifier and TypeMethod and Description
public char[]

Returns:

an array of char corresponding to the index values.
convertToChars
(byte[]
input array of indexes.
input
)

Return a char[] for this alphabet based on the indexes passed.

public byte[]

Returns:

an index array.
convertToIndexes
(char[]
characters to be mapped.
input
)

Return the passed in char[] as a byte array of indexes (indexes can be more than 1 byte)

public int

Returns:

the radix for the alphabet.
getRadix
()

Return the number of characters in the alphabet.

Method Detail

convertToCharsback to summary
public char[] convertToChars(byte[] input)

Return a char[] for this alphabet based on the indexes passed.

Parameters
input:byte[]

input array of indexes.

Returns:char[]

an array of char corresponding to the index values.

convertToIndexesback to summary
public byte[] convertToIndexes(char[] input)

Return the passed in char[] as a byte array of indexes (indexes can be more than 1 byte)

Parameters
input:char[]

characters to be mapped.

Returns:byte[]

an index array.

getRadixback to summary
public int getRadix()

Return the number of characters in the alphabet.

Returns:int

the radix for the alphabet.