/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) { 58 this.cofactor = cofactor; 69 // throw IllegalArgumentException if order or cofactor is not positive 73 if (!(this.cofactor > 0)) { 74 throw new IllegalArgumentException("cofactor <= 0") [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
ECParameterSpec_ImplTest.java | 113 * <code>order</code> or <code>cofactor</code> is not positive<br> 142 // Test case 3: cofactor is negative 150 // Test case 4: cofactor == 0 158 // Test case 5: both order and cofactor are not positive 168 * Assertion: returns cofactor<br> 171 * Expected: must return cofactor value which is equal 182 int cofactor = 10; local 184 new ECParameterSpec(curve, generator, order, cofactor); 185 assertEquals(cofactor, ps.getCofactor()); 205 int cofactor = 10 local 230 int cofactor = 10; local 255 int cofactor = 10; local [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 | 179 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st 250 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER) 667 /* set the cofactor (optional) */ 670 ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor); 671 if (ret->cofactor == NULL) 977 /* extract the cofactor (optional) */ 978 if (params->cofactor == NULL) 987 if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL) 992 /* 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:__anon11905 [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
eap_pwd_common.c | 93 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local 132 ((cofactor = BN_new()) == NULL) || 151 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { 152 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for " 245 if (BN_cmp(cofactor, BN_value_one())) { 248 cofactor, NULL)) { 277 BN_clear_free(cofactor);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLECGroupContext.java | 167 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); local 169 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue());
|
/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/chromium_org/third_party/boringssl/src/crypto/ec/ |
ec.c | 249 BN_init(&ret->cofactor); 339 !BN_set_word(x, (BN_ULONG)data->cofactor)) { 347 !BN_set_word(&group->cofactor, (BN_ULONG)data->cofactor)) { 415 BN_free(&group->cofactor); 455 !BN_copy(&dest->cofactor, &src->cofactor)) { 513 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, 515 if (!BN_copy(cofactor, &group->cofactor)) { [all...] |
internal.h | 199 BIGNUM order, cofactor; member in struct:ec_group_st 358 /* cofactor is the cofactor of the group (i.e. the number of elements in the 360 uint8_t cofactor; /* promoted to BN_ULONG */ member in struct:curve_data
|
ec_asn1.c | 106 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st 115 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
|
/external/wpa_supplicant_8/src/eap_peer/ |
eap_pwd.c | 301 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local 307 ((cofactor = BN_new()) == NULL) || 314 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 315 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor " 379 if (BN_cmp(cofactor, BN_value_one())) { 381 data->server_element, cofactor, NULL)) { 406 if (BN_cmp(cofactor, BN_value_one())) { 407 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 480 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_pwd.c | 634 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local 642 ((cofactor = BN_new()) == NULL) || 653 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 655 "cofactor for curve"); 675 if (BN_cmp(cofactor, BN_value_one())) { 677 data->peer_element, cofactor, NULL)) { 702 if (BN_cmp(cofactor, BN_value_one())) { 703 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 733 BN_clear_free(cofactor);
|
/frameworks/base/rs/java/android/renderscript/ |
Matrix4f.java | 418 float cofactor = ((i+j) & 1) != 0 ? -minor : minor; local 419 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/boringssl/src/include/openssl/ |
ec.h | 131 /* EC_GROUP_get_cofactor sets |*cofactor| to the cofactor of |group| using 134 BIGNUM *cofactor, BN_CTX *ctx);
|
/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...] |
/external/conscrypt/src/main/native/ |
org_conscrypt_NativeCrypto.cpp | [all...] |
/prebuilts/sdk/renderscript/lib/ |
javalib.jar | |
/external/chromium_org/third_party/libaddressinput/src/java/ |
android.jar | |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |