ASN_BASE
error ASN_BASE not found. Probably a namespace thing.
This commit is contained in:
parent
9e6bf79380
commit
5d352641a8
|
@ -156,7 +156,7 @@ class Crypto
|
||||||
unset($lines[count($lines)]);
|
unset($lines[count($lines)]);
|
||||||
$x = base64_decode(implode('', $lines));
|
$x = base64_decode(implode('', $lines));
|
||||||
|
|
||||||
$r = ASN_BASE::parseASNString($x);
|
$r = parseASNString($x);
|
||||||
|
|
||||||
$m = base64url_decode($r[0]->asnData[0]->asnData);
|
$m = base64url_decode($r[0]->asnData[0]->asnData);
|
||||||
$e = base64url_decode($r[0]->asnData[1]->asnData);
|
$e = base64url_decode($r[0]->asnData[1]->asnData);
|
||||||
|
@ -195,7 +195,7 @@ class Crypto
|
||||||
unset($lines[count($lines)]);
|
unset($lines[count($lines)]);
|
||||||
$x = base64_decode(implode('', $lines));
|
$x = base64_decode(implode('', $lines));
|
||||||
|
|
||||||
$r = ASN_BASE::parseASNString($x);
|
$r = parseASNString($x);
|
||||||
|
|
||||||
$m = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[0]->asnData);
|
$m = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[0]->asnData);
|
||||||
$e = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[1]->asnData);
|
$e = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[1]->asnData);
|
||||||
|
|
Loading…
Reference in a new issue