Documentation

MSBLOB
in package

AbstractYes

Microsoft BLOB Formatted RSA Key Handler

Tags
author

Jim Wigginton terrafrost@php.net

access

public

Table of Contents

Constants

CALG_RSA_KEYX  = 0xa400
RSA public key exchange algorithm
CALG_RSA_SIGN  = 0x2400
RSA public key exchange algorithm
PRIVATEKEYBLOB  = 0x7
Public/Private Key Pair
PUBLICKEYBLOB  = 0x6
Public Key
PUBLICKEYBLOBEX  = 0xa
Public Key
RSA1  = 0x31415352
Public Key
RSA2  = 0x32415352
Private Key

Methods

load()  : array<string|int, mixed>
Break a public or private key down into its constituent components
savePrivateKey()  : string
Convert a private key to the appropriate format.
savePublicKey()  : string
Convert a public key to the appropriate format

Constants

CALG_RSA_KEYX

RSA public key exchange algorithm

public mixed CALG_RSA_KEYX = 0xa400
Tags
access

private

CALG_RSA_SIGN

RSA public key exchange algorithm

public mixed CALG_RSA_SIGN = 0x2400
Tags
access

private

PRIVATEKEYBLOB

Public/Private Key Pair

public mixed PRIVATEKEYBLOB = 0x7
Tags
access

private

PUBLICKEYBLOB

Public Key

public mixed PUBLICKEYBLOB = 0x6
Tags
access

private

PUBLICKEYBLOBEX

Public Key

public mixed PUBLICKEYBLOBEX = 0xa
Tags
access

private

RSA1

Public Key

public mixed RSA1 = 0x31415352
Tags
access

private

RSA2

Private Key

public mixed RSA2 = 0x32415352
Tags
access

private

Methods

load()

Break a public or private key down into its constituent components

public static load(string $key[, string $password = '' ]) : array<string|int, mixed>
Parameters
$key : string
$password : string = ''

optional

Tags
access

public

Return values
array<string|int, mixed>

savePrivateKey()

Convert a private key to the appropriate format.

public static savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array<string|int, mixed> $primes, array<string|int, mixed> $exponents, array<string|int, mixed> $coefficients[, string $password = '' ]) : string
Parameters
$n : BigInteger
$e : BigInteger
$d : BigInteger
$primes : array<string|int, mixed>
$exponents : array<string|int, mixed>
$coefficients : array<string|int, mixed>
$password : string = ''

optional

Tags
access

public

Return values
string

        
On this page

Search results