]> gitweb.factorcode.org Git - factor.git/blob - unmaintained/cryptlib/notes.txt
tools.test: Make the flag public. Finish porting tester changes to fuzzer.
[factor.git] / unmaintained / cryptlib / notes.txt
1 Read remaining data:
2
3  USING: alien libc kernel-internals byte-arrays ;
4  
5  SYMBOL: buffer
6  
7  11 "uchar*" malloc-array buffer set
8  
9  "Hello world" buffer get string>memory
10  
11  buffer get 11 memory>string .
12  
13  "Hello world"
14  
15  11 [ buffer get swap alien-unsigned-1 ] each
16  
17  .s
18  
19  72
20  101
21  108
22  108
23  111
24  32
25  119
26  111
27  114
28  108
29  100 
30  
31  11 [ buffer get swap alien-unsigned-1 ] map
32  
33  >byte-array .
34  
35  { 72 101 108 108 111 32 119 111 114 108 100 }
36
37 Parse a file:
38
39  openssl asn1parse -in file.pem
40
41 Parse a DER file:
42
43  openssl asn1parse -inform DER -in file.der
44
45 Generate a PKCS#12 file:
46
47  openssl pkcs12 -export -in certs.pem -out file.p12 -name "MY Certificate"
48
49  The export option specifies that a PKCS#12 file will be generated (rather 
50  than parsed).
51