FileDocCategorySizeDatePackage
NativeCrypto.javaAPI DocAndroid 1.5 API3577Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

NativeCrypto

public class NativeCrypto extends Object
Provides the Java side of our JNI glue for OpenSSL. Currently only hashing and verifying are covered. Is expected to grow over time. Also needs to move into libcore/openssl at some point.

Fields Summary
Constructors Summary
Methods Summary
public static native intEVP_DigestBlockSize(int ctx)

public static native intEVP_DigestFinal(int ctx, byte[] hash, int offset)

public static native voidEVP_DigestInit(int ctx, java.lang.String algorithm)

public static native intEVP_DigestSize(int ctx)

public static native voidEVP_DigestUpdate(int ctx, byte[] buffer, int offset, int length)

public static native voidEVP_PKEY_free(int pkey)

public static native intEVP_PKEY_new_DSA(byte[] p, byte[] q, byte[] g, byte[] priv_key, byte[] pub_key)

public static native intEVP_PKEY_new_RSA(byte[] n, byte[] e, byte[] d, byte[] p, byte[] q)

public static native intEVP_VerifyFinal(int ctx, byte[] signature, int offset, int length, int key)

public static native voidEVP_VerifyInit(int ctx, java.lang.String algorithm)

public static native voidEVP_VerifyUpdate(int ctx, byte[] buffer, int offset, int length)

public static native voidEVP_free(int ctx)

public static native intEVP_new()