Editing Talk:Online Connections
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=== to add === | === to add === | ||
<deroad> @eussNL there is a thing not written in the wiki (i can't access now, don't know why) http://xmb-e.dl.playstation.net/ | <deroad> @eussNL there is a thing not written in the wiki (i can't access now, don't know why) http://xmb-e.dl.playstation.net/ | ||
Line 674: | Line 145: | ||
So a little bit about the passphrase and ID... the passphrase is 128 bytes encrypted. | So a little bit about the passphrase and ID... the passphrase is 128 bytes encrypted. | ||
< | <pre>SceNpCommunicationId communication_id = { | ||
SceNpCommunicationId communication_id = { | |||
{'N','P','X','S','0','0','0','0','5'}, | {'N','P','X','S','0','0','0','0','5'}, | ||
'\0', | '\0', | ||
Line 712: | Line 182: | ||
{ | { | ||
return &communication_passphrase; | return &communication_passphrase; | ||
} | }</pre> | ||
</ | |||
I shouldn't really have to explain this but just in case... | I shouldn't really have to explain this but just in case... | ||
Line 719: | Line 188: | ||
===ID=== | ===ID=== | ||
< | <pre>static const SceNpCommunicationId s_communication_id = { | ||
static const SceNpCommunicationId s_communication_id = { | |||
{'N','P','X','S','0','0','0','2','7'}, | {'N','P','X','S','0','0','0','2','7'}, | ||
'\0', | '\0', | ||
0, | 0, | ||
0 | 0 | ||
}; | };</pre> | ||
</ | |||
This is the format in which the NP ID will be displayed (don't know much about it). | This is the format in which the NP ID will be displayed (don't know much about it). | ||
Line 732: | Line 199: | ||
The request for the ID is very simple: | The request for the ID is very simple: | ||
< | <pre>const SceNpCommunicationId* NpConf::npCommId(int i) | ||
const SceNpCommunicationId* NpConf::npCommId(int i) | |||
{ | { | ||
(void)i; | (void)i; | ||
return(&s_communication_id); | return(&s_communication_id); | ||
} | }</pre> | ||
</ | |||
===Passphrase=== | ===Passphrase=== | ||
Line 744: | Line 209: | ||
As we know it's 128 bytes encrypted. Displayed like so... | As we know it's 128 bytes encrypted. Displayed like so... | ||
< | <pre>static const SceNpCommunicationPassphrase s_communication_passphrase = { | ||
static const SceNpCommunicationPassphrase s_communication_passphrase = { | |||
{ | { | ||
0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa, | 0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa, | ||
Line 765: | Line 229: | ||
} | } | ||
}; | };</pre> | ||
</ | |||
The auth is as simple as the IDs. | The auth is as simple as the IDs. | ||
< | <pre>const SceNpCommunicationPassphrase* NpConf::npCommPassphrase(int i) | ||
const SceNpCommunicationPassphrase* NpConf::npCommPassphrase(int i) | |||
{ | { | ||
(void)i; | (void)i; | ||
return(&s_communication_passphrase); | return(&s_communication_passphrase); | ||
} | }</pre> | ||
</ | |||
Also, this a encrypted passphrase (maybe) from 4.00 it's taken from the same format in the code above but there's a lot more characters... | Also, this a encrypted passphrase (maybe) from 4.00 it's taken from the same format in the code above but there's a lot more characters... | ||
< | <pre>8dade4164f15e26e323668124aa89083b44414c66db2bddcc0ef67f6ca4c1eedc364db4800b62d63e5ecb33e2a1b4db4edc1ee3802a042f06d600eb5cb40236cefcda6136c5a26dd624a1a2fc197b25a4a3b06660f0d3f44bf538971089e44a91169f062c6743dd701f90f256ab5ab539dc943e057303559f66057b39e49b661</pre> | ||
===Sig=== | ===Sig=== | ||
Line 789: | Line 250: | ||
Not sure how it's displayed but it's auth is simple. | Not sure how it's displayed but it's auth is simple. | ||
< | <pre>const SceNpCommunicationSignature* NpConf::npCommSig(int i) | ||
const SceNpCommunicationSignature* NpConf::npCommSig(int i) | |||
{ | { | ||
(void)i; | (void)i; | ||
return 0; | return 0; | ||
} | }</pre> | ||
</ | |||
=== gen_keying_material.py === | === gen_keying_material.py === | ||
Line 853: | Line 312: | ||
log_file.write('RSA Session-ID:{0} Master-Key:{1}\n'.format(session_id.encode('hex').upper(), master_secret.encode('hex').upper())) | log_file.write('RSA Session-ID:{0} Master-Key:{1}\n'.format(session_id.encode('hex').upper(), master_secret.encode('hex').upper())) | ||
</syntaxhighlight> | </syntaxhighlight> | ||