mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-02 21:12:16 -05:00
89 lines
23 KiB
HTML
89 lines
23 KiB
HTML
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
|
|
.KEYW {color: #933;}
|
|
.COMM {color: #bbb; font-style: italic;}
|
|
.NUMB {color: #393;}
|
|
.STRN {color: #393;}
|
|
.REGX {color: #339;}
|
|
.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
|
|
</style></head><body><pre><span class='line'> 1</span> <span class="COMM">/*! rsapem-1.1.js (c) 2012 Kenji Urushima | kjur.github.com/jsrsasign/license
|
|
<span class='line'> 2</span> */</span><span class="WHIT">
|
|
<span class='line'> 3</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 4</span> </span><span class="COMM">// rsa-pem.js - adding function for reading/writing PKCS#1 PEM private key</span><span class="WHIT">
|
|
<span class='line'> 5</span> </span><span class="COMM">// to RSAKey class.</span><span class="WHIT">
|
|
<span class='line'> 6</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 7</span> </span><span class="COMM">// version: 1.1 (2012-May-10)</span><span class="WHIT">
|
|
<span class='line'> 8</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 9</span> </span><span class="COMM">// Copyright (c) 2010-2012 Kenji Urushima (kenji.urushima@gmail.com)</span><span class="WHIT">
|
|
<span class='line'> 10</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 11</span> </span><span class="COMM">// This software is licensed under the terms of the MIT License.</span><span class="WHIT">
|
|
<span class='line'> 12</span> </span><span class="COMM">// http://kjur.github.com/jsrsasign/license/</span><span class="WHIT">
|
|
<span class='line'> 13</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 14</span> </span><span class="COMM">// The above copyright and license notice shall be </span><span class="WHIT">
|
|
<span class='line'> 15</span> </span><span class="COMM">// included in all copies or substantial portions of the Software.</span><span class="WHIT">
|
|
<span class='line'> 16</span> </span><span class="COMM">// </span><span class="WHIT">
|
|
<span class='line'> 17</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 18</span> </span><span class="COMM">// Depends on:</span><span class="WHIT">
|
|
<span class='line'> 19</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 20</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 21</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 22</span> </span><span class="COMM">// _RSApem_pemToBase64(sPEM)</span><span class="WHIT">
|
|
<span class='line'> 23</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 24</span> </span><span class="COMM">// removing PEM header, PEM footer and space characters including</span><span class="WHIT">
|
|
<span class='line'> 25</span> </span><span class="COMM">// new lines from PEM formatted RSA private key string.</span><span class="WHIT">
|
|
<span class='line'> 26</span> </span><span class="COMM">//</span><span class="WHIT">
|
|
<span class='line'> 27</span>
|
|
<span class='line'> 28</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">_rsapem_pemToBase64</span><span class="PUNC">(</span><span class="NAME">sPEMPrivateKey</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
|
|
<span class='line'> 29</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sPEMPrivateKey</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 30</span> </span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">s.replace</span><span class="PUNC">(</span><span class="STRN">"-----BEGIN RSA PRIVATE KEY-----"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 31</span> </span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">s.replace</span><span class="PUNC">(</span><span class="STRN">"-----END RSA PRIVATE KEY-----"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 32</span> </span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">s.replace</span><span class="PUNC">(</span><span class="REGX">/[ \n]+/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 33</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">s</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 34</span> </span><span class="PUNC">}</span><span class="WHIT">
|
|
<span class='line'> 35</span>
|
|
<span class='line'> 36</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">_rsapem_getPosArrayOfChildrenFromHex</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
|
|
<span class='line'> 37</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 38</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">v1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getStartPosOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 39</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">n1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">v1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 40</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">n1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 41</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">d1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">e1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 42</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">p1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">d1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 43</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">p1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 44</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dp1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">q1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 45</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dq1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dp1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 46</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">co1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getPosOfNextSibling_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dq1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 47</span> </span><span class="WHIT"> </span><span class="NAME">a.push</span><span class="PUNC">(</span><span class="NAME">v1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">n1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">e1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">d1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">p1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">q1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dp1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dq1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">co1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 48</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">a</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 49</span> </span><span class="PUNC">}</span><span class="WHIT">
|
|
<span class='line'> 50</span>
|
|
<span class='line'> 51</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">_rsapem_getHexValueArrayOfChildrenFromHex</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
|
|
<span class='line'> 52</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_rsapem_getPosArrayOfChildrenFromHex</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 53</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">v</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 54</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 55</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">2</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 56</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">3</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 57</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">p</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">4</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 58</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">5</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 59</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">6</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 60</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">7</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 61</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">co</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ASN1HEX.getHexOfV_AtObj</span><span class="PUNC">(</span><span class="NAME">hPrivateKey</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">posArray</span><span class="PUNC">[</span><span class="NUMB">8</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 62</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 63</span> </span><span class="WHIT"> </span><span class="NAME">a.push</span><span class="PUNC">(</span><span class="NAME">v</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">n</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">e</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">d</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">p</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">q</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dp</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">dq</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">co</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 64</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">a</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 65</span> </span><span class="PUNC">}</span><span class="WHIT">
|
|
<span class='line'> 66</span>
|
|
<span class='line'> 67</span> </span><span class="COMM">/**
|
|
<span class='line'> 68</span> * read PKCS#1 private key from a string
|
|
<span class='line'> 69</span> * @name readPrivateKeyFromPEMString
|
|
<span class='line'> 70</span> * @memberOf RSAKey#
|
|
<span class='line'> 71</span> * @function
|
|
<span class='line'> 72</span> * @param {String} keyPEM string of PKCS#1 private key.
|
|
<span class='line'> 73</span> */</span><span class="WHIT">
|
|
<span class='line'> 74</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">_rsapem_readPrivateKeyFromPEMString</span><span class="PUNC">(</span><span class="NAME">keyPEM</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
|
|
<span class='line'> 75</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">keyB64</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_rsapem_pemToBase64</span><span class="PUNC">(</span><span class="NAME">keyPEM</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 76</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">keyHex</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">b64tohex</span><span class="PUNC">(</span><span class="NAME">keyB64</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="COMM">// depends base64.js</span><span class="WHIT">
|
|
<span class='line'> 77</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_rsapem_getHexValueArrayOfChildrenFromHex</span><span class="PUNC">(</span><span class="NAME">keyHex</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 78</span> </span><span class="WHIT"> </span><span class="NAME">this.setPrivateEx</span><span class="PUNC">(</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">2</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">3</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">4</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">5</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">6</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">7</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">a</span><span class="PUNC">[</span><span class="NUMB">8</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 79</span> </span><span class="PUNC">}</span><span class="WHIT">
|
|
<span class='line'> 80</span>
|
|
<span class='line'> 81</span> </span><span class="NAME">RSAKey.prototype.readPrivateKeyFromPEMString</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_rsapem_readPrivateKeyFromPEMString</span><span class="PUNC">;</span><span class="WHIT">
|
|
<span class='line'> 82</span> </span></pre></body></html> |