FileDocCategorySizeDatePackage
NativeBN.javaAPI DocAndroid 1.5 API6982Wed May 06 22:41:04 BST 2009org.openssl

NativeBN

public class NativeBN extends Object

Fields Summary
Constructors Summary
Methods Summary
public static native intBN_CTX_new()

public static native booleanBN_add(int r, int a, int b)

public static native booleanBN_add_word(int a, int w)

public static native booleanBN_bin2bn(byte[] s, int len, boolean neg, int ret)

public static native byte[]BN_bn2bin(int a, byte[] to)

public static native java.lang.StringBN_bn2dec(int a)

public static native java.lang.StringBN_bn2hex(int a)

public static native intBN_cmp(int a, int b)

public static native booleanBN_copy(int to, int from)

public static native intBN_dec2bn(int a, java.lang.String str)

public static native booleanBN_div(int dv, int rem, int m, int d, int ctx)

public static native intBN_div_word(int a, int w)

public static native booleanBN_exp(int r, int a, int p, int ctx)

public static native voidBN_free(int a)

public static native booleanBN_gcd(int r, int a, int b, int ctx)

public static native booleanBN_generate_prime_ex(int ret, int bits, boolean safe, int add, int rem, int cb)

public static native intBN_hex2bn(int a, java.lang.String str)

public static native booleanBN_is_bit_set(int a, int n)

public static native booleanBN_is_prime_ex(int p, int nchecks, int ctx, int cb)

public static native booleanBN_lshift(int r, int a, int n)

public static native booleanBN_mod_exp(int r, int a, int p, int m, int ctx)

public static native booleanBN_mod_inverse(int ret, int a, int n, int ctx)

public static native intBN_mod_word(int a, int w)

public static native booleanBN_mul(int r, int a, int b, int ctx)

public static native booleanBN_mul_word(int a, int w)

public static native intBN_new()

public static native booleanBN_nnmod(int r, int a, int m, int ctx)

public static native voidBN_set_negative(int b, int n)

public static native booleanBN_sub(int r, int a, int b)

public static native booleanBN_sub_word(int a, int w)

public static native java.lang.StringERR_error_string(int e)

public static native intERR_get_error()

public static native intbitLength(int a)

public static native int[]bn2litEndInts(int a, int[] to)

public static native byte[]bn2twosComp(int a, byte[] to)

public static native booleanlitEndInts2bn(int[] ints, int len, boolean neg, int ret)

public static native longlongInt(int a)

public static native booleanmodifyBit(int a, int n, int op)

public static native booleanputLongInt(int a, long dw)

public static native booleanputULongInt(int a, long dw, boolean neg)

public static native intsign(int a)

public static native booleantwosComp2bn(byte[] s, int len, int ret)

public static native booleantwosCompFitsIntoBytes(int a, int byteCnt)