aboutsummaryrefslogtreecommitdiffstats
path: root/include/certfns.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-07 16:15:54 -0700
committerFriendika <info@friendika.com>2011-08-07 16:15:54 -0700
commit48ffa880f099b19052f18e399bf6af50780a24b0 (patch)
tree48f5e9b52b425af937b5ae2511aaaf6968e0b666 /include/certfns.php
parentaa3a14ec36db5f9df9d0ec27c607a994451fc845 (diff)
downloadvolse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.tar.gz
volse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.tar.bz2
volse-hubzilla-48ffa880f099b19052f18e399bf6af50780a24b0.zip
cleanup
Diffstat (limited to 'include/certfns.php')
-rw-r--r--include/certfns.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/certfns.php b/include/certfns.php
index ffdc7f0c3..aa84cfeb6 100644
--- a/include/certfns.php
+++ b/include/certfns.php
@@ -37,8 +37,6 @@ function DerToRsa($Der)
}
-
-
function pkcs8_encode($Modulus,$PublicExponent) {
//Encode key sequence
$modulus = new ASNValue(ASNValue::TAG_INTEGER);
@@ -75,17 +73,6 @@ function pkcs1_encode($Modulus,$PublicExponent) {
//Encode bit string
$bitStringValue = $keySequence->Encode();
return $bitStringValue;
-
-// $bitStringValue = chr(0x00) . $bitStringValue; //Add unused bits byte
-// $bitString = new ASNValue(ASNValue::TAG_BITSTRING);
-// $bitString->Value = $bitStringValue;
- //Encode body
-// $bodyValue = "\x30\x0d\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01\x05\x00" . $bitString->Encode();
-// $body = new ASNValue(ASNValue::TAG_SEQUENCE);
-// $body->Value = $bodyValue;
- //Get DER encoded public key:
-// $PublicDER = $body->Encode();
-// return $PublicDER;
}
@@ -107,12 +94,8 @@ function pubrsatome($key,&$m,&$e) {
$r = ASN_BASE::parseASNString($x);
-// print_r($r);
-
$m = base64url_decode($r[0]->asnData[0]->asnData);
$e = base64url_decode($r[0]->asnData[1]->asnData);
-
-
}