s.fisco-bcos-tars-sdk.3.5.0.source-code.bcos Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.1.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.fisco.bcos.sdk.tars;
public class bcos {
public static SWIGTYPE_p_std__vectorT_unsigned_char_t toBytes(byte[] STRING) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.toBytes__SWIG_1(STRING), true);
}
public static SWIGTYPE_p_bcos__bytesConstRef toBytesConstRef(SWIGTYPE_p_std__string_view input) {
return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.toBytesConstRef__SWIG_1(SWIGTYPE_p_std__string_view.getCPtr(input)), true);
}
public static SWIGTYPE_p_bcos__bytesConstRef toBytesConstRef(String input) {
return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.toBytesConstRef__SWIG_2(input), true);
}
public static SWIGTYPE_p_bcos__bytesConstRef toBytesConstRef(SWIGTYPE_p_std__vectorT_unsigned_char_t input) {
return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.toBytesConstRef__SWIG_3(SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(input)), true);
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t toBytes(SWIGTYPE_p_std__string_view input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.toBytes__SWIG_2(SWIGTYPE_p_std__string_view.getCPtr(input)), true);
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t toBytes(SWIGTYPE_p_bcos__bytesConstRef input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.toBytes__SWIG_4(SWIGTYPE_p_bcos__bytesConstRef.getCPtr(input)), true);
}
public static String toString(SWIGTYPE_p_std__string_view input) {
return bcosJNI.toString__SWIG_1(SWIGTYPE_p_std__string_view.getCPtr(input));
}
public static String toString(SWIGTYPE_p_bcos__bytesConstRef input) {
return bcosJNI.toString__SWIG_2(SWIGTYPE_p_bcos__bytesConstRef.getCPtr(input));
}
public static String toString(SWIGTYPE_p_std__vectorT_unsigned_char_t input) {
return bcosJNI.toString__SWIG_3(SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(input));
}
public static String toString(SWIGTYPE_p_bcos__u256 input) {
return bcosJNI.toString__SWIG_4(SWIGTYPE_p_bcos__u256.getCPtr(input));
}
public static String toHex(SWIGTYPE_p_std__string_view input) {
return bcosJNI.toHex__SWIG_1(SWIGTYPE_p_std__string_view.getCPtr(input));
}
public static String toHex(SWIGTYPE_p_bcos__bytesConstRef input) {
return bcosJNI.toHex__SWIG_2(SWIGTYPE_p_bcos__bytesConstRef.getCPtr(input));
}
public static String toHex(SWIGTYPE_p_std__vectorT_unsigned_char_t input) {
return bcosJNI.toHex__SWIG_3(SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(input));
}
public static String toHex(SWIGTYPE_p_bcos__h256 input) {
return bcosJNI.toHex__SWIG_4(SWIGTYPE_p_bcos__h256.getCPtr(input));
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t fromHex(SWIGTYPE_p_std__string_view input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.fromHex__SWIG_1(SWIGTYPE_p_std__string_view.getCPtr(input)), true);
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t fromHex(String input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.fromHex__SWIG_2(input), true);
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t fromHex(SWIGTYPE_p_bcos__bytesConstRef input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.fromHex__SWIG_3(SWIGTYPE_p_bcos__bytesConstRef.getCPtr(input)), true);
}
public static SWIGTYPE_p_std__vectorT_unsigned_char_t fromHex(SWIGTYPE_p_std__vectorT_unsigned_char_t input) {
return new SWIGTYPE_p_std__vectorT_unsigned_char_t(bcosJNI.fromHex__SWIG_4(SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(input)), true);
}
public static void fillBytes(SWIGTYPE_p_std__string_view input, byte[] STRING) {
bcosJNI.fillBytes__SWIG_1(SWIGTYPE_p_std__string_view.getCPtr(input), STRING);
}
public static void fillBytes(SWIGTYPE_p_bcos__bytesConstRef input, byte[] STRING) {
bcosJNI.fillBytes__SWIG_2(SWIGTYPE_p_bcos__bytesConstRef.getCPtr(input), STRING);
}
public static void fillBytes(SWIGTYPE_p_std__vectorT_unsigned_char_t input, byte[] STRING) {
bcosJNI.fillBytes__SWIG_3(SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(input), STRING);
}
public static SWIGTYPE_p_Address calculateAddress(SWIGTYPE_p_Hash__Ptr _hashImpl, SWIGTYPE_p_PublicPtr _publicKey) {
return new SWIGTYPE_p_Address(bcosJNI.calculateAddress__SWIG_0(SWIGTYPE_p_Hash__Ptr.getCPtr(_hashImpl), SWIGTYPE_p_PublicPtr.getCPtr(_publicKey)), true);
}
public static SWIGTYPE_p_Address calculateAddress(Hash _hashImpl, SWIGTYPE_p_PublicPtr _publicKey) {
return new SWIGTYPE_p_Address(bcosJNI.calculateAddress__SWIG_1(Hash.getCPtr(_hashImpl), _hashImpl, SWIGTYPE_p_PublicPtr.getCPtr(_publicKey)), true);
}
public static SWIGTYPE_p_bytes calculateAddress(Hash _hashImpl, SWIGTYPE_p_unsigned_char _publicKey, long _len) {
return new SWIGTYPE_p_bytes(bcosJNI.calculateAddress__SWIG_2(Hash.getCPtr(_hashImpl), _hashImpl, SWIGTYPE_p_unsigned_char.getCPtr(_publicKey), _len), true);
}
public static int getAES_MAX_PADDING_SIZE() {
return bcosJNI.AES_MAX_PADDING_SIZE_get();
}
public static int getAES_KEY_SIZE() {
return bcosJNI.AES_KEY_SIZE_get();
}
public static int getAES_IV_DATA_SIZE() {
return bcosJNI.AES_IV_DATA_SIZE_get();
}
public static SWIGTYPE_p_bytesPointer AESEncrypt(SWIGTYPE_p_unsigned_char _plainData, long _plainDataSize, SWIGTYPE_p_unsigned_char _key, long _keySize, SWIGTYPE_p_unsigned_char _ivData, long _ivDataSize) {
return new SWIGTYPE_p_bytesPointer(bcosJNI.AESEncrypt(SWIGTYPE_p_unsigned_char.getCPtr(_plainData), _plainDataSize, SWIGTYPE_p_unsigned_char.getCPtr(_key), _keySize, SWIGTYPE_p_unsigned_char.getCPtr(_ivData), _ivDataSize), true);
}
public static SWIGTYPE_p_bytesPointer AESDecrypt(SWIGTYPE_p_unsigned_char _cipherData, long _cipherDataSize, SWIGTYPE_p_unsigned_char _key, long _keySize, SWIGTYPE_p_unsigned_char _ivData, long _ivDataSize) {
return new SWIGTYPE_p_bytesPointer(bcosJNI.AESDecrypt(SWIGTYPE_p_unsigned_char.getCPtr(_cipherData), _cipherDataSize, SWIGTYPE_p_unsigned_char.getCPtr(_key), _keySize, SWIGTYPE_p_unsigned_char.getCPtr(_ivData), _ivDataSize), true);
}
public static int getSM4_MAX_PADDING_LEN() {
return bcosJNI.SM4_MAX_PADDING_LEN_get();
}
public static int getSM4_KEY_SIZE() {
return bcosJNI.SM4_KEY_SIZE_get();
}
public static int getSM4_IV_SIZE() {
return bcosJNI.SM4_IV_SIZE_get();
}
public static SWIGTYPE_p_bytesPointer SM4Encrypt(SWIGTYPE_p_unsigned_char _plainData, long _plainDataSize, SWIGTYPE_p_unsigned_char _key, long _keySize, SWIGTYPE_p_unsigned_char _ivData, long _ivDataSize) {
return new SWIGTYPE_p_bytesPointer(bcosJNI.SM4Encrypt(SWIGTYPE_p_unsigned_char.getCPtr(_plainData), _plainDataSize, SWIGTYPE_p_unsigned_char.getCPtr(_key), _keySize, SWIGTYPE_p_unsigned_char.getCPtr(_ivData), _ivDataSize), true);
}
public static SWIGTYPE_p_bytesPointer SM4Decrypt(SWIGTYPE_p_unsigned_char _cipherData, long _cipherDataSize, SWIGTYPE_p_unsigned_char _key, long _keySize, SWIGTYPE_p_unsigned_char _ivData, long _ivDataSize) {
return new SWIGTYPE_p_bytesPointer(bcosJNI.SM4Decrypt(SWIGTYPE_p_unsigned_char.getCPtr(_cipherData), _cipherDataSize, SWIGTYPE_p_unsigned_char.getCPtr(_key), _keySize, SWIGTYPE_p_unsigned_char.getCPtr(_ivData), _ivDataSize), true);
}
public static CryptoSuite newCryptoSuite(boolean sm) {
long cPtr = bcosJNI.newCryptoSuite(sm);
return (cPtr == 0) ? null : new CryptoSuite(cPtr, true);
}
public static KeyPairInterface pointerToReference(SWIGTYPE_p_std__unique_ptrT_bcos__crypto__KeyPairInterface_t ptr) {
return new KeyPairInterface(bcosJNI.pointerToReference__SWIG_0(SWIGTYPE_p_std__unique_ptrT_bcos__crypto__KeyPairInterface_t.getCPtr(ptr)), false);
}
public static KeyPairInterface pointerToReference(SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t ptr) {
return new KeyPairInterface(bcosJNI.pointerToReference__SWIG_1(SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t.getCPtr(ptr)), false);
}
public static LogEntryVector logEntrySpanToVector(SWIGTYPE_p_gsl__spanT_bcos__protocol__LogEntry_const_t view) {
return new LogEntryVector(bcosJNI.logEntrySpanToVector(SWIGTYPE_p_gsl__spanT_bcos__protocol__LogEntry_const_t.getCPtr(view)), true);
}
public static H256Vector h256SpanToVector(SWIGTYPE_p_gsl__spanT_bcos__h256_const_t view) {
return new H256Vector(bcosJNI.h256SpanToVector(SWIGTYPE_p_gsl__spanT_bcos__h256_const_t.getCPtr(view)), true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy