public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/WebAuthn/Attestation/Format/Tpm.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Tpm.php
on main
Author
Date
Commit
Line
Code
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 1
<?php
<?php
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 2
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 3
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 4
namespace lbuchs\WebAuthn\Attestation\Format;
namespace lbuchs\WebAuthn\Attestation\Format;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 5
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 6
use lbuchs\WebAuthn\WebAuthnException;
use lbuchs\WebAuthn\WebAuthnException;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 7
use lbuchs\WebAuthn\Binary\ByteBuffer;
use lbuchs\WebAuthn\Binary\ByteBuffer;
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 8
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 9
class Tpm extends FormatBase {
class Tpm extends FormatBase {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 10
private $_TPM_GENERATED_VALUE = "\xFF\x54\x43\x47";
private $_TPM_GENERATED_VALUE = "\xFF\x54\x43\x47";
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 11
private $_TPM_ST_ATTEST_CERTIFY = "\x80\x17";
private $_TPM_ST_ATTEST_CERTIFY = "\x80\x17";
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 12
private $_alg;
private $_alg;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 13
private $_signature;
private $_signature;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 14
private $_pubArea;
private $_pubArea;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 15
private $_x5c;
private $_x5c;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 16
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 17
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 18
* @var ByteBuffer
* @var ByteBuffer
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 19
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 20
private $_certInfo;
private $_certInfo;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 21
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 22
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 23
public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 24
parent::__construct($AttestionObject, $authenticatorData);
parent::__construct($AttestionObject, $authenticatorData);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 25
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 26
// check packed data
// check packed data
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 27
$attStmt = $this->_attestationObject['attStmt'];
$attStmt = $this->_attestationObject['attStmt'];
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 28
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 29
if (!\array_key_exists('ver', $attStmt) || $attStmt['ver'] !== '2.0') {
if (!\array_key_exists('ver', $attStmt) || $attStmt['ver'] !== '2.0') {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 30
throw new WebAuthnException('invalid tpm version: ' . $attStmt['ver'], WebAuthnException::INVALID_DATA);
throw new WebAuthnException('invalid tpm version: ' . $attStmt['ver'], WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 31
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 32
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 33
if (!\array_key_exists('alg', $attStmt) || $this->_getCoseAlgorithm($attStmt['alg']) === null) {
if (!\array_key_exists('alg', $attStmt) || $this->_getCoseAlgorithm($attStmt['alg']) === null) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 34
throw new WebAuthnException('unsupported alg: ' . $attStmt['alg'], WebAuthnException::INVALID_DATA);
throw new WebAuthnException('unsupported alg: ' . $attStmt['alg'], WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 35
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 36
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 37
if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof ByteBuffer)) {
if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof ByteBuffer)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 38
throw new WebAuthnException('signature not found', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('signature not found', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 39
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 40
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 41
if (!\array_key_exists('certInfo', $attStmt) || !\is_object($attStmt['certInfo']) || !($attStmt['certInfo'] instanceof ByteBuffer)) {
if (!\array_key_exists('certInfo', $attStmt) || !\is_object($attStmt['certInfo']) || !($attStmt['certInfo'] instanceof ByteBuffer)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 42
throw new WebAuthnException('certInfo not found', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('certInfo not found', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 43
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 44
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 45
if (!\array_key_exists('pubArea', $attStmt) || !\is_object($attStmt['pubArea']) || !($attStmt['pubArea'] instanceof ByteBuffer)) {
if (!\array_key_exists('pubArea', $attStmt) || !\is_object($attStmt['pubArea']) || !($attStmt['pubArea'] instanceof ByteBuffer)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 46
throw new WebAuthnException('pubArea not found', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('pubArea not found', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 47
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 48
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 49
$this->_alg = $attStmt['alg'];
$this->_alg = $attStmt['alg'];
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 50
$this->_signature = $attStmt['sig']->getBinaryString();
$this->_signature = $attStmt['sig']->getBinaryString();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 51
$this->_certInfo = $attStmt['certInfo'];
$this->_certInfo = $attStmt['certInfo'];
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 52
$this->_pubArea = $attStmt['pubArea'];
$this->_pubArea = $attStmt['pubArea'];
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 53
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 54
// certificate for validation
// certificate for validation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 55
if (\array_key_exists('x5c', $attStmt) && \is_array($attStmt['x5c']) && \count($attStmt['x5c']) > 0) {
if (\array_key_exists('x5c', $attStmt) && \is_array($attStmt['x5c']) && \count($attStmt['x5c']) > 0) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 56
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 57
// The attestation certificate attestnCert MUST be the first element in the array
// The attestation certificate attestnCert MUST be the first element in the array
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 58
$attestnCert = array_shift($attStmt['x5c']);
$attestnCert = array_shift($attStmt['x5c']);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 59
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 60
if (!($attestnCert instanceof ByteBuffer)) {
if (!($attestnCert instanceof ByteBuffer)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 61
throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 62
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 63
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 64
$this->_x5c = $attestnCert->getBinaryString();
$this->_x5c = $attestnCert->getBinaryString();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 65
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 66
// certificate chain
// certificate chain
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 67
foreach ($attStmt['x5c'] as $chain) {
foreach ($attStmt['x5c'] as $chain) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 68
if ($chain instanceof ByteBuffer) {
if ($chain instanceof ByteBuffer) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 69
$this->_x5c_chain[] = $chain->getBinaryString();
$this->_x5c_chain[] = $chain->getBinaryString();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 70
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 71
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 72
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 73
} else {
} else {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 74
throw new WebAuthnException('no x5c certificate found', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('no x5c certificate found', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 75
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 76
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 77
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 78
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 79
/*
/*
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 80
* returns the key certificate in PEM format
* returns the key certificate in PEM format
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 81
* @return string|null
* @return string|null
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 82
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 83
public function getCertificatePem() {
public function getCertificatePem() {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 84
if (!$this->_x5c) {
if (!$this->_x5c) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 85
return null;
return null;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 86
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 87
return $this->_createCertificatePem($this->_x5c);
return $this->_createCertificatePem($this->_x5c);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 88
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 89
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 90
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 91
* @param string $clientDataHash
* @param string $clientDataHash
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 92
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 93
public function validateAttestation($clientDataHash) {
public function validateAttestation($clientDataHash) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 94
return $this->_validateOverX5c($clientDataHash);
return $this->_validateOverX5c($clientDataHash);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 95
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 96
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 97
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 98
* validates the certificate against root certificates
* validates the certificate against root certificates
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 99
* @param array $rootCas
* @param array $rootCas
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 100
* @return boolean
* @return boolean
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 101
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 102
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 103
public function validateRootCertificate($rootCas) {
public function validateRootCertificate($rootCas) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 104
if (!$this->_x5c) {
if (!$this->_x5c) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 105
return false;
return false;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 106
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 107
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 108
$chainC = $this->_createX5cChainFile();
$chainC = $this->_createX5cChainFile();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 109
if ($chainC) {
if ($chainC) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 110
$rootCas[] = $chainC;
$rootCas[] = $chainC;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 111
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 112
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 113
$v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
$v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 114
if ($v === -1) {
if ($v === -1) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 115
throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 116
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 117
return $v;
return $v;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 118
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 119
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 120
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 121
* validate if x5c is present
* validate if x5c is present
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 122
* @param string $clientDataHash
* @param string $clientDataHash
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 123
* @return bool
* @return bool
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 124
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 125
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 126
protected function _validateOverX5c($clientDataHash) {
protected function _validateOverX5c($clientDataHash) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 127
$publicKey = \openssl_pkey_get_public($this->getCertificatePem());
$publicKey = \openssl_pkey_get_public($this->getCertificatePem());
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 128
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 129
if ($publicKey === false) {
if ($publicKey === false) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 130
throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), WebAuthnException::INVALID_PUBLIC_KEY);
throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), WebAuthnException::INVALID_PUBLIC_KEY);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 131
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 132
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 133
// Concatenate authenticatorData and clientDataHash to form attToBeSigned.
// Concatenate authenticatorData and clientDataHash to form attToBeSigned.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 134
$attToBeSigned = $this->_authenticatorData->getBinary();
$attToBeSigned = $this->_authenticatorData->getBinary();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 135
$attToBeSigned .= $clientDataHash;
$attToBeSigned .= $clientDataHash;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 136
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 137
// Validate that certInfo is valid:
// Validate that certInfo is valid:
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 138
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 139
// Verify that magic is set to TPM_GENERATED_VALUE.
// Verify that magic is set to TPM_GENERATED_VALUE.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 140
if ($this->_certInfo->getBytes(0, 4) !== $this->_TPM_GENERATED_VALUE) {
if ($this->_certInfo->getBytes(0, 4) !== $this->_TPM_GENERATED_VALUE) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 141
throw new WebAuthnException('tpm magic not TPM_GENERATED_VALUE', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('tpm magic not TPM_GENERATED_VALUE', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 142
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 143
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 144
// Verify that type is set to TPM_ST_ATTEST_CERTIFY.
// Verify that type is set to TPM_ST_ATTEST_CERTIFY.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 145
if ($this->_certInfo->getBytes(4, 2) !== $this->_TPM_ST_ATTEST_CERTIFY) {
if ($this->_certInfo->getBytes(4, 2) !== $this->_TPM_ST_ATTEST_CERTIFY) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 146
throw new WebAuthnException('tpm type not TPM_ST_ATTEST_CERTIFY', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('tpm type not TPM_ST_ATTEST_CERTIFY', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 147
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 148
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 149
$offset = 6;
$offset = 6;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 150
$qualifiedSigner = $this->_tpmReadLengthPrefixed($this->_certInfo, $offset);
$qualifiedSigner = $this->_tpmReadLengthPrefixed($this->_certInfo, $offset);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 151
$extraData = $this->_tpmReadLengthPrefixed($this->_certInfo, $offset);
$extraData = $this->_tpmReadLengthPrefixed($this->_certInfo, $offset);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 152
$coseAlg = $this->_getCoseAlgorithm($this->_alg);
$coseAlg = $this->_getCoseAlgorithm($this->_alg);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 153
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 154
// Verify that extraData is set to the hash of attToBeSigned using the hash algorithm employed in "alg".
// Verify that extraData is set to the hash of attToBeSigned using the hash algorithm employed in "alg".
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 155
if ($extraData->getBinaryString() !== \hash($coseAlg->hash, $attToBeSigned, true)) {
if ($extraData->getBinaryString() !== \hash($coseAlg->hash, $attToBeSigned, true)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 156
throw new WebAuthnException('certInfo:extraData not hash of attToBeSigned', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('certInfo:extraData not hash of attToBeSigned', WebAuthnException::INVALID_DATA);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 157
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 158
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 159
// Verify the sig is a valid signature over certInfo using the attestation
// Verify the sig is a valid signature over certInfo using the attestation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 160
// public key in aikCert with the algorithm specified in alg.
// public key in aikCert with the algorithm specified in alg.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 161
return \openssl_verify($this->_certInfo->getBinaryString(), $this->_signature, $publicKey, $coseAlg->openssl) === 1;
return \openssl_verify($this->_certInfo->getBinaryString(), $this->_signature, $publicKey, $coseAlg->openssl) === 1;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 162
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 163
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 164
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 165
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 166
* returns next part of ByteBuffer
* returns next part of ByteBuffer
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 167
* @param ByteBuffer $buffer
* @param ByteBuffer $buffer
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 168
* @param int $offset
* @param int $offset
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 169
* @return ByteBuffer
* @return ByteBuffer
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 170
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 171
protected function _tpmReadLengthPrefixed(ByteBuffer $buffer, &$offset) {
protected function _tpmReadLengthPrefixed(ByteBuffer $buffer, &$offset) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 172
$len = $buffer->getUint16Val($offset);
$len = $buffer->getUint16Val($offset);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 173
$data = $buffer->getBytes($offset + 2, $len);
$data = $buffer->getBytes($offset + 2, $len);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 174
$offset += (2 + $len);
$offset += (2 + $len);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 175
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 176
return new ByteBuffer($data);
return new ByteBuffer($data);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 177
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 178
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 179
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 180