Home
last modified time | relevance | path

Searched refs:asn1 (Results 1 – 25 of 71) sorted by relevance

123

/third_party/node/deps/npm/node_modules/sshpk/lib/formats/
Dpkcs8.js14 var asn1 = require('asn1'); variable
32 assert.strictEqual(der.peek(), asn1.Ber.Integer,
34 return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
39 if (der.peek() === asn1.Ber.Integer) {
42 der.readString(asn1.Ber.Integer, true);
85 der.readSequence(asn1.Ber.BitString);
107 der.readSequence(asn1.Ber.OctetString);
149 der.readSequence(asn1.Ber.BitString);
175 der.readSequence(asn1.Ber.OctetString);
199 if (der.peek() === asn1.Ber.OID) {
[all …]
Dpkcs1.js11 var asn1 = require('asn1'); variable
33 assert.strictEqual(der.peek(), asn1.Ber.Integer,
35 return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
148 var k = der.readString(asn1.Ber.OctetString, true);
207 var Q = der.readString(asn1.Ber.BitString, true);
226 var d = der.readString(asn1.Ber.OctetString, true);
233 var Q = der.readString(asn1.Ber.BitString, true);
284 der.writeBuffer(key.part.n.data, asn1.Ber.Integer);
285 der.writeBuffer(key.part.e.data, asn1.Ber.Integer);
290 der.writeBuffer(ver, asn1.Ber.Integer);
[all …]
Dx509.js12 var asn1 = require('asn1'); variable
30 assert.strictEqual(der.peek(), asn1.Ber.Integer,
32 return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
45 var der = new asn1.BerWriter();
56 return (asn1.Ber.Context | asn1.Ber.Constructor | i);
60 return (asn1.Ber.Context | i);
97 var der = new asn1.BerReader(buf);
183 var sigData = der.readString(asn1.Ber.BitString, true);
197 if (der.peek() === asn1.Ber.UTCTime) {
198 return (utcTimeToDate(der.readString(asn1.Ber.UTCTime)));
[all …]
Dpem.js9 var asn1 = require('asn1'); variable
115 var der = new asn1.BerReader(buf);
147 var der = new asn1.BerWriter();
/third_party/openssl/include/openssl/
Dpem.h65 # define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/ argument
66 # define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/ argument
67 # define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/ argument
68 # define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/ argument
69 # define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/ argument
72 # define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
75 return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \
78 # define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
81 return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \
84 # define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
[all …]
/third_party/node/deps/npm/node_modules/sshpk/lib/
Didentity.js13 var asn1 = require('asn1'); variable
134 der.startSequence(asn1.Ber.Constructor | asn1.Ber.Set);
145 if (c.asn1type === asn1.Ber.Utf8String ||
148 der.writeBuffer(v, asn1.Ber.Utf8String);
150 } else if (c.asn1type === asn1.Ber.IA5String ||
152 der.writeString(c.value, asn1.Ber.IA5String);
155 var type = asn1.Ber.PrintableString;
243 der.readSequence(asn1.Ber.Constructor | asn1.Ber.Set);
250 case asn1.Ber.PrintableString:
251 case asn1.Ber.IA5String:
[all …]
Dsignature.js11 var asn1 = require('asn1'); variable
85 var der = new asn1.BerWriter();
89 der.writeBuffer(r, asn1.Ber.Integer);
90 der.writeBuffer(s, asn1.Ber.Integer);
226 var der = new asn1.BerReader(data);
228 var r = der.readString(asn1.Ber.Integer, true);
229 var s = der.readString(asn1.Ber.Integer, true);
Dutils.js29 var asn1 = require('asn1'); variable
197 tag = asn1.Ber.BitString;
206 tag = asn1.Ber.BitString;
/third_party/openssl/
DBUILD.gn181 "crypto/asn1/a_bitstr.c",
182 "crypto/asn1/a_d2i_fp.c",
183 "crypto/asn1/a_digest.c",
184 "crypto/asn1/a_dup.c",
185 "crypto/asn1/a_gentm.c",
186 "crypto/asn1/a_i2d_fp.c",
187 "crypto/asn1/a_int.c",
188 "crypto/asn1/a_mbstr.c",
189 "crypto/asn1/a_object.c",
190 "crypto/asn1/a_octet.c",
[all …]
/third_party/openssl/fuzz/
Dbuild.info12 PROGRAMS_NO_INST=asn1 asn1parse bignum bndiv client conf crl server x509
22 SOURCE[asn1]=asn1.c driver.c
23 INCLUDE[asn1]=../include {- $ex_inc -}
24 DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
68 …PROGRAMS_NO_INST=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test se…
78 SOURCE[asn1-test]=asn1.c test-corpus.c
79 INCLUDE[asn1-test]=../include
80 DEPEND[asn1-test]=../libcrypto ../libssl
/third_party/node/deps/npm/node_modules/asn1/
DREADME.md1 node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.
17 var Ber = require('asn1').Ber;
30 var Ber = require('asn1').Ber;
42 npm install asn1
50 See <https://github.com/joyent/node-asn1/issues>.
/third_party/node/test/fixtures/0-dns/
DREADME.md5 can be created by using `asn1.js` and `asn1.js-rfc5280`,
19 +-- asn1.js@4.9.1
23 `-- asn1.js-rfc5280@1.2.2
Dcreate-cert.js2 const asn1 = require('asn1.js'); constant
6 const BN = asn1.bignum;
22 const Null_ = asn1.define('Null_', function() {
27 const PrintStr = asn1.define('PrintStr', function() {
/third_party/mbedtls/library/
Doid.c67 while( cur->asn1 != NULL ) { \
69 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \
130 while( cur->descriptor.asn1 != NULL ) { \
132 *oid = cur->descriptor.asn1; \
151 while( cur->descriptor.asn1 != NULL ) { \
153 *oid = cur->descriptor.asn1; \
/third_party/libcoap/src/
Dcoap_tinydtls.c1076 if (setup_data->pki_key.key.asn1.private_key && in coap_dtls_context_set_pki()
1077 setup_data->pki_key.key.asn1.private_key_len && in coap_dtls_context_set_pki()
1078 setup_data->pki_key.key.asn1.private_key_type == COAP_ASN1_PKEY_EC) { in coap_dtls_context_set_pki()
1079 const uint8_t* private_key = setup_data->pki_key.key.asn1.private_key; in coap_dtls_context_set_pki()
1080 size_t private_key_len = setup_data->pki_key.key.asn1.private_key_len; in coap_dtls_context_set_pki()
1084 setup_data->pki_key.key.asn1.private_key, in coap_dtls_context_set_pki()
1085 setup_data->pki_key.key.asn1.private_key_len); in coap_dtls_context_set_pki()
1092 if (setup_data->pki_key.key.asn1.public_cert && in coap_dtls_context_set_pki()
1093 setup_data->pki_key.key.asn1.public_cert_len) { in coap_dtls_context_set_pki()
1097 setup_data->pki_key.key.asn1.public_cert, in coap_dtls_context_set_pki()
[all …]
Dcoap_openssl.c1138 if (setup_data->pki_key.key.asn1.public_cert && in setup_pki_server()
1139 setup_data->pki_key.key.asn1.public_cert_len > 0) { in setup_pki_server()
1141 setup_data->pki_key.key.asn1.public_cert_len, in setup_pki_server()
1142 setup_data->pki_key.key.asn1.public_cert))) { in setup_pki_server()
1156 if (setup_data->pki_key.key.asn1.private_key && in setup_pki_server()
1157 setup_data->pki_key.key.asn1.private_key_len > 0) { in setup_pki_server()
1158 int pkey_type = map_key_type(setup_data->pki_key.key.asn1.private_key_type); in setup_pki_server()
1160 setup_data->pki_key.key.asn1.private_key, in setup_pki_server()
1161 setup_data->pki_key.key.asn1.private_key_len))) { in setup_pki_server()
1175 if (setup_data->pki_key.key.asn1.ca_cert && in setup_pki_server()
[all …]
Dcoap_mbedtls.c629 if (setup_data->pki_key.key.asn1.public_cert && in setup_pki_credentials()
630 setup_data->pki_key.key.asn1.public_cert_len && in setup_pki_credentials()
631 setup_data->pki_key.key.asn1.private_key && in setup_pki_credentials()
632 setup_data->pki_key.key.asn1.private_key_len > 0) { in setup_pki_credentials()
637 (const unsigned char *)setup_data->pki_key.key.asn1.public_cert, in setup_pki_credentials()
638 setup_data->pki_key.key.asn1.public_cert_len); in setup_pki_credentials()
646 (const unsigned char *)setup_data->pki_key.key.asn1.private_key, in setup_pki_credentials()
647 setup_data->pki_key.key.asn1.private_key_len, NULL, 0); in setup_pki_credentials()
667 if (setup_data->pki_key.key.asn1.ca_cert && in setup_pki_credentials()
668 setup_data->pki_key.key.asn1.ca_cert_len > 0) { in setup_pki_credentials()
[all …]
Dcoap_gnutls.c1230 if (setup_data->pki_key.key.asn1.public_cert && in setup_pki_credentials()
1231 setup_data->pki_key.key.asn1.public_cert_len && in setup_pki_credentials()
1232 setup_data->pki_key.key.asn1.private_key && in setup_pki_credentials()
1233 setup_data->pki_key.key.asn1.private_key_len > 0) { in setup_pki_credentials()
1238 memcpy(&cert.data, &setup_data->pki_key.key.asn1.public_cert, in setup_pki_credentials()
1240 cert.size = setup_data->pki_key.key.asn1.public_cert_len; in setup_pki_credentials()
1241 memcpy(&key.data, &setup_data->pki_key.key.asn1.private_key, in setup_pki_credentials()
1243 key.size = setup_data->pki_key.key.asn1.private_key_len; in setup_pki_credentials()
1247 if (setup_data->pki_key.key.asn1.private_key_type == in setup_pki_credentials()
1295 if (setup_data->pki_key.key.asn1.ca_cert && in setup_pki_credentials()
[all …]
/third_party/grpc/
Dconfig.m4563 third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c \
564 third_party/boringssl-with-bazel/src/crypto/asn1/a_bool.c \
565 third_party/boringssl-with-bazel/src/crypto/asn1/a_d2i_fp.c \
566 third_party/boringssl-with-bazel/src/crypto/asn1/a_dup.c \
567 third_party/boringssl-with-bazel/src/crypto/asn1/a_enum.c \
568 third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c \
569 third_party/boringssl-with-bazel/src/crypto/asn1/a_i2d_fp.c \
570 third_party/boringssl-with-bazel/src/crypto/asn1/a_int.c \
571 third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c \
572 third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c \
[all …]
Dconfig.w32531 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_bitstr.c " +
532 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_bool.c " +
533 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_d2i_fp.c " +
534 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_dup.c " +
535 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_enum.c " +
536 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_gentm.c " +
537 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_i2d_fp.c " +
538 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_int.c " +
539 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_mbstr.c " +
540 "third_party\\boringssl-with-bazel\\src\\crypto\\asn1\\a_object.c " +
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
DMakefile7 asn1.o \
/third_party/openssl/doc/man1/
Dasn1parse.pod95 B<asn1>. The encoded data is passed through the ASN1 parser and printed out as
185 openssl asn1parse -genconf asn1.cnf -noout -out asn1.der
189 asn1=SEQUENCE:seq_sect
/third_party/node/test/fixtures/x509-escaping/
Dcreate-certs.js3 const asn1 = require('asn1.js'); constant
7 const BN = asn1.bignum;
41 return asn1.define(name, function() {
/third_party/openssl/test/
Dx509_time_test.c433 ASN1_TIME asn1; member
469 rv = ASN1_TIME_print(m, &x509_print_tests[idx].asn1); in test_x509_time_print()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
DMakefile18 asn1.o \

123