HomeSort by relevance Sort by last modified time
    Searched refs:cofactor (Results 1 - 25 of 33) sorted by null

1 2

  /libcore/luni/src/main/java/java/security/spec/
ECParameterSpec.java 32 // Cofactor
33 private final int cofactor; field in class:ECParameterSpec
48 * @param cofactor
51 * if {@code order <= zero} or {@code cofactor <= zero}.
54 BigInteger order, int cofactor) {
55 this(curve, generator, order, cofactor, null);
66 BigInteger order, int cofactor, String curveName) {
70 this.cofactor = cofactor;
82 // throw IllegalArgumentException if order or cofactor is not positiv
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
ECParameterSpec_ImplTest.java 114 * <code>order</code> or <code>cofactor</code> is not positive<br>
143 // Test case 3: cofactor is negative
151 // Test case 4: cofactor == 0
159 // Test case 5: both order and cofactor are not positive
169 * Assertion: returns cofactor<br>
172 * Expected: must return cofactor value which is equal
183 int cofactor = 10; local
185 new ECParameterSpec(curve, generator, order, cofactor);
186 assertEquals(cofactor, ps.getCofactor());
206 int cofactor = 10 local
231 int cofactor = 10; local
256 int cofactor = 10; local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/ec/
eck_prn.c 155 *order=NULL, *cofactor=NULL; local
205 (cofactor = BN_new()) == NULL)
235 !EC_GROUP_get_cofactor(x, cofactor, NULL))
259 if (buf_len < (i = (size_t)BN_num_bytes(cofactor)))
328 if ((cofactor != NULL) && !ASN1_bn_print(bp, "Cofactor: ", cofactor,
347 if (cofactor)
348 BN_free(cofactor);
ec_lib.c 104 BN_init(&ret->cofactor);
135 BN_free(&group->cofactor);
158 BN_clear_free(&group->cofactor);
220 if (!BN_copy(&dest->cofactor, &src->cofactor)) return 0;
284 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
304 if (cofactor != NULL)
305 { if (!BN_copy(&group->cofactor, cofactor)) return 0; }
307 BN_zero(&group->cofactor);
    [all...]
ec_asn1.c 177 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st
248 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
665 /* set the cofactor (optional) */
668 ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor);
669 if (ret->cofactor == NULL)
975 /* extract the cofactor (optional) */
976 if (params->cofactor == NULL)
985 if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL)
990 /* set the generator, order and cofactor (if present) *
    [all...]
ec.h 125 -- optional generator with associated information (order, cofactor)
230 /** Sets the generator and it's order/cofactor of a EC_GROUP object.
234 * \param cofactor the index of the sub-group generated by the generator
238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
254 /** Gets the cofactor of a EC_GROUP
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
    [all...]
ec_lcl.h 193 BIGNUM order, cofactor; member in struct:ec_group_st
ec_curve.c 82 unsigned int cofactor; /* promoted to BN_ULONG */ member in struct:__anon13578
    [all...]
  /external/openssl/crypto/ec/
eck_prn.c 155 *order=NULL, *cofactor=NULL; local
205 (cofactor = BN_new()) == NULL)
235 !EC_GROUP_get_cofactor(x, cofactor, NULL))
259 if (buf_len < (i = (size_t)BN_num_bytes(cofactor)))
328 if ((cofactor != NULL) && !ASN1_bn_print(bp, "Cofactor: ", cofactor,
347 if (cofactor)
348 BN_free(cofactor);
ec_lib.c 104 BN_init(&ret->cofactor);
135 BN_free(&group->cofactor);
158 BN_clear_free(&group->cofactor);
220 if (!BN_copy(&dest->cofactor, &src->cofactor)) return 0;
284 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
304 if (cofactor != NULL)
305 { if (!BN_copy(&group->cofactor, cofactor)) return 0; }
307 BN_zero(&group->cofactor);
    [all...]
ec_asn1.c 177 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st
248 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
665 /* set the cofactor (optional) */
668 ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor);
669 if (ret->cofactor == NULL)
975 /* extract the cofactor (optional) */
976 if (params->cofactor == NULL)
985 if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL)
990 /* set the generator, order and cofactor (if present) *
    [all...]
ec.h 125 -- optional generator with associated information (order, cofactor)
230 /** Sets the generator and it's order/cofactor of a EC_GROUP object.
234 * \param cofactor the index of the sub-group generated by the generator
238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
254 /** Gets the cofactor of a EC_GROUP
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
    [all...]
ec_lcl.h 193 BIGNUM order, cofactor; member in struct:ec_group_st
ec_curve.c 82 unsigned int cofactor; /* promoted to BN_ULONG */ member in struct:__anon24154
    [all...]
  /external/wpa_supplicant_8/src/eap_common/
eap_pwd_common.c 93 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local
130 ((cofactor = BN_new()) == NULL) ||
149 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) {
150 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for "
243 if (BN_cmp(cofactor, BN_value_one())) {
246 cofactor, NULL)) {
275 BN_free(cofactor);
  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLECGroupContext.java 167 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); local
169 return new ECParameterSpec(curve, generator, order, cofactor.intValue(), curveName);
  /frameworks/rs/
rsMatrix4x4.cpp 56 float cofactor = (i+j) & 1 ? -minor : minor; local
58 result.m[4*i + j] = cofactor;
97 float cofactor = (i+j) & 1 ? -minor : minor; local
99 result.m[4*j + i] = cofactor;
  /external/wpa_supplicant_8/src/eap_peer/
eap_pwd.c 271 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local
277 ((cofactor = BN_new()) == NULL) ||
284 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) {
285 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor "
345 if (BN_cmp(cofactor, BN_value_one())) {
347 data->server_element, cofactor, NULL)) {
372 if (BN_cmp(cofactor, BN_value_one())) {
373 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor,
446 BN_free(cofactor);
  /external/wpa_supplicant_8/src/eap_server/
eap_server_pwd.c 624 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local
632 ((cofactor = BN_new()) == NULL) ||
643 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) {
645 "cofactor for curve");
665 if (BN_cmp(cofactor, BN_value_one())) {
667 data->peer_element, cofactor, NULL)) {
692 if (BN_cmp(cofactor, BN_value_one())) {
693 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor,
723 BN_free(cofactor);
  /frameworks/base/graphics/java/android/renderscript/
Matrix4f.java 419 float cofactor = ((i+j) & 1) != 0 ? -minor : minor; local
420 return cofactor;
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
Matrix4f.java 419 float cofactor = ((i+j) & 1) != 0 ? -minor : minor; local
420 return cofactor;
  /external/chromium_org/third_party/openssl/openssl/include/openssl/
ec.h 125 -- optional generator with associated information (order, cofactor)
230 /** Sets the generator and it's order/cofactor of a EC_GROUP object.
234 * \param cofactor the index of the sub-group generated by the generator
238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
254 /** Gets the cofactor of a EC_GROUP
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
    [all...]
  /external/openssl/include/openssl/
ec.h 125 -- optional generator with associated information (order, cofactor)
230 /** Sets the generator and it's order/cofactor of a EC_GROUP object.
234 * \param cofactor the index of the sub-group generated by the generator
238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
254 /** Gets the cofactor of a EC_GROUP
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
    [all...]
  /libcore/crypto/src/main/native/
org_conscrypt_NativeCrypto.cpp     [all...]
  /prebuilts/sdk/renderscript/lib/
javalib.jar 

Completed in 414 milliseconds

1 2