2017-11-01 03:42:23 +00:00
|
|
|
import SsrAuthAes128Preset from './ssr-auth-aes128';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @description
|
|
|
|
* shadowsocksr "auth_aes128_sha1" implementation.
|
|
|
|
*
|
|
|
|
* @notice
|
|
|
|
* This preset should be used together with "ss-base" and "ss-stream-cipher".
|
|
|
|
*
|
|
|
|
* @examples
|
|
|
|
* [
|
|
|
|
* {"name": "ss-base"},
|
|
|
|
* {"name": "ssr-auth-aes128-sha1"},
|
|
|
|
* {"name": "ss-stream-cipher","params": {"method": "aes-128-ctr"}}
|
|
|
|
* ]
|
|
|
|
*/
|
|
|
|
export default class SsrAuthAes128Sha1Preset extends SsrAuthAes128Preset {
|
|
|
|
|
2018-02-15 03:01:24 +00:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
2017-11-01 03:42:23 +00:00
|
|
|
this._hashFunc = 'sha1';
|
|
|
|
this._salt = 'auth_aes128_sha1';
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|