本文整理匯總了Java中org.bouncycastle.math.ec.custom.sec.SecP224R1Curve類的典型用法代碼示例。如果您正苦於以下問題:Java SecP224R1Curve類的具體用法?Java SecP224R1Curve怎麽用?Java SecP224R1Curve使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SecP224R1Curve類屬於org.bouncycastle.math.ec.custom.sec包,在下文中一共展示了SecP224R1Curve類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createParameters
import org.bouncycastle.math.ec.custom.sec.SecP224R1Curve; //導入依賴的package包/類
protected X9ECParameters createParameters()
{
byte[] S = Hex.decode("BD71344799D5C7FCDC45B59FA3B9AB8F6A948BC5");
ECCurve curve = configureCurve(new SecP224R1Curve());
X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
+ "B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"
+ "BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34"));
return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
}
示例2: createParameters
import org.bouncycastle.math.ec.custom.sec.SecP224R1Curve; //導入依賴的package包/類
protected X9ECParameters createParameters()
{
byte[] S = Hex.decode("BD71344799D5C7FCDC45B59FA3B9AB8F6A948BC5");
ECCurve curve = configureCurve(new SecP224R1Curve());
ECPoint G = curve.decodePoint(Hex.decode("04"
+ "B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"
+ "BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34"));
return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
}