1234567891011121314151617181920212223242526272829 |
- /*
- * Copyright 2018 Scytl Secure Electronic Voting SA
- *
- * All rights reserved
- *
- * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
- */
- describe('Stores service...', function() {
- 'use strict';
- describe('should be able to ..', function() {
- it('open a sks store', function() {
- var data = {
- salt: 'CpHq+38iqF3Ls7j97qBQ2A9Diy8=',
- secrets: {
- symmetric:
- 'I4ogx7At8e2ZS9dZOXnmaHs3itWF2M+8m9qnzqkVo+hA3OczA1Gvi9gAacOWoEJMp5yaCn0='
- },
- store:
- 'MIIW1QIBAzCCFo8GCSqGSIb3DQEHAaCCFoAEghZ8MIIWeDCCCrUGCSqGSIb3DQEHAaCCCqYEggqiMIIKnjCCBUsGCyqGSIb3DQEMCgECoIIE+jCCBPYwKAYKKoZIhvcNAQwBAzAaBBTi2se0MOLF/EwAkroUjfqP3o13LQICBAAEggTI3MsaE5UDYPZQi8//fWVQEu/Bs/qP7sMmFxey6nABtBjCx0Y5CNYyNXPbujpqGKSpuycw3cgMshhY6KCDsOezaWPJ9Fg2gxjsnoTibdM7G3BnKTkdF/FBYPZaa4Fn0DX9mOZ4/3dLlbID9Bapp1xtF04SBuf6f+Blv6tXXkzUqTMr2cXhVOuQFnT/48XqA9j3k+hFXwdjqH5C1mBX216Se0Rpwf/2YJweaW7z21w0BfcXeNUQB2jfHV11C016XmMVK4RI+gsicwCI3QK0FfmKkPdpuDJw8fVBPykHFN2YHa3k+jlD9UrAOb5MvgcV2EysYKPdfAux7Ih/vwWocAD0j5gIAbKiH4rpTr9l41lQbbi3VpTRGttrIr2rWB8E+ETnE19/ywmhqT+hslZQaW9H5hALKPqeC+JMYo7Kf9Y8YOPHUTYUtklnrmzM/nKEcZ0G+c5uoqiI6imZDypyxDeUdci5ZskNun7w/VV5NdqMOxTvPS1AJ1xo47PrSx41vXFrzTTNvHP1Ma1h02XACTL37bfM37kB5pBKFQbm6aAQkAzvkwoS3qFJDutAO096EVqJbtMtslW3kwh/CF7E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WlGPJUvNLN4jT53cqpnmAbX3CUoE/EQ2bu4O5+1AGXuPuH7mfbgf4S2Eb5mNjfBeMR1UkL6yqnWkybl9fKkAG3ofn0+8AwnLh8TzL129555/lE+9jOVzh2zxz+nsDpdvjB4e9YIfhCZ1qY2e3Yc6ofkH6ZMZx2/yDSRWqePH8ncI89u27i9PyeWsnu3WS2DC05MYuGvbuaa6PXhYh49GTpJHWbO7bYNnk7IfUDm5PLQ0CQWM7dHcJY/NlaqmXpjNOARI1DOwlyH5wvFuUShN0szBgVcm2gcJ1Pkl+nlFRespcirC4aORHnXPY5zbUQdkPQVFxwxakGHznQtCgq3fHCDONtgVm/n8gsDbgAQIcIlpPkPjV8OiwzTTuQmn+La5EEl0JQ0ZmtvC3l93sUxvev39FSe0BbqWRhPG3JJPSLCddPN/bIF+eaYRsL2xcGyQHyZ92ZTP/4OKb9tzMwHqp9dIBuOKZa7TlgMIAzV1+f1YS7stq31jqYwPTAhMAkGBSsOAwIaBQAEFIL4ft7A4v6F7xHtL5968evRiWjOBBQsjehM4e7vvVXPa3SEHJ3pPWItIAICBAA='
- };
- cryptolib('stores.service', function(box) {
- var sksReader = new box.stores.service.loadStore(data);
- expect(sksReader).toBeDefined();
- });
- });
- });
- });
|