Lines Matching +full:0 +full:x10100000
55 if (len > 0) {
56 t = keydata[0];
59 return 0;
69 if (len > 0) {
70 if (keydata[0] == 0) {
77 return 0;
80 exp = keydata[0];
84 return 0;
106 return 0;
113 return 0;
117 uint16_t ac16 = 0;
125 uint32_t ac32 = 0;
126 for (i = 0; i < keysize; ++i) {
129 ac32 += (ac32 >> 16) & 0xFFFF;
130 return (uint16_t) (ac32 & 0xFFFF);
142 static int gost_id = 0;
165 return 0;
170 return 0;
178 return 0;
208 if(len == 0)
209 return 0;
210 T = (uint8_t)key[0];
215 return 0;
218 return 0;
236 return 0;
254 #if OPENSSL_VERSION_NUMBER < 0x10100000 || \
255 (defined(HAVE_LIBRESSL) && LIBRESSL_VERSION_NUMBER < 0x02070000f)
329 if(EVP_PKEY_fromdata_init(ctx) <= 0) {
338 if(EVP_PKEY_fromdata(ctx, &evp_key, EVP_PKEY_PUBLIC_KEY, params) <= 0) {
366 if(EVP_PKEY_assign_DSA(evp_key, dsa) == 0) {
385 if (len == 0)
386 return 0;
387 if (key[0] == 0) {
389 return 0;
394 exp = key[0];
400 return 0;
404 if(!*e) return 0;
412 return 0;
434 #if OPENSSL_VERSION_NUMBER < 0x10100000 || \
435 (defined(HAVE_LIBRESSL) && LIBRESSL_VERSION_NUMBER < 0x02070000f)
495 if(EVP_PKEY_fromdata_init(ctx) <= 0) {
502 if(EVP_PKEY_fromdata(ctx, &evp_key, EVP_PKEY_PUBLIC_KEY, params) <= 0) {
526 if(EVP_PKEY_assign_RSA(evp_key, rsa) == 0) {
540 uint8_t asn[37] = { 0x30, 0x63, 0x30, 0x1c, 0x06, 0x06, 0x2a, 0x85,
541 0x03, 0x02, 0x02, 0x13, 0x30, 0x12, 0x06, 0x07, 0x2a, 0x85,
542 0x03, 0x02, 0x02, 0x23, 0x01, 0x06, 0x07, 0x2a, 0x85, 0x03,
543 0x02, 0x02, 0x1e, 0x01, 0x03, 0x43, 0x00, 0x04, 0x40};
554 pp = (unsigned char*)&encoded[0];
585 /* prepend the 0x04 for uncompressed format */
586 buf[0] = POINT_CONVERSION_UNCOMPRESSED;
593 if(!OSSL_PARAM_BLD_push_utf8_string(param_bld, "group", group, 0) ||
606 if(EVP_PKEY_fromdata_init(ctx) <= 0) {
611 if(EVP_PKEY_fromdata(ctx, &evp_key, EVP_PKEY_PUBLIC_KEY, params) <= 0) {
637 /* prepend the 0x02 (from docs) (or actually 0x04 from implementation
639 buf[0] = POINT_CONVERSION_UNCOMPRESSED;
665 uint8_t pre[] = {0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65,
666 0x70, 0x03, 0x21, 0x00};
686 uint8_t pre[] = {0x30, 0x43, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65,
687 0x71, 0x03, 0x3a, 0x00};
709 return 0;
714 return 0;