当前位置: 首页>>代码示例>>Java>>正文


Java X9IntegerConverter类代码示例

本文整理汇总了Java中org.spongycastle.asn1.x9.X9IntegerConverter的典型用法代码示例。如果您正苦于以下问题:Java X9IntegerConverter类的具体用法?Java X9IntegerConverter怎么用?Java X9IntegerConverter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


X9IntegerConverter类属于org.spongycastle.asn1.x9包,在下文中一共展示了X9IntegerConverter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/** Decompress a compressed public key (x co-ord and low-bit of y-coord). */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
    X9IntegerConverter x9 = new X9IntegerConverter();
    byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
    compEnc[0] = (byte)(yBit ? 0x03 : 0x02);
    return CURVE.getCurve().decodePoint(compEnc);
}
 
开发者ID:creativechain,项目名称:creacoinj,代码行数:8,代码来源:ECKey.java

示例2: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/** Decompress a compressed public key (x co-ord and low-bit of y-coord). */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
    X9IntegerConverter x9 = new X9IntegerConverter();
    byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
    compEnc[0] = (byte) (yBit ? 0x03 : 0x02);
    return CURVE.getCurve().decodePoint(compEnc);
}
 
开发者ID:marvin-we,项目名称:crypto-core,代码行数:8,代码来源:ECKey.java

示例3: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/**
 * Decompress a compressed public key (x co-ord and low-bit of y-coord).
 *
 * @param xBN -
 * @param yBit -
 * @return -
 */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
  X9IntegerConverter x9 = new X9IntegerConverter();
  byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
  compEnc[0] = (byte) (yBit ? 0x03 : 0x02);
  return CURVE.getCurve()
      .decodePoint(compEnc);
}
 
开发者ID:Aptoide,项目名称:AppCoins-ethereumj,代码行数:15,代码来源:ECKey.java

示例4: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/**
 * Decompress a compressed public key (x co-ord and low-bit of y-coord).
 */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
    X9IntegerConverter x9 = new X9IntegerConverter();
    byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
    compEnc[0] = (byte) (yBit ? 0x03 : 0x02);
    return CURVE.getCurve().decodePoint(compEnc);
}
 
开发者ID:chaincloud-dot-com,项目名称:chaincloud-v,代码行数:10,代码来源:ECKey.java

示例5: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/**
 * Decompress a compressed public key (x co-ord and low-bit of y-coord).
 *
 * @param xBN -
 * @param yBit -
 * @return -
 */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
    X9IntegerConverter x9 = new X9IntegerConverter();
    byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
    compEnc[0] = (byte) (yBit ? 0x03 : 0x02);
    return CURVE.getCurve().decodePoint(compEnc);
}
 
开发者ID:toshiapp,项目名称:toshi-headless-client,代码行数:14,代码来源:ECKey.java

示例6: decompressKey

import org.spongycastle.asn1.x9.X9IntegerConverter; //导入依赖的package包/类
/**
 * Decompress a compressed public key (x co-ord and low-bit of y-coord).
 *
 * @param xBN
 *            -
 * @param yBit
 *            -
 * @return -
 */
private static ECPoint decompressKey(BigInteger xBN, boolean yBit) {
    X9IntegerConverter x9 = new X9IntegerConverter();
    byte[] compEnc = x9.integerToBytes(xBN, 1 + x9.getByteLength(CURVE.getCurve()));
    compEnc[0] = (byte) (yBit ? 0x03 : 0x02);
    return CURVE.getCurve().decodePoint(compEnc);
}
 
开发者ID:cegeka,项目名称:tether,代码行数:16,代码来源:ECKey.java


注:本文中的org.spongycastle.asn1.x9.X9IntegerConverter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。