PageRenderTime 43ms CodeModel.GetById 38ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/unmaintained/cryptlib/notes.txt

http://github.com/abeaumont/factor
Plain Text | 51 lines | 31 code | 20 blank | 0 comment | 0 complexity | 38bc9998ee16fa3fa51a9d90ecd0db51 MD5 | raw file
 1Read 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
37Parse a file:
38
39 openssl asn1parse -in file.pem
40
41Parse a DER file:
42
43 openssl asn1parse -inform DER -in file.der
44
45Generate 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