UNPKG
@reclaimprotocol/tls
Version:
latest (0.1.2)
0.1.2
0.1.0
0.0.8
0.0.6
0.0.4
0.0.2
0.0.1
TLS 1.2/1.3 for any JavaScript Environment
github.com/reclaimprotocol/tls/
@reclaimprotocol/tls
/
lib
/
crypto
/
common.d.ts
4 lines
(3 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
import
type
{
PublicKey
as
RSAPubKey
}
from
'micro-rsa-dsa-dh/rsa.js'
;
export
declare
function
parseRsaPublicKeyFromAsn1
(
asn1
:
Uint8Array
):
RSAPubKey
;
export
declare
function
bufToUint8Array
(
buf
:
ArrayBuffer
|
Uint8Array
):
Uint8Array
;